------------[ cut here ]------------
WARNING: CPU: 1 PID: 12214 at net/ipv4/af_inet.c:154 inet_sock_destruct+0x6df/0x8a0 net/ipv4/af_inet.c:154
Modules linked in:
CPU: 1 PID: 12214 Comm: syz-executor.1 Not tainted 6.3.0-rc4-syzkaller-01177-g054fbf7ff814 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/30/2023
RIP: 0010:inet_sock_destruct+0x6df/0x8a0 net/ipv4/af_inet.c:154
Code: ff e8 c5 67 e9 f8 0f 0b e9 07 fe ff ff e8 b9 67 e9 f8 0f 0b e9 3f fe ff ff e8 ad 67 e9 f8 0f 0b e9 95 fd ff ff e8 a1 67 e9 f8 <0f> 0b e9 9f fe ff ff e8 c5 b0 3a f9 e9 7a fc ff ff 4c 89 e7 e8 f8
RSP: 0018:ffffc900001e0c48 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 00000000ffff9000 RCX: 0000000000000100
RDX: ffff888032a857c0 RSI: ffffffff889970af RDI: 0000000000000005
RBP: ffff888094e09880 R08: 0000000000000005 R09: 0000000000000000
R10: 00000000ffff9000 R11: 0000000000000001 R12: ffff888094e098a8
R13: ffff888094e09af4 R14: ffff888094e09900 R15: 0000000000000001
FS: 00005555556e9400(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f35e5fabf84 CR3: 0000000089b9d000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
__sk_destruct+0x4d/0x770 net/core/sock.c:2135
sk_destruct net/core/sock.c:2183 [inline]
__sk_free+0x175/0x460 net/core/sock.c:2194
sk_free+0x7c/0xa0 net/core/sock.c:2205
sock_put include/net/sock.h:1968 [inline]
tcp_write_timer+0x24b/0x2b0 net/ipv4/tcp_timer.c:644
call_timer_fn+0x1a0/0x580 kernel/time/timer.c:1700
expire_timers+0x29b/0x4b0 kernel/time/timer.c:1751
__run_timers kernel/time/timer.c:2022 [inline]
__run_timers kernel/time/timer.c:1995 [inline]
run_timer_softirq+0x326/0x910 kernel/time/timer.c:2035
__do_softirq+0x1d4/0x905 kernel/softirq.c:571
invoke_softirq kernel/softirq.c:445 [inline]
__irq_exit_rcu+0x114/0x190 kernel/softirq.c:650
irq_exit_rcu+0x9/0x20 kernel/softirq.c:662
sysvec_apic_timer_interrupt+0x97/0xc0 arch/x86/kernel/apic/apic.c:1107
asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:645
RIP: 0010:unwind_get_return_address arch/x86/kernel/unwind_orc.c:342 [inline]
RIP: 0010:unwind_get_return_address+0x4a/0xa0 arch/x86/kernel/unwind_orc.c:337
Code: 74 04 3c 03 7e 51 8b 03 85 c0 75 05 5b 31 c0 5d c3 48 8d 6b 48 48 b8 00 00 00 00 00 fc ff df 48 89 ea 48 c1 ea 03 80 3c 02 00 <75> 32 48 8b 7b 48 e8 db 99 1b 00 85 c0 74 d3 48 b8 00 00 00 00 00
RSP: 0018:ffffc90014fcf680 EFLAGS: 00000246
RAX: dffffc0000000000 RBX: ffffc90014fcf698 RCX: 0000000000000000
RDX: 1ffff920029f9edc RSI: ffffc90014fcfc28 RDI: ffffc90014fcf698
RBP: ffffc90014fcf6e0 R08: ffffffff8fa0a7f6 R09: ffffc90014fcf6cc
R10: 0000000000000000 R11: ffffc90014fcfc40 R12: ffffc90014fcf750
R13: 0000000000000000 R14: ffff888032a857c0 R15: ffffea00020e1200
arch_stack_walk+0x97/0xf0 arch/x86/kernel/stacktrace.c:26
stack_trace_save+0x90/0xc0 kernel/stacktrace.c:122
kasan_save_stack+0x22/0x40 mm/kasan/common.c:45
kasan_set_track+0x25/0x30 mm/kasan/common.c:52
kasan_save_free_info+0x2e/0x40 mm/kasan/generic.c:521
____kasan_slab_free mm/kasan/common.c:236 [inline]
____kasan_slab_free+0x160/0x1c0 mm/kasan/common.c:200
kasan_slab_free include/linux/kasan.h:162 [inline]
slab_free_hook mm/slub.c:1781 [inline]
slab_free_freelist_hook+0x8b/0x1c0 mm/slub.c:1807
slab_free mm/slub.c:3787 [inline]
kmem_cache_free_bulk.part.0+0x20c/0x680 mm/slub.c:3905
mt_free_bulk lib/maple_tree.c:169 [inline]
mas_destroy+0x3e0/0x650 lib/maple_tree.c:5771
mas_store_prealloc+0xf0/0x150 lib/maple_tree.c:5702
vma_iter_store mm/internal.h:1013 [inline]
mmap_region+0xb7b/0x2620 mm/mmap.c:2639
do_mmap+0x831/0xf60 mm/mmap.c:1364
vm_mmap_pgoff+0x1af/0x280 mm/util.c:542
ksys_mmap_pgoff+0x7d/0x5a0 mm/mmap.c:1410
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f35e5e8c1b2
Code: 00 00 00 00 00 0f 1f 00 41 f7 c1 ff 0f 00 00 75 27 55 48 89 fd 53 89 cb 48 85 ff 74 3b 41 89 da 48 89 ef b8 09 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 66 5b 5d c3 0f 1f 00 48 c7 c0 b8 ff ff ff 64
RSP: 002b:00007ffdf32f2e88 EFLAGS: 00000246 ORIG_RAX: 0000000000000009
RAX: ffffffffffffffda RBX: 0000000000020022 RCX: 00007f35e5e8c1b2
RDX: 0000000000000000 RSI: 0000000000021000 RDI: 0000000000000000
RBP: 0000000000000000 R08: 00000000ffffffff R09: 0000000000000000
R10: 0000000000020022 R11: 0000000000000246 R12: 00007ffdf32f3090
R13: 00007f35e51ff700 R14: 0000000000000000 R15: 0000000000022000
----------------
Code disassembly (best guess):
0: 74 04 je 0x6
2: 3c 03 cmp $0x3,%al
4: 7e 51 jle 0x57
6: 8b 03 mov (%rbx),%eax
8: 85 c0 test %eax,%eax
a: 75 05 jne 0x11
c: 5b pop %rbx
d: 31 c0 xor %eax,%eax
f: 5d pop %rbp
10: c3 retq
11: 48 8d 6b 48 lea 0x48(%rbx),%rbp
15: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax
1c: fc ff df
1f: 48 89 ea mov %rbp,%rdx
22: 48 c1 ea 03 shr $0x3,%rdx
26: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1)
* 2a: 75 32 jne 0x5e <-- trapping instruction
2c: 48 8b 7b 48 mov 0x48(%rbx),%rdi
30: e8 db 99 1b 00 callq 0x1b9a10
35: 85 c0 test %eax,%eax
37: 74 d3 je 0xc
39: 48 rex.W
3a: b8 00 00 00 00 mov $0x0,%eax