Bluetooth: hci3: command 0x0419 tx timeout wlan1: Created IBSS using preconfigured BSSID 50:50:50:50:50:50 wlan1: Creating new IBSS network, BSSID 50:50:50:50:50:50 IPv6: ADDRCONF(NETDEV_CHANGE): wlan1: link becomes ready ================================================================== BUG: KASAN: use-after-free in route4_destroy+0x535/0x6e0 net/sched/cls_route.c:298 Read of size 8 at addr ffff880096653b00 by task syz-executor.3/10158 CPU: 1 PID: 10158 Comm: syz-executor.3 Not tainted 4.18.0-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+0x15a/0x20d lib/dump_stack.c:113 print_address_description.cold.6+0x9/0x244 mm/kasan/report.c:256 kasan_report_error mm/kasan/report.c:354 [inline] kasan_report mm/kasan/report.c:412 [inline] kasan_report.cold.7+0x242/0x305 mm/kasan/report.c:396 __asan_report_load8_noabort+0x14/0x20 mm/kasan/report.c:433 route4_destroy+0x535/0x6e0 net/sched/cls_route.c:298 tcf_proto_destroy+0x59/0xf0 net/sched/cls_api.c:179 tcf_chain_flush+0x142/0x2b0 net/sched/cls_api.c:228 tcf_block_put_ext.part.19+0x1d9/0x600 net/sched/cls_api.c:685 tcf_block_put_ext net/sched/cls_api.c:669 [inline] tcf_block_put+0xa8/0xf0 net/sched/cls_api.c:707 drr_destroy_qdisc+0x42/0x1e0 net/sched/sch_drr.c:464 qdisc_destroy+0x126/0x5f0 net/sched/sch_generic.c:962 notify_and_destroy+0x34/0x40 net/sched/sch_api.c:917 qdisc_graft+0x86c/0xdf0 net/sched/sch_api.c:975 tc_modify_qdisc+0x965/0x18d7 net/sched/sch_api.c:1561 rtnetlink_rcv_msg+0x34f/0x950 net/core/rtnetlink.c:4665 netlink_rcv_skb+0x142/0x390 net/netlink/af_netlink.c:2455 rtnetlink_rcv+0x10/0x20 net/core/rtnetlink.c:4683 netlink_unicast_kernel net/netlink/af_netlink.c:1317 [inline] netlink_unicast+0x443/0x660 net/netlink/af_netlink.c:1343 netlink_sendmsg+0x667/0xc60 net/netlink/af_netlink.c:1908 sock_sendmsg_nosec net/socket.c:642 [inline] sock_sendmsg+0xac/0xf0 net/socket.c:652 ___sys_sendmsg+0x647/0x950 net/socket.c:2126 __sys_sendmsg+0xd9/0x180 net/socket.c:2164 __do_sys_sendmsg net/socket.c:2173 [inline] __se_sys_sendmsg net/socket.c:2171 [inline] __x64_sys_sendmsg+0x73/0xb0 net/socket.c:2171 do_syscall_64+0xda/0x540 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x4665f9 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:00007f978d88c188 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 000000000056bf80 RCX: 00000000004665f9 RDX: 0000000000000000 RSI: 0000000020000040 RDI: 0000000000000004 RBP: 00000000004bfcc4 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056bf80 R13: 00007ffd700b8b5f R14: 00007f978d88c300 R15: 0000000000022000 Allocated by task 10127: save_stack mm/kasan/kasan.c:448 [inline] set_track mm/kasan/kasan.c:460 [inline] kasan_kmalloc.part.1+0x62/0xf0 mm/kasan/kasan.c:553 kasan_kmalloc+0xaf/0xc0 mm/kasan/kasan.c:538 kmem_cache_alloc_trace+0x142/0x350 mm/slub.c:2735 kmalloc include/linux/slab.h:513 [inline] kzalloc include/linux/slab.h:707 [inline] route4_change+0x24a/0x1d60 net/sched/cls_route.c:495 tc_new_tfilter+0x561/0x1540 net/sched/cls_api.c:1185 rtnetlink_rcv_msg+0x34f/0x950 net/core/rtnetlink.c:4665 netlink_rcv_skb+0x142/0x390 net/netlink/af_netlink.c:2455 rtnetlink_rcv+0x10/0x20 net/core/rtnetlink.c:4683 netlink_unicast_kernel net/netlink/af_netlink.c:1317 [inline] netlink_unicast+0x443/0x660 net/netlink/af_netlink.c:1343 netlink_sendmsg+0x667/0xc60 net/netlink/af_netlink.c:1908 sock_sendmsg_nosec net/socket.c:642 [inline] sock_sendmsg+0xac/0xf0 net/socket.c:652 ___sys_sendmsg+0x647/0x950 net/socket.c:2126 __sys_sendmsg+0xd9/0x180 net/socket.c:2164 __do_sys_sendmsg net/socket.c:2173 [inline] __se_sys_sendmsg net/socket.c:2171 [inline] __x64_sys_sendmsg+0x73/0xb0 net/socket.c:2171 do_syscall_64+0xda/0x540 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 7: save_stack mm/kasan/kasan.c:448 [inline] set_track mm/kasan/kasan.c:460 [inline] __kasan_slab_free+0x167/0x240 mm/kasan/kasan.c:521 kasan_slab_free+0xe/0x10 mm/kasan/kasan.c:528 slab_free_hook mm/slub.c:1373 [inline] slab_free_freelist_hook mm/slub.c:1400 [inline] slab_free mm/slub.c:2955 [inline] kfree+0x130/0x3b0 mm/slub.c:3908 __route4_delete_filter+0x49/0x70 net/sched/cls_route.c:261 route4_delete_filter_work+0x16/0x20 net/sched/cls_route.c:270 process_one_work+0x7b9/0x1580 kernel/workqueue.c:2153 worker_thread+0x85/0xb60 kernel/workqueue.c:2296 kthread+0x316/0x3d0 kernel/kthread.c:246 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:412 The buggy address belongs to the object at ffff880096653b00 which belongs to the cache kmalloc-192 of size 192 The buggy address is located 0 bytes inside of 192-byte region [ffff880096653b00, ffff880096653bc0) The buggy address belongs to the page: page:ffffea00025994c0 count:1 mapcount:0 mapping:ffff8800b6003000 index:0x0 flags: 0xfff00000000100(slab) raw: 00fff00000000100 dead000000000100 dead000000000200 ffff8800b6003000 raw: 0000000000000000 0000000000100010 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page allocated via order 0, migratetype Unmovable, gfp_mask 0x6012c0(GFP_KERNEL|__GFP_NOWARN|__GFP_NORETRY) set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook mm/page_alloc.c:1906 [inline] prep_new_page mm/page_alloc.c:1914 [inline] get_page_from_freelist+0x2f35/0x46b0 mm/page_alloc.c:3345 __alloc_pages_nodemask+0x39e/0x2780 mm/page_alloc.c:4369 alloc_pages_current+0xd6/0x1b0 mm/mempolicy.c:2093 alloc_pages include/linux/gfp.h:492 [inline] alloc_slab_page mm/slub.c:1440 [inline] allocate_slab mm/slub.c:1585 [inline] new_slab+0x4a9/0x850 mm/slub.c:1656 new_slab_objects mm/slub.c:2419 [inline] ___slab_alloc+0x609/0x940 mm/slub.c:2571 __slab_alloc.isra.22+0x78/0xe0 mm/slub.c:2611 slab_alloc_node mm/slub.c:2674 [inline] slab_alloc mm/slub.c:2716 [inline] kmem_cache_alloc_trace+0x295/0x350 mm/slub.c:2733 kmalloc include/linux/slab.h:513 [inline] kzalloc include/linux/slab.h:707 [inline] kernfs_iattrs.isra.1+0x8f/0x340 fs/kernfs/inode.c:45 kernfs_xattr_get+0x57/0x90 fs/kernfs/inode.c:316 __vfs_getxattr+0xbe/0x120 fs/xattr.c:311 cap_inode_need_killpriv+0x3b/0x50 security/commoncap.c:307 security_inode_need_killpriv+0x3a/0x70 security/security.c:796 dentry_needs_remove_privs.part.13+0x19/0x40 fs/inode.c:1782 dentry_needs_remove_privs+0x66/0x79 fs/inode.c:1778 do_truncate+0xa6/0x1a0 fs/open.c:55 handle_truncate fs/namei.c:2989 [inline] do_last fs/namei.c:3408 [inline] path_openat+0x15c4/0x2290 fs/namei.c:3540 Memory state around the buggy address: ffff880096653a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff880096653a80: 00 00 00 00 00 00 fc fc fc fc fc fc fc fc fc fc >ffff880096653b00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff880096653b80: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ffff880096653c00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================