From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ej1-f51.google.com (mail-ej1-f51.google.com [209.85.218.51]) (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 9D6293101B6 for ; Wed, 26 Aug 2026 15:35:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787758559; cv=none; b=pU8zNrjASKMmqCERTeXn3qpgZaRE749Jtx4P82QvlZgHs3Xfg0VkrxSG0QCGQDPSqEllQ+oZOpt9AvKmfgBK/Bu9t5+t6vPdiYYJlKkyN0Wfmw3SUmjMmKO3YgHMdeXbIzyx7zIov9DbKETfChKTxp0zCzr0a9FghI6dafQARis= 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.51 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-f51.google.com with SMTP id a640c23a62f3a-c2533d83e3bso30828266b.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=dUKKZLouM20iJKq3Tf10btrS/lZqYkdRYS9Klu9hpMmtjdIeVIg/oMBhzjVZc2siD5 oNgdUVlkXEBfTsrVPg7EpTx4AxGqj2NcSgUCviJX+4pdifEAnjL0d0HZruHDPDcwl80Q h/LmHLo4eNRmCvMqPYyzt9OK/UCIilVs4ntDznADz1WOguNfrrj15jiwlP5buJnwPZz7 xcOOdsqJuS/neqU6ouITNljtescvJ04zLcXXNAQdwu9if+yAaWfksEN+CgNe0sK7QHyZ gbPgAj9dKB260Faqw63oaCDJCOjiVdmDE9e/vYm+0nHgRuzFvhCn/9y77Vi9CZ/U4U8n rtRw== X-Forwarded-Encrypted: i=1; AHgh+Rqnnjy7lSMcgiAV0ZL09Pq8op/IJc/xbtDM6OdXETonlZ07VeMF1norU6qlZzAcv66YqN+ae4Edepo=@vger.kernel.org X-Gm-Message-State: AFuF++n27vW27pR2tEBnkswn0949f+UD++3c5+la7SKIH6LFsfGXwOoH Fe1MRF5/++64K6Y0915aiaQcqVjMG8W1syqQIafgofNOBdnNhPJ0KNkZ X-Gm-Gg: AR+sD11pI4kX+I63R7uFrhgitn08+MY8YR/ojmqi3F3nZmPXCS1t0yDti3BGP1VEAu7 kl0o2OrlOOJuXaER6sctqBV86POv0De1KOHftLz8qopXd5N2likICiacWYAye95lf6A40QXJDlH LpndETCiRkCa7aR+0Sx2FYA3oSxlQGrGxmFxQM2iDK23ZwFpvgLoAWAB5wwIjrDukFhkGV8fjL5 od5nXxMeCMlrMdyEIHDFst/If39EThiRbCTsDBXn5FJGg3E+f6y0rWnV54398ZjHi1HLkfYqbZ7 dySF35M49VkgEjAWUI3l9VHTchvK6LYGj2RONUkloB1WEaglsGBhQgVz0B2U3DPcbVsS+GiC4ZX 1N5gxB5h38DYkF8D/JhTmmHbkV38Ug6g71QBHwGv8XTHiO+hZNzyjg3+ECNstYCR42H29RNoL4v +DrVgouc3rpqLmr9f20MDmUE/KptfhTTxqjW3PwJfGJT4TRp119ny26Zm9Csy040SMUOUI 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-usb@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