================================================================== BUG: KASAN: slab-use-after-free in instrument_atomic_write include/linux/instrumented.h:97 [inline] BUG: KASAN: slab-use-after-free in clear_bit include/asm-generic/bitops/instrumented-atomic.h:41 [inline] BUG: KASAN: slab-use-after-free in mm_drop_cid kernel/sched/sched.h:3801 [inline] BUG: KASAN: slab-use-after-free in mm_cid_schedout kernel/sched/sched.h:3984 [inline] BUG: KASAN: slab-use-after-free in mm_cid_switch_to kernel/sched/sched.h:3991 [inline] BUG: KASAN: slab-use-after-free in context_switch kernel/sched/core.c:5284 [inline] BUG: KASAN: slab-use-after-free in __schedule+0x3eb9/0x60e0 kernel/sched/core.c:6907 Write of size 8 at addr ffff88803fad8b90 by task syz.0.6016/28935 CPU: 0 UID: 0 PID: 28935 Comm: syz.0.6016 Tainted: G L syzkaller #0 PREEMPT(full) Tainted: [L]=SOFTLOCKUP Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x100/0x190 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0x156/0x4c9 mm/kasan/report.c:482 kasan_report+0xdf/0x1e0 mm/kasan/report.c:595 check_region_inline mm/kasan/generic.c:186 [inline] kasan_check_range+0x10f/0x1e0 mm/kasan/generic.c:200 instrument_atomic_write include/linux/instrumented.h:97 [inline] clear_bit include/asm-generic/bitops/instrumented-atomic.h:41 [inline] mm_drop_cid kernel/sched/sched.h:3801 [inline] mm_cid_schedout kernel/sched/sched.h:3984 [inline] mm_cid_switch_to kernel/sched/sched.h:3991 [inline] context_switch kernel/sched/core.c:5284 [inline] __schedule+0x3eb9/0x60e0 kernel/sched/core.c:6907 preempt_schedule_notrace+0x5f/0xd0 kernel/sched/core.c:7184 preempt_schedule_notrace_thunk+0x16/0x30 arch/x86/entry/thunk.S:13 rcu_is_watching+0x8e/0xc0 kernel/rcu/tree.c:753 rcu_read_lock include/linux/rcupdate.h:851 [inline] class_rcu_constructor include/linux/rcupdate.h:1193 [inline] is_module_text_address+0x19e/0x220 kernel/module/main.c:3856 kernel_text_address kernel/extable.c:119 [inline] kernel_text_address+0x81/0x100 kernel/extable.c:94 __kernel_text_address+0xd/0x30 kernel/extable.c:79 unwind_get_return_address+0x59/0xa0 arch/x86/kernel/unwind_orc.c:385 arch_stack_walk+0xa6/0xf0 arch/x86/kernel/stacktrace.c:26 stack_trace_save+0x8e/0xc0 kernel/stacktrace.c:122 kasan_save_stack+0x30/0x50 mm/kasan/common.c:57 kasan_save_track+0x14/0x30 mm/kasan/common.c:78 kasan_save_free_info+0x3b/0x70 mm/kasan/generic.c:584 poison_slab_object mm/kasan/common.c:253 [inline] __kasan_slab_free+0x5f/0x80 mm/kasan/common.c:285 kasan_slab_free include/linux/kasan.h:235 [inline] slab_free_hook mm/slub.c:2670 [inline] slab_free mm/slub.c:6082 [inline] kfree+0x1f6/0x6b0 mm/slub.c:6399 create_worker_cont+0x35e/0x420 io_uring/io-wq.c:874 task_work_run+0x150/0x240 kernel/task_work.c:233 get_signal+0x1bd/0x21e0 kernel/signal.c:2807 arch_do_signal_or_restart+0x91/0x7a0 arch/x86/kernel/signal.c:337 __exit_to_user_mode_loop kernel/entry/common.c:64 [inline] exit_to_user_mode_loop+0x86/0x4a0 kernel/entry/common.c:98 __exit_to_user_mode_prepare include/linux/irq-entry-common.h:226 [inline] syscall_exit_to_user_mode_prepare include/linux/irq-entry-common.h:256 [inline] syscall_exit_to_user_mode include/linux/entry-common.h:325 [inline] do_syscall_64+0x67c/0xf80 arch/x86/entry/syscall_64.c:100 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7feda51bb510 Code: 83 c0 16 83 e0 f7 74 12 50 48 8d 3d 4a 27 07 00 e8 e5 65 f9 ff 0f 1f 44 00 00 c3 66 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 <83> ff 21 74 0b c3 66 2e 0f 1f 84 00 00 00 00 00 55 53 48 89 f3 48 RSP: 002b:00007feda611d338 EFLAGS: 00000246 RAX: 0000000000000000 RBX: 00007feda5415fa0 RCX: 00007feda519bf79 RDX: 00007feda611d340 RSI: 00007feda611d470 RDI: 0000000000000021 RBP: 00007feda52327e0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007feda5416038 R14: 00007feda5415fa0 R15: 00007ffea990f808 Allocated by task 28784: kasan_save_stack+0x30/0x50 mm/kasan/common.c:57 kasan_save_track+0x14/0x30 mm/kasan/common.c:78 unpoison_slab_object mm/kasan/common.c:340 [inline] __kasan_slab_alloc+0x89/0x90 mm/kasan/common.c:366 kasan_slab_alloc include/linux/kasan.h:253 [inline] slab_post_alloc_hook mm/slub.c:4459 [inline] slab_alloc_node mm/slub.c:4788 [inline] kmem_cache_alloc_node_noprof+0x25a/0x6f0 mm/slub.c:4840 __alloc_skb+0x140/0x710 net/core/skbuff.c:702 alloc_skb include/linux/skbuff.h:1383 [inline] nlmsg_new include/net/netlink.h:1055 [inline] inet6_rt_notify+0x1d2/0x4c0 net/ipv6/route.c:6355 fib6_del_route net/ipv6/ip6_fib.c:2057 [inline] fib6_del+0xf7a/0x1790 net/ipv6/ip6_fib.c:2092 fib6_clean_node+0x424/0x5d0 net/ipv6/ip6_fib.c:2254 fib6_walk_continue+0x451/0x8d0 net/ipv6/ip6_fib.c:2176 fib6_walk+0x182/0x370 net/ipv6/ip6_fib.c:2224 fib6_clean_tree+0xdc/0x120 net/ipv6/ip6_fib.c:2304 __fib6_clean_all+0x107/0x2d0 net/ipv6/ip6_fib.c:2320 rt6_sync_down_dev net/ipv6/route.c:5013 [inline] rt6_disable_ip+0x2a6/0x980 net/ipv6/route.c:5018 addrconf_ifdown.isra.0+0x11d/0x1b70 net/ipv6/addrconf.c:3858 addrconf_notify+0x458/0x19c0 net/ipv6/addrconf.c:3781 notifier_call_chain+0x99/0x420 kernel/notifier.c:85 call_netdevice_notifiers_info+0xbe/0x110 net/core/dev.c:2242 call_netdevice_notifiers_extack net/core/dev.c:2280 [inline] call_netdevice_notifiers net/core/dev.c:2294 [inline] __dev_notify_flags+0x1f7/0x2e0 net/core/dev.c:9787 netif_change_flags+0x108/0x160 net/core/dev.c:9814 do_setlink.isra.0+0x1abb/0x3e50 net/core/rtnetlink.c:3158 rtnl_group_changelink net/core/rtnetlink.c:3790 [inline] __rtnl_newlink net/core/rtnetlink.c:3944 [inline] rtnl_newlink+0x1b79/0x2380 net/core/rtnetlink.c:4072 rtnetlink_rcv_msg+0x95e/0xe90 net/core/rtnetlink.c:6958 netlink_rcv_skb+0x159/0x420 net/netlink/af_netlink.c:2550 netlink_unicast_kernel net/netlink/af_netlink.c:1318 [inline] netlink_unicast+0x5aa/0x870 net/netlink/af_netlink.c:1344 netlink_sendmsg+0x8b0/0xda0 net/netlink/af_netlink.c:1894 sock_sendmsg_nosec net/socket.c:727 [inline] __sock_sendmsg net/socket.c:742 [inline] ____sys_sendmsg+0xa54/0xc30 net/socket.c:2592 ___sys_sendmsg+0x190/0x1e0 net/socket.c:2646 __sys_sendmsg+0x170/0x220 net/socket.c:2678 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x106/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Freed by task 28784: kasan_save_stack+0x30/0x50 mm/kasan/common.c:57 kasan_save_track+0x14/0x30 mm/kasan/common.c:78 kasan_save_free_info+0x3b/0x70 mm/kasan/generic.c:584 poison_slab_object mm/kasan/common.c:253 [inline] __kasan_slab_free+0x5f/0x80 mm/kasan/common.c:285 kasan_slab_free include/linux/kasan.h:235 [inline] slab_free_hook mm/slub.c:2670 [inline] slab_free mm/slub.c:6082 [inline] kmem_cache_free+0x124/0x6a0 mm/slub.c:6212 kfree_skbmem+0x19a/0x210 net/core/skbuff.c:1151 __kfree_skb net/core/skbuff.c:1218 [inline] consume_skb net/core/skbuff.c:1450 [inline] consume_skb+0xd1/0x110 net/core/skbuff.c:1444 netlink_broadcast_filtered+0x3cc/0xf50 net/netlink/af_netlink.c:1535 nlmsg_multicast_filtered include/net/netlink.h:1165 [inline] nlmsg_multicast include/net/netlink.h:1184 [inline] nlmsg_notify+0xb1/0x290 net/netlink/af_netlink.c:2593 inet6_rt_notify+0x2d8/0x4c0 net/ipv6/route.c:6373 fib6_del_route net/ipv6/ip6_fib.c:2057 [inline] fib6_del+0xf7a/0x1790 net/ipv6/ip6_fib.c:2092 fib6_clean_node+0x424/0x5d0 net/ipv6/ip6_fib.c:2254 fib6_walk_continue+0x451/0x8d0 net/ipv6/ip6_fib.c:2176 fib6_walk+0x182/0x370 net/ipv6/ip6_fib.c:2224 fib6_clean_tree+0xdc/0x120 net/ipv6/ip6_fib.c:2304 __fib6_clean_all+0x107/0x2d0 net/ipv6/ip6_fib.c:2320 rt6_sync_down_dev net/ipv6/route.c:5013 [inline] rt6_disable_ip+0x2a6/0x980 net/ipv6/route.c:5018 addrconf_ifdown.isra.0+0x11d/0x1b70 net/ipv6/addrconf.c:3858 addrconf_notify+0x458/0x19c0 net/ipv6/addrconf.c:3781 notifier_call_chain+0x99/0x420 kernel/notifier.c:85 call_netdevice_notifiers_info+0xbe/0x110 net/core/dev.c:2242 call_netdevice_notifiers_extack net/core/dev.c:2280 [inline] call_netdevice_notifiers net/core/dev.c:2294 [inline] __dev_notify_flags+0x1f7/0x2e0 net/core/dev.c:9787 netif_change_flags+0x108/0x160 net/core/dev.c:9814 do_setlink.isra.0+0x1abb/0x3e50 net/core/rtnetlink.c:3158 rtnl_group_changelink net/core/rtnetlink.c:3790 [inline] __rtnl_newlink net/core/rtnetlink.c:3944 [inline] rtnl_newlink+0x1b79/0x2380 net/core/rtnetlink.c:4072 rtnetlink_rcv_msg+0x95e/0xe90 net/core/rtnetlink.c:6958 netlink_rcv_skb+0x159/0x420 net/netlink/af_netlink.c:2550 netlink_unicast_kernel net/netlink/af_netlink.c:1318 [inline] netlink_unicast+0x5aa/0x870 net/netlink/af_netlink.c:1344 netlink_sendmsg+0x8b0/0xda0 net/netlink/af_netlink.c:1894 sock_sendmsg_nosec net/socket.c:727 [inline] __sock_sendmsg net/socket.c:742 [inline] ____sys_sendmsg+0xa54/0xc30 net/socket.c:2592 ___sys_sendmsg+0x190/0x1e0 net/socket.c:2646 __sys_sendmsg+0x170/0x220 net/socket.c:2678 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x106/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f The buggy address belongs to the object at ffff88803fad8b40 which belongs to the cache skbuff_head_cache of size 240 The buggy address is located 80 bytes inside of freed 240-byte region [ffff88803fad8b40, ffff88803fad8c30) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x3fad8 head: order:1 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0xfff00000000040(head|node=0|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 00fff00000000040 ffff88801bf1e140 dead000000000122 0000000000000000 raw: 0000000000000000 0000000000190019 00000000f5000000 0000000000000000 head: 00fff00000000040 ffff88801bf1e140 dead000000000122 0000000000000000 head: 0000000000000000 0000000000190019 00000000f5000000 0000000000000000 head: 00fff00000000001 ffffea0000feb601 00000000ffffffff 00000000ffffffff head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000002 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 1, migratetype Unmovable, gfp_mask 0x1d20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_HARDWALL), pid 28784, tgid 28780 (syz.4.5977), ts 542254790427, free_ts 541954399237 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x153/0x170 mm/page_alloc.c:1888 prep_new_page mm/page_alloc.c:1896 [inline] get_page_from_freelist+0x111d/0x3140 mm/page_alloc.c:3961 __alloc_frozen_pages_noprof+0x27c/0x2ba0 mm/page_alloc.c:5249 alloc_slab_page mm/slub.c:3238 [inline] allocate_slab mm/slub.c:3411 [inline] new_slab+0xa6/0x6e0 mm/slub.c:3469 refill_objects+0x26b/0x400 mm/slub.c:7091 refill_sheaf mm/slub.c:2787 [inline] alloc_full_sheaf mm/slub.c:2808 [inline] __pcs_replace_empty_main+0x19f/0x600 mm/slub.c:4546 alloc_from_pcs mm/slub.c:4639 [inline] slab_alloc_node mm/slub.c:4773 [inline] kmem_cache_alloc_node_noprof+0x569/0x6f0 mm/slub.c:4840 __alloc_skb+0x140/0x710 net/core/skbuff.c:702 alloc_skb include/linux/skbuff.h:1383 [inline] nlmsg_new include/net/netlink.h:1055 [inline] inet_ifmcaddr_notify+0xc7/0x1b0 net/ipv4/igmp.c:1481 __ip_mc_dec_group+0x41d/0x590 net/ipv4/igmp.c:1778 inetdev_event+0x142/0x17f0 net/ipv4/devinet.c:1641 notifier_call_chain+0x99/0x420 kernel/notifier.c:85 call_netdevice_notifiers_info+0xbe/0x110 net/core/dev.c:2242 call_netdevice_notifiers_extack net/core/dev.c:2280 [inline] call_netdevice_notifiers net/core/dev.c:2294 [inline] __dev_notify_flags+0x1f7/0x2e0 net/core/dev.c:9787 netif_change_flags+0x108/0x160 net/core/dev.c:9814 do_setlink.isra.0+0x1abb/0x3e50 net/core/rtnetlink.c:3158 page last free pid 33 tgid 33 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] __free_pages_prepare mm/page_alloc.c:1432 [inline] __free_frozen_pages+0x7ca/0x10a0 mm/page_alloc.c:2977 rcu_do_batch kernel/rcu/tree.c:2617 [inline] rcu_core+0x5a2/0x10d0 kernel/rcu/tree.c:2869 handle_softirqs+0x1eb/0x9e0 kernel/softirq.c:622 run_ksoftirqd kernel/softirq.c:1063 [inline] run_ksoftirqd+0x38/0x60 kernel/softirq.c:1055 smpboot_thread_fn+0x3d3/0xaa0 kernel/smpboot.c:160 kthread+0x370/0x450 kernel/kthread.c:467 ret_from_fork+0x754/0xd80 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Memory state around the buggy address: ffff88803fad8a80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fc fc ffff88803fad8b00: fc fc fc fc fc fc fc fc fa fb fb fb fb fb fb fb >ffff88803fad8b80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88803fad8c00: fb fb fb fb fb fb fc fc fc fc fc fc fc fc fc fc ffff88803fad8c80: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================