================================================================== BUG: KASAN: use-after-free in tcf_action_destroy+0x188/0x1b0 net/sched/act_api.c:655 dlm: Unknown command passed to DLM device : 0 Read of size 8 at addr ffff8880982cc700 by task syz-executor.1/5905 CPU: 1 PID: 5905 Comm: syz-executor.1 Not tainted 4.19.155-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/0x2fe lib/dump_stack.c:118 print_address_description.cold+0x54/0x219 mm/kasan/report.c:256 kasan_report_error.cold+0x8a/0x1c7 mm/kasan/report.c:354 kasan_report mm/kasan/report.c:412 [inline] __asan_report_load8_noabort+0x88/0x90 mm/kasan/report.c:433 dlm: Unknown command passed to DLM device : 0 tcf_action_destroy+0x188/0x1b0 net/sched/act_api.c:655 tcf_action_init+0x2aa/0x3b0 net/sched/act_api.c:949 tcf_action_add+0xd9/0x360 net/sched/act_api.c:1314 tc_ctl_action+0x327/0x407 net/sched/act_api.c:1369 rtnetlink_rcv_msg+0x453/0xb80 net/core/rtnetlink.c:4778 netlink_rcv_skb+0x160/0x440 net/netlink/af_netlink.c:2455 netlink_unicast_kernel net/netlink/af_netlink.c:1318 [inline] netlink_unicast+0x4d5/0x690 net/netlink/af_netlink.c:1344 netlink_sendmsg+0x6bb/0xc40 net/netlink/af_netlink.c:1909 dlm: Unknown command passed to DLM device : 0 sock_sendmsg_nosec net/socket.c:622 [inline] sock_sendmsg+0xc3/0x120 net/socket.c:632 ___sys_sendmsg+0x7bb/0x8e0 net/socket.c:2115 __sys_sendmsg net/socket.c:2153 [inline] __do_sys_sendmsg net/socket.c:2162 [inline] __se_sys_sendmsg net/socket.c:2160 [inline] __x64_sys_sendmsg+0x132/0x220 net/socket.c:2160 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x45deb9 Code: 0d b4 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 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 0f 83 db b3 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007efeb74f4c78 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 000000000002e680 RCX: 000000000045deb9 RDX: 0000000000000000 RSI: 0000000020002980 RDI: 0000000000000005 RBP: 000000000118bf60 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000118bf2c R13: 00007ffe51a933ef R14: 00007efeb74f59c0 R15: 000000000118bf2c Allocated by task 5905: __do_kmalloc mm/slab.c:3727 [inline] __kmalloc+0x15a/0x3c0 mm/slab.c:3736 kmalloc include/linux/slab.h:520 [inline] kzalloc include/linux/slab.h:709 [inline] tcf_idr_create+0x5b/0x5e0 net/sched/act_api.c:361 tcf_connmark_init+0x485/0x790 net/sched/act_connmark.c:127 tcf_action_init_1+0x93e/0xbf0 net/sched/act_api.c:870 tcf_action_init+0x26e/0x3b0 net/sched/act_api.c:933 tcf_action_add+0xd9/0x360 net/sched/act_api.c:1314 tc_ctl_action+0x327/0x407 net/sched/act_api.c:1369 rtnetlink_rcv_msg+0x453/0xb80 net/core/rtnetlink.c:4778 netlink_rcv_skb+0x160/0x440 net/netlink/af_netlink.c:2455 netlink_unicast_kernel net/netlink/af_netlink.c:1318 [inline] netlink_unicast+0x4d5/0x690 net/netlink/af_netlink.c:1344 netlink_sendmsg+0x6bb/0xc40 net/netlink/af_netlink.c:1909 sock_sendmsg_nosec net/socket.c:622 [inline] sock_sendmsg+0xc3/0x120 net/socket.c:632 ___sys_sendmsg+0x7bb/0x8e0 net/socket.c:2115 __sys_sendmsg net/socket.c:2153 [inline] __do_sys_sendmsg net/socket.c:2162 [inline] __se_sys_sendmsg net/socket.c:2160 [inline] __x64_sys_sendmsg+0x132/0x220 net/socket.c:2160 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 5918: __cache_free mm/slab.c:3503 [inline] kfree+0xcc/0x210 mm/slab.c:3822 __tcf_action_put+0xf4/0x130 net/sched/act_api.c:112 __tcf_idr_release net/sched/act_api.c:142 [inline] __tcf_idr_release net/sched/act_api.c:122 [inline] tcf_del_walker net/sched/act_api.c:266 [inline] tcf_generic_walker+0x62c/0xa20 net/sched/act_api.c:292 tca_action_flush net/sched/act_api.c:1142 [inline] tca_action_gd+0x8db/0x1550 net/sched/act_api.c:1248 tc_ctl_action+0x26d/0x407 net/sched/act_api.c:1377 rtnetlink_rcv_msg+0x453/0xb80 net/core/rtnetlink.c:4778 netlink_rcv_skb+0x160/0x440 net/netlink/af_netlink.c:2455 netlink_unicast_kernel net/netlink/af_netlink.c:1318 [inline] netlink_unicast+0x4d5/0x690 net/netlink/af_netlink.c:1344 netlink_sendmsg+0x6bb/0xc40 net/netlink/af_netlink.c:1909 sock_sendmsg_nosec net/socket.c:622 [inline] sock_sendmsg+0xc3/0x120 net/socket.c:632 ___sys_sendmsg+0x7bb/0x8e0 net/socket.c:2115 __sys_sendmsg net/socket.c:2153 [inline] __do_sys_sendmsg net/socket.c:2162 [inline] __se_sys_sendmsg net/socket.c:2160 [inline] __x64_sys_sendmsg+0x132/0x220 net/socket.c:2160 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 ffff8880982cc700 which belongs to the cache kmalloc-256 of size 256 The buggy address is located 0 bytes inside of 256-byte region [ffff8880982cc700, ffff8880982cc800) The buggy address belongs to the page: page:ffffea000260b300 count:1 mapcount:0 mapping:ffff88813bff07c0 index:0xffff8880982ccd40 flags: 0xfff00000000100(slab) raw: 00fff00000000100 ffffea000292b488 ffffea0002446088 ffff88813bff07c0 raw: ffff8880982ccd40 ffff8880982cc0c0 0000000100000002 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8880982cc600: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8880982cc680: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc >ffff8880982cc700: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff8880982cc780: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8880982cc800: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb ==================================================================