Re: [PATCH v1 1/4] driver core: allow certain drivers prohibit override via sysfs

From: kernel test robot

Date: Sat May 23 2026 - 10:15:58 EST




Hello,

kernel test robot noticed "Oops:general_protection_fault,probably_for_non-canonical_address#:#[##]SMP_KASAN_PTI" on:

commit: f93c013feebc74afe81ce1ffd045c1625b86c4ce ("[PATCH v1 1/4] driver core: allow certain drivers prohibit override via sysfs")
url: https://github.com/intel-lab-lkp/linux/commits/Andy-Shevchenko/driver-core-allow-certain-drivers-prohibit-override-via-sysfs/20260513-124947
patch link: https://lore.kernel.org/all/20260508095224.1275645-2-andriy.shevchenko@xxxxxxxxxxxxxxx/
patch subject: [PATCH v1 1/4] driver core: allow certain drivers prohibit override via sysfs

in testcase: boot

config: x86_64-rhel-9.4-kunit
compiler: gcc-14
test machine: qemu-system-x86_64 -enable-kvm -cpu SandyBridge -smp 2 -m 32G

(please refer to attached dmesg/kmsg for entire log/backtrace)


If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <oliver.sang@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-lkp/202605231602.b6990b2a-lkp@xxxxxxxxx



[ 98.674811][ T2697] ppdev: user-space parallel port driver
[ 98.682051][ T2693] RAPL PMU: API unit is 2^-32 Joules, 0 fixed counters, 10737418240 ms ovfl timer
[ 98.749342][ T2701] Error: Driver 'pcspkr' is already registered, aborting...
[ 98.754059][ T2699] sr 1:0:0:0: [sr0] scsi3-mmc drive: 4x/4x cd/rw xa/form2 tray
[ 98.754984][ T2699] cdrom: Uniform CD-ROM driver Revision: 3.20
[ 98.756646][ T2690] Oops: general protection fault, probably for non-canonical address 0xdffffc0000000004: 0000 [#1] SMP KASAN PTI
[ 98.757883][ T2690] KASAN: null-ptr-deref in range [0x0000000000000020-0x0000000000000027]
[ 98.758816][ T2690] CPU: 1 UID: 0 PID: 2690 Comm: udevd Not tainted 7.1.0-rc1+ #1 PREEMPT(lazy)
[ 98.759772][ T2690] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[ 98.760884][ T2690] RIP: 0010:bus_remove_device (kbuild/src/drivers/base/bus.c:656 (discriminator 1))
[ 98.761606][ T2690] Code: 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 dc 01 00 00 48 ba 00 00 00 00 00 fc ff df 48 8b 43 68 48 8d 78 21 48 89 f9 48 c1 e9 03 <0f> b6 14 11 48 89 f9 83 e1 07 38 ca 7f 08 84 d2 0f 85 84 01 00 00
All code
========
0: 48 89 fa mov %rdi,%rdx
3: 48 c1 ea 03 shr $0x3,%rdx
7: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1)
b: 0f 85 dc 01 00 00 jne 0x1ed
11: 48 ba 00 00 00 00 00 movabs $0xdffffc0000000000,%rdx
18: fc ff df
1b: 48 8b 43 68 mov 0x68(%rbx),%rax
1f: 48 8d 78 21 lea 0x21(%rax),%rdi
23: 48 89 f9 mov %rdi,%rcx
26: 48 c1 e9 03 shr $0x3,%rcx
2a:* 0f b6 14 11 movzbl (%rcx,%rdx,1),%edx <-- trapping instruction
2e: 48 89 f9 mov %rdi,%rcx
31: 83 e1 07 and $0x7,%ecx
34: 38 ca cmp %cl,%dl
36: 7f 08 jg 0x40
38: 84 d2 test %dl,%dl
3a: 0f 85 84 01 00 00 jne 0x1c4

Code starting with the faulting instruction
===========================================
0: 0f b6 14 11 movzbl (%rcx,%rdx,1),%edx
4: 48 89 f9 mov %rdi,%rcx
7: 83 e1 07 and $0x7,%ecx
a: 38 ca cmp %cl,%dl
c: 7f 08 jg 0x16
e: 84 d2 test %dl,%dl
10: 0f 85 84 01 00 00 jne 0x19a
[ 98.763619][ T2690] RSP: 0018:ffffc9000075efd0 EFLAGS: 00010202
[ 98.764294][ T2690] RAX: 0000000000000000 RBX: ffff8881d0677010 RCX: 0000000000000004
[ 98.765179][ T2690] RDX: dffffc0000000000 RSI: 0000000000000008 RDI: 0000000000000021
[ 98.766066][ T2690] RBP: ffff888100348c00 R08: 0000000000000001 R09: ffffed1020060f55
[ 98.766979][ T2690] R10: ffff888100307aaf R11: fffffffface0012b R12: ffffffffb0964be0
[ 98.767842][ T2690] R13: 1ffff920000ebdfc R14: ffff888100348c58 R15: ffff8881d0677060
[ 98.768702][ T2690] FS: 00007fb9b77bc300(0000) GS:ffff88876b59b000(0000) knlGS:0000000000000000
[ 98.769674][ T2690] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 98.770377][ T2690] CR2: 00007fb9b77898e0 CR3: 000000023c500000 CR4: 00000000000406f0
[ 98.771294][ T2690] Call Trace:
[ 98.771694][ T2690] <TASK>
[ 98.772063][ T2690] ? __pfx_bus_remove_device (kbuild/src/drivers/base/bus.c:623)
[ 98.772686][ T2690] ? __pfx_device_remove_attrs (kbuild/src/drivers/base/core.c:3073)
[ 98.773297][ T2690] device_del (kbuild/src/drivers/base/core.c:3891)
[ 98.773787][ T2690] ? __pfx_device_del (kbuild/src/include/linux/kobject.h:89)


The kernel config and materials to reproduce are available at:
https://download.01.org/0day-ci/archive/20260523/202605231602.b6990b2a-lkp@xxxxxxxxx



--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki