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=1796375436; b=gp+0RePDWDq5kVtr6Q8hn+mkk3al29RihotKwH97sDXrgm/5Ecif7exgYLEgocr8Tpmh Q6AAZL2HYHUjjUKlNCMS61GjKqryY5OjvgzMmQxSwjzWpmHk6uiqOG0BRpimUKIiVC2bj xGUC9El3Q88pZXRhc6Yft4Zt7/r7KwHzTZV43YDma7SXxbkV7cCO2sJQ/zf5DM92ftsWs z+IDMcykQA69nc0SjcKAhzNBXQ4iHdYVEeKwaQpUF5NUGdbfsH+QhopyQEBcBwNxuTQ1A eNB/PTz9GrXNVWm1alRbsJJPNsRyj3NSi8SxLiDG42o6QCAIg2prW1tH+wOhXOtbYeA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796375436; h=Received:DKIM-Signature:Received:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=fZOpEq0hVCZApD02WjQ6NBwhSTS1rEO2abRrPlG3cIE=; b=lTvWnWeI9O8Fn0RzCvuNbJCifU49UajyvN51xMU4WYNTXerNMKJZvUb/6HhOWu27vyS1 FGiIMMVg1HqfGgjQNPzJlsncgqqY8jkhXFNuu4tOK8adujN0h2HjMDHqQIb5D8jcigw/0 ngPCiYflXnvBdCURAYCizmCpDaOVD0BZzhi51US+F74hx+tP3+B3fixvrHg8bl+2LmKJ0 Iw9usUjDxbJQXmPERYuW2RidcNXD1oL2mTq385kXG322gBJcHLQs7atecaCtrWlI42jde AtGRO6leibgJII+nP5oISCCldZZ8BIItixv3XPf45s3O+88r/KZzHBvcJmzZoqR2yAg== 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=VSD6uPJz; 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 5B79D606A322; Fri, 4 Dec 2026 09:10:36 +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=VSD6uPJz Received: by smtp.kernel.org (Postfix) with ESMTPSA id D909B1F000CE; Fri, 4 Dec 2026 09:10:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796375435; bh=fZOpEq0hVCZApD02WjQ6NBwhSTS1rEO2abRrPlG3cIE=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=VSD6uPJzXEAc5sWmn2RhzVe55dx1dCStZX+mdjkM7FlxQWfP1RhZVYKPa9KSJsTlO Xe2AXCT+SEJcU6Xqd4L60rzOFMZiX/vO8Dz98gol6/dJ6BSQD1ro3b+lmtCey8LRum i4ovhXKxSU98KRQLzwy5Iw265uoEEo7Tn0RKRNjiDgt5wH1Jf5xVAgx04BTsWpz0e7 uqG0gKgHwaQ8p06NWphaXXNZKYuB82TZfys3mNpFcBsAmkrD/nybidnkG0RNPPxRrN tczCg5rg4RILa0HRy78bxvU9pBFfao+ZmyXutlkdE0571vbVKNOnkka7qwM3GKmIvo 9sLL6K+VPBYRQ== Received: from johan by xi.lan with local (Exim 4.100.2) (envelope-from ) id 1xZPJJ-000000061yN-1VFx; Fri, 04 Dec 2026 10:10:33 +0100 Date: Fri, 4 Dec 2026 10:10:33 +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: driver-core@lists.linux.dev 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="reKRXBi5LqOqvQxM" Content-Disposition: inline In-Reply-To: --reKRXBi5LqOqvQxM Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Dec 04, 2026 at 10:02:14AM +0100, Johan Hovold wrote: > 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/Docu= mentation/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. >=20 > But it's just a taint. Dropping panic_on_taint seems like a better > temporary workaround if ever needed. I see now that you are disallowing driver override as well, I misremembered and thought you were just suppressing the taint. Johan --reKRXBi5LqOqvQxM Content-Type: application/pgp-signature; name=signature.asc -----BEGIN PGP SIGNATURE----- iJEEABYKADkWIQQHbPq+cpGvN/peuzMLxc3C7H1lCAUCaxKDhRsUgAAAAAAEAA5t YW51MiwyLjUrMS4xMiwyLDIACgkQC8XNwux9ZQhA4QD+KTcFXHc2p0Tl2rNPDVG5 IEJS4BVXAJ8JbAIfn2bD7QsA/RnUFNs7HYL2DgUBfMf+k27Vw6K6rxzI8btP4WhE 7PsF =KwEp -----END PGP SIGNATURE----- --reKRXBi5LqOqvQxM--