raw_sendmsg: syz.5.382 forgot to set AF_INET. Fix it! general protection fault, probably for non-canonical address 0xdffffc0000000002: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x0000000000000010-0x0000000000000017] CPU: 1 PID: 1701 Comm: syz.5.382 Not tainted 5.10.226-syzkaller-00001-g6a01908517df #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 RIP: 0010:__d_entry_type include/linux/dcache.h:400 [inline] RIP: 0010:d_is_miss include/linux/dcache.h:405 [inline] RIP: 0010:d_is_negative include/linux/dcache.h:451 [inline] RIP: 0010:d_is_positive include/linux/dcache.h:461 [inline] RIP: 0010:filename_create+0x225/0x750 fs/namei.c:3613 Code: 89 e2 e8 9e 97 ff ff 49 89 c4 48 3d 01 f0 ff ff 72 07 e8 0e ba b6 ff eb 5f 4c 89 e0 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df <0f> b6 04 08 84 c0 0f 85 70 04 00 00 4c 89 64 24 30 45 8b 24 24 bb RSP: 0000:ffffc90001737d00 EFLAGS: 00010203 RAX: 0000000000000002 RBX: ffff888127b9fcf0 RCX: dffffc0000000000 RDX: ffffc90000e09000 RSI: 000000000000030f RDI: 0000000000000310 RBP: ffffc90001737df0 R08: ffffffff81b68b58 R09: ffffed1024f73fa4 R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000014 R13: 1ffff920002e6fd1 R14: ffffc90001737e88 R15: 1ffff920002e6fd0 FS: 00007f3b0f4f96c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f5fdb55a988 CR3: 0000000117cd4000 CR4: 00000000003506a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: user_path_create fs/namei.c:3665 [inline] do_symlinkat+0x104/0x400 fs/namei.c:4119 __do_sys_symlinkat fs/namei.c:4140 [inline] __se_sys_symlinkat fs/namei.c:4137 [inline] __x64_sys_symlinkat+0x7b/0x90 fs/namei.c:4137 do_syscall_64+0x34/0x70 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7f3b10880719 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f3b0f4f9038 EFLAGS: 00000246 ORIG_RAX: 000000000000010a RAX: ffffffffffffffda RBX: 00007f3b10a37f80 RCX: 00007f3b10880719 RDX: 00000000200000c0 RSI: ffffffffffffff9c RDI: 0000000020000000 RBP: 00007f3b108f339e R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f3b10a37f80 R15: 00007ffc7b22d458 Modules linked in: ---[ end trace 520ea6585efb91c5 ]--- RIP: 0010:__d_entry_type include/linux/dcache.h:400 [inline] RIP: 0010:d_is_miss include/linux/dcache.h:405 [inline] RIP: 0010:d_is_negative include/linux/dcache.h:451 [inline] RIP: 0010:d_is_positive include/linux/dcache.h:461 [inline] RIP: 0010:filename_create+0x225/0x750 fs/namei.c:3613 Code: 89 e2 e8 9e 97 ff ff 49 89 c4 48 3d 01 f0 ff ff 72 07 e8 0e ba b6 ff eb 5f 4c 89 e0 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df <0f> b6 04 08 84 c0 0f 85 70 04 00 00 4c 89 64 24 30 45 8b 24 24 bb RSP: 0000:ffffc90001737d00 EFLAGS: 00010203 RAX: 0000000000000002 RBX: ffff888127b9fcf0 RCX: dffffc0000000000 RDX: ffffc90000e09000 RSI: 000000000000030f RDI: 0000000000000310 RBP: ffffc90001737df0 R08: ffffffff81b68b58 R09: ffffed1024f73fa4 R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000014 R13: 1ffff920002e6fd1 R14: ffffc90001737e88 R15: 1ffff920002e6fd0 FS: 00007f3b0f4f96c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020004000 CR3: 0000000117cd4000 CR4: 00000000003506b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 89 e2 mov %esp,%edx 2: e8 9e 97 ff ff call 0xffff97a5 7: 49 89 c4 mov %rax,%r12 a: 48 3d 01 f0 ff ff cmp $0xfffffffffffff001,%rax 10: 72 07 jb 0x19 12: e8 0e ba b6 ff call 0xffb6ba25 17: eb 5f jmp 0x78 19: 4c 89 e0 mov %r12,%rax 1c: 48 c1 e8 03 shr $0x3,%rax 20: 48 b9 00 00 00 00 00 movabs $0xdffffc0000000000,%rcx 27: fc ff df * 2a: 0f b6 04 08 movzbl (%rax,%rcx,1),%eax <-- trapping instruction 2e: 84 c0 test %al,%al 30: 0f 85 70 04 00 00 jne 0x4a6 36: 4c 89 64 24 30 mov %r12,0x30(%rsp) 3b: 45 8b 24 24 mov (%r12),%r12d 3f: bb .byte 0xbb