------------[ cut here ]------------
WARNING: CPU: 1 PID: 30964 at net/core/stream.c:205 sk_stream_kill_queues+0x2ee/0x3d0 net/core/stream.c:205
Modules linked in:
CPU: 1 PID: 30964 Comm: syz-executor.5 Not tainted 5.15.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:sk_stream_kill_queues+0x2ee/0x3d0 net/core/stream.c:205
Code: 5e 41 5f e9 24 59 5c fa e8 1f 59 5c fa 89 ee 48 89 df e8 75 9a fb ff e9 64 ff ff ff e8 0b 59 5c fa 0f 0b eb 9b e8 02 59 5c fa <0f> 0b eb c7 e8 f9 58 5c fa 0f 0b e9 65 fe ff ff e8 2d c3 a2 fa e9
RSP: 0018:ffffc90000dc0c28 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 0000000000000fff RCX: 0000000000000100
RDX: ffff8880282e0000 RSI: ffffffff871b198e RDI: 0000000000000003
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
R10: ffffffff871b1955 R11: 0000000000000000 R12: ffff888087a5e218
R13: ffff888087a5e1a8 R14: ffff888087a5e028 R15: 0000000000000000
FS: 00007f7283e5c700(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f15f77e54f8 CR3: 000000003c836000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
inet_csk_destroy_sock+0x1a5/0x440 net/ipv4/inet_connection_sock.c:1012
tcp_done+0x233/0x330 net/ipv4/tcp.c:4417
tcp_write_err net/ipv4/tcp_timer.c:74 [inline]
tcp_probe_timer net/ipv4/tcp_timer.c:395 [inline]
tcp_write_timer_handler+0x447/0xbc0 net/ipv4/tcp_timer.c:626
tcp_write_timer+0xa2/0x2b0 net/ipv4/tcp_timer.c:642
call_timer_fn+0x1a5/0x6b0 kernel/time/timer.c:1421
expire_timers kernel/time/timer.c:1466 [inline]
__run_timers.part.0+0x675/0xa20 kernel/time/timer.c:1734
__run_timers kernel/time/timer.c:1715 [inline]
run_timer_softirq+0xb3/0x1d0 kernel/time/timer.c:1747
__do_softirq+0x29b/0x9c2 kernel/softirq.c:558
invoke_softirq kernel/softirq.c:432 [inline]
__irq_exit_rcu+0x123/0x180 kernel/softirq.c:636
irq_exit_rcu+0x5/0x20 kernel/softirq.c:648
sysvec_apic_timer_interrupt+0x93/0xc0 arch/x86/kernel/apic/apic.c:1097
asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:638
RIP: 0010:__sanitizer_cov_trace_pc+0x4c/0x60 kernel/kcov.c:202
Code: 0e 85 c9 74 35 8b 82 a4 15 00 00 85 c0 74 2b 8b 82 80 15 00 00 83 f8 02 75 20 48 8b 8a 88 15 00 00 8b 92 84 15 00 00 48 8b 01 <48> 83 c0 01 48 39 c2 76 07 48 89 34 c1 48 89 01 c3 0f 1f 00 41 55
RSP: 0018:ffffc900043a7370 EFLAGS: 00000246
RAX: 000000000003ffff RBX: ffff88807f27d9f0 RCX: ffffc90003796000
RDX: 0000000000040000 RSI: ffffffff8183fab1 RDI: 0000000000000003
RBP: 00007f7286928ae9 R08: 00007f7286928ae9 R09: 0000000000000001
R10: ffffffff8183faa3 R11: 0000000000000000 R12: ffff88807f27d9f0
R13: dffffc0000000000 R14: 0000000000000000 R15: ffffffffa0050a84
__lt_find include/linux/rbtree_latch.h:118 [inline]
latch_tree_find include/linux/rbtree_latch.h:208 [inline]
bpf_ksym_find+0x111/0x1c0 kernel/bpf/core.c:675
is_bpf_text_address+0x58/0x170 kernel/bpf/core.c:709
kernel_text_address kernel/extable.c:151 [inline]
kernel_text_address+0xbd/0xf0 kernel/extable.c:120
__kernel_text_address+0x9/0x30 kernel/extable.c:105
unwind_get_return_address arch/x86/kernel/unwind_orc.c:318 [inline]
unwind_get_return_address+0x51/0x90 arch/x86/kernel/unwind_orc.c:313
arch_stack_walk+0x93/0xe0 arch/x86/kernel/stacktrace.c:26
stack_trace_save+0x8c/0xc0 kernel/stacktrace.c:121
kasan_save_stack+0x1b/0x40 mm/kasan/common.c:38
kasan_set_track+0x1c/0x30 mm/kasan/common.c:46
kasan_set_free_info+0x20/0x30 mm/kasan/generic.c:360
____kasan_slab_free mm/kasan/common.c:366 [inline]
____kasan_slab_free mm/kasan/common.c:328 [inline]
__kasan_slab_free+0xff/0x130 mm/kasan/common.c:374
kasan_slab_free include/linux/kasan.h:235 [inline]
slab_free_hook mm/slub.c:1700 [inline]
slab_free_freelist_hook+0x8b/0x1c0 mm/slub.c:1726
slab_free mm/slub.c:3492 [inline]
kfree+0xf3/0x550 mm/slub.c:4552
kfree_const+0x51/0x60 mm/util.c:40
kernfs_put.part.0+0x159/0x540 fs/kernfs/dir.c:530
kernfs_put+0x42/0x50 fs/kernfs/dir.c:513
__kernfs_remove+0x725/0xab0 fs/kernfs/dir.c:1372
kernfs_remove_by_name_ns+0x4f/0xa0 fs/kernfs/dir.c:1544
kernfs_remove_by_name include/linux/kernfs.h:598 [inline]
remove_files+0x96/0x1c0 fs/sysfs/group.c:28
sysfs_remove_group+0x87/0x170 fs/sysfs/group.c:289
sysfs_remove_groups fs/sysfs/group.c:313 [inline]
sysfs_remove_groups+0x5c/0xa0 fs/sysfs/group.c:305
destroy_gid_attrs drivers/infiniband/core/sysfs.c:1174 [inline]
ib_free_port_attrs+0x1dd/0x460 drivers/infiniband/core/sysfs.c:1394
remove_one_compat_dev drivers/infiniband/core/device.c:1001 [inline]
rdma_dev_exit_net+0x2b2/0x550 drivers/infiniband/core/device.c:1139
rdma_dev_init_net+0x2c2/0x480 drivers/infiniband/core/device.c:1192
ops_init+0xaf/0x470 net/core/net_namespace.c:140
setup_net+0x40f/0xa30 net/core/net_namespace.c:326
copy_net_ns+0x319/0x760 net/core/net_namespace.c:470
create_new_namespaces+0x3f6/0xb20 kernel/nsproxy.c:110
unshare_nsproxy_namespaces+0xc1/0x1f0 kernel/nsproxy.c:226
ksys_unshare+0x445/0x920 kernel/fork.c:3076
__do_sys_unshare kernel/fork.c:3150 [inline]
__se_sys_unshare kernel/fork.c:3148 [inline]
__x64_sys_unshare+0x2d/0x40 kernel/fork.c:3148
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7f7286928ae9
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 bc ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f7283e5c188 EFLAGS: 00000246 ORIG_RAX: 0000000000000110
RAX: ffffffffffffffda RBX: 00007f7286a3c0e0 RCX: 00007f7286928ae9
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000040000000
RBP: 00007f7286982f25 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fff6c3cd9df R14: 00007f7283e5c300 R15: 0000000000022000
----------------
Code disassembly (best guess), 1 bytes skipped:
0: 85 c9 test %ecx,%ecx
2: 74 35 je 0x39
4: 8b 82 a4 15 00 00 mov 0x15a4(%rdx),%eax
a: 85 c0 test %eax,%eax
c: 74 2b je 0x39
e: 8b 82 80 15 00 00 mov 0x1580(%rdx),%eax
14: 83 f8 02 cmp $0x2,%eax
17: 75 20 jne 0x39
19: 48 8b 8a 88 15 00 00 mov 0x1588(%rdx),%rcx
20: 8b 92 84 15 00 00 mov 0x1584(%rdx),%edx
26: 48 8b 01 mov (%rcx),%rax
* 29: 48 83 c0 01 add $0x1,%rax <-- trapping instruction
2d: 48 39 c2 cmp %rax,%rdx
30: 76 07 jbe 0x39
32: 48 89 34 c1 mov %rsi,(%rcx,%rax,8)
36: 48 89 01 mov %rax,(%rcx)
39: c3 retq
3a: 0f 1f 00 nopl (%rax)
3d: 41 55 push %r13