audit: type=1804 audit(1672290786.127:5): pid=15709 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.5" name="/root/syzkaller-testdir3457392341/syzkaller.UZ5vAK/390/memory.events" dev="sda1" ino=14589 res=1 netlink: 12 bytes leftover after parsing attributes in process `syz-executor.4'. ================================================================== BUG: KASAN: use-after-free in qdisc_dev include/net/sch_generic.h:472 [inline] BUG: KASAN: use-after-free in tc_chain_fill_node+0x7f5/0x860 net/sched/cls_api.c:1733 Read of size 8 at addr ffff88809dedb240 by task syz-executor.4/15710 CPU: 0 PID: 15710 Comm: syz-executor.4 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 qdisc_dev include/net/sch_generic.h:472 [inline] tc_chain_fill_node+0x7f5/0x860 net/sched/cls_api.c:1733 audit: type=1800 audit(1672290786.157:6): pid=15709 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="syz-executor.5" name="memory.events" dev="sda1" ino=14589 res=0 tc_chain_notify+0x100/0x1f0 net/sched/cls_api.c:1771 __tcf_chain_put+0xe5/0x4b0 net/sched/cls_api.c:330 tcf_chain_put net/sched/cls_api.c:340 [inline] tc_new_tfilter+0x729/0x16c0 net/sched/cls_api.c:1338 REISERFS (device loop1): Using r5 hash to sort names 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:0x7f213b2910a9 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:00007f21397c1168 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00007f213b3b1120 RCX: 00007f213b2910a9 RDX: 0000000000000000 RSI: 0000000020000140 RDI: 0000000000000006 RBP: 00007f213b2ecae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffe84cc854f R14: 00007f21397c1300 R15: 0000000000022000 Allocated by task 15707: __do_kmalloc_node mm/slab.c:3689 [inline] __kmalloc_node+0x4c/0x70 mm/slab.c:3696 kmalloc_node include/linux/slab.h:557 [inline] kzalloc_node include/linux/slab.h:720 [inline] qdisc_alloc+0xb2/0xa40 net/sched/sch_generic.c:837 qdisc_create+0xdc/0x1130 net/sched/sch_api.c:1114 tc_modify_qdisc+0x50d/0x1a80 net/sched/sch_api.c:1572 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 Freed by task 15703: __cache_free mm/slab.c:3503 [inline] kfree+0xcc/0x210 mm/slab.c:3822 qdisc_free net/sched/sch_generic.c:958 [inline] qdisc_destroy+0x501/0x790 net/sched/sch_generic.c:998 notify_and_destroy net/sched/sch_api.c:925 [inline] qdisc_graft+0xb61/0x1130 net/sched/sch_api.c:983 tc_modify_qdisc+0xd3d/0x1a80 net/sched/sch_api.c:1583 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 The buggy address belongs to the object at ffff88809dedb200 which belongs to the cache kmalloc-1024 of size 1024 The buggy address is located 64 bytes inside of 1024-byte region [ffff88809dedb200, ffff88809dedb600) The buggy address belongs to the page: page:ffffea000277b680 count:1 mapcount:0 mapping:ffff88813bff0ac0 index:0xffff88809dedbb00 compound_mapcount: 0 flags: 0xfff00000008100(slab|head) raw: 00fff00000008100 ffffea0002d46688 ffffea0002b7b808 ffff88813bff0ac0 raw: ffff88809dedbb00 ffff88809deda000 0000000100000006 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88809dedb100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88809dedb180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff88809dedb200: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88809dedb280: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88809dedb300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================