Bug 2272596

Summary: Kernel null pointer dereference in 6.7.11 and 6.8.2
Product: [Fedora] Fedora Reporter: Bojan Smojver <bojan>
Component: kernelAssignee: Kernel Maintainer List <kernel-maint>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 39CC: acaringi, adscvr, agurenko, airlied, alciregi, bskeggs, hdegoede, hpa, jarod, jkastnin, josef, kernel-maint, linville, masami256, mchehab, mihai, mteixeira, pdwyer, pep, piotr, ptalbert, sreber, steved
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
URL: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=1c3366abdbe884
Whiteboard:
Fixed In Version: kernel-6.8.4-300.fc40 kernel-6.8.4-200.fc39 kernel-6.8.4-100.fc38 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-04-05 23:11:19 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
journalctl of the kernel
none
journalctl of the kernel 6.8.2
none
journalctl of boot with kernel 6.7.11-200
none
journal of boot with rawhide kernel 6.9.0-0 none

Description Bojan Smojver 2024-04-02 06:17:11 UTC
1. Please describe the problem:

Kernel OOPS on boot and generally unstable operation after that.

2. What is the Version-Release number of the kernel:

kernel-6.7.11-200.fc39.x86_64

3. Did it work previously in Fedora? If so, what kernel version did the issue
   *first* appear?  Old kernels are available for download at
   https://koji.fedoraproject.org/koji/packageinfo?packageID=8 :

kernel-6.7.10-200.fc39.x86_64 and before appear to work fine.

4. Can you reproduce this issue? If so, please provide the steps to reproduce
   the issue below:

Boot on T450s.

5. Does this problem occur with the latest Rawhide kernel? To install the
   Rawhide kernel, run ``sudo dnf install fedora-repos-rawhide`` followed by
   ``sudo dnf update --enablerepo=rawhide kernel``:

Haven't tried yet.

6. Are you running any modules that not shipped with directly Fedora's kernel?:

No.

7. Please attach the kernel logs. You can get the complete kernel log
   for a boot with ``journalctl --no-hostname -k > dmesg.txt``. If the
   issue occurred on a previous boot, use the journalctl ``-b`` flag.

Attached.

Reproducible: Always

Comment 1 Bojan Smojver 2024-04-02 06:18:23 UTC
Created attachment 2024638 [details]
journalctl of the kernel

Comment 2 Bojan Smojver 2024-04-02 22:32:50 UTC
Just tried 6.9.0-0.rc2.20240402git026e680b0a08.24.fc41.x86_64 and I did not get an OOPS with it. Writing this on the same T450s, with this Rawhide kernel running.

Comment 3 Bojan Smojver 2024-04-02 22:47:41 UTC
I do get an OOPS with 6.8.2 build for F39. A bit different, but also bluetooth related, it seems. Kernel journal attached.

Comment 4 Bojan Smojver 2024-04-02 22:48:13 UTC
Created attachment 2024876 [details]
journalctl of the kernel 6.8.2

Comment 5 Bojan Smojver 2024-04-02 22:49:26 UTC
BTW, all kernels that experience an OOPS on boot also hang when the machine is rebooted. The laptop has to be physically turned off to reboot.

Comment 6 Bojan Smojver 2024-04-02 23:38:05 UTC
https://bbs.archlinux.org/viewtopic.php?id=294292

Comment 9 Piotr Orzechowski 2024-04-03 08:11:24 UTC
*** Bug 2272702 has been marked as a duplicate of this bug. ***

Comment 10 Gurenko Alex 2024-04-03 11:01:22 UTC
So this looks like what I've reported for F40: https://bugzilla.redhat.com/show_bug.cgi?id=2271784 and the upstream BZ: https://bugzilla.kernel.org/show_bug.cgi?id=218651

Comment 11 Joerg 2024-04-03 12:22:44 UTC
Created attachment 2024959 [details]
journalctl of boot with kernel 6.7.11-200

Hi,
I face very similar issues when booting kernel 6.7.11-200 on my Lenovo P1 Gen3:

- The laptop hangs at reboot
- USB-C Dock is not working anymore
  - I can still use an external monitor
  - But USB devices like webcam, keyboard and mouse connected to the dock in my monitor ar not working anymore

Booting older kernel version 6.7.9-200 everything works as expected again. I didn't have the chance to test the rawhide kernel yet.

Comment 12 Joerg 2024-04-03 12:47:02 UTC
Created attachment 2024972 [details]
journal of boot with rawhide kernel 6.9.0-0

Tested with rawhide kernel:
Linux version 6.9.0-0.rc2.23.fc41.x86_64 (mockbuild@2e511805a68343729af852d2a947bcbf) (gcc (GCC) 14.0.1 20240328 (Red Hat 14.0.1-0), GNU ld version 2.42.50.20240318) #1 SMP PREEMPT_DYNAMIC Mon Apr  1 17:39:54 UTC 2024

While USB-C Dock works as expected there is still an OOPS in kernel log and the system (Lenovo P1Gen3) hangs on reboot. I need to turn it physically off.

Comment 13 Fedora Update System 2024-04-04 02:13:31 UTC
FEDORA-2024-7dd4b3b9a4 (kernel-6.8.3-200.fc39 and kernel-headers-6.8.3-200.fc39) has been submitted as an update to Fedora 39.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-7dd4b3b9a4

Comment 14 Fedora Update System 2024-04-05 01:38:12 UTC
FEDORA-2024-41295cb23c has been pushed to the Fedora 38 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-41295cb23c`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-41295cb23c

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 15 Fedora Update System 2024-04-05 01:40:23 UTC
FEDORA-2024-6b7d840efe has been pushed to the Fedora 40 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-6b7d840efe`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-6b7d840efe

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 16 Fedora Update System 2024-04-05 02:03:24 UTC
FEDORA-2024-7dd4b3b9a4 has been pushed to the Fedora 39 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-7dd4b3b9a4`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-7dd4b3b9a4

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 17 Fedora Update System 2024-04-05 23:11:19 UTC
FEDORA-2024-6b7d840efe (kernel-6.8.4-300.fc40 and kernel-headers-6.8.3-300.fc40) has been pushed to the Fedora 40 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 18 Fedora Update System 2024-04-06 01:41:57 UTC
FEDORA-2024-7dd4b3b9a4 (kernel-6.8.4-200.fc39 and kernel-headers-6.8.3-200.fc39) has been pushed to the Fedora 39 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 19 Fedora Update System 2024-04-06 03:14:06 UTC
FEDORA-2024-41295cb23c (kernel-6.8.4-100.fc38 and kernel-headers-6.8.3-100.fc38) has been pushed to the Fedora 38 stable repository.
If problem still persists, please make note of it in this bug report.