From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ej1-f50.google.com (mail-ej1-f50.google.com [209.85.218.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9794430EF97 for ; Wed, 26 Aug 2026 15:35:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787758559; cv=none; b=hhBg8FVTTNJr/3d0Lm0FID5ljftbZKWvBba36EWs25R1918jSHxge5TciOOqZyk1WL1imNNTuwnkWpTC4wlbGiFDZascHTBrlQ4u/uHXI4K5vXdgSOro50DriHSlooggaAWreDaDiEI7fq6npoR0bugyKQ86LoLYBy1w1ykRtyQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787758559; c=relaxed/simple; bh=ASVPig2RbtLJupuuu44qrmNIwC0FnZunoekjk+DUNY8=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=bbjDEo/XDfOgv80A/TzVn6U1nDBYPZ7Wh+1+XdGxhpjoQhCsSerxDsseLAagT1cXEHFhSU0Ip4wXQQYpRyTp1OfElcNeOh2mBryiATRlLTfwROSBZwx7zobg7vE+oS7OUM5uWE3oL3tTNK3Lx1hBN6hJcxYe7YkldiPKlOvRaxE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=IR9tPp52; arc=none smtp.client-ip=209.85.218.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="IR9tPp52" Received: by mail-ej1-f50.google.com with SMTP id a640c23a62f3a-c2533d83e3bso30828166b.2 for ; Wed, 26 Aug 2026 08:35:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1787758556; x=1788363356; darn=vger.kernel.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:subject:cc:to:from:date:from:to:cc:subject :date:message-id:reply-to:content-type; bh=DftFo5v0HYb4sNCC2CkJoMxRuwrXKdG0zBl21yO9LPM=; b=IR9tPp528Fe+AL0FMXXAnvK8zpb6b3GKDMB+mD75iJS8XgbHaeyB+9QNy/XrPhOQRP 5Ahsmjzjz7zskE6HPwnSpPfXkdrPo7Qo+iCXcSzI8GxnyYfGgEKfkV4bNCS5r8HHMj4B sedTvw1XbsT0wCsXKeC/v2HFbMs9n6HSQ62VCFXL4pgWLpwYMrXWY7qelE+QI92LO5+u VJDOCPmIKaKwrbaOaTpApBw7w+FQRGMX4R4Oczs8WGLHYb+1Qw37TfJmLhYSlOuJ5x6E TGoK5ihxW/QaKYKR4/pitmpw1ZZ1XHAuA1etBLc3FVCdfUqk1QALH87yU2AaAYJAJFyR Lz9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1787758556; x=1788363356; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=DftFo5v0HYb4sNCC2CkJoMxRuwrXKdG0zBl21yO9LPM=; b=S3oHUVTsg7IVI89WeLfJ5qTmduaHK0nJ66o6Z7noTsLUlUmHOIUtbPbgvx+4jDYz9A aeeWiEod0iSwsd9BdOsK6N/zttXxEeLlzshuGsmevZLKGNs8aK2GfhGvvoQm658W1d+y abUkVQUuF4C9fBdXR3LjAeZyNJzNtNAOAMu1Kl6HRXxxT1AeEfoq0I87NN/iNp4omFx0 D9gKa8SCsm0GRre9g1r3QdIzmNITjNwyZg3aT0sGCoY0BWJrx3AvWCxaQCThUL54JCGI +iw2+sKaAtzXHmRsSrMw2mZc46VzJGiBqgpC5UI/XBKLkAgMqAl2wZwk+t+lnMkUDtut qv5A== X-Forwarded-Encrypted: i=1; AHgh+Rq3cLRWaa0uEdJ1785/zj/UI5ktDwOobZXb/P4ftETdkjcht5lTgoHtVz5+iGrXSsHs4P/hC/SipX18wsDmsdYrPEs=@vger.kernel.org X-Gm-Message-State: AFuF++lXX1q0Vkv+ZqWGonljeDi/bNpuJ14jP22tYqVGl+WqaNofv65J Tbihvfn6rxK4jW/ynDWE7i4NsLx6wf8Stu3lo7pYpLNo+GY/VqaV5V9L X-Gm-Gg: AR+sD10NILWGIWaasbFeAdof3+yHOPYQXHK70DwCJUpqiIP9mNH2JkH3XBZMpwoiW9y l9MDY9aO+SebYjPmpRYfYWit0fSesxXBngan1hqLOIPLJlBiWM7R5STlpSzPXIxDlWw8Q9Y00RQ cZHKOcDelJxgDRIeJbCflN9+NNC/JYpkF7aCz66l1Vn6AfX7TXlzV0pzyw9Nsv4whvBvoz7XqeK qT2bTydLpWw2ZSra29iXk6XAt4lLW6oasHKTIa5wOWQMLi3Y43GopSFaLxq7nLdWr+wgnZ+YOiH MXE7OWvPr9+nQqBv+TnHrlG1ggH98TmAT1X6J50kg1Dc++XWPVcTxaa+UweTqJ3D5EsDY3DWPrp 1zuNRFbc3afRNrPnse4YecZyGffOUPEdwbp/ulRRqNpucdYpBo9P11BxwBV4HyvAJsfuklO4Tml UfSUVZ+AJhoLlDJlGEXgf6nY2D7i3Fn32Sy/yu8Lm2Z6YHLH1aYqPAcRINxyyzXejKqFGY X-Received: by 2002:a17:907:7249:b0:c21:752f:c3f7 with SMTP id a640c23a62f3a-c250bc127b0mr959446666b.18.1787758555453; Wed, 26 Aug 2026 08:35:55 -0700 (PDT) Received: from foxbook (bfk5.neoplus.adsl.tpnet.pl. [83.28.48.5]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-c250a72d6dbsm483312166b.24.2026.08.26.08.35.53 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Wed, 26 Aug 2026 08:35:55 -0700 (PDT) Date: Wed, 26 Aug 2026 17:35:49 +0200 From: Michal Pecio To: Greg Kroah-Hartman Cc: Luis Chamberlain , Petr Pavlu , Daniel Gomez , Sami Tolvanen , Aaron Tomlin , Jonathan Corbet , Shuah Khan , Randy Dunlap , "Rafael J. Wysocki" , Danilo Krummrich , Steven Rostedt , Masami Hiramatsu , Mathieu Desnoyers , linux-modules@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, linux-usb@vger.kernel.org, driver-core@lists.linux.dev, linux-trace-kernel@vger.kernel.org Subject: Re: [PATCH 0/2] driver core: add TAINT_FORCED_BIND for when userspace manually messes with devices and drivers Message-ID: <20260826173549.18c8a89c.michal.pecio@gmail.com> In-Reply-To: <2026082658-statue-census-dc39@gregkh> References: <20260826-bind_taint-v1-0-52b05f4a965c@linuxfoundation.org> <20260826153311.6340efcd.michal.pecio@gmail.com> <2026082658-statue-census-dc39@gregkh> Precedence: bulk X-Mailing-List: linux-trace-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Wed, 26 Aug 2026 16:25:42 +0200, Greg Kroah-Hartman wrote: > > I think you confused 'bind' / 'unbind' with the likes of 'new_id' > > and 'driver_override'. Try binding xhci_hcd to NVMe, you won't get > > far. > > It seems to result in a failure report that people keep sending random > patches for :( It results in write() returning -ENODEV. You can't bind random drivers to random devices out of the box, you need ID overrides. And then you don't need to bind manually, the kernel will happily select the wrong driver by default. Authors of the recent xhci and thunderbolt patches admitted that 'driver_override' was involved in both cases. Meanwhile, Syzbot also found a stupid write to freed memory in USB core when HCs are unbound. You may say it doesn't matter, but: * USB HCs are hotpluggable thunderbolt "gadgets" these days * there were plans to alter this code so that UAF is triggered by hot removal of the USB device, not its parent HC IMO the actually meaningful change would be to taint driver ID overrides, because that's the known risky and crash-prone madness. bind/unbind taint is noise that will be ignored. Regards, Michal