netlink: 'syz-executor.4': attribute type 4 has an invalid length. ================================================================== BUG: KASAN: use-after-free in __lock_acquire+0x2cb4/0x3ff0 kernel/locking/lockdep.c:3295 Read of size 8 at addr ffff88823591c0a0 by task syz-executor.3/24765 CPU: 1 PID: 24765 Comm: syz-executor.3 Not tainted 4.19.211-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1fc/0x2ef lib/dump_stack.c:118 print_address_description.cold+0x54/0x219 mm/kasan/report.c:256 kasan_report_error.cold+0x8a/0x1b9 mm/kasan/report.c:354 kasan_report mm/kasan/report.c:412 [inline] __asan_report_load8_noabort+0x88/0x90 mm/kasan/report.c:433 __lock_acquire+0x2cb4/0x3ff0 kernel/locking/lockdep.c:3295 lock_acquire+0x170/0x3c0 kernel/locking/lockdep.c:3908 __mutex_lock_common kernel/locking/mutex.c:937 [inline] __mutex_lock+0xd7/0x1190 kernel/locking/mutex.c:1078 xt_find_match net/netfilter/x_tables.c:189 [inline] xt_find_match+0xa3/0x280 net/netfilter/x_tables.c:181 xt_request_find_match net/netfilter/x_tables.c:219 [inline] xt_request_find_match+0x88/0x110 net/netfilter/x_tables.c:212 get_xt_match net/sched/em_ipt.c:112 [inline] em_ipt_change+0x1c7/0x470 net/sched/em_ipt.c:132 tcf_em_validate net/sched/ematch.c:248 [inline] tcf_em_tree_validate net/sched/ematch.c:365 [inline] tcf_em_tree_validate+0x8fa/0xea0 net/sched/ematch.c:307 basic_set_parms net/sched/cls_basic.c:155 [inline] basic_change+0x1173/0x1260 net/sched/cls_basic.c:212 tc_new_tfilter+0xb52/0x16c0 net/sched/cls_api.c:1320 rtnetlink_rcv_msg+0x453/0xb80 net/core/rtnetlink.c:4782 netlink_rcv_skb+0x160/0x440 net/netlink/af_netlink.c:2463 netlink_unicast_kernel net/netlink/af_netlink.c:1325 [inline] netlink_unicast+0x4d5/0x690 net/netlink/af_netlink.c:1351 netlink_sendmsg+0x6c3/0xc50 net/netlink/af_netlink.c:1917 sock_sendmsg_nosec net/socket.c:651 [inline] sock_sendmsg+0xc3/0x120 net/socket.c:661 ___sys_sendmsg+0x7bb/0x8e0 net/socket.c:2227 __sys_sendmsg net/socket.c:2265 [inline] __do_sys_sendmsg net/socket.c:2274 [inline] __se_sys_sendmsg net/socket.c:2272 [inline] __x64_sys_sendmsg+0x132/0x220 net/socket.c:2272 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7fbef8a2c0c9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 00 00 90 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:00007fbef6f9e168 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00007fbef8b4bf80 RCX: 00007fbef8a2c0c9 RDX: 0000000000000000 RSI: 00000000200001c0 RDI: 0000000000000003 RBP: 00007fbef8a87ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffd37139e6f R14: 00007fbef6f9e300 R15: 0000000000022000 The buggy address belongs to the page: page:ffffea0008d64700 count:0 mapcount:-128 mapping:0000000000000000 index:0xffff88823591cd80 flags: 0x57ff00000000000() raw: 057ff00000000000 ffffea0008d65b88 ffffea0008d64208 0000000000000000 raw: ffff88823591cd80 0000000000000001 00000000ffffff7f 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88823591bf80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88823591c000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff >ffff88823591c080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff88823591c100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88823591c180: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================