Created attachment 764447 [details] .config Kernel hangs on boot. Previous gentoo-sources-5.15.16 works just fine. Config for gentoo-sources-5.15.19 (attached) was made using `make oldconfig` from 5.15.16's config. Config files are the same (excluding kernel version in top comment). I'll attach photos of hang kernel output.
Created attachment 764448 [details] gentoo-sources-5.15.19-hang-1.jpg
Created attachment 764449 [details] gentoo-sources-5.15.19-hang-2.jpg
Created attachment 764450 [details] gentoo-sources-5.15.19-hang-3.jpg
Just tried sys-kernel/gentoo-sources-5.15.21 with same .config - it hangs in same way as sys-kernel/gentoo-sources-5.15.19. :(
sys-kernel/vanilla-sources-5.15.21 hangs in same way. May be related: https://www.reddit.com/r/Fedora/comments/shhj6e/kernels_above_51516_are_crashing/ https://issues.guix.gnu.org/53712
My hardware: - [ATX AM4] Gigabyte X570 Aorus Ultra rev. 1.1 - AMD Ryzen 9 5900X Vermeer 3700MHz - [DDR4 4000MHz] G.Skill Ripjaws V F4-4000C18D-32GVK - [PCIe 3.0 x16] MSI GeForce GTX 1060 3GB GDDR5 OC - [PCIe x1] ASUS Xonar Essence STX AV200 - [M.2 2280 PCIe 4.0 x4 NVMe 1.3c] Samsung 980 Pro MZ-V8P1T0BW - [SATA3] Goodram Iridium Pro 240GB - [USB3] WD Elements WDBWLG0060HBK-EESN - [USB] Microsoft Corp. Natural Ergonomic Keyboard 4000 V1.0 - [USB] Logitech G502 Hero Black - [USB] Huawei LTE USB Modem # lsmod Module Size Used by xt_geoip 16384 4 vboxnetadp 28672 0 vboxnetflt 32768 0 vboxdrv 434176 2 vboxnetadp,vboxnetflt nvidia_uvm 1089536 0 nvidia_drm 57344 6 nvidia_modeset 1150976 12 nvidia_drm nvidia 34684928 651 nvidia_uvm,nvidia_modeset # lspci -nnk 00:00.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse Root Complex [1022:1480] Subsystem: Advanced Micro Devices, Inc. [AMD] Starship/Matisse Root Complex [1022:1480] 00:00.2 IOMMU [0806]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse IOMMU [1022:1481] Subsystem: Advanced Micro Devices, Inc. [AMD] Starship/Matisse IOMMU [1022:1481] 00:01.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Host Bridge [1022:1482] 00:01.1 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse GPP Bridge [1022:1483] Kernel driver in use: pcieport 00:01.2 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse GPP Bridge [1022:1483] Kernel driver in use: pcieport 00:02.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Host Bridge [1022:1482] 00:03.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Host Bridge [1022:1482] 00:03.1 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse GPP Bridge [1022:1483] Kernel driver in use: pcieport 00:04.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Host Bridge [1022:1482] 00:05.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Host Bridge [1022:1482] 00:07.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Host Bridge [1022:1482] 00:07.1 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse Internal PCIe GPP Bridge 0 to bus[E:B] [1022:1484] Kernel driver in use: pcieport 00:08.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Host Bridge [1022:1482] 00:08.1 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse Internal PCIe GPP Bridge 0 to bus[E:B] [1022:1484] Kernel driver in use: pcieport 00:14.0 SMBus [0c05]: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller [1022:790b] (rev 61) Subsystem: Gigabyte Technology Co., Ltd FCH SMBus Controller [1458:5001] 00:14.3 ISA bridge [0601]: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge [1022:790e] (rev 51) Subsystem: Gigabyte Technology Co., Ltd FCH LPC Bridge [1458:5001] 00:18.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Matisse/Vermeer Data Fabric: Device 18h; Function 0 [1022:1440] 00:18.1 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Matisse/Vermeer Data Fabric: Device 18h; Function 1 [1022:1441] 00:18.2 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Matisse/Vermeer Data Fabric: Device 18h; Function 2 [1022:1442] 00:18.3 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Matisse/Vermeer Data Fabric: Device 18h; Function 3 [1022:1443] Kernel driver in use: k10temp 00:18.4 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Matisse/Vermeer Data Fabric: Device 18h; Function 4 [1022:1444] 00:18.5 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Matisse/Vermeer Data Fabric: Device 18h; Function 5 [1022:1445] 00:18.6 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Matisse/Vermeer Data Fabric: Device 18h; Function 6 [1022:1446] 00:18.7 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Matisse/Vermeer Data Fabric: Device 18h; Function 7 [1022:1447] 01:00.0 Non-Volatile memory controller [0108]: Samsung Electronics Co Ltd NVMe SSD Controller PM9A1/PM9A3/980PRO [144d:a80a] Subsystem: Samsung Electronics Co Ltd NVMe SSD Controller PM9A1/PM9A3/980PRO [144d:a801] Kernel driver in use: nvme 02:00.0 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Matisse Switch Upstream [1022:57ad] Kernel driver in use: pcieport 03:03.0 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Matisse PCIe GPP Bridge [1022:57a3] Kernel driver in use: pcieport 03:04.0 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Matisse PCIe GPP Bridge [1022:57a3] Kernel driver in use: pcieport 03:05.0 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Matisse PCIe GPP Bridge [1022:57a3] Kernel driver in use: pcieport 03:08.0 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Matisse PCIe GPP Bridge [1022:57a4] Kernel driver in use: pcieport 03:09.0 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Matisse PCIe GPP Bridge [1022:57a4] Kernel driver in use: pcieport 03:0a.0 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Matisse PCIe GPP Bridge [1022:57a4] Kernel driver in use: pcieport 04:00.0 Network controller [0280]: Intel Corporation Wi-Fi 6 AX200 [8086:2723] (rev 1a) Subsystem: Intel Corporation Wi-Fi 6 AX200NGW [8086:0084] 05:00.0 Ethernet controller [0200]: Intel Corporation I211 Gigabit Network Connection [8086:1539] (rev 03) Subsystem: Gigabyte Technology Co., Ltd I211 Gigabit Network Connection [1458:e000] Kernel driver in use: igb 06:00.0 PCI bridge [0604]: ASMedia Technology Inc. ASM1083/1085 PCIe to PCI Bridge [1b21:1080] (rev 04) 07:04.0 Multimedia audio controller [0401]: C-Media Electronics Inc CMI8788 [Oxygen HD Audio] [13f6:8788] Subsystem: ASUSTeK Computer Inc. Virtuoso 100 (Xonar Essence STX) [1043:835c] Kernel driver in use: snd_virtuoso 08:00.0 Non-Essential Instrumentation [1300]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse Reserved SPP [1022:1485] Subsystem: Advanced Micro Devices, Inc. [AMD] Starship/Matisse Reserved SPP [1022:1485] 08:00.1 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD] Matisse USB 3.0 Host Controller [1022:149c] Subsystem: Advanced Micro Devices, Inc. [AMD] Matisse USB 3.0 Host Controller [1022:1486] Kernel driver in use: xhci_hcd 08:00.3 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD] Matisse USB 3.0 Host Controller [1022:149c] Subsystem: Advanced Micro Devices, Inc. [AMD] Matisse USB 3.0 Host Controller [1022:148c] Kernel driver in use: xhci_hcd 09:00.0 SATA controller [0106]: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode] [1022:7901] (rev 51) Subsystem: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode] [1022:7901] Kernel driver in use: ahci 0a:00.0 SATA controller [0106]: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode] [1022:7901] (rev 51) Subsystem: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode] [1022:7901] Kernel driver in use: ahci 0b:00.0 VGA compatible controller [0300]: NVIDIA Corporation GP106 [GeForce GTX 1060 3GB] [10de:1c02] (rev a1) Subsystem: Micro-Star International Co., Ltd. [MSI] GP106 [GeForce GTX 1060 3GB] [1462:3287] Kernel driver in use: nvidia Kernel modules: nvidia_drm, nvidia 0b:00.1 Audio device [0403]: NVIDIA Corporation GP106 High Definition Audio Controller [10de:10f1] (rev a1) Subsystem: Micro-Star International Co., Ltd. [MSI] GP106 High Definition Audio Controller [1462:3287] Kernel driver in use: snd_hda_intel 0c:00.0 Non-Essential Instrumentation [1300]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Function [1022:148a] Subsystem: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Function [1022:148a] 0d:00.0 Non-Essential Instrumentation [1300]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse Reserved SPP [1022:1485] Subsystem: Advanced Micro Devices, Inc. [AMD] Starship/Matisse Reserved SPP [1022:1485] 0d:00.1 Encryption controller [1080]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse Cryptographic Coprocessor PSPCPP [1022:1486] Subsystem: Advanced Micro Devices, Inc. [AMD] Starship/Matisse Cryptographic Coprocessor PSPCPP [1022:1486] Kernel driver in use: ccp 0d:00.3 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD] Matisse USB 3.0 Host Controller [1022:149c] Subsystem: Gigabyte Technology Co., Ltd Matisse USB 3.0 Host Controller [1458:5007] Kernel driver in use: xhci_hcd 0d:00.4 Audio device [0403]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse HD Audio Controller [1022:1487] Subsystem: Gigabyte Technology Co., Ltd Starship/Matisse HD Audio Controller [1458:a0c3] Kernel driver in use: snd_hda_intel # lsusb Bus 006 Device 002: ID 1058:25a3 Western Digital Technologies, Inc. Elements Desktop (WDBWLG) Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 003 Device 006: ID 046d:c08b Logitech, Inc. G502 SE HERO Gaming Mouse Bus 003 Device 005: ID 045e:00db Microsoft Corp. Natural Ergonomic Keyboard 4000 V1.0 Bus 003 Device 004: ID 05e3:0608 Genesys Logic, Inc. Hub Bus 003 Device 003: ID 8087:0029 Intel Corp. AX200 Bluetooth Bus 003 Device 002: ID 12d1:14dc Huawei Technologies Co., Ltd. E3372 LTE/UMTS/GSM HiLink Modem/Networkcard Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 001 Device 003: ID 05e3:0608 Genesys Logic, Inc. Hub Bus 001 Device 002: ID 048d:8297 Integrated Technology Express, Inc. IT8297 RGB LED Controller Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Portage 3.0.30 (python 3.9.9-final-0, default/linux/amd64/17.1/hardened, gcc-11.2.0, glibc-2.33-r7, 5.15.16-gentoo x86_64) ================================================================= System uname: Linux-5.15.16-gentoo-x86_64-AMD_Ryzen_9_5900X_12-Core_Processor-with-glibc2.33 KiB Mem: 32879384 total, 18886332 free KiB Swap: 16776896 total, 16776896 free Timestamp of repository gentoo: Sun, 06 Feb 2022 07:30:01 +0000 Head commit of repository gentoo: 35080be7a0a615c23fd7bb0a5f04763804277152 sh bash 5.1_p8 ld GNU ld (Gentoo 2.37_p1 p0) 2.37 ccache version 4.5.1 [enabled] app-misc/pax-utils: 1.3.3::gentoo app-shells/bash: 5.1_p8::gentoo dev-java/java-config: 2.3.1::gentoo dev-lang/perl: 5.34.0-r6::gentoo dev-lang/python: 3.9.9-r1::gentoo, 3.10.0_p1-r1::gentoo dev-lang/rust: 1.58.1::gentoo dev-util/ccache: 4.5.1::gentoo dev-util/cmake: 3.21.4::gentoo dev-util/meson: 0.60.3::gentoo sys-apps/baselayout: 2.7-r3::gentoo sys-apps/sandbox: 2.25::gentoo sys-devel/autoconf: 2.13-r1::gentoo, 2.71-r1::gentoo sys-devel/automake: 1.13.4-r2::gentoo, 1.16.4::gentoo sys-devel/binutils: 2.37_p1::gentoo sys-devel/binutils-config: 5.4::gentoo sys-devel/clang: 13.0.0::gentoo sys-devel/gcc: 11.2.0::gentoo sys-devel/gcc-config: 2.5-r1::gentoo sys-devel/libtool: 2.4.6-r6::gentoo sys-devel/lld: 13.0.0::gentoo sys-devel/llvm: 13.0.0::gentoo sys-devel/make: 4.3::gentoo sys-kernel/linux-headers: 5.15-r3::gentoo (virtual/os-headers) sys-libs/glibc: 2.33-r7::gentoo Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 sync-rsync-extra-opts: sync-rsync-verify-metamanifest: yes sync-rsync-verify-jobs: 1 sync-rsync-verify-max-age: 24 local location: /usr/local/portage masters: gentoo priority: 0 powerman location: /home/powerman/proj/gentoo/powerman-overlay masters: gentoo priority: 50 steam-overlay location: /var/lib/layman/steam-overlay sync-type: laymansync sync-uri: https://github.com/anyc/steam-overlay.git masters: gentoo priority: 50 ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /service /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/easy-rsa /usr/share/gnupg/qualified.txt /usr/share/i2p/scripts /usr/share/maven-bin-3.8/conf /var/log" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-march=native -O2 -pipe" DISTDIR="/usr/portage-distfiles" EMERGE_DEFAULT_OPTS="--with-bdeps=y --autounmask --autounmask-write --alert=y" ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR" FCFLAGS="-march=native -O2 -pipe" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live ccache clean-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict strict-keepdir unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-march=native -O2 -pipe" GENTOO_MIRRORS="http://mirror.leaseweb.com/gentoo/ http://mirrors.aliyun.com/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo" LANG="ru_RU.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="en ru ru_RU" MAKEOPTS="-j24" PKGDIR="/usr/portage-packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git" PORTAGE_TMPDIR="/var/tmp" SHELL="/bin/zsh" USE="X a52 aac acl acpi aes alac alsa amd64 avx avx2 bash-completion bluetooth branding bzip2 cairo caps cdda cddb cdr chm cli crypt cups dbus dcron dga djvu dri dts dvb dvd dvdr egl eglfs elogind emboss encode exif f16c fam ffmpeg flac fma3 fontconfig gallium gdbm gif gpg gtk hardened iconv icu id3tag idn ipv6 jpeg jpeg2k lcms libglvnd libnotify libtirpc mac mad matroska mmx mmxext mng mp3 mp4 mpeg mtp multilib musepack ncurses network-cron nls nptl nsplugin ogg opengl openmp opus pam pango pclmul pcre pdf perl pie png policykit popcnt ppds qt5 rdrand readline rtc sdl seccomp sha spell split-usr sse sse2 sse3 sse4_1 sse4_2 sse4a ssl ssp ssse3 startup-notification svg tcpd theora tiff truetype udev udisks unicode upower usb vaapi vdpau vim-syntax vorbis wavpack wxwidgets x264 x265 xattr xcb xml xscreensaver xtpax xv xvid xvmc zlib" ABI_X86="64" ADA_TARGET="gnat_2020" APACHE2_MODULES="log_config vhost_alias autoindex alias rewrite dir deflate filter mime negotiation auth_basic authn_file authz_host authz_user authz_groupfile cgi actions headers env setenvif authn_core authz_core unixd socache_shmcb access_compat" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sha sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64 pc" INPUT_DEVICES="evdev" KERNEL="linux" L10N="en ru" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" NGINX_MODULES_HTTP="access auth_basic autoindex browser charset empty_gif fastcgi geo gzip limit_conn limit_req map memcached proxy referer rewrite scgi split_clients ssi upstream_ip_hash userid uwsgi addition fancyindex" NGINX_MODULES_STREAM="ssl_preread map" OFFICE_IMPLEMENTATION="libreoffice" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" QEMU_SOFTMMU_TARGETS="x86_64 i386" QEMU_USER_TARGETS="x86_64 i386" RUBY_TARGETS="ruby26 ruby27" USERLAND="GNU" VIDEO_CARDS="nvidia nouveau" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LEX, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Vanilla kernel 5.15.16 works, 5.15.17 hangs.
if you're feeling particularly ambitious, you could try a bisect between 5.15.16 and 5.15.7 ... perhaps something like https://wiki.gentoo.org/wiki/Kernel_git-bisect or http://www.reactivated.net/weblog/archives/2006/01/using-git-bisect-to-find-buggy-kernel-patches/ with the actual commit that introduces the failure, it will be a lot easier for upstream (or us) to help. it looks like maybe 842 commits, which seems like a lot, but a bisect should be able to cover it in 10 steps.
(In reply to Greg Kubaryk from comment #9) > if you're feeling particularly ambitious, you could try a bisect between > 5.15.16 and 5.15.7 ... perhaps something like Just finished bisecting. First commit which result in hang is: e23f075d7798 - iwlwifi: fix leaks/bad data after failed firmware load
Reverting that commit on sys-kernel/gentoo-sources-5.15.19 fixes the hang.
Here is minimal patch which fixes the hang: --- a/drivers/net/wireless/intel/iwlwifi/iwl-drv.c 2022-02-06 13:34:45.707957370 +0200 +++ b/drivers/net/wireless/intel/iwlwifi/iwl-drv.c 2022-02-06 13:57:23.840000583 +0200 @@ -1616,7 +1616,7 @@ device_release_driver(drv->trans->dev); free: if (failure) - iwl_dealloc_ucode(drv); + iwl_drv_stop(drv); if (pieces) { for (i = 0; i < ARRAY_SIZE(pieces->img); i++) WARNING: I'm not a kernel developer (or even C developer), this change was just a random guess, I do not really know what I'm doing here. :)
(In reply to Alex Efros from comment #12) > Here is minimal patch which fixes the hang: Oops, it wasn't that easy. While it actually fixes the hang on boot, my fix result in hang on shutdown/reboot (probably because iwl_drv_stop() is called again on shutdown).
Created attachment 764472 [details, diff] /etc/portage/patches/sys-kernel/gentoo-sources-5.15.19/fix-iwlwifi-hang.patch Revert (most of) kernel commit e23f075d7798 to fix hang on boot.
(In reply to Alex Efros from comment #14) > Created attachment 764472 [details, diff] [details, diff] > /etc/portage/patches/sys-kernel/gentoo-sources-5.15.19/fix-iwlwifi-hang.patch > > Revert (most of) kernel commit e23f075d7798 to fix hang on boot. So this happened to me and I did the same bisect you did. I ended up taking CONFIG_IWLWIFI out of my .config (since the system in question did not have WiFi anyways). Do you need IWLWIFI support?
(In reply to Mike Pagano from comment #15) > I ended up taking CONFIG_IWLWIFI out of my .config (since the system in > question did not have WiFi anyways). > > Do you need IWLWIFI support? I'm not sure about my system - accordingly to `lspci -k` my motherboard has: 04:00.0 Network controller: Intel Corporation Wi-Fi 6 AX200 (rev 1a) which currently doesn't use any kernel driver and thus probably doesn't work. Related kernel setup is: <*> Intel Wireless WiFi Next Gen AGN - Wireless-N/Advanced-N/Ultimate-N < > Intel Wireless WiFi DVM Firmware support <*> Intel Wireless WiFi MVM Firmware support But I'm supporting Gentoo on several other servers and workstations which might use it, so it's better to have this issue patched than hope on disabled kernel options in config.
(In reply to Alex Efros from comment #16) > (In reply to Mike Pagano from comment #15) > > I ended up taking CONFIG_IWLWIFI out of my .config (since the system in > > question did not have WiFi anyways). > > > > Do you need IWLWIFI support? > > I'm not sure about my system - accordingly to `lspci -k` my motherboard has: > 04:00.0 Network controller: Intel Corporation Wi-Fi 6 AX200 (rev 1a) > which currently doesn't use any kernel driver and thus probably doesn't work. > Related kernel setup is: > <*> Intel Wireless WiFi Next Gen AGN - Wireless-N/Advanced-N/Ultimate-N > < > Intel Wireless WiFi DVM Firmware support > <*> Intel Wireless WiFi MVM Firmware support > > But I'm supporting Gentoo on several other servers and workstations which > might use it, so it's better to have this issue patched than hope on > disabled kernel options in config. Test it anyways.
Yes, but ultimately, Gentoo isn't going to be the one to patch the issue for real, so we need to collect data to have a good bug report for upstream. That's why mpagano is telling you to test it anyway, it's not about a lame workaround..
(In reply to Sam James from comment #18) > That's why mpagano is telling you to test it anyway, it's not about a lame > workaround.. I see, thanks for the explanation. Yes, disabling this kernel option also fixes this issue and result in normal boot (kernel without the patch). Here is .config diff (only one option was switched off manually): --- .config 2022-02-07 16:11:37.397018032 +0200 +++ .config 2022-02-07 16:03:15.354296783 +0200 @@ -1608,9 +1608,7 @@ # CONFIG_FW_LOADER_COMPRESS is not set # end of Firmware loader -CONFIG_WANT_DEV_COREDUMP=y CONFIG_ALLOW_DEV_COREDUMP=y -CONFIG_DEV_COREDUMP=y # CONFIG_DEBUG_DRIVER is not set # CONFIG_DEBUG_DEVRES is not set # CONFIG_DEBUG_TEST_DRIVER_REMOVE is not set @@ -2382,18 +2380,7 @@ # CONFIG_IPW2200 is not set # CONFIG_IWL4965 is not set # CONFIG_IWL3945 is not set -CONFIG_IWLWIFI=y -CONFIG_IWLWIFI_LEDS=y -# CONFIG_IWLDVM is not set -CONFIG_IWLMVM=y -# CONFIG_IWLWIFI_BCAST_FILTERING is not set - -# -# Debugging Options -# -# CONFIG_IWLWIFI_DEBUG is not set -# end of Debugging Options - +# CONFIG_IWLWIFI is not set CONFIG_WLAN_VENDOR_INTERSIL=y # CONFIG_HOSTAP is not set # CONFIG_HERMES is not set
(In reply to Alex Efros from comment #19) > (In reply to Sam James from comment #18) > > That's why mpagano is telling you to test it anyway, it's not about a lame > > workaround.. > > I see, thanks for the explanation. > > Yes, disabling this kernel option also fixes this issue and result in normal > boot (kernel without the patch). > > Here is .config diff (only one option was switched off manually): > > --- .config 2022-02-07 16:11:37.397018032 +0200 > +++ .config 2022-02-07 16:03:15.354296783 +0200 > @@ -1608,9 +1608,7 @@ > # CONFIG_FW_LOADER_COMPRESS is not set > # end of Firmware loader > > -CONFIG_WANT_DEV_COREDUMP=y > CONFIG_ALLOW_DEV_COREDUMP=y > -CONFIG_DEV_COREDUMP=y > # CONFIG_DEBUG_DRIVER is not set > # CONFIG_DEBUG_DEVRES is not set > # CONFIG_DEBUG_TEST_DRIVER_REMOVE is not set > @@ -2382,18 +2380,7 @@ > # CONFIG_IPW2200 is not set > # CONFIG_IWL4965 is not set > # CONFIG_IWL3945 is not set > -CONFIG_IWLWIFI=y > -CONFIG_IWLWIFI_LEDS=y > -# CONFIG_IWLDVM is not set > -CONFIG_IWLMVM=y > -# CONFIG_IWLWIFI_BCAST_FILTERING is not set > - > -# > -# Debugging Options > -# > -# CONFIG_IWLWIFI_DEBUG is not set > -# end of Debugging Options > - > +# CONFIG_IWLWIFI is not set > CONFIG_WLAN_VENDOR_INTERSIL=y > # CONFIG_HOSTAP is not set > # CONFIG_HERMES is not set Thank-you for testing
Created attachment 764620 [details, diff] iwlwifi: fix use-after-free This applies and fixes the issue for me with 5.16.7. I did not yet boot test this with 5.15.21, but it does apply and compile
(In reply to Mike Pagano from comment #21) > Created attachment 764620 [details, diff] [details, diff] > iwlwifi: fix use-after-free > > This applies and fixes the issue for me with 5.16.7. I did not yet boot > test this with 5.15.21, but it does apply and compile Works for me too, on gentoo-sources-5.15.19.
This will be in gentoo-sources-5.16.8 and 5.15.22
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1ab872a3d6553172ba7266c37a550fc62c53be86 commit 1ab872a3d6553172ba7266c37a550fc62c53be86 Author: Mike Pagano <mpagano@gentoo.org> AuthorDate: 2022-02-08 18:51:11 +0000 Commit: Mike Pagano <mpagano@gentoo.org> CommitDate: 2022-02-08 18:51:11 +0000 sys-kernel/gentoo-sources: Linux updates and genpatches Linux 5.16.8 Linux 5.15.22 Linux 5.10.99 Linux 5.4.178 Linux 4.19.228 Linux 4.14.265 Linux 4.9.300 iwlwifi: fix use-after-free Closes: https://bugs.gentoo.org/832795 Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Mike Pagano <mpagano@gentoo.org> sys-kernel/gentoo-sources/Manifest | 21 ++++++++++++++++ .../gentoo-sources/gentoo-sources-4.14.265.ebuild | 28 ++++++++++++++++++++++ .../gentoo-sources/gentoo-sources-4.19.228.ebuild | 28 ++++++++++++++++++++++ .../gentoo-sources/gentoo-sources-4.9.300.ebuild | 28 ++++++++++++++++++++++ .../gentoo-sources/gentoo-sources-5.10.99.ebuild | 28 ++++++++++++++++++++++ .../gentoo-sources/gentoo-sources-5.15.22.ebuild | 28 ++++++++++++++++++++++ .../gentoo-sources/gentoo-sources-5.16.8.ebuild | 28 ++++++++++++++++++++++ .../gentoo-sources/gentoo-sources-5.4.178.ebuild | 28 ++++++++++++++++++++++ 8 files changed, 217 insertions(+)