Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp106018rdg; Wed, 11 Oct 2023 23:23:30 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGzxXm0WS2bkj9uMuMVWk2+e+PX2IRUhHd0+A8ZzesxqoCCQYkojSFHzqZhttJCH5+vGFNn X-Received: by 2002:a05:6358:1a9e:b0:164:8d78:257f with SMTP id gm30-20020a0563581a9e00b001648d78257fmr11052078rwb.17.1697091810138; Wed, 11 Oct 2023 23:23:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697091810; cv=none; d=google.com; s=arc-20160816; b=UJoJeBNuW+4AwlLWGaLE3eWl1o7lSbUmf26Yh+sDP8LhWM61hVhURCzwEQJWJR8zD7 5X/OkvNPh3eMbtUurgYvpdzyRY4Q0uS5OK00MTRo0MR7TAIpncjY4kh2OjThceWzgFDm XfKW8qhzxO2dO6xqdoyRraRioZfwNOcrIEWuvFecZjm+8muwMM/FCLJYGg0BkzigAfdM V2GzMybgMa7W/od6z6oInNSo83UV/Ll2QNhoRe4p13GoFxiS/tIB+P9HWzVic+whc1kX +Q2EB48FWEHQ9wlMnR+Z172yUT2VHPYblJWRs6J/p6sekFD5dwMbxLKgRjUjYnakshnE hnvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=4HT79hrObqSxBSC97lY+L6cqBvifnDEa24RG2fZwpdY=; fh=4h6KbP8zW87hng2sR7tVi4FUNXn2e6BfcTTUZpluvAk=; b=0XqeI7GiewFGcbVoIEuNQugWWIxj4OnUrOzobW8AQD09YKuebU22ZJXhSpCFv8yFWD eS2FknmEpwu2sOKs3oGdhgFTYuvBwZ0bkt8ezkR09/eM0LH1MG9KGnbK/YSztCh2Y9Dt yPVe9z3Zn1g2X88R8I+JfJu1VczXyMWwNiesMi+XU37ZnFquk0Mu/QJY5Shvgjv0As5J x4MS+m696+EfMfXSg9u0zw8dmPHwaTmJQxziSGSnFBIGctOTyuHNJz2AuORjUdz/7lsS idxrJl8l2s1/qsNlLvhRZirL33ouWkEi9odtpsJZ21GzA13xeg+RiO+8nok8lxn9Y/WM vJDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Ri3IYuQY; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id h6-20020a056a001a4600b006910a45a234si14138553pfv.202.2023.10.11.23.23.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 23:23:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Ri3IYuQY; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 6FD1080FD3B2; Wed, 11 Oct 2023 23:23:23 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377356AbjJLGXV (ORCPT + 52 others); Thu, 12 Oct 2023 02:23:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51488 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343510AbjJLGXS (ORCPT ); Thu, 12 Oct 2023 02:23:18 -0400 Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AF751BE for ; Wed, 11 Oct 2023 23:23:16 -0700 (PDT) Received: by mail-wm1-x333.google.com with SMTP id 5b1f17b1804b1-406402933edso6562405e9.2 for ; Wed, 11 Oct 2023 23:23:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1697091795; x=1697696595; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=4HT79hrObqSxBSC97lY+L6cqBvifnDEa24RG2fZwpdY=; b=Ri3IYuQYEVCX387youuvKmcreNWgZU+DHavhs2BJ0Pg+3cffy4pdCO6XMxjDA5E+jY 6LznvxlQx8T2yMCft/ZNUTg0/LhPJteCodfNYrvpqwPiS5XQ32gxrCkScg7CR4jhL0Oa Kfv7D8uRtxTJABeZVwvaAvN58ORCqgyOxtuHJcWx5ahFHoPFlpCyZ/KweiwyZpKaUs5W XzqaF8FV0oq+LFZ3w75wG8A0SAMt6jW+Twl5VKot1tkeADJ4iCOGibbHD2PY1z7d+lxO BAR5BBaGIPRp29mXRpudEFrnpVMdH+IN/AQLT4ZlR4p1aAP5gab8vP3SQlizXzPk3reC 9AjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697091795; x=1697696595; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=4HT79hrObqSxBSC97lY+L6cqBvifnDEa24RG2fZwpdY=; b=scWpx+UDc4VkD3lmdI6xvkwQwYwNialPdmRZuWf/fJ+QzhK5PjgUr1fSHVZ80cQ4u4 /RBKQPU42MAG7MEuUVZQ13AlIeQklPjtsOV2v2dzC1GdSxPveZBk66gCEEqiHBC+u7Z+ wTXYGGQrw/Nk4RBCOOwVbl5zUTsdKYfhNjBrT17Ld3uRve8HayivJc6QFwnrErAfy00k lPGQqtzysbT/fepZKbqzIHAMRDky7a86MPh+jnitRitskEZt4QsBB0w0P5+9KwtqtqqI aK2yjD4mNidIzf4Jdm/PuIoeJz/zQkV4JkoBsplDUepD9Ih58F6F11D0B9p/FTR6CUwJ mhmg== X-Gm-Message-State: AOJu0YxAtbHlubgt9jP7XVYduQDJJ0EFZ00HuygQvUGKZO+TxoL48vP2 X0BxRDGYeWA+TXPBxqRhWprXnQ== X-Received: by 2002:a05:600c:3652:b0:3fe:d1b9:7ea9 with SMTP id y18-20020a05600c365200b003fed1b97ea9mr19652329wmq.36.1697091795060; Wed, 11 Oct 2023 23:23:15 -0700 (PDT) Received: from localhost ([102.36.222.112]) by smtp.gmail.com with ESMTPSA id y4-20020a05600c364400b0040472ad9a3dsm18638405wmq.14.2023.10.11.23.23.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 23:23:14 -0700 (PDT) Date: Thu, 12 Oct 2023 09:23:12 +0300 From: Dan Carpenter To: Arnd Bergmann Cc: Philipp Hortmann , Arnd Bergmann , Kalle Valo , Greg Kroah-Hartman , Nicolas Ferre , Alexandre Belloni , Claudiu Beznea , Jakub Kicinski , Pavel Machek , "David S . Miller" , Larry Finger , linux-kernel@vger.kernel.org, linux-wireless@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-staging@lists.linux.dev Subject: Re: [PATCH] [RFC] wireless: move obsolete drivers to staging Message-ID: <428ef899-a5c4-4d93-beea-afd7ab6f6634@kadam.mountain> References: <20231010155444.858483-1-arnd@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Wed, 11 Oct 2023 23:23:23 -0700 (PDT) On Wed, Oct 11, 2023 at 10:22:32PM +0200, Arnd Bergmann wrote: > On Wed, Oct 11, 2023, at 20:13, Philipp Hortmann wrote: > > On 10/10/23 17:27, Arnd Bergmann wrote: > >> From: Arnd Bergmann While looking at the old drivers > >> using the obsolete .ndo_do_ioctl() callback, I found a number of network > >> drivers that are especially obsolete, in particular for 802.11b > >> (11Mbit/s) or even older wireless networks, using non-busmaster > >> ISA/PCMCIA style bus interfaces, and using the legacy wireless extension > >> ioctls rather than the netlink interfaces that were meant to replace > >> them in 2007. All of these drivers are obsolete or orphaned. We had > >> previously discussed this topic, but nobody ever moved the files, so I > >> now went through the list to my best knowledge. These are the drivers > >> that I would classify as "probably unused" by now: > > > > I found a USB WLAN Stick with a rtl8192u. I got it last Saturday and > > found out that the firmware is missing in my ubuntu 20.04. I found it on > > the web and fixed it. When I started the driver my computer crashed. The > > missing part was: priv->priv_wq = alloc_workqueue("priv_wq", 0, 0); > > Fixing this the next error was a network = kzalloc(sizeof(*network), > > GFP_KERNEL); in wrong context with leads to a crash of my computer. > > Fixing this leads to another issue which lets my computer crash. > > > > For me the firmware of rtl8192u was intentionally missing because of the > > issues with the driver. > > > > What this has to do with your question? > > Can we check for missing firmware in main distributions to know which > > drivers are considered to be old and unused? > > Nice, thanks so much for testing. > > I see the two bugs were introduced in 2016 by commit 1761a85c3bed3 > ("staging: rtl8192u: Remove create_workqueue()") This one never made it to lore... I think we wouldn't have merged it without a lore review these days. (There was a lot of moaning and complaining at the time). > and in 2021 by > commit 061e390b7c87f ("staging: rtl8192u: ieee80211_softmac: Move a > large data struct onto the heap"), so it's been broken for a while. :/ No way would I have seen this in review. Smatch is supposed to find some of these "sleeping in invalid context" warnings but the sleeping in IRQ stuff doesn't work and hasn't been released. regards, dan carpenter