netlink: 'syz.1.2304': attribute type 1 has an invalid length. netlink: 244 bytes leftover after parsing attributes in process `syz.1.2304'. ================================================================== BUG: KASAN: double-free in kfree_rcu_sheaf mm/slab_common.c:1693 [inline] BUG: KASAN: double-free in kvfree_call_rcu+0x9c/0x440 mm/slab_common.c:2056 Free of addr ffff88807dd0ec00 by task syz.1.2304/18588 CPU: 0 UID: 0 PID: 18588 Comm: syz.1.2304 Tainted: G L syzkaller #0 PREEMPT(full) Tainted: [L]=SOFTLOCKUP Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026 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+0xbc/0xe0 mm/kasan/common.c:-1 kasan_slab_pre_free include/linux/kasan.h:202 [inline] __kfree_rcu_sheaf+0x126/0x690 mm/slub.c:6299 kfree_rcu_sheaf mm/slab_common.c:1693 [inline] kvfree_call_rcu+0x9c/0x440 mm/slab_common.c:2056 hwsim_update_pib+0x276/0x400 drivers/net/ieee802154/mac802154_hwsim.c:119 hwsim_hw_channel+0x178/0x2b0 drivers/net/ieee802154/mac802154_hwsim.c:131 drv_set_channel+0xfe/0x280 net/mac802154/driver-ops.h:240 mac802154_scan_cleanup_locked+0x116/0x280 net/mac802154/scan.c:72 mac802154_abort_scan_locked+0xa3/0xe0 net/mac802154/scan.c:92 mac802154_slave_close+0xc9/0x2e0 net/mac802154/iface.c:306 __dev_close_many+0x361/0x6e0 net/core/dev.c:1836 netif_close_many+0x249/0x660 net/core/dev.c:1862 unregister_netdevice_many_notify+0x7aa/0x1d80 net/core/dev.c:12713 unregister_netdevice_many net/core/dev.c:12815 [inline] unregister_netdevice_queue+0x2f5/0x340 net/core/dev.c:12611 unregister_netdevice include/linux/netdevice.h:3511 [inline] ieee802154_remove_interfaces+0x162/0x1a0 net/mac802154/iface.c:714 ieee802154_unregister_hw+0x62/0xe0 net/mac802154/main.c:284 hwsim_del+0x49c/0x500 drivers/net/ieee802154/mac802154_hwsim.c:1016 hwsim_del_radio_nl+0x110/0x150 drivers/net/ieee802154/mac802154_hwsim.c:361 genl_family_rcv_msg_doit+0x233/0x340 net/netlink/genetlink.c:1114 genl_family_rcv_msg net/netlink/genetlink.c:1194 [inline] genl_rcv_msg+0x614/0x7a0 net/netlink/genetlink.c:1209 netlink_rcv_skb+0x226/0x4a0 net/netlink/af_netlink.c:2585 genl_rcv+0x28/0x40 net/netlink/genetlink.c:1218 netlink_unicast_kernel net/netlink/af_netlink.c:1336 [inline] netlink_unicast+0x8ef/0xa80 net/netlink/af_netlink.c:1362 netlink_sendmsg+0x7f0/0xb20 net/netlink/af_netlink.c:1921 sock_sendmsg_nosec+0x14e/0x190 net/socket.c:800 __sock_sendmsg net/socket.c:818 [inline] ____sys_sendmsg+0x54e/0x850 net/socket.c:2715 ___sys_sendmsg+0x2a6/0x360 net/socket.c:2769 __sys_sendmsg net/socket.c:2801 [inline] __do_sys_sendmsg net/socket.c:2806 [inline] __se_sys_sendmsg net/socket.c:2804 [inline] __x64_sys_sendmsg+0x1b1/0x290 net/socket.c:2804 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x16a/0x530 arch/x86/entry/syscall_64.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fefe95a8f19 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fefea3d3028 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00007fefe9825fa0 RCX: 00007fefe95a8f19 RDX: 0000000000000000 RSI: 0000200000000080 RDI: 0000000000000004 RBP: 00007fefe9637f6d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fefe9826038 R14: 00007fefe9825fa0 R15: 00007ffe36eba9c8 Allocated by task 193: kasan_save_stack mm/kasan/common.c:57 [inline] kasan_save_track+0x3f/0x90 mm/kasan/common.c:79 poison_kmalloc_redzone mm/kasan/common.c:412 [inline] __kasan_kmalloc+0x93/0xb0 mm/kasan/common.c:429 kasan_kmalloc include/linux/kasan.h:267 [inline] __kmalloc_cache_noprof+0x31c/0x600 mm/slub.c:5678 _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+0x4db/0x1000 net/mac802154/driver-ops.h:167 mac802154_scan_worker+0x8e6/0xe60 net/mac802154/scan.c:248 process_one_work kernel/workqueue.c:3511 [inline] process_scheduled_works+0xc3d/0x1630 kernel/workqueue.c:3594 worker_thread+0xa47/0xfb0 kernel/workqueue.c:3675 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 Last potentially related work creation: kasan_save_stack+0x3e/0x60 mm/kasan/common.c:57 __kasan_record_aux_stack+0xc5/0xe0 mm/kasan/generic.c:561 __kfree_rcu_sheaf+0x136/0x690 mm/slub.c:6304 kfree_rcu_sheaf mm/slab_common.c:1693 [inline] kvfree_call_rcu+0x9c/0x440 mm/slab_common.c:2056 hwsim_del+0x476/0x500 drivers/net/ieee802154/mac802154_hwsim.c:1014 hwsim_del_radio_nl+0x110/0x150 drivers/net/ieee802154/mac802154_hwsim.c:361 genl_family_rcv_msg_doit+0x233/0x340 net/netlink/genetlink.c:1114 genl_family_rcv_msg net/netlink/genetlink.c:1194 [inline] genl_rcv_msg+0x614/0x7a0 net/netlink/genetlink.c:1209 netlink_rcv_skb+0x226/0x4a0 net/netlink/af_netlink.c:2585 genl_rcv+0x28/0x40 net/netlink/genetlink.c:1218 netlink_unicast_kernel net/netlink/af_netlink.c:1336 [inline] netlink_unicast+0x8ef/0xa80 net/netlink/af_netlink.c:1362 netlink_sendmsg+0x7f0/0xb20 net/netlink/af_netlink.c:1921 sock_sendmsg_nosec+0x14e/0x190 net/socket.c:800 __sock_sendmsg net/socket.c:818 [inline] ____sys_sendmsg+0x54e/0x850 net/socket.c:2715 ___sys_sendmsg+0x2a6/0x360 net/socket.c:2769 __sys_sendmsg net/socket.c:2801 [inline] __do_sys_sendmsg net/socket.c:2806 [inline] __se_sys_sendmsg net/socket.c:2804 [inline] __x64_sys_sendmsg+0x1b1/0x290 net/socket.c:2804 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x16a/0x530 arch/x86/entry/syscall_64.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f The buggy address belongs to the object at ffff88807dd0ec00 which belongs to the cache kmalloc-64 of size 64 The buggy address is located 0 bytes inside of 56-byte region [ffff88807dd0ec00, ffff88807dd0ec38) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x7dd0e flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 00fff00000000000 ffff88813ff278c0 dead000000000100 dead000000000122 raw: 0000000000000000 0000000000200020 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 0xd2c40(GFP_NOFS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 5285, tgid 5285 (rcS), ts 43137170252 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0x1f9/0x250 mm/page_alloc.c:1880 prep_new_page+0x22/0xb0 mm/page_alloc.c:1888 get_page_from_freelist+0x22a1/0x22e0 mm/page_alloc.c:3970 __alloc_frozen_pages_noprof+0x211/0x450 mm/page_alloc.c:5512 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:7524 refill_sheaf mm/slub.c:2917 [inline] __pcs_replace_empty_main+0x2c8/0x6c0 mm/slub.c:4809 alloc_from_pcs mm/slub.c:4885 [inline] slab_alloc_node mm/slub.c:5019 [inline] __do_kmalloc_node mm/slub.c:5528 [inline] __kmalloc_noprof+0x476/0x710 mm/slub.c:5554 _kmalloc_noprof include/linux/slab.h:995 [inline] _kzalloc_noprof include/linux/slab.h:1312 [inline] ima_alloc_init_template+0xa4/0x700 security/integrity/ima/ima_api.c:51 ima_store_measurement+0x1d4/0x690 security/integrity/ima/ima_api.c:383 process_measurement+0x15ac/0x1c10 security/integrity/ima/ima_main.c:439 ima_bprm_check+0x11c/0x180 security/integrity/ima/ima_main.c:608 security_bprm_check+0xcd/0x240 security/security.c:834 search_binary_handler fs/exec.c:1767 [inline] exec_binprm fs/exec.c:1809 [inline] bprm_execve+0x888/0x1590 fs/exec.c:1865 do_execveat_common+0x99f/0xbd0 fs/exec.c:1963 __do_sys_execve fs/exec.c:2036 [inline] __se_sys_execve fs/exec.c:2030 [inline] __x64_sys_execve+0x97/0xc0 fs/exec.c:2030 page last free pid 5285 tgid 5285 ts 43135991511 stack trace: reset_page_owner include/linux/page_owner.h:26 [inline] __free_pages_prepare mm/page_alloc.c:1422 [inline] __free_frozen_pages+0xd1a/0xe10 mm/page_alloc.c:2978 __slab_free+0x269/0x2c0 mm/slub.c:5924 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x99/0x100 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x148/0x160 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x22/0x80 mm/kasan/common.c:364 kasan_slab_alloc include/linux/kasan.h:257 [inline] slab_post_alloc_hook mm/slub.c:4718 [inline] slab_alloc_node mm/slub.c:5031 [inline] __kmalloc_cache_noprof+0x29a/0x600 mm/slub.c:5674 _kmalloc_noprof include/linux/slab.h:991 [inline] tomoyo_print_header security/tomoyo/audit.c:156 [inline] tomoyo_init_log+0x187/0x1f60 security/tomoyo/audit.c:253 tomoyo_supervisor+0x35f/0x1550 security/tomoyo/common.c:2232 tomoyo_audit_env_log security/tomoyo/environ.c:37 [inline] tomoyo_env_perm+0x151/0x1f0 security/tomoyo/environ.c:64 tomoyo_environ security/tomoyo/domain.c:673 [inline] tomoyo_find_next_domain+0x1332/0x1a90 security/tomoyo/domain.c:889 tomoyo_bprm_check_security+0x11b/0x180 security/tomoyo/tomoyo.c:102 security_bprm_check+0x85/0x240 security/security.c:834 search_binary_handler fs/exec.c:1767 [inline] exec_binprm fs/exec.c:1809 [inline] bprm_execve+0x888/0x1590 fs/exec.c:1865 do_execveat_common+0x99f/0xbd0 fs/exec.c:1963 __do_sys_execve fs/exec.c:2036 [inline] __se_sys_execve fs/exec.c:2030 [inline] __x64_sys_execve+0x97/0xc0 fs/exec.c:2030 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x16a/0x530 arch/x86/entry/syscall_64.c:89 Memory state around the buggy address: ffff88807dd0eb00: 00 00 00 00 00 00 fc fc fc fc fc fc fc fc fc fc ffff88807dd0eb80: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc >ffff88807dd0ec00: 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc fc ^ ffff88807dd0ec80: 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc fc ffff88807dd0ed00: 00 00 00 00 00 00 fc fc fc fc fc fc fc fc fc fc ==================================================================