netlink: 'syz.0.0': attribute type 2 has an invalid length. Zero length message leads to an empty skb ------------[ cut here ]------------ kernel BUG at net/phonet/socket.c:213! Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI CPU: 0 UID: 0 PID: 5325 Comm: syz.0.0 Not tainted syzkaller #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 RIP: 0010:pn_socket_autobind net/phonet/socket.c:213 [inline] RIP: 0010:pn_socket_sendmsg+0x240/0x250 net/phonet/socket.c:421 Code: d3 00 cc e8 92 72 d0 00 89 d9 80 e1 07 fe c1 38 c1 0f 8c 04 ff ff ff 48 89 df e8 db 3a 59 f7 e9 f7 fe ff ff e8 31 72 ec f6 90 <0f> 0b 66 66 66 66 66 2e 0f 1f 84 00 00 00 00 00 90 90 90 90 90 90 RSP: 0018:ffffc9000dc97c00 EFLAGS: 00010287 RAX: ffffffff8ad9417f RBX: 0000000000000000 RCX: 0000000000100000 RDX: ffffc9000ef62000 RSI: 0000000000000583 RDI: 0000000000000584 RBP: ffffc9000dc97cb0 R08: ffffffff9030bbf7 R09: 1ffffffff206177e R10: dffffc0000000000 R11: fffffbfff206177f R12: dffffc0000000000 R13: ffff888046f99840 R14: ffff888034683a80 R15: 1ffff92001b92f84 FS: 00007f69c2b056c0(0000) GS:ffff88808c888000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f69c1b87f40 CR3: 0000000042516000 CR4: 0000000000352ef0 Call Trace: sock_sendmsg_nosec net/socket.c:787 [inline] __sock_sendmsg net/socket.c:802 [inline] __sys_sendto+0x672/0x710 net/socket.c:2265 __do_sys_sendto net/socket.c:2272 [inline] __se_sys_sendto net/socket.c:2268 [inline] __x64_sys_sendto+0xde/0x100 net/socket.c:2268 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x15f/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f69c1b5d60e Code: 08 0f 85 a5 a8 ff ff 49 89 fb 48 89 f0 48 89 d7 48 89 ce 4c 89 c2 4d 89 ca 4c 8b 44 24 08 4c 8b 4c 24 10 4c 89 5c 24 08 0f 05 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 80 00 00 00 00 48 83 ec 08 RSP: 002b:00007f69c2b03e48 EFLAGS: 00000246 ORIG_RAX: 000000000000002c RAX: ffffffffffffffda RBX: 00007f69c2b056c0 RCX: 00007f69c1b5d60e RDX: 0000000000000020 RSI: 00007f69c2b03fc0 RDI: 000000000000000b RBP: 0000000000000000 R08: 00007f69c2b03ec4 R09: 000000000000000c R10: 0000000000000000 R11: 0000000000000246 R12: 000000000000000b R13: 00007f69c2b03f18 R14: 00007f69c2b03fc0 R15: 0000000000000000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:pn_socket_autobind net/phonet/socket.c:213 [inline] RIP: 0010:pn_socket_sendmsg+0x240/0x250 net/phonet/socket.c:421 Code: d3 00 cc e8 92 72 d0 00 89 d9 80 e1 07 fe c1 38 c1 0f 8c 04 ff ff ff 48 89 df e8 db 3a 59 f7 e9 f7 fe ff ff e8 31 72 ec f6 90 <0f> 0b 66 66 66 66 66 2e 0f 1f 84 00 00 00 00 00 90 90 90 90 90 90 RSP: 0018:ffffc9000dc97c00 EFLAGS: 00010287 RAX: ffffffff8ad9417f RBX: 0000000000000000 RCX: 0000000000100000 RDX: ffffc9000ef62000 RSI: 0000000000000583 RDI: 0000000000000584 RBP: ffffc9000dc97cb0 R08: ffffffff9030bbf7 R09: 1ffffffff206177e R10: dffffc0000000000 R11: fffffbfff206177f R12: dffffc0000000000 R13: ffff888046f99840 R14: ffff888034683a80 R15: 1ffff92001b92f84 FS: 00007f69c2b056c0(0000) GS:ffff88808c888000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f69c1b87f40 CR3: 0000000042516000 CR4: 0000000000352ef0