Bug 279934 - WITHOUT_WIRELESS=yes does not work with iwlwifi (should be: WITHOUT_WIRELESS_SUPPORT=yes does not work with any wireless module)
Summary: WITHOUT_WIRELESS=yes does not work with iwlwifi (should be: WITHOUT_WIRELESS_...
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 14.1-RELEASE
Hardware: amd64 Any
: --- Affects Many People
Assignee: freebsd-wireless (Nobody)
URL:
Keywords:
Depends on:
Blocks: 277512
  Show dependency treegraph
 
Reported: 2024-06-23 13:12 UTC by marquis
Modified: 2024-06-28 18:09 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description marquis 2024-06-23 13:12:17 UTC
Building a kernel with WITHOUT_WIRELESS=yes specified in /etc/src.conf still compiles and installs kernel modules for iwlwifi under /boot/kernel.  This is a bug but also a TTP-style "bug" commonly used by nation-states to inject RCEs.  Not saying that's the case here but it is the sort of red flag that software vulnerability and build system scanners alert on.
Comment 1 Ed Maste freebsd_committer freebsd_triage 2024-06-23 19:59:17 UTC
WITHOUT_WIRELESS is documented in src.conf as:

     WITHOUT_WIRELESS
             Do not build programs used for 802.11 wireless networks;
             especially wpa_supplicant(8) and hostapd(8).  When set, these
             options are also in effect:
 
             WITHOUT_WIRELESS_SUPPORT (unless WITH_WIRELESS_SUPPORT is set
             explicitly)

     WITHOUT_WIRELESS_SUPPORT
             Build libraries, programs, and kernel modules without 802.11
             wireless support.
Comment 2 Bjoern A. Zeeb freebsd_committer freebsd_triage 2024-06-23 20:13:58 UTC
See also:
https://lists.freebsd.org/archives/freebsd-arch/2024-June/000701.html


As I concluded in
https://lists.freebsd.org/archives/freebsd-arch/2024-June/000705.html

it would be WITHOUT_WIRELESS_SUPPORT but it seems we never applied that to any wireless modules.  So is nothing iwlwifi specific.

Let's take it from here.
Comment 3 Warner Losh freebsd_committer freebsd_triage 2024-06-28 18:09:10 UTC
As Ed says, we don't document this as disabling wireless drivers. I think this is either not a bug, or a request for a new feature.