------------[ cut here ]------------
WARNING: CPU: 0 PID: 5046 at net/ipv4/af_inet.c:154 inet_sock_destruct+0x6df/0x8a0 net/ipv4/af_inet.c:154
Modules linked in:
CPU: 0 PID: 5046 Comm: syz-executor.3 Not tainted 6.3.0-next-20230428-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/14/2023
RIP: 0010:inet_sock_destruct+0x6df/0x8a0 net/ipv4/af_inet.c:154
Code: ff e8 f5 ec e1 f8 0f 0b e9 07 fe ff ff e8 e9 ec e1 f8 0f 0b e9 3f fe ff ff e8 dd ec e1 f8 0f 0b e9 95 fd ff ff e8 d1 ec e1 f8 <0f> 0b e9 9f fe ff ff e8 75 c3 34 f9 e9 7a fc ff ff 4c 89 e7 e8 a8
RSP: 0018:ffffc90000007de8 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 0000000000000d00 RCX: 0000000000000100
RDX: ffff8880219e0000 RSI: ffffffff88a260ef RDI: 0000000000000005
RBP: ffff88807a953fc0 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000000d00 R11: 0000000000000000 R12: ffff88807a953fe8
R13: ffff88807a954234 R14: ffffc90000007ed8 R15: 0000000000000006
FS: 00005555568c1400(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f56663831b8 CR3: 0000000084be9000 CR4: 00000000003506f0
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/0x1a70 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:lockdep_enabled kernel/locking/lockdep.c:119 [inline]
RIP: 0010:lock_release+0xf4/0x670 kernel/locking/lockdep.c:5704
Code: 03 0f b6 14 02 48 89 d8 83 e0 07 83 c0 03 38 d0 7c 08 84 d2 0f 85 bf 04 00 00 44 8b 05 e5 c2 14 0d 45 85 c0 0f 84 f6 02 00 00 <65> 8b 05 25 8a 9c 7e 85 c0 0f 85 e7 02 00 00 65 4c 8b 34 25 c0 bb
RSP: 0018:ffffc900040cfa70 EFLAGS: 00000202
RAX: 0000000000000003 RBX: ffffffff8e7ac230 RCX: ffffffff8165ff05
RDX: 0000000000000000 RSI: 0000000000000001 RDI: ffffffff8c134a20
RBP: 1ffff92000819f50 R08: 0000000000000001 R09: ffffffff8e7a8d17
R10: fffffbfff1cf51a2 R11: 0000000000094001 R12: ffffffff8c799a00
R13: ffffed100ebedcc5 R14: 0000000000000000 R15: ffff888075f6e600
mod_memcg_page_state include/linux/memcontrol.h:570 [inline]
vfree+0x16d/0x7e0 mm/vmalloc.c:2793
copy_entries_to_user net/ipv4/netfilter/ip_tables.c:866 [inline]
get_entries net/ipv4/netfilter/ip_tables.c:1022 [inline]
do_ipt_get_ctl+0x802/0x9e0 net/ipv4/netfilter/ip_tables.c:1660
nf_getsockopt+0x76/0xd0 net/netfilter/nf_sockopt.c:116
ip_getsockopt+0x189/0x1e0 net/ipv4/ip_sockglue.c:1815
tcp_getsockopt+0x99/0x100 net/ipv4/tcp.c:4410
__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:0x7f566628d78a
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:00007ffe4a4b8708 EFLAGS: 00000202 ORIG_RAX: 0000000000000037
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f566628d78a
RDX: 0000000000000041 RSI: 0000000000000000 RDI: 0000000000000003
RBP: 00007ffe4a4b8730 R08: 00007ffe4a4b872c R09: ffffffffff000000
R10: 00007ffe4a4b8790 R11: 0000000000000202 R12: 00007ffe4a4b8790
R13: 0000000000000003 R14: 00007ffe4a4b872c R15: 00007f56663873e0
----------------
Code disassembly (best guess):
0: 03 0f add (%rdi),%ecx
2: b6 14 mov $0x14,%dh
4: 02 48 89 add -0x77(%rax),%cl
7: d8 83 e0 07 83 c0 fadds -0x3f7cf820(%rbx)
d: 03 38 add (%rax),%edi
f: d0 7c 08 84 sarb -0x7c(%rax,%rcx,1)
13: d2 0f rorb %cl,(%rdi)
15: 85 bf 04 00 00 44 test %edi,0x44000004(%rdi)
1b: 8b 05 e5 c2 14 0d mov 0xd14c2e5(%rip),%eax # 0xd14c306
21: 45 85 c0 test %r8d,%r8d
24: 0f 84 f6 02 00 00 je 0x320
* 2a: 65 8b 05 25 8a 9c 7e mov %gs:0x7e9c8a25(%rip),%eax # 0x7e9c8a56 <-- trapping instruction
31: 85 c0 test %eax,%eax
33: 0f 85 e7 02 00 00 jne 0x320
39: 65 gs
3a: 4c rex.WR
3b: 8b .byte 0x8b
3c: 34 25 xor $0x25,%al
3e: c0 .byte 0xc0
3f: bb .byte 0xbb