From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796374937; b=cMNPi1vAyxQUhznrb3gHYexbWizLRMwYK63OR3sswvFVDxNylZdK859vZISBqBkTbrpP /9Ir0UgUV53ioMkrWrLBrwOFJWftV0yuvxo7qUW2E/faFmtSwMOnwZbj5spK+8AU6DlA8 p2mG2kSt0nZFg04bBfaMYu8G30DLdAobhozRsUZiKRLpZhI+DPrET5V/ttKWwue5Zi6Y1 bFdsJNVEMjruOdMNroWDBXeS2IQVYjwPL1+X+Ob/LSNUsaIjaQfP0sOnRZS5Z1+auCxvR HR4T64rWo3yfj3cD9j47meIXO0zIBZb3p1/AnUyprMTSn5nzTKR8D/ueG+f2wvdR09g== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796374937; h=Received:DKIM-Signature:Received:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=ZbCokA/kONYn9Ff4mDKWtQAZ8vKJSuL6E+/kFQbA5Vc=; b=1ifKqQz3RnUighjjJC7QlYExaqyC0Bzt2pcOolfIXid55NfSDCf4zAh7Ge0jOH3sqASb iWPgQ7MquWOkxHTr4Gx4IMJMkjR8q8PAaiAtnI1Gf5xT3CLrTIwTM5IEEgB9vS/Ph8S3S IMEP9GZdfiWJlWVwmWdcQeqYT+n6u28AbeKLgZdSL/0onkDHABf6kFzngT+FUD5zRo7Ne SGx3INM2B6yNv6w4lioKkFCpPHHxOQqKjtueliPNmHdJ82aiIgS6KRPPv3QLBOuItYrNQ XQZDs/Gocg0DMGQoseTriPz9djffZHspmZa6ZFcpad55WWsHQ2dgNZaaPmbmW8Z1fQg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=Rwx94cgl; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 31CA8606A683; Fri, 4 Dec 2026 09:02:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=Rwx94cgl Received: by smtp.kernel.org (Postfix) with ESMTPSA id AF7E91F000C2; Fri, 4 Dec 2026 09:02:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796374936; bh=ZbCokA/kONYn9Ff4mDKWtQAZ8vKJSuL6E+/kFQbA5Vc=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=Rwx94cglicoBUZi67Jwp/S9i2o1Ahn0okvdqX7Y6ztRpAxHWDAR5J0DWuEFFIa+7J FypJh10cZq+e6Z0TjxMLuWdtyNqm6hvNY6EcAvrlXSHPzCAGjMTZwJo48ZBmJzo2tg nd6bPlSoGYB95FKzh/wWS4U5Uxp/M0bEULi1SNaR1YrnZNZp24lzbBSoWk28neRWYd 2FPEdAm87UMs+jOvfwpdejnhB8dNdz4rKw4WQ0Bx1XWM19pXcjYQK0hbYT/D82YG+O yzIWAJ+8rR7ngWVT+2SuVq6Il35cFpFFHquLbSbM7jIWEMsIrUXl/8pfFyncLE1JB2 IYCY+8lxhhQPw== Received: from johan by xi.lan with local (Exim 4.100.2) (envelope-from ) id 1xZPBG-000000061od-0yJH; Fri, 04 Dec 2026 10:02:14 +0100 Date: Fri, 4 Dec 2026 10:02:14 +0100 From: Johan Hovold To: Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= Cc: Jason Gunthorpe , Greg Kroah-Hartman , Danilo Krummrich , Jonathan Corbet , "Rafael J. Wysocki" , Steven Rostedt , Bradley Morgan , Armin Wolf , Masami Hiramatsu , linux-doc@vger.kernel.org, driver-core@lists.linux.dev, linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org Subject: Re: [PATCH v2 01/10] driver core: Disable driver overriding by default Message-ID: References: <20261120185909.GB1133597@ziepe.ca> X-Mailing-List: linux-doc@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="wq0XlzSWzaohTCKG" Content-Disposition: inline In-Reply-To: --wq0XlzSWzaohTCKG Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Dec 04, 2026 at 09:44:29AM +0100, Uwe Kleine-K=C3=B6nig wrote: > On Fri, Nov 20, 2026 at 02:59:09PM -0400, Jason Gunthorpe wrote: > > On Fri, Nov 20, 2026 at 12:11:02PM +0100, Uwe Kleine-K=C3=B6nig wrote: > >=20 > > > diff --git a/Documentation/admin-guide/kernel-parameters.txt b/Docume= ntation/admin-guide/kernel-parameters.txt > > > index 8228c9acc530..ed505e362b1d 100644 > > > --- a/Documentation/admin-guide/kernel-parameters.txt > > > +++ b/Documentation/admin-guide/kernel-parameters.txt > > > @@ -424,6 +424,12 @@ Kernel parameters > > > do not want to use tracing_snapshot_alloc() as it needs > > > to be done where GFP_KERNEL allocations are allowed. > > > =20 > > > + allow_driver_override > > > + Allow matching drivers without > > > + .support_driver_override =3D true to devices using > > > + driver_override. This is a dangerous operation in > > > + general allowing root to oops the kernel. > > > + > >=20 > > I feel like this is more appropriate as a lockdown level than a kernel > > command line? >=20 > Not sure what a lockdown level is, but I think a kernel parameter is > appropriate as a shortliving workaround for a driver that lacks the > required flag to be allowed to use driver_override without a taint. So > I'm keeping that mechanism. But it's just a taint. Dropping panic_on_taint seems like a better temporary workaround if ever needed. Johan --wq0XlzSWzaohTCKG Content-Type: application/pgp-signature; name=signature.asc -----BEGIN PGP SIGNATURE----- iJEEABYKADkWIQQHbPq+cpGvN/peuzMLxc3C7H1lCAUCaxKBjxsUgAAAAAAEAA5t YW51MiwyLjUrMS4xMiwyLDIACgkQC8XNwux9ZQhetgD/d3fL56cSfhqy1eMW3I1A VOoJyUGMpf43aABNEsO+DakA/jxPV3pOlDqVcVIb3sg62y0eJ+LtI1YUsmEHI0xK 3uAO =7lEq -----END PGP SIGNATURE----- --wq0XlzSWzaohTCKG--