unable to load match unable to load match unable to load match unable to load match ================================================================== BUG: KASAN: use-after-free in __lock_acquire+0x2cb4/0x3ff0 kernel/locking/lockdep.c:3295 Read of size 8 at addr ffff8880a4cb5660 by task syz-executor.4/9999 CPU: 0 PID: 9999 Comm: syz-executor.4 Not tainted 4.19.208-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 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 flow_change+0x2a4/0x1ca0 net/sched/cls_flow.c:439 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:2457 netlink_unicast_kernel net/netlink/af_netlink.c:1320 [inline] netlink_unicast+0x4d5/0x690 net/netlink/af_netlink.c:1346 netlink_sendmsg+0x6bb/0xc40 net/netlink/af_netlink.c:1911 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:0x7f72810cd8d9 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:00007f7280823188 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00007f72811d2020 RCX: 00007f72810cd8d9 RDX: 0000000000000000 RSI: 0000000020000440 RDI: 0000000000000003 RBP: 00007f7281127cb4 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffd6d630e4f R14: 00007f7280823300 R15: 0000000000022000 Allocated by task 4688: kmem_cache_alloc+0x122/0x370 mm/slab.c:3559 getname_flags+0xce/0x590 fs/namei.c:140 do_sys_open+0x26c/0x520 fs/open.c:1079 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 4688: __cache_free mm/slab.c:3503 [inline] kmem_cache_free+0x7f/0x260 mm/slab.c:3765 putname+0xe1/0x120 fs/namei.c:261 do_sys_open+0x2ba/0x520 fs/open.c:1094 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe The buggy address belongs to the object at ffff8880a4cb4ac0 which belongs to the cache names_cache of size 4096 The buggy address is located 2976 bytes inside of 4096-byte region [ffff8880a4cb4ac0, ffff8880a4cb5ac0) The buggy address belongs to the page: page:ffffea0002932d00 count:1 mapcount:0 mapping:ffff88823b843380 index:0x0 compound_mapcount: 0 flags: 0xfff00000008100(slab|head) raw: 00fff00000008100 ffffea000295b688 ffffea0002932d88 ffff88823b843380 raw: 0000000000000000 ffff8880a4cb4ac0 0000000100000001 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8880a4cb5500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8880a4cb5580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff8880a4cb5600: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff8880a4cb5680: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8880a4cb5700: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================