kernel BUG in lookup_or_create_module_kobject

Status: premoderation: reported C repro on 2026/08/07 11:15
Reported-by: syzbot+048de8eef9816ce6a2f5@syzkaller.appspotmail.com
First crash: 53d, last: 15d

Sample crash report:
RAX: ffffffffffffffda RBX: 0000200000000000 RCX: 00007f54f7bf1529
RDX: 000000000000000c RSI: 00002000000004c0 RDI: 0000000000000003
RBP: 0000000000000002 R08: 0000000000000000 R09: 00007f54f7003531
R10: 0000000000000000 R11: 0000000000000246 R12: 00002000000004c0
R13: 0000000000000002 R14: 0000200000000008 R15: 0000000000000002
 </TASK>
------------[ cut here ]------------
kernel BUG at kernel/params.c:763!
Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN PTI
CPU: 0 UID: 0 PID: 313 Comm: syz-executor144 Not tainted syzkaller #0 92ad247b86212872588e4244b63285ac9b5a817e
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026
RIP: 0010:lookup_or_create_module_kobject+0x1ff/0x210 kernel/params.c:763
Code: 83 00 49 89 c6 43 80 7c 25 00 00 74 08 4c 89 ff e8 c6 20 88 00 48 8b 45 d0 49 89 07 4d 85 f6 0f 85 95 fe ff ff e8 e1 3c 2f 00 <0f> 0b 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 b8 2b 25 1a df
RSP: 0018:ffffc900011efa98 EFLAGS: 00010293
RAX: ffffffff81583d2f RBX: ffffffff866d4ec0 RCX: ffff888106f34c00
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff888100041a00
RBP: ffffc900011efac8 R08: 0000000000000100 R09: 1ffffffff0ed6c42
R10: dffffc0000000000 R11: fffffbfff0ed6c43 R12: dffffc0000000000
R13: dffffc0000000000 R14: 0000000000000000 R15: ffff888100091428
FS:  000055555a1253c0(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000560cff103490 CR3: 000000011fe76000 CR4: 00000000003526b0
Call Trace:
 <TASK>
 module_add_driver+0x80/0x340 drivers/base/module.c:46
 bus_add_driver+0x3ea/0x730 drivers/base/bus.c:679
 driver_register+0x2b7/0x3c0 drivers/base/driver.c:246
 usb_gadget_register_driver_owner+0xfc/0x270 drivers/usb/gadget/udc/core.c:1731
 gadget_dev_desc_UDC_store+0x224/0x350 drivers/usb/gadget/configfs.c:305
 flush_write_buffer fs/configfs/file.c:207 [inline]
 configfs_write_iter+0x32f/0x490 fs/configfs/file.c:229
 new_sync_write fs/read_write.c:591 [inline]
 vfs_write+0x762/0xfd0 fs/read_write.c:684
 ksys_write+0x145/0x260 fs/read_write.c:737
 __do_sys_write fs/read_write.c:749 [inline]
 __se_sys_write fs/read_write.c:746 [inline]
 __x64_sys_write+0x7f/0x90 fs/read_write.c:746
 x64_sys_call+0x271c/0x2ee0 arch/x86/include/generated/asm/syscalls_64.h:2
 do_syscall_x64 arch/x86/entry/common.c:47 [inline]
 do_syscall_64+0x57/0xf0 arch/x86/entry/common.c:78
 entry_SYSCALL_64_after_hwframe+0x76/0x7e
RIP: 0033:0x7f54f7bf1529
Code: c0 79 93 eb d5 48 8d 7c 1d 00 eb 99 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 d8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffcd35e33a8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 0000200000000000 RCX: 00007f54f7bf1529
RDX: 000000000000000c RSI: 00002000000004c0 RDI: 0000000000000003
RBP: 0000000000000002 R08: 0000000000000000 R09: 00007f54f7003531
R10: 0000000000000000 R11: 0000000000000246 R12: 00002000000004c0
R13: 0000000000000002 R14: 0000200000000008 R15: 0000000000000002
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:lookup_or_create_module_kobject+0x1ff/0x210 kernel/params.c:763
Code: 83 00 49 89 c6 43 80 7c 25 00 00 74 08 4c 89 ff e8 c6 20 88 00 48 8b 45 d0 49 89 07 4d 85 f6 0f 85 95 fe ff ff e8 e1 3c 2f 00 <0f> 0b 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 b8 2b 25 1a df
RSP: 0018:ffffc900011efa98 EFLAGS: 00010293
RAX: ffffffff81583d2f RBX: ffffffff866d4ec0 RCX: ffff888106f34c00
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff888100041a00
RBP: ffffc900011efac8 R08: 0000000000000100 R09: 1ffffffff0ed6c42
R10: dffffc0000000000 R11: fffffbfff0ed6c43 R12: dffffc0000000000
R13: dffffc0000000000 R14: 0000000000000000 R15: ffff888100091428
FS:  000055555a1253c0(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000560cff103490 CR3: 000000011fe76000 CR4: 00000000003526b0

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/09/14 18:51 android16-6.12 50bf35d628ad 81a27d1a .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust kernel BUG in lookup_or_create_module_kobject
2026/09/14 18:15 android16-6.12 50bf35d628ad 81a27d1a .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust kernel BUG in lookup_or_create_module_kobject
2026/08/07 11:14 android16-6.12 282da3f968e5 e4ef95d6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust kernel BUG in lookup_or_create_module_kobject
* Struck through repros no longer work on HEAD.