------------[ cut here ]------------
WARNING: CPU: 1 PID: 5045 at net/ipv4/af_inet.c:154 inet_sock_destruct+0x6df/0x8a0 net/ipv4/af_inet.c:154
Modules linked in:
CPU: 1 PID: 5045 Comm: syz-executor.4 Not tainted 6.4.0-rc1-syzkaller-00328-g833e24aeb4d9 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/28/2023
RIP: 0010:inet_sock_destruct+0x6df/0x8a0 net/ipv4/af_inet.c:154
Code: ff e8 a5 b5 e1 f8 0f 0b e9 07 fe ff ff e8 99 b5 e1 f8 0f 0b e9 3f fe ff ff e8 8d b5 e1 f8 0f 0b e9 95 fd ff ff e8 81 b5 e1 f8 <0f> 0b e9 9f fe ff ff e8 e5 a9 34 f9 e9 7a fc ff ff 4c 89 e7 e8 18
RSP: 0018:ffffc900001e0de8 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 0000000000000d00 RCX: 0000000000000100
RDX: ffff888076550000 RSI: ffffffff88a28f5f RDI: 0000000000000005
RBP: ffff888046293300 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000000d00 R11: 0000000000000001 R12: ffff888046293328
R13: ffff888046293574 R14: ffffc900001e0ed8 R15: 0000000000000001
FS: 0000555556951400(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f5393186058 CR3: 000000004bf0f000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
__sk_destruct+0x4d/0x770 net/core/sock.c:2130
rcu_do_batch kernel/rcu/tree.c:2115 [inline]
rcu_core+0x806/0x1ad0 kernel/rcu/tree.c:2377
__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:1106
asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:645
RIP: 0010:__local_bh_enable_ip+0xac/0x130 kernel/softirq.c:403
Code: 1d 21 eb b5 7e 65 8b 05 1a eb b5 7e a9 00 ff ff 00 74 45 bf 01 00 00 00 e8 e1 58 0a 00 e8 8c 10 3d 00 fb 65 8b 05 fc ea b5 7e <85> c0 74 58 5b 5d c3 65 8b 05 c2 b5 b4 7e 85 c0 75 a2 0f 0b eb 9e
RSP: 0018:ffffc9000400fa98 EFLAGS: 00000202
RAX: 0000000080000000 RBX: 00000000fffffe00 RCX: 1ffffffff22ae2c6
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffffff880664a5 R08: 0000000000000001 R09: ffffffff91529dbf
R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000040
R13: ffff888042f2c980 R14: 0000000000000040 R15: 0000000000000000
lock_sock include/net/sock.h:1697 [inline]
sockopt_lock_sock+0x55/0x70 net/core/sock.c:1057
do_ip_getsockopt+0x345/0x1ea0 net/ipv4/ip_sockglue.c:1564
ip_getsockopt+0xa0/0x1e0 net/ipv4/ip_sockglue.c:1798
tcp_getsockopt+0x99/0x100 net/ipv4/tcp.c:4412
__sys_getsockopt+0x21a/0x6a0 net/socket.c:2317
__do_sys_getsockopt net/socket.c:2332 [inline]
__se_sys_getsockopt net/socket.c:2329 [inline]
__x64_sys_getsockopt+0xbe/0x160 net/socket.c:2329
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:0x7f509048d78a
Code: 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 49 89 ca b8 37 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffcf950f118 EFLAGS: 00000246 ORIG_RAX: 0000000000000037
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f509048d78a
RDX: 0000000000000040 RSI: 0000000000000000 RDI: 0000000000000003
RBP: 00007ffcf950f140 R08: 00007ffcf950f13c R09: ffffffffffff0000
R10: 00007ffcf950f140 R11: 0000000000000246 R12: 00007ffcf950f1a0
R13: 0000000000000003 R14: 00007ffcf950f13c R15: 00007f5090587aa0
----------------
Code disassembly (best guess):
0: 1d 21 eb b5 7e sbb $0x7eb5eb21,%eax
5: 65 8b 05 1a eb b5 7e mov %gs:0x7eb5eb1a(%rip),%eax # 0x7eb5eb26
c: a9 00 ff ff 00 test $0xffff00,%eax
11: 74 45 je 0x58
13: bf 01 00 00 00 mov $0x1,%edi
18: e8 e1 58 0a 00 callq 0xa58fe
1d: e8 8c 10 3d 00 callq 0x3d10ae
22: fb sti
23: 65 8b 05 fc ea b5 7e mov %gs:0x7eb5eafc(%rip),%eax # 0x7eb5eb26
* 2a: 85 c0 test %eax,%eax <-- trapping instruction
2c: 74 58 je 0x86
2e: 5b pop %rbx
2f: 5d pop %rbp
30: c3 retq
31: 65 8b 05 c2 b5 b4 7e mov %gs:0x7eb4b5c2(%rip),%eax # 0x7eb4b5fa
38: 85 c0 test %eax,%eax
3a: 75 a2 jne 0xffffffde
3c: 0f 0b ud2
3e: eb 9e jmp 0xffffffde