From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751648AbdBOOxX (ORCPT ); Wed, 15 Feb 2017 09:53:23 -0500 Received: from Galois.linutronix.de ([146.0.238.70]:47423 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751555AbdBOOxV (ORCPT ); Wed, 15 Feb 2017 09:53:21 -0500 Date: Wed, 15 Feb 2017 15:52:28 +0100 (CET) From: Thomas Gleixner To: Alan Cox cc: Peter Zijlstra , LKML , Gabriel C , Ingo Molnar , Peter Anvin , Borislav Petkov , Linus Torvalds , Mike Galbraith , Greg Kroah-Hartman , Ruslan Ruslichenko , stable@vger.kernel.org Subject: Re: [patch 1/2] x86/platform/goldfish: Prevent unconditional loading In-Reply-To: <1487161067.3636.1.camel@linux.intel.com> Message-ID: References: <20170215101149.937286619@linutronix.de> <20170215102145.074836404@linutronix.de> <20170215105301.GB6557@twins.programming.kicks-ass.net> <1487161067.3636.1.camel@linux.intel.com> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 15 Feb 2017, Alan Cox wrote: > > > > I'm seriously grumpy about this engineering trainwreck, which has > > > > seven > > > > SOBs from Intel developers for 50 lines of code. And none of them > > > > figured > > > > out that this is broken. Impressive fail! > > It was discussed at the time, documented at the time. I just have a hard time to find that documentation. It's definitely not in the kernel source, unless you qualify the help text of CONFIG_GOLDFISH as such: Enable support for the Goldfish virtual platform used primarily for Android development. Unless you are building for the Android Goldfish emulator say N here. which does not help for randconfig and other builds and does not prevent users from enabling it accidentaly. That all wouldn't be as bad if at least the minimal provisioning of damage prevention would have been done. > Unfortunately the people who did the emulator didn't feel the urge to > provide a way to detect the platform was Goldfish. Sure, and the people shoving it into the kernel didn't feel the urge to enforce that. > Historically it also used its own custom device discovery scheme. Given > the limited use of older versions of Goldfish it might well make sense > to remove support for the older emulator versions. I'm all for it. Thanks, tglx