==================================================================
BUG: KASAN: double-free in rcu_free_sheaf+0x31/0x200 mm/slub.c:6182
Free of addr ffff8880310a9080 by task kworker/1:3/5365
CPU: 1 UID: 0 PID: 5365 Comm: kworker/1:3 Not tainted syzkaller #0 PREEMPT(full)
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/15/2026
Workqueue: events team_mcast_rejoin_work
Call Trace:
dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120
print_address_description+0x55/0x1e0 mm/kasan/report.c:378
print_report+0x58/0x70 mm/kasan/report.c:482
kasan_report_invalid_free+0xea/0x110 mm/kasan/report.c:557
check_slab_allocation mm/kasan/common.c:-1 [inline]
__kasan_slab_pre_free+0x104/0x120 mm/kasan/common.c:272
kasan_slab_pre_free include/linux/kasan.h:199 [inline]
slab_free_hook mm/slub.c:2725 [inline]
__rcu_free_sheaf_prepare+0x10a/0x2a0 mm/slub.c:3041
rcu_free_sheaf+0x31/0x200 mm/slub.c:6182
rcu_do_batch kernel/rcu/tree.c:2650 [inline]
rcu_core+0x92e/0x1230 kernel/rcu/tree.c:2919
handle_softirqs+0x265/0x8d0 kernel/softirq.c:669
__do_softirq kernel/softirq.c:703 [inline]
invoke_softirq kernel/softirq.c:542 [inline]
__irq_exit_rcu+0xc6/0x220 kernel/softirq.c:786
irq_exit_rcu+0x9/0x30 kernel/softirq.c:809
instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1062 [inline]
sysvec_apic_timer_interrupt+0xa6/0xc0 arch/x86/kernel/apic/apic.c:1062
asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:674
RIP: 0010:__sanitizer_cov_trace_pc+0x75/0x80 kernel/kcov.c:241
Code: 18 17 00 00 83 fa 02 75 21 48 8b 91 20 17 00 00 48 8b 32 48 8d 7e 01 8b 89 1c 17 00 00 48 39 cf 73 08 48 89 3a 48 89 44 f2 08 16 03 3d 0a cc 0f 1f 44 00 00 90 90 90 90 90 90 90 90 90 90 90
RSP: 0018:ffffc900035b7858 EFLAGS: 00000293
RAX: ffffffff8b2fa9c6 RBX: ffff888027104e68 RCX: ffff888031803e80
RDX: 0000000000000000 RSI: ffffffff916b5120 RDI: 0000000000000017
RBP: ffffc900035b7980 R08: ffff888031803e80 R09: 000000000000000f
R10: 0000000000000023 R11: 0000000000000000 R12: 0000000000000017
R13: dffffc0000000000 R14: ffff888027104e20 R15: 0000000000001336
vlan_device_event+0x1266/0x1580 net/8021q/vlan.c:466
notifier_call_chain+0x1a5/0x3d0 kernel/notifier.c:86
call_netdevice_notifiers_extack net/core/dev.c:2351 [inline]
call_netdevice_notifiers+0x90/0xd0 net/core/dev.c:2365
team_mcast_rejoin_work+0xc8/0x200 drivers/net/team/team_core.c:710
process_one_work kernel/workqueue.c:3495 [inline]
process_scheduled_works+0xc3d/0x1630 kernel/workqueue.c:3578
worker_thread+0xa47/0xfb0 kernel/workqueue.c:3659
kthread+0x38b/0x480 kernel/kthread.c:436
ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
Allocated by task 5621:
kasan_save_stack mm/kasan/common.c:57 [inline]
kasan_save_track+0x3e/0x80 mm/kasan/common.c:78
poison_kmalloc_redzone mm/kasan/common.c:409 [inline]
__kasan_kmalloc+0x93/0xb0 mm/kasan/common.c:426
kasan_kmalloc include/linux/kasan.h:263 [inline]
__kmalloc_cache_noprof+0x31c/0x600 mm/slub.c:5680
_kmalloc_noprof include/linux/slab.h:991 [inline]
_kzalloc_noprof include/linux/slab.h:1312 [inline]
hwsim_update_pib+0x7e/0x400 drivers/net/ieee802154/mac802154_hwsim.c:103
hwsim_set_promiscuous_mode+0x196/0x2e0 drivers/net/ieee802154/mac802154_hwsim.c:326
drv_set_promiscuous_mode+0x154/0x2d0 net/mac802154/driver-ops.h:127
drv_start net/mac802154/driver-ops.h:195 [inline]
mac802154_slave_open net/mac802154/iface.c:196 [inline]
mac802154_wpan_open+0x194b/0x29d0 net/mac802154/iface.c:295
__dev_open+0x46f/0x850 net/core/dev.c:1762
__dev_change_flags+0x329/0x820 net/core/dev.c:10010
netif_change_flags+0x7c/0x1b0 net/core/dev.c:10075
do_setlink+0xdd6/0x47a0 net/core/rtnetlink.c:3294
rtnl_changelink net/core/rtnetlink.c:3942 [inline]
__rtnl_newlink net/core/rtnetlink.c:4113 [inline]
rtnl_newlink+0x15b0/0x1c30 net/core/rtnetlink.c:4252
rtnetlink_rcv_msg+0x802/0xc00 net/core/rtnetlink.c:7169
netlink_rcv_skb+0x226/0x4a0 net/netlink/af_netlink.c:2584
netlink_unicast_kernel net/netlink/af_netlink.c:1335 [inline]
netlink_unicast+0x8ef/0xa80 net/netlink/af_netlink.c:1361
netlink_sendmsg+0x7f0/0xb20 net/netlink/af_netlink.c:1920
sock_sendmsg_nosec+0x14e/0x190 net/socket.c:800
__sock_sendmsg net/socket.c:818 [inline]
__sys_sendto+0x408/0x5a0 net/socket.c:2283
__do_sys_sendto net/socket.c:2290 [inline]
__se_sys_sendto net/socket.c:2286 [inline]
__x64_sys_sendto+0xde/0x100 net/socket.c:2286
do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
entry_SYSCALL_64_after_hwframe+0x77/0x7f
Freed by task 15:
kasan_save_stack mm/kasan/common.c:57 [inline]
kasan_save_track+0x3e/0x80 mm/kasan/common.c:78
kasan_save_free_info+0x40/0x50 mm/kasan/generic.c:584
poison_slab_object mm/kasan/common.c:264 [inline]
__kasan_slab_free+0x5c/0x80 mm/kasan/common.c:296
kasan_slab_free include/linux/kasan.h:235 [inline]
slab_free_hook mm/slub.c:2780 [inline]
__rcu_free_sheaf_prepare+0x12d/0x2a0 mm/slub.c:3041
rcu_free_sheaf+0x31/0x200 mm/slub.c:6182
rcu_do_batch kernel/rcu/tree.c:2650 [inline]
rcu_core+0x92e/0x1230 kernel/rcu/tree.c:2919
handle_softirqs+0x265/0x8d0 kernel/softirq.c:669
run_ksoftirqd+0x36/0x60 kernel/softirq.c:1133
smpboot_thread_fn+0x5f8/0xb30 kernel/smpboot.c:162
kthread+0x38b/0x480 kernel/kthread.c:436
ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
The buggy address belongs to the object at ffff8880310a9080
which belongs to the cache kmalloc-64 of size 64
The buggy address is located 0 bytes inside of
64-byte region [ffff8880310a9080, ffff8880310a90c0)
The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff8880310a9580 pfn:0x310a9
flags: 0xfff00000000200(workingset|node=0|zone=1|lastcpupid=0x7ff)
page_type: f5(slab)
raw: 00fff00000000200 ffff88813ff228c0 ffffea0000c50850 ffffea000075c690
raw: ffff8880310a9580 000000000020001e 00000000f5000000 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 0xd2cc0(GFP_KERNEL|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 1, tgid 1 (swapper/0), ts 17205526929
set_page_owner include/linux/page_owner.h:33 [inline]
post_alloc_hook+0x1f9/0x250 mm/page_alloc.c:1856
prep_new_page mm/page_alloc.c:1864 [inline]
get_page_from_freelist+0x220f/0x2280 mm/page_alloc.c:3935
__alloc_frozen_pages_noprof+0x1fe/0x410 mm/page_alloc.c:5444
alloc_slab_page mm/slub.c:3384 [inline]
allocate_slab+0x7d/0x5e0 mm/slub.c:3499
new_slab mm/slub.c:3550 [inline]
refill_objects+0x2d5/0x350 mm/slub.c:7539
refill_sheaf mm/slub.c:2917 [inline]
__pcs_replace_empty_main+0x2c8/0x6c0 mm/slub.c:4811
alloc_from_pcs mm/slub.c:4887 [inline]
slab_alloc_node mm/slub.c:5021 [inline]
__do_kmalloc_node mm/slub.c:5530 [inline]
__kmalloc_noprof+0x476/0x710 mm/slub.c:5556
_kmalloc_noprof include/linux/slab.h:995 [inline]
kobj_map+0x76/0x5b0 drivers/base/map.c:44
cdev_add+0x8c/0x160 fs/char_dev.c:490
__video_register_device+0x3af6/0x4b80 drivers/media/v4l2-core/v4l2-dev.c:1062
video_register_device include/media/v4l2-dev.h:390 [inline]
vivid_create_devnodes+0x166b/0x2c60 drivers/media/test-drivers/vivid/vivid-core.c:1614
vivid_create_instance drivers/media/test-drivers/vivid/vivid-core.c:2043 [inline]
vivid_probe+0x5038/0x70c0 drivers/media/test-drivers/vivid/vivid-core.c:2096
platform_probe+0xf9/0x190 drivers/base/platform.c:1508
call_driver_probe drivers/base/dd.c:-1 [inline]
really_probe+0x254/0xae0 drivers/base/dd.c:707
__driver_probe_device+0x1e8/0x360 drivers/base/dd.c:869
driver_probe_device+0x4f/0x240 drivers/base/dd.c:899
page_owner free stack trace missing
Memory state around the buggy address:
ffff8880310a8f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ffff8880310a9000: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc
>ffff8880310a9080: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
^
ffff8880310a9100: 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc fc
ffff8880310a9180: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc
==================================================================
----------------
Code disassembly (best guess):
0: 18 17 sbb %dl,(%rdi)
2: 00 00 add %al,(%rax)
4: 83 fa 02 cmp $0x2,%edx
7: 75 21 jne 0x2a
9: 48 8b 91 20 17 00 00 mov 0x1720(%rcx),%rdx
10: 48 8b 32 mov (%rdx),%rsi
13: 48 8d 7e 01 lea 0x1(%rsi),%rdi
17: 8b 89 1c 17 00 00 mov 0x171c(%rcx),%ecx
1d: 48 39 cf cmp %rcx,%rdi
20: 73 08 jae 0x2a
22: 48 89 3a mov %rdi,(%rdx)
25: 48 89 44 f2 08 mov %rax,0x8(%rdx,%rsi,8)
* 2a: e9 16 03 3d 0a jmp 0xa3d0345 <-- trapping instruction
2f: cc int3
30: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1)
35: 90 nop
36: 90 nop
37: 90 nop
38: 90 nop
39: 90 nop
3a: 90 nop
3b: 90 nop
3c: 90 nop
3d: 90 nop
3e: 90 nop
3f: 90 nop