------------[ cut here ]------------
WARNING: CPU: 1 PID: 2962 at kernel/softirq.c:363 __local_bh_enable_ip+0x1b3/0x1f0
Modules linked in:
CPU: 1 PID: 2962 Comm: udevd Not tainted 5.15.153-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
RIP: 0010:__local_bh_enable_ip+0x1b3/0x1f0 kernel/softirq.c:363
Code: 04 25 28 00 00 00 48 3b 44 24 60 75 4a 48 8d 65 d8 5b 41 5c 41 5d 41 5e 41 5f 5d c3 0f 0b e9 d0 fe ff ff e8 3f 00 00 00 eb a2 <0f> 0b e9 02 ff ff ff 48 c7 c1 c4 c8 e3 8d 80 e1 07 80 c1 03 38 c1
RSP: 0018:ffffc90000dd05e0 EFLAGS: 00010046
RAX: 0000000000000000 RBX: 1ffff920001ba0c0 RCX: 0000000000000001
RDX: 0000000000000000 RSI: 0000000000000201 RDI: ffffffff884ede60
RBP: ffffc90000dd06a0 R08: dffffc0000000000 R09: ffffed100f9b9c4a
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: 0000000000000004 R14: ffffc90000dd0620 R15: 0000000000000201
FS: 00007f0889244c80(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffffffffec0000 CR3: 0000000022d6e000 CR4: 00000000003526e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
sock_hash_delete_elem+0x1a0/0x2f0 net/core/sock_map.c:945
bpf_prog_9dc0996bccb7470f+0x60/0x6bc
bpf_dispatcher_nop_func include/linux/bpf.h:785 [inline]
__bpf_prog_run include/linux/filter.h:628 [inline]
bpf_prog_run include/linux/filter.h:635 [inline]
__bpf_trace_run kernel/trace/bpf_trace.c:1880 [inline]
bpf_trace_run2+0x19e/0x340 kernel/trace/bpf_trace.c:1917
__bpf_trace_kfree+0x6e/0x90 include/trace/events/kmem.h:118
trace_kfree include/trace/events/kmem.h:118 [inline]
kfree+0x22f/0x270 mm/slub.c:4549
dummy_timer+0x838/0x3200 drivers/usb/gadget/udc/dummy_hcd.c:1981
call_timer_fn+0x16d/0x560 kernel/time/timer.c:1421
expire_timers kernel/time/timer.c:1466 [inline]
__run_timers+0x67c/0x890 kernel/time/timer.c:1737
run_timer_softirq+0x63/0xf0 kernel/time/timer.c:1750
__do_softirq+0x3b3/0x93a kernel/softirq.c:558
invoke_softirq kernel/softirq.c:432 [inline]
__irq_exit_rcu+0x155/0x240 kernel/softirq.c:637
irq_exit_rcu+0x5/0x20 kernel/softirq.c:649
sysvec_apic_timer_interrupt+0x91/0xb0 arch/x86/kernel/apic/apic.c:1096
asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:638
RIP: 0010:unwind_get_return_address+0x37/0x80 arch/x86/kernel/unwind_orc.c:323
Code: 00 00 fc ff df 48 89 f8 48 c1 e8 03 42 0f b6 04 30 84 c0 75 47 83 3b 00 74 3a 48 83 c3 48 49 89 df 49 c1 ef 03 43 80 3c 37 00 <74> 08 48 89 df e8 ff 91 91 00 48 8b 3b e8 47 18 1c 00 85 c0 74 14
RSP: 0018:ffffc90002de74c0 EFLAGS: 00000246
RAX: 0000000000000000 RBX: ffffc90002de7528 RCX: 0000000080000000
RDX: dffffc0000000000 RSI: ffffc90002de7570 RDI: ffffc90002de74e0
RBP: ffffc90002de7570 R08: ffffc90002de7570 R09: ffffc90002de7530
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff88807d8f3b80
R13: ffffffff816dd330 R14: dffffc0000000000 R15: 1ffff920005bcea5
arch_stack_walk+0xf3/0x140 arch/x86/kernel/stacktrace.c:26
stack_trace_save+0x113/0x1c0 kernel/stacktrace.c:122
kasan_save_stack mm/kasan/common.c:38 [inline]
kasan_set_track mm/kasan/common.c:46 [inline]
set_alloc_info mm/kasan/common.c:434 [inline]
____kasan_kmalloc+0xba/0xf0 mm/kasan/common.c:513
kasan_kmalloc include/linux/kasan.h:264 [inline]
__kmalloc+0x168/0x300 mm/slub.c:4407
kmalloc include/linux/slab.h:596 [inline]
kzalloc include/linux/slab.h:721 [inline]
tomoyo_encode2 security/tomoyo/realpath.c:45 [inline]
tomoyo_encode+0x26b/0x530 security/tomoyo/realpath.c:80
tomoyo_realpath_from_path+0x5a2/0x5e0 security/tomoyo/realpath.c:288
tomoyo_get_realpath security/tomoyo/file.c:151 [inline]
tomoyo_path_perm+0x273/0x6b0 security/tomoyo/file.c:822
security_inode_getattr+0xcf/0x120 security/security.c:1348
vfs_getattr+0x26/0x360 fs/stat.c:157
vfs_statx+0x18f/0x3b0 fs/stat.c:225
vfs_fstatat fs/stat.c:243 [inline]
__do_sys_newfstatat fs/stat.c:411 [inline]
__se_sys_newfstatat fs/stat.c:405 [inline]
__x64_sys_newfstatat+0x12c/0x1b0 fs/stat.c:405
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7f088936f5f4
Code: 64 c7 00 09 00 00 00 83 c8 ff c3 48 89 f2 b9 00 01 00 00 48 89 fe bf 9c ff ff ff e9 00 00 00 00 41 89 ca b8 06 01 00 00 0f 05 <45> 31 c0 3d 00 f0 ff ff 76 10 48 8b 15 03 a8 0d 00 f7 d8 41 83 c8
RSP: 002b:00007ffd3e247768 EFLAGS: 00000206 ORIG_RAX: 0000000000000106
RAX: ffffffffffffffda RBX: 00007f0889447460 RCX: 00007f088936f5f4
RDX: 00007ffd3e247770 RSI: 00007f088940c130 RDI: 000000000000000c
RBP: 0000563f65ca5fd0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000001000 R11: 0000000000000206 R12: 0000000000000000
R13: 0000000000003fff R14: 00007ffd3e247d08 R15: 000000000000000a
----------------
Code disassembly (best guess), 4 bytes skipped:
0: df 48 89 fisttps -0x77(%rax)
3: f8 clc
4: 48 c1 e8 03 shr $0x3,%rax
8: 42 0f b6 04 30 movzbl (%rax,%r14,1),%eax
d: 84 c0 test %al,%al
f: 75 47 jne 0x58
11: 83 3b 00 cmpl $0x0,(%rbx)
14: 74 3a je 0x50
16: 48 83 c3 48 add $0x48,%rbx
1a: 49 89 df mov %rbx,%r15
1d: 49 c1 ef 03 shr $0x3,%r15
21: 43 80 3c 37 00 cmpb $0x0,(%r15,%r14,1)
* 26: 74 08 je 0x30 <-- trapping instruction
28: 48 89 df mov %rbx,%rdi
2b: e8 ff 91 91 00 call 0x91922f
30: 48 8b 3b mov (%rbx),%rdi
33: e8 47 18 1c 00 call 0x1c187f
38: 85 c0 test %eax,%eax
3a: 74 14 je 0x50