program: r0 = socket(0x2b, 0x80801, 0x1) connect$inet6(r0, &(0x7f0000000040)={0xa, 0x0, 0xa8, @private2={0xfc, 0x2, '\x00', 0x1}, 0x1}, 0x1c) r1 = socket$kcm(0x23, 0x5, 0x0) ioctl$sock_ipv6_tunnel_SIOCDELPRL(r0, 0x89f6, &(0x7f0000000180)={'sit0\x00', &(0x7f0000000080)={@dev={0xac, 0x14, 0x14, 0x13}, 0x1, 0x0, 0x50, 0x0, [{@empty}, {@dev}, {@multicast2}, {@dev}, {@broadcast}]}}) socket$kcm(0x2d, 0x2, 0x0) socket$key(0xf, 0x3, 0x2) prctl$PR_SET_MM_MAP(0x23, 0xe, &(0x7f0000000080)={&(0x7f0000ff0000/0x1000)=nil, &(0x7f0000ffd000/0x3000)=nil, &(0x7f0000ffc000/0x4000)=nil, &(0x7f0000ffc000/0x4000)=nil, &(0x7f0000ff8000/0x4000)=nil, &(0x7f0000ff8000/0x3000)=nil, &(0x7f0000ffb000/0x3000)=nil, &(0x7f0000ffb000/0x3000)=nil, &(0x7f0000ffc000/0x3000)=nil, &(0x7f0000ffa000/0x1000)=nil, &(0x7f0000ffa000/0x2000)=nil, 0x0}, 0x68) sendmsg$NFT_BATCH(0xffffffffffffffff, &(0x7f0000000080)={0x0, 0x0, 0x0}, 0x0) r2 = io_uring_setup(0x47, &(0x7f0000000040)={0x0, 0xc8a1, 0xc000, 0x80008, 0xc1}) bpf$MAP_CREATE(0x0, &(0x7f0000000000)=ANY=[@ANYBLOB="1600000004"], 0x50) sendmmsg(0xffffffffffffffff, &(0x7f0000000100)=[{{0x0, 0x2d, &(0x7f00000000c0)=[{&(0x7f0000000000)="1b", 0x40000}], 0x1}}], 0x51, 0x0) io_uring_enter(r2, 0x2219, 0x7721, 0x16, 0x0, 0x0) listen(r1, 0x800) r3 = socket$kcm(0x10, 0x2, 0x0) sendmsg$inet(r3, &(0x7f0000000440)={0x0, 0x0, &(0x7f0000000f00)=[{&(0x7f0000000200)="5c00000014006b05c84e21000ab16d6e230675f811000000440002005817d30461bc24eeb556a7ef595105ea1698fa51f60a64c9f408000000e786a6d0bdbdc3d44bd70011b6c0504bb9189d9193e9bd00"/92, 0x5c}], 0x1, 0x0, 0x0, 0x1f00c00e}, 0x240040c4) r4 = socket$phonet_pipe(0x23, 0x5, 0x2) connect$phonet_pipe(r4, &(0x7f0000000040)={0x23, 0x0, 0x58}, 0x10) r5 = accept4(r1, 0x0, 0x0, 0x80000) r6 = seccomp$SECCOMP_SET_MODE_FILTER_LISTENER(0x1, 0x0, &(0x7f0000000000)={0x1, &(0x7f0000000100)=[{0x6, 0x0, 0xe, 0x7fff0000}]}) r7 = open_tree(0xffffffffffffff9c, &(0x7f0000000640)='\x00', 0x89901) move_mount(0xffffffffffffff9c, 0x0, r7, 0x0, 0x46) r8 = syz_genetlink_get_family_id$l2tp(&(0x7f0000000280), r0) sendmsg$L2TP_CMD_TUNNEL_CREATE(r7, &(0x7f0000000340)={&(0x7f00000001c0)={0x10, 0x0, 0x0, 0x8000}, 0xc, &(0x7f0000000300)={&(0x7f00000002c0)={0x2c, r8, 0x100, 0x70bd2d, 0x25dfdbfe, {}, [@L2TP_ATTR_UDP_SPORT={0x6, 0x1a, 0x4e21}, @L2TP_ATTR_IP_DADDR={0x8, 0x19, @private=0xa010100}, @L2TP_ATTR_VLAN_ID={0x6, 0xe, 0x8}]}, 0x2c}, 0x1, 0x0, 0x0, 0x4004081}, 0x90) sendmsg$L2TP_CMD_SESSION_MODIFY(r5, &(0x7f0000000480)={&(0x7f0000000380)={0x10, 0x0, 0x0, 0x40000}, 0xc, &(0x7f0000000400)={&(0x7f00000003c0)={0x2c, r8, 0x200, 0x70bd2b, 0x25dfdbfc, {}, [@L2TP_ATTR_SEND_SEQ={0x5, 0x13, 0x61}, @L2TP_ATTR_VLAN_ID={0x6, 0xe, 0x5}, @L2TP_ATTR_OFFSET={0x6, 0x3, 0x86c}]}, 0x2c}, 0x1, 0x0, 0x0, 0x4000000}, 0x840) r9 = socket$key(0xf, 0x3, 0x2) sendmsg$key(r9, &(0x7f0000000000)={0x500, 0x0, &(0x7f0000000040)={&(0x7f0000000100)={0x2, 0x400000000000003, 0x0, 0x0, 0xe, 0x0, 0x0, 0x0, [@sadb_address={0x5, 0x6, 0x0, 0x0, 0x0, @in6={0xa, 0x0, 0x0, @private0}}, @sadb_sa={0x2, 0x1, 0x0, 0x0, 0x0, 0x0, 0x7}, @sadb_address={0x5, 0x5, 0x0, 0x0, 0x0, @in6={0xa, 0x0, 0x0, @mcast1}}]}, 0x70}}, 0x0) close_range(r6, 0xffffffffffffffff, 0x0) ioctl$sock_inet6_udp_SIOCOUTQ(r0, 0x894b, &(0x7f0000000000)) [ 110.967751][ T4654] Bluetooth: hci0: command tx timeout [ 111.343268][ T5325] netlink: 'syz.0.0': attribute type 2 has an invalid length. [ 111.421863][ T5325] ------------[ cut here ]------------ [ 111.425087][ T5325] kernel BUG at net/phonet/socket.c:213! [ 111.429453][ T5325] Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI [ 111.432216][ T5325] CPU: 0 UID: 0 PID: 5325 Comm: syz.0.0 Not tainted syzkaller #0 PREEMPT(full) [ 111.436257][ T5325] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 111.441306][ T5325] RIP: 0010:pn_socket_sendmsg+0x240/0x250 [ 111.444386][ T5325] Code: cc cc cc e8 32 74 d0 00 89 d9 80 e1 07 fe c1 38 c1 0f 8c 04 ff ff ff 48 89 df e8 6b 23 59 f7 e9 f7 fe ff ff e8 c1 5a 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 [ 111.453359][ T5325] RSP: 0018:ffffc9000f4ef920 EFLAGS: 00010287 [ 111.456509][ T5325] RAX: ffffffff8ad95fdf RBX: 0000000000000000 RCX: 0000000000100000 [ 111.460030][ T5325] RDX: ffffc90020001000 RSI: 0000000000000055 RDI: 0000000000000056 [ 111.463392][ T5325] RBP: ffffc9000f4ef9d0 R08: ffffffff9030bcf7 R09: 1ffffffff206179e [ 111.467197][ T5325] R10: dffffc0000000000 R11: fffffbfff206179f R12: dffffc0000000000 [ 111.471572][ T5325] R13: ffff888047bb0040 R14: ffff888041acba80 R15: 1ffff92001e9df28 [ 111.475087][ T5325] FS: 00007fd6185246c0(0000) GS:ffff88808c888000(0000) knlGS:0000000000000000 [ 111.479409][ T5325] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 111.482892][ T5325] CR2: 00007fd60c000020 CR3: 0000000042d71000 CR4: 0000000000352ef0 [ 111.486732][ T5325] Call Trace: [ 111.488315][ T5325] [ 111.489709][ T5325] ? tomoyo_socket_sendmsg_permission+0x1e0/0x300 [ 111.492830][ T5325] ? __pfx_pn_socket_sendmsg+0x10/0x10 [ 111.495563][ T5325] ? aa_sock_msg_perm+0xf1/0x1b0 [ 111.498367][ T5325] ? bpf_lsm_socket_sendmsg+0x9/0x20 [ 111.501255][ T5325] ____sys_sendmsg+0x972/0x9f0 [ 111.503628][ T5325] ? __pfx_____sys_sendmsg+0x10/0x10 [ 111.506065][ T5325] ? import_iovec+0x73/0xa0 [ 111.508137][ T5325] ___sys_sendmsg+0x2a5/0x360 [ 111.510324][ T5325] ? __lock_acquire+0x6b5/0x2cf0 [ 111.513200][ T5325] ? __pfx____sys_sendmsg+0x10/0x10 [ 111.516120][ T5325] ? futex_wait+0x2a2/0x390 [ 111.518287][ T5325] ? __fget_files+0x2a/0x420 [ 111.520228][ T5325] ? __fget_files+0x3a0/0x420 [ 111.522205][ T5325] __x64_sys_sendmsg+0x1bd/0x2a0 [ 111.524435][ T5325] ? __pfx___x64_sys_sendmsg+0x10/0x10 [ 111.527395][ T5325] ? __secure_computing+0xe1/0x2a0 [ 111.530270][ T5325] ? entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 111.533016][ T5325] do_syscall_64+0x15f/0xf80 [ 111.535163][ T5325] ? entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 111.537842][ T5325] ? clear_bhb_loop+0x40/0x90 [ 111.539746][ T5325] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 111.542413][ T5325] RIP: 0033:0x7fd61759cdd9 [ 111.544333][ T5325] Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 e8 ff ff ff f7 d8 64 89 01 48 [ 111.553766][ T5325] RSP: 002b:00007fd618523fe8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 111.557517][ T5325] RAX: ffffffffffffffda RBX: 00007fd617815fa0 RCX: 00007fd61759cdd9 [ 111.561317][ T5325] RDX: 0000000000000840 RSI: 0000200000000480 RDI: 0000000000000009 [ 111.565735][ T5325] RBP: 00007fd617632d69 R08: 0000000000000000 R09: 0000000000000000 [ 111.569636][ T5325] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 111.573351][ T5325] R13: 00007fd617816038 R14: 00007fd617815fa0 R15: 00007fffcfb0ae78 [ 111.577752][ T5325] [ 111.579270][ T5325] Modules linked in: [ 111.581550][ T5325] ---[ end trace 0000000000000000 ]--- [ 111.604066][ T5325] RIP: 0010:pn_socket_sendmsg+0x240/0x250 [ 111.607008][ T5325] Code: cc cc cc e8 32 74 d0 00 89 d9 80 e1 07 fe c1 38 c1 0f 8c 04 ff ff ff 48 89 df e8 6b 23 59 f7 e9 f7 fe ff ff e8 c1 5a 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 [ 111.633097][ T5325] RSP: 0018:ffffc9000f4ef920 EFLAGS: 00010287 [ 111.638118][ T5325] RAX: ffffffff8ad95fdf RBX: 0000000000000000 RCX: 0000000000100000 [ 111.646608][ T5325] RDX: ffffc90020001000 RSI: 0000000000000055 RDI: 0000000000000056 [ 111.653166][ T5325] RBP: ffffc9000f4ef9d0 R08: ffffffff9030bcf7 R09: 1ffffffff206179e [ 111.664886][ T5325] R10: dffffc0000000000 R11: fffffbfff206179f R12: dffffc0000000000 [ 111.672302][ T5325] R13: ffff888047bb0040 R14: ffff888041acba80 R15: 1ffff92001e9df28 [ 111.677751][ T5325] FS: 00007fd6185246c0(0000) GS:ffff88808c888000(0000) knlGS:0000000000000000 [ 111.682068][ T5325] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 111.686747][ T5325] CR2: 00007fd6184e1fe8 CR3: 0000000042d71000 CR4: 0000000000352ef0 [ 111.690943][ T5325] Kernel panic - not syncing: Fatal exception [ 111.693985][ T5325] Kernel Offset: disabled [ 111.695993][ T5325] Rebooting in 86400 seconds..