general protection fault, probably for non-canonical address 0xdffffc0000000001: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x0000000000000008-0x000000000000000f] CPU: 0 PID: 26219 Comm: syz-executor.2 Not tainted 5.16.0-rc5-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:sk_prot_mem_limits include/net/sock.h:1490 [inline] RIP: 0010:sock_reserve_memory net/core/sock.c:998 [inline] RIP: 0010:sock_setsockopt+0x2371/0x2bd0 net/core/sock.c:1443 Code: fa 48 c1 ea 03 80 3c 02 00 0f 85 2a 06 00 00 48 8b 83 18 01 00 00 ba ff ff 37 00 48 c1 e2 2a 48 8d 78 08 48 89 f9 48 c1 e9 03 <80> 3c 11 00 0f 85 ed 05 00 00 48 8b 40 08 48 8b b5 90 fe ff ff 48 RSP: 0018:ffffc90001f9fc70 EFLAGS: 00010202 RAX: 0000000000000000 RBX: ffffffff8c3f9420 RCX: 0000000000000001 RDX: dffffc0000000000 RSI: 0000000000000008 RDI: 0000000000000008 RBP: ffffc90001f9fde8 R08: 0000000000000001 R09: ffffffff90648ca7 R10: fffffbfff20c9194 R11: 0000000000000000 R12: ffff88802a66421c R13: ffff88802a6644a8 R14: 0000000000000001 R15: ffff88802a664000 FS: 00007f6a2ade4700(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000000 CR3: 000000003a9f3000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __sys_setsockopt+0x4f8/0x610 net/socket.c:2172 __do_sys_setsockopt net/socket.c:2187 [inline] __se_sys_setsockopt net/socket.c:2184 [inline] __x64_sys_setsockopt+0xba/0x150 net/socket.c:2184 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:0x7f6a2c46ee99 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:00007f6a2ade4168 EFLAGS: 00000246 ORIG_RAX: 0000000000000036 RAX: ffffffffffffffda RBX: 00007f6a2c581f60 RCX: 00007f6a2c46ee99 RDX: 0000000000000049 RSI: 0000000000000001 RDI: 0000000000000005 RBP: 00007f6a2c4c8ff1 R08: 0000000000000010 R09: 0000000000000000 R10: 0000000020000240 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f6a2cab5b1f R14: 00007f6a2ade4300 R15: 0000000000022000 Modules linked in: ---[ end trace 3600a966eae96b60 ]--- RIP: 0010:sk_prot_mem_limits include/net/sock.h:1490 [inline] RIP: 0010:sock_reserve_memory net/core/sock.c:998 [inline] RIP: 0010:sock_setsockopt+0x2371/0x2bd0 net/core/sock.c:1443 Code: fa 48 c1 ea 03 80 3c 02 00 0f 85 2a 06 00 00 48 8b 83 18 01 00 00 ba ff ff 37 00 48 c1 e2 2a 48 8d 78 08 48 89 f9 48 c1 e9 03 <80> 3c 11 00 0f 85 ed 05 00 00 48 8b 40 08 48 8b b5 90 fe ff ff 48 RSP: 0018:ffffc90001f9fc70 EFLAGS: 00010202 RAX: 0000000000000000 RBX: ffffffff8c3f9420 RCX: 0000000000000001 RDX: dffffc0000000000 RSI: 0000000000000008 RDI: 0000000000000008 RBP: ffffc90001f9fde8 R08: 0000000000000001 R09: ffffffff90648ca7 R10: fffffbfff20c9194 R11: 0000000000000000 R12: ffff88802a66421c R13: ffff88802a6644a8 R14: 0000000000000001 R15: ffff88802a664000 FS: 00007f6a2ade4700(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000c00f4730f5 CR3: 000000003a9f3000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: fa cli 1: 48 c1 ea 03 shr $0x3,%rdx 5: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) 9: 0f 85 2a 06 00 00 jne 0x639 f: 48 8b 83 18 01 00 00 mov 0x118(%rbx),%rax 16: ba ff ff 37 00 mov $0x37ffff,%edx 1b: 48 c1 e2 2a shl $0x2a,%rdx 1f: 48 8d 78 08 lea 0x8(%rax),%rdi 23: 48 89 f9 mov %rdi,%rcx 26: 48 c1 e9 03 shr $0x3,%rcx * 2a: 80 3c 11 00 cmpb $0x0,(%rcx,%rdx,1) <-- trapping instruction 2e: 0f 85 ed 05 00 00 jne 0x621 34: 48 8b 40 08 mov 0x8(%rax),%rax 38: 48 8b b5 90 fe ff ff mov -0x170(%rbp),%rsi 3f: 48 rex.W