================================================================== BUG: KASAN: use-after-free in dump_schedule+0x68e/0x6f0 net/sched/sch_taprio.c:1836 Read of size 8 at addr ffff888026358e40 by task syz-executor.5/6158 CPU: 0 PID: 6158 Comm: syz-executor.5 Not tainted 5.13.0-rc6-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:79 [inline] dump_stack+0xa5/0xe6 lib/dump_stack.c:120 print_address_description.constprop.0.cold+0x5b/0x2f8 mm/kasan/report.c:233 __kasan_report mm/kasan/report.c:419 [inline] kasan_report.cold+0x7c/0xd8 mm/kasan/report.c:436 dump_schedule+0x68e/0x6f0 net/sched/sch_taprio.c:1836 taprio_dump+0x44c/0xb60 net/sched/sch_taprio.c:1905 tc_fill_qdisc+0x575/0x1050 net/sched/sch_api.c:917 qdisc_notify.isra.0+0x229/0x2a0 net/sched/sch_api.c:984 tc_modify_qdisc+0xcea/0x16e0 net/sched/sch_api.c:1636 rtnetlink_rcv_msg+0x32f/0x860 net/core/rtnetlink.c:5566 netlink_rcv_skb+0x118/0x370 net/netlink/af_netlink.c:2504 netlink_unicast_kernel net/netlink/af_netlink.c:1314 [inline] netlink_unicast+0x42e/0x700 net/netlink/af_netlink.c:1340 netlink_sendmsg+0x70e/0xbe0 net/netlink/af_netlink.c:1929 sock_sendmsg_nosec net/socket.c:654 [inline] sock_sendmsg+0xab/0xe0 net/socket.c:674 ____sys_sendmsg+0x5bf/0x7a0 net/socket.c:2337 ___sys_sendmsg+0xd3/0x150 net/socket.c:2391 __sys_sendmsg+0xb2/0x140 net/socket.c:2420 do_syscall_64+0x3a/0xb0 arch/x86/entry/common.c:47 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x4665d9 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:00007fc1bb610188 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 000000000056bf80 RCX: 00000000004665d9 RDX: 0000000000000000 RSI: 00000000200000c0 RDI: 0000000000000004 RBP: 00000000004bfcb9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056bf80 R13: 00007fff1ecdf29f R14: 00007fc1bb610300 R15: 0000000000022000 Allocated by task 6137: kasan_save_stack+0x1b/0x40 mm/kasan/common.c:38 kasan_set_track mm/kasan/common.c:46 [inline] set_alloc_info mm/kasan/common.c:428 [inline] ____kasan_kmalloc mm/kasan/common.c:507 [inline] ____kasan_kmalloc mm/kasan/common.c:466 [inline] __kasan_kmalloc+0x9b/0xd0 mm/kasan/common.c:516 kmalloc include/linux/slab.h:556 [inline] kzalloc include/linux/slab.h:686 [inline] taprio_change+0x51b/0x3b30 net/sched/sch_taprio.c:1511 qdisc_change net/sched/sch_api.c:1332 [inline] tc_modify_qdisc+0xb32/0x16e0 net/sched/sch_api.c:1634 rtnetlink_rcv_msg+0x32f/0x860 net/core/rtnetlink.c:5566 netlink_rcv_skb+0x118/0x370 net/netlink/af_netlink.c:2504 netlink_unicast_kernel net/netlink/af_netlink.c:1314 [inline] netlink_unicast+0x42e/0x700 net/netlink/af_netlink.c:1340 netlink_sendmsg+0x70e/0xbe0 net/netlink/af_netlink.c:1929 sock_sendmsg_nosec net/socket.c:654 [inline] sock_sendmsg+0xab/0xe0 net/socket.c:674 ____sys_sendmsg+0x5bf/0x7a0 net/socket.c:2337 ___sys_sendmsg+0xd3/0x150 net/socket.c:2391 __sys_sendmsg+0xb2/0x140 net/socket.c:2420 do_syscall_64+0x3a/0xb0 arch/x86/entry/common.c:47 entry_SYSCALL_64_after_hwframe+0x44/0xae Freed by task 13: kasan_save_stack+0x1b/0x40 mm/kasan/common.c:38 kasan_set_track+0x1c/0x30 mm/kasan/common.c:46 kasan_set_free_info+0x20/0x30 mm/kasan/generic.c:357 ____kasan_slab_free mm/kasan/common.c:360 [inline] ____kasan_slab_free mm/kasan/common.c:325 [inline] __kasan_slab_free+0xfb/0x130 mm/kasan/common.c:368 kasan_slab_free include/linux/kasan.h:212 [inline] slab_free_hook mm/slub.c:1583 [inline] slab_free_freelist_hook+0xdf/0x240 mm/slub.c:1608 slab_free mm/slub.c:3168 [inline] kfree+0xe5/0x7f0 mm/slub.c:4212 rcu_do_batch kernel/rcu/tree.c:2558 [inline] rcu_core+0x7ab/0x13b0 kernel/rcu/tree.c:2793 __do_softirq+0x29b/0x9f6 kernel/softirq.c:559 Last potentially related work creation: kasan_save_stack+0x1b/0x40 mm/kasan/common.c:38 kasan_record_aux_stack+0xe5/0x110 mm/kasan/generic.c:345 __call_rcu kernel/rcu/tree.c:3038 [inline] call_rcu+0xb1/0x750 kernel/rcu/tree.c:3113 taprio_change+0x2587/0x3b30 net/sched/sch_taprio.c:1629 qdisc_change net/sched/sch_api.c:1332 [inline] tc_modify_qdisc+0xb32/0x16e0 net/sched/sch_api.c:1634 rtnetlink_rcv_msg+0x32f/0x860 net/core/rtnetlink.c:5566 netlink_rcv_skb+0x118/0x370 net/netlink/af_netlink.c:2504 netlink_unicast_kernel net/netlink/af_netlink.c:1314 [inline] netlink_unicast+0x42e/0x700 net/netlink/af_netlink.c:1340 netlink_sendmsg+0x70e/0xbe0 net/netlink/af_netlink.c:1929 sock_sendmsg_nosec net/socket.c:654 [inline] sock_sendmsg+0xab/0xe0 net/socket.c:674 ____sys_sendmsg+0x5bf/0x7a0 net/socket.c:2337 ___sys_sendmsg+0xd3/0x150 net/socket.c:2391 __sys_sendmsg+0xb2/0x140 net/socket.c:2420 do_syscall_64+0x3a/0xb0 arch/x86/entry/common.c:47 entry_SYSCALL_64_after_hwframe+0x44/0xae Second to last potentially related work creation: kasan_save_stack+0x1b/0x40 mm/kasan/common.c:38 kasan_record_aux_stack+0xe5/0x110 mm/kasan/generic.c:345 kvfree_call_rcu+0x74/0x8c0 kernel/rcu/tree.c:3597 cfg80211_update_known_bss+0x785/0xa90 net/wireless/scan.c:1651 cfg80211_bss_update+0xd9/0x1ea0 net/wireless/scan.c:1698 cfg80211_inform_single_bss_frame_data+0x60d/0xcc0 net/wireless/scan.c:2404 cfg80211_inform_bss_frame_data+0x94/0xa80 net/wireless/scan.c:2437 ieee80211_bss_info_update+0x29b/0x890 net/mac80211/scan.c:190 ieee80211_rx_bss_info net/mac80211/ibss.c:1126 [inline] ieee80211_rx_mgmt_probe_beacon+0x7b7/0x15e0 net/mac80211/ibss.c:1615 ieee80211_ibss_rx_queued_mgmt+0xb85/0x14c0 net/mac80211/ibss.c:1642 ieee80211_iface_work+0x565/0x7b0 net/mac80211/iface.c:1439 process_one_work+0x84c/0x13b0 kernel/workqueue.c:2276 worker_thread+0x598/0xf80 kernel/workqueue.c:2422 kthread+0x36f/0x450 kernel/kthread.c:313 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294 The buggy address belongs to the object at ffff888026358e00 which belongs to the cache kmalloc-96 of size 96 The buggy address is located 64 bytes inside of 96-byte region [ffff888026358e00, ffff888026358e60) The buggy address belongs to the page: page:ffffea000098d600 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x26358 flags: 0xfff00000000200(slab|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000200 ffffea0001064700 0000001700000017 ffff88800f841780 raw: 0000000000000000 0000000000200020 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x12a20(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY), pid 5, ts 61226423416, free_ts 61216020760 prep_new_page mm/page_alloc.c:2358 [inline] get_page_from_freelist+0x1033/0x2b60 mm/page_alloc.c:3994 __alloc_pages+0x1b2/0x500 mm/page_alloc.c:5200 alloc_slab_page mm/slub.c:1646 [inline] allocate_slab+0x2c5/0x4c0 mm/slub.c:1786 new_slab mm/slub.c:1849 [inline] new_slab_objects mm/slub.c:2595 [inline] ___slab_alloc+0x4a1/0x810 mm/slub.c:2758 __slab_alloc.constprop.0+0xa7/0xf0 mm/slub.c:2798 slab_alloc_node mm/slub.c:2880 [inline] slab_alloc mm/slub.c:2922 [inline] kmem_cache_alloc_trace+0x2a3/0x2c0 mm/slub.c:2939 kmalloc include/linux/slab.h:556 [inline] __hw_addr_create_ex+0x56/0x2e0 net/core/dev_addr_lists.c:30 __dev_mc_add net/core/dev_addr_lists.c:775 [inline] dev_mc_add+0xb1/0xf0 net/core/dev_addr_lists.c:792 igmp6_group_added+0x3c6/0x490 net/ipv6/mcast.c:675 __ipv6_dev_mc_inc+0x703/0xbc0 net/ipv6/mcast.c:944 addrconf_join_solict net/ipv6/addrconf.c:2170 [inline] addrconf_join_solict net/ipv6/addrconf.c:2162 [inline] addrconf_dad_begin net/ipv6/addrconf.c:3937 [inline] addrconf_dad_work+0xaae/0x11a0 net/ipv6/addrconf.c:4064 process_one_work+0x84c/0x13b0 kernel/workqueue.c:2276 worker_thread+0x598/0xf80 kernel/workqueue.c:2422 kthread+0x36f/0x450 kernel/kthread.c:313 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1298 [inline] free_pcp_prepare+0x223/0x300 mm/page_alloc.c:1342 free_unref_page_prepare mm/page_alloc.c:3250 [inline] free_unref_page_list+0x19b/0x7c0 mm/page_alloc.c:3318 release_pages+0xce6/0x1650 mm/swap.c:972 tlb_batch_pages_flush mm/mmu_gather.c:49 [inline] tlb_flush_mmu_free mm/mmu_gather.c:242 [inline] tlb_flush_mmu mm/mmu_gather.c:249 [inline] tlb_finish_mmu+0x127/0x790 mm/mmu_gather.c:340 exit_mmap+0x256/0x4b0 mm/mmap.c:3210 __mmput+0xeb/0x3e0 kernel/fork.c:1096 exit_mm kernel/exit.c:502 [inline] do_exit+0x98e/0x2500 kernel/exit.c:813 do_group_exit+0xe7/0x290 kernel/exit.c:923 __do_sys_exit_group kernel/exit.c:934 [inline] __se_sys_exit_group kernel/exit.c:932 [inline] __x64_sys_exit_group+0x35/0x40 kernel/exit.c:932 do_syscall_64+0x3a/0xb0 arch/x86/entry/common.c:47 entry_SYSCALL_64_after_hwframe+0x44/0xae Memory state around the buggy address: ffff888026358d00: fa fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc ffff888026358d80: 00 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc >ffff888026358e00: fa fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc ^ ffff888026358e80: fa fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc ffff888026358f00: fa fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc ==================================================================