------------[ cut here ]------------
WARNING: CPU: 0 PID: 4168 at net/ipv4/af_inet.c:157 inet_sock_destruct+0x64d/0x740
Modules linked in:
CPU: 0 PID: 4168 Comm: syz-executor Not tainted 5.15.172-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
RIP: 0010:inet_sock_destruct+0x64d/0x740 net/ipv4/af_inet.c:157
Code: 01 e8 47 b5 99 f8 0f 0b e9 61 fe ff ff e8 3b b5 99 f8 0f 0b e9 96 fe ff ff e8 2f b5 99 f8 0f 0b e9 be fe ff ff e8 23 b5 99 f8 <0f> 0b e9 e6 fe ff ff 89 d9 80 e1 07 fe c1 38 c1 0f 8c 5b fd ff ff
RSP: 0018:ffffc90000007b68 EFLAGS: 00010246
RAX: ffffffff88e6be7d RBX: 0000000000000100 RCX: ffff888027929dc0
RDX: 0000000000000100 RSI: 0000000000000100 RDI: 0000000000000000
RBP: 0000000000000007 R08: ffffffff88e6bd5d R09: ffffed100f3cd9e0
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff888079e6cc80
R13: ffff888079e6d188 R14: dffffc0000000000 R15: ffff888079e6cc92
FS: 0000555581606500(0000) GS:ffff8880b9000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f01fbeb72d8 CR3: 000000006504e000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
__sk_destruct+0x54/0x840 net/core/sock.c:1955
rcu_do_batch kernel/rcu/tree.c:2523 [inline]
rcu_core+0xa15/0x1650 kernel/rcu/tree.c:2763
handle_softirqs+0x3a7/0x930 kernel/softirq.c:558
__do_softirq kernel/softirq.c:592 [inline]
invoke_softirq kernel/softirq.c:432 [inline]
__irq_exit_rcu+0x157/0x240 kernel/softirq.c:641
irq_exit_rcu+0x5/0x20 kernel/softirq.c:653
instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1108 [inline]
sysvec_apic_timer_interrupt+0xa0/0xc0 arch/x86/kernel/apic/apic.c:1108
asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:676
RIP: 0010:__raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:161 [inline]
RIP: 0010:_raw_spin_unlock_irqrestore+0xd4/0x130 kernel/locking/spinlock.c:194
Code: 9c 8f 44 24 20 42 80 3c 23 00 74 08 4c 89 f7 e8 22 44 8c f7 f6 44 24 21 02 75 4e 41 f7 c7 00 02 00 00 74 01 fb bf 01 00 00 00 77 75 19 f7 65 8b 05 98 68 c4 75 85 c0 74 3f 48 c7 04 24 0e 36
RSP: 0018:ffffc90002e87600 EFLAGS: 00000206
RAX: 9d4b9ce40eb02d00 RBX: 1ffff920005d0ec4 RCX: ffffffff9686af03
RDX: dffffc0000000000 RSI: ffffffff8a8b2a80 RDI: 0000000000000001
RBP: ffffc90002e876a0 R08: ffffffff8186f220 R09: fffffbfff2d4ac68
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: 1ffff920005d0ec0 R14: ffffc90002e87620 R15: 0000000000000246
__debug_check_no_obj_freed lib/debugobjects.c:982 [inline]
debug_check_no_obj_freed+0x455/0x4e0 lib/debugobjects.c:1003
free_pages_prepare mm/page_alloc.c:1345 [inline]
free_pcp_prepare mm/page_alloc.c:1391 [inline]
free_unref_page_prepare+0x281/0xcf0 mm/page_alloc.c:3317
free_unref_page+0x95/0x2d0 mm/page_alloc.c:3396
free_slab mm/slub.c:2015 [inline]
discard_slab mm/slub.c:2021 [inline]
__unfreeze_partials+0x1b7/0x210 mm/slub.c:2507
put_cpu_partial+0x132/0x1a0 mm/slub.c:2587
do_slab_free mm/slub.c:3487 [inline]
___cache_free+0xe3/0x100 mm/slub.c:3506
qlist_free_all+0x36/0x90 mm/kasan/quarantine.c:176
kasan_quarantine_reduce+0x162/0x180 mm/kasan/quarantine.c:283
__kasan_slab_alloc+0x2f/0xc0 mm/kasan/common.c:444
kasan_slab_alloc include/linux/kasan.h:254 [inline]
slab_post_alloc_hook+0x53/0x380 mm/slab.h:519
slab_alloc_node mm/slub.c:3220 [inline]
slab_alloc mm/slub.c:3228 [inline]
kmem_cache_alloc+0xf3/0x280 mm/slub.c:3233
sk_prot_alloc+0x58/0x200 net/core/sock.c:1857
sk_alloc+0x35/0x310 net/core/sock.c:1916
inet_create+0x5a7/0xd40 net/ipv4/af_inet.c:322
__sock_create+0x460/0x8f0 net/socket.c:1486
sock_create net/socket.c:1542 [inline]
__sys_socket+0x132/0x370 net/socket.c:1584
__do_sys_socket net/socket.c:1593 [inline]
__se_sys_socket net/socket.c:1591 [inline]
__x64_sys_socket+0x76/0x80 net/socket.c:1591
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7f01fbd31637
Code: f0 ff ff 77 06 c3 0f 1f 44 00 00 48 c7 c2 a8 ff ff ff f7 d8 64 89 02 b8 ff ff ff ff c3 66 0f 1f 44 00 00 b8 29 00 00 00 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:00007ffc709a7408 EFLAGS: 00000202 ORIG_RAX: 0000000000000029
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007f01fbd31637
RDX: 0000000000000006 RSI: 0000000000000001 RDI: 0000000000000002
RBP: 00007ffc709a7aec R08: 00007ffc709a73fc R09: 00007ffc709a7807
R10: 00007ffc709a7480 R11: 0000000000000202 R12: 0000000000000032
R13: 000000000002210c R14: 00000000000220ee R15: 00007ffc709a7b40
----------------
Code disassembly (best guess):
0: 9c pushf
1: 8f 44 24 20 pop 0x20(%rsp)
5: 42 80 3c 23 00 cmpb $0x0,(%rbx,%r12,1)
a: 74 08 je 0x14
c: 4c 89 f7 mov %r14,%rdi
f: e8 22 44 8c f7 call 0xf78c4436
14: f6 44 24 21 02 testb $0x2,0x21(%rsp)
19: 75 4e jne 0x69
1b: 41 f7 c7 00 02 00 00 test $0x200,%r15d
22: 74 01 je 0x25
24: fb sti
25: bf 01 00 00 00 mov $0x1,%edi
* 2a: e8 77 75 19 f7 call 0xf71975a6 <-- trapping instruction
2f: 65 8b 05 98 68 c4 75 mov %gs:0x75c46898(%rip),%eax # 0x75c468ce
36: 85 c0 test %eax,%eax
38: 74 3f je 0x79
3a: 48 rex.W
3b: c7 .byte 0xc7
3c: 04 24 add $0x24,%al
3e: 0e (bad)
3f: 36 ss