BUG: kernel NULL pointer dereference, address: 0000000000000649
#PF: supervisor write access in kernel mode
#PF: error_code(0x0002) - not-present page
PGD 800000006d79a067 P4D 800000006d79a067 PUD 0
Oops: Oops: 0002 [#1] SMP KASAN PTI
CPU: 1 UID: 0 PID: 13473 Comm: syz.2.1949 Not tainted 6.16.0-syzkaller-06574-gd9104cec3e8f #0 PREEMPT(full)
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025
RIP: 0010:llc_ui_setsockopt+0x4e1/0x5f0 net/llc/af_llc.c:-1
Code: aa f8 eb 4b e8 60 7c 47 f8 4c 6b f3 64 49 8d 9f a0 06 00 00 48 89 d8 48 c1 e8 03 42 80 3c 28 00 74 08 48 89 df e8 1f a0 aa f8 <4c> 89 33 eb 23 e8 35 7c 47 f8 4d 8d b7 0d 07 00 00 4c 89 f0 48 c1
RSP: 0018:ffffc90000a08b98 EFLAGS: 00010246
RAX: 00000000000000c9 RBX: 0000000000000649 RCX: ffff88805d6e0000
RDX: 0000000000000100 RSI: ffffffff8be309e0 RDI: ffff888033a96010
RBP: ffffc90000a08c90 R08: ffffffff8fa07af7 R09: 1ffffffff1f40f5e
R10: dffffc0000000000 R11: ffffffff89783370 R12: 1ffff92000141178
R13: ffff888033a96010 R14: 0000000000000001 R15: 0000000000000001
FS: 00007f09144d46c0(0000) GS:ffff888125d80000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000649 CR3: 0000000026eca000 CR4: 00000000003526f0
Call Trace:
expire_timers kernel/time/timer.c:1798 [inline]
__run_timers kernel/time/timer.c:2372 [inline]
__run_timer_base+0x61a/0x860 kernel/time/timer.c:2384
run_timer_base kernel/time/timer.c:2393 [inline]
run_timer_softirq+0xb7/0x180 kernel/time/timer.c:2403
handle_softirqs+0x283/0x870 kernel/softirq.c:579
__do_softirq kernel/softirq.c:613 [inline]
invoke_softirq kernel/softirq.c:453 [inline]
__irq_exit_rcu+0xca/0x1f0 kernel/softirq.c:680
irq_exit_rcu+0x9/0x30 kernel/softirq.c:696
instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1050 [inline]
sysvec_apic_timer_interrupt+0xa6/0xc0 arch/x86/kernel/apic/apic.c:1050
asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702
RIP: 0010:lock_acquire+0x175/0x360 kernel/locking/lockdep.c:5872
Code: 00 00 00 00 9c 8f 44 24 30 f7 44 24 30 00 02 00 00 0f 85 cd 00 00 00 f7 44 24 08 00 02 00 00 74 01 fb 65 48 8b 05 cb 8e fc 10 <48> 3b 44 24 58 0f 85 f2 00 00 00 48 83 c4 60 5b 41 5c 41 5d 41 5e
RSP: 0018:ffffc9000ade6e98 EFLAGS: 00000206
RAX: cb45c3cd5986c700 RBX: 0000000000000000 RCX: cb45c3cd5986c700
RDX: 0000000000000000 RSI: ffffffff8db65e8b RDI: ffffffff8be30a00
RBP: ffffffff8172cd05 R08: 0000000000000000 R09: ffffffff8172cd05
R10: ffffc9000ade7058 R11: ffffffff81ac3450 R12: 0000000000000002
R13: ffffffff8e13c4e0 R14: 0000000000000000 R15: 0000000000000246
rcu_lock_acquire include/linux/rcupdate.h:331 [inline]
rcu_read_lock include/linux/rcupdate.h:841 [inline]
class_rcu_constructor include/linux/rcupdate.h:1155 [inline]
unwind_next_frame+0xc2/0x2390 arch/x86/kernel/unwind_orc.c:479
arch_stack_walk+0x11c/0x150 arch/x86/kernel/stacktrace.c:25
stack_trace_save+0x9c/0xe0 kernel/stacktrace.c:122
kasan_save_stack mm/kasan/common.c:47 [inline]
kasan_save_track+0x3e/0x80 mm/kasan/common.c:68
unpoison_slab_object mm/kasan/common.c:319 [inline]
__kasan_slab_alloc+0x6c/0x80 mm/kasan/common.c:345
kasan_slab_alloc include/linux/kasan.h:250 [inline]
slab_post_alloc_hook mm/slub.c:4148 [inline]
slab_alloc_node mm/slub.c:4197 [inline]
kmem_cache_alloc_noprof+0x1c1/0x3c0 mm/slub.c:4204
__kernfs_new_node+0xd7/0x7e0 fs/kernfs/dir.c:637
kernfs_new_node+0x102/0x210 fs/kernfs/dir.c:713
__kernfs_create_file+0x4b/0x2e0 fs/kernfs/file.c:1039
sysfs_add_file_mode_ns+0x238/0x300 fs/sysfs/file.c:319
create_files fs/sysfs/group.c:76 [inline]
internal_create_group+0x66d/0x1110 fs/sysfs/group.c:183
internal_create_groups fs/sysfs/group.c:223 [inline]
sysfs_create_groups+0x59/0x120 fs/sysfs/group.c:249
setup_port drivers/infiniband/core/sysfs.c:1247 [inline]
ib_setup_port_attrs+0xd96/0x2070 drivers/infiniband/core/sysfs.c:1433
add_one_compat_dev+0x3d6/0x5c0 drivers/infiniband/core/device.c:968
rdma_dev_init_net+0x1dd/0x270 drivers/infiniband/core/device.c:1184
ops_init+0x35c/0x5c0 net/core/net_namespace.c:136
setup_net+0x10c/0x320 net/core/net_namespace.c:438
copy_net_ns+0x31b/0x4d0 net/core/net_namespace.c:570
create_new_namespaces+0x3f3/0x720 kernel/nsproxy.c:110
unshare_nsproxy_namespaces+0x11c/0x170 kernel/nsproxy.c:218
ksys_unshare+0x4c8/0x8c0 kernel/fork.c:3124
__do_sys_unshare kernel/fork.c:3195 [inline]
__se_sys_unshare kernel/fork.c:3193 [inline]
__x64_sys_unshare+0x38/0x50 kernel/fork.c:3193
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f091358eb69
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f09144d4038 EFLAGS: 00000246 ORIG_RAX: 0000000000000110
RAX: ffffffffffffffda RBX: 00007f09137b5fa0 RCX: 00007f091358eb69
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000062040200
RBP: 00007f0913611df1 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f09137b5fa0 R15: 00007fff1c18e8c8
Modules linked in:
CR2: 0000000000000649
---[ end trace 0000000000000000 ]---
RIP: 0010:llc_ui_setsockopt+0x4e1/0x5f0 net/llc/af_llc.c:-1
Code: aa f8 eb 4b e8 60 7c 47 f8 4c 6b f3 64 49 8d 9f a0 06 00 00 48 89 d8 48 c1 e8 03 42 80 3c 28 00 74 08 48 89 df e8 1f a0 aa f8 <4c> 89 33 eb 23 e8 35 7c 47 f8 4d 8d b7 0d 07 00 00 4c 89 f0 48 c1
RSP: 0018:ffffc90000a08b98 EFLAGS: 00010246
RAX: 00000000000000c9 RBX: 0000000000000649 RCX: ffff88805d6e0000
RDX: 0000000000000100 RSI: ffffffff8be309e0 RDI: ffff888033a96010
RBP: ffffc90000a08c90 R08: ffffffff8fa07af7 R09: 1ffffffff1f40f5e
R10: dffffc0000000000 R11: ffffffff89783370 R12: 1ffff92000141178
R13: ffff888033a96010 R14: 0000000000000001 R15: 0000000000000001
FS: 00007f09144d46c0(0000) GS:ffff888125d80000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000649 CR3: 0000000026eca000 CR4: 00000000003526f0
----------------
Code disassembly (best guess):
0: aa stos %al,%es:(%rdi)
1: f8 clc
2: eb 4b jmp 0x4f
4: e8 60 7c 47 f8 call 0xf8477c69
9: 4c 6b f3 64 imul $0x64,%rbx,%r14
d: 49 8d 9f a0 06 00 00 lea 0x6a0(%r15),%rbx
14: 48 89 d8 mov %rbx,%rax
17: 48 c1 e8 03 shr $0x3,%rax
1b: 42 80 3c 28 00 cmpb $0x0,(%rax,%r13,1)
20: 74 08 je 0x2a
22: 48 89 df mov %rbx,%rdi
25: e8 1f a0 aa f8 call 0xf8aaa049
* 2a: 4c 89 33 mov %r14,(%rbx) <-- trapping instruction
2d: eb 23 jmp 0x52
2f: e8 35 7c 47 f8 call 0xf8477c69
34: 4d 8d b7 0d 07 00 00 lea 0x70d(%r15),%r14
3b: 4c 89 f0 mov %r14,%rax
3e: 48 rex.W
3f: c1 .byte 0xc1