general protection fault, probably for non-canonical address 0xdffffc0000000001: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x0000000000000008-0x000000000000000f] CPU: 1 PID: 32485 Comm: syz-executor.3 Not tainted 6.1.0-rc5-syzkaller-00341-g894909f95aa1 #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.14.0-2 04/01/2014 RIP: 0010:inet_ehash_lockp include/net/inet_hashtables.h:205 [inline] RIP: 0010:inet_unhash+0x129/0x700 net/ipv4/inet_hashtables.c:779 Code: 03 0f b6 04 02 84 c0 74 08 3c 03 0f 8e ab 04 00 00 48 8d 7d 08 44 8b 63 08 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 e9 04 00 00 48 8d 7d 14 4c 8b 7d 08 48 b8 00 00 RSP: 0000:ffffc90000738b40 EFLAGS: 00010202 RAX: dffffc0000000000 RBX: ffff888025120440 RCX: 0000000000000100 RDX: 0000000000000001 RSI: ffffffff883c3c1b RDI: 0000000000000008 RBP: 0000000000000000 R08: 0000000000000001 R09: 000000000000000a R10: 0000000000000004 R11: 0000000000000001 R12: 00000000b992555f R13: ffff8880251204b0 R14: ffff888025120468 R15: ffff888025120452 FS: 00007fc5cf320700(0000) GS:ffff88802c700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020298030 CR3: 000000004f9a1000 CR4: 0000000000150ee0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: tcp_set_state+0x19c/0x7e0 net/ipv4/tcp.c:2745 tcp_done+0xaf/0x340 net/ipv4/tcp.c:4642 tcp_write_err net/ipv4/tcp_timer.c:74 [inline] tcp_probe_timer net/ipv4/tcp_timer.c:390 [inline] tcp_write_timer_handler net/ipv4/tcp_timer.c:624 [inline] tcp_write_timer_handler+0x44b/0x9f0 net/ipv4/tcp_timer.c:594 tcp_write_timer+0xa6/0x2b0 net/ipv4/tcp_timer.c:637 call_timer_fn+0x1da/0x7c0 kernel/time/timer.c:1474 expire_timers kernel/time/timer.c:1519 [inline] __run_timers.part.0+0x6a2/0xaf0 kernel/time/timer.c:1790 __run_timers kernel/time/timer.c:1768 [inline] run_timer_softirq+0xb7/0x1d0 kernel/time/timer.c:1803 __do_softirq+0x1fb/0xadc kernel/softirq.c:571 invoke_softirq kernel/softirq.c:445 [inline] __irq_exit_rcu+0x123/0x180 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:649 RIP: 0010:lock_is_held_type+0x103/0x140 kernel/locking/lockdep.c:5716 Code: 00 00 b8 ff ff ff ff 65 0f c1 05 18 8c 11 76 83 f8 01 75 29 9c 58 f6 c4 02 75 3d 48 f7 04 24 00 02 00 00 74 01 fb 48 83 c4 08 <44> 89 e8 5b 5d 41 5c 41 5d 41 5e 41 5f c3 45 31 ed eb b9 0f 0b 48 RSP: 0000:ffffc9000335f9e0 EFLAGS: 00000292 RAX: 0000000000000046 RBX: 0000000000000000 RCX: 0000000000000001 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffffff8c58cd80 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: ffff8880279460c0 R13: 0000000000000000 R14: 00000000ffffffff R15: ffffc9000335fb90 lock_is_held include/linux/lockdep.h:283 [inline] __might_resched+0x3e/0x2d0 kernel/sched/core.c:9870 __might_fault+0x70/0x180 mm/memory.c:5643 _copy_from_user+0x29/0x170 lib/usercopy.c:13 copy_from_user include/linux/uaccess.h:161 [inline] copy_msghdr_from_user+0x89/0x150 net/socket.c:2413 recvmsg_copy_msghdr net/socket.c:2667 [inline] ___sys_recvmsg+0xbc/0x180 net/socket.c:2739 do_recvmmsg+0x25e/0x6e0 net/socket.c:2837 __sys_recvmmsg net/socket.c:2916 [inline] __do_sys_recvmmsg net/socket.c:2939 [inline] __se_sys_recvmmsg net/socket.c:2932 [inline] __x64_sys_recvmmsg+0x20f/0x260 net/socket.c:2932 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:0x7fc5ce68b639 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fc5cf320168 EFLAGS: 00000246 ORIG_RAX: 000000000000012b RAX: ffffffffffffffda RBX: 00007fc5ce7ac050 RCX: 00007fc5ce68b639 RDX: 0000000000010106 RSI: 00000000200000c0 RDI: 0000000000000003 RBP: 00007fc5ce6e6ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000002 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffc96e58cef R14: 00007fc5cf320300 R15: 0000000000022000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:inet_ehash_lockp include/net/inet_hashtables.h:205 [inline] RIP: 0010:inet_unhash+0x129/0x700 net/ipv4/inet_hashtables.c:779 Code: 03 0f b6 04 02 84 c0 74 08 3c 03 0f 8e ab 04 00 00 48 8d 7d 08 44 8b 63 08 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 e9 04 00 00 48 8d 7d 14 4c 8b 7d 08 48 b8 00 00 RSP: 0000:ffffc90000738b40 EFLAGS: 00010202 RAX: dffffc0000000000 RBX: ffff888025120440 RCX: 0000000000000100 RDX: 0000000000000001 RSI: ffffffff883c3c1b RDI: 0000000000000008 RBP: 0000000000000000 R08: 0000000000000001 R09: 000000000000000a R10: 0000000000000004 R11: 0000000000000001 R12: 00000000b992555f R13: ffff8880251204b0 R14: ffff888025120468 R15: ffff888025120452 FS: 00007fc5cf320700(0000) GS:ffff88802c700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020298030 CR3: 000000004f9a1000 CR4: 0000000000150ee0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 03 0f add (%rdi),%ecx 2: b6 04 mov $0x4,%dh 4: 02 84 c0 74 08 3c 03 add 0x33c0874(%rax,%rax,8),%al b: 0f 8e ab 04 00 00 jle 0x4bc 11: 48 8d 7d 08 lea 0x8(%rbp),%rdi 15: 44 8b 63 08 mov 0x8(%rbx),%r12d 19: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 20: fc ff df 23: 48 89 fa mov %rdi,%rdx 26: 48 c1 ea 03 shr $0x3,%rdx * 2a: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) <-- trapping instruction 2e: 0f 85 e9 04 00 00 jne 0x51d 34: 48 8d 7d 14 lea 0x14(%rbp),%rdi 38: 4c 8b 7d 08 mov 0x8(%rbp),%r15 3c: 48 rex.W 3d: b8 .byte 0xb8