================================================================== BUG: KASAN: slab-use-after-free in __raw_spin_lock_irq include/linux/spinlock_api_smp.h:142 [inline] BUG: KASAN: slab-use-after-free in _raw_spin_lock_irq+0x58/0x70 kernel/locking/spinlock.c:174 Read of size 1 at addr ffff0000d7b83018 by task syz.3.397/6905 CPU: 0 UID: 0 PID: 6905 Comm: syz.3.397 Tainted: G L syzkaller #0 PREEMPT Tainted: [L]=SOFTLOCKUP Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/07/2026 Call trace: show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:499 (C) __dump_stack+0x30/0x40 lib/dump_stack.c:94 dump_stack_lvl+0xd8/0x12c lib/dump_stack.c:120 print_address_description+0xb0/0x238 mm/kasan/report.c:378 print_report+0x68/0x84 mm/kasan/report.c:482 kasan_report+0x8c/0xc4 mm/kasan/report.c:595 __kasan_check_byte+0x3c/0x54 mm/kasan/common.c:574 kasan_check_byte include/linux/kasan.h:402 [inline] lock_acquire+0xa4/0x364 kernel/locking/lockdep.c:5842 __raw_spin_lock_irq include/linux/spinlock_api_smp.h:142 [inline] _raw_spin_lock_irq+0x58/0x70 kernel/locking/spinlock.c:174 spin_lock_irq include/linux/spinlock.h:372 [inline] gadget_dev_open+0x50/0x1c4 drivers/usb/gadget/legacy/inode.c:1919 do_dentry_open+0x5c4/0xfc0 fs/open.c:947 vfs_open+0x44/0x2dc fs/open.c:1052 do_open fs/namei.c:4700 [inline] path_openat+0x21fc/0x2a60 fs/namei.c:4863 do_file_open+0x1c8/0x2e8 fs/namei.c:4892 do_sys_openat2+0x114/0x1e8 fs/open.c:1368 do_sys_open+0xb0/0xe0 fs/open.c:1374 __do_sys_openat fs/open.c:1390 [inline] __se_sys_openat fs/open.c:1385 [inline] __arm64_sys_openat+0xa8/0xc4 fs/open.c:1385 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x244 arch/arm64/kernel/syscall.c:49 el0_svc_common+0xec/0x23c arch/arm64/kernel/syscall.c:121 do_el0_svc+0x4c/0x5c arch/arm64/kernel/syscall.c:140 el0_svc+0x64/0x260 arch/arm64/kernel/entry-common.c:758 el0t_64_sync_handler+0x44/0x104 arch/arm64/kernel/entry-common.c:777 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:590 Allocated by task 6894: kasan_save_stack mm/kasan/common.c:57 [inline] kasan_save_track+0x40/0x78 mm/kasan/common.c:78 kasan_save_alloc_info+0x40/0x50 mm/kasan/generic.c:570 poison_kmalloc_redzone mm/kasan/common.c:398 [inline] __kasan_kmalloc+0x9c/0xb4 mm/kasan/common.c:415 kasan_kmalloc include/linux/kasan.h:263 [inline] __do_kmalloc_node mm/slub.c:5334 [inline] __kmalloc_node_track_caller_noprof+0x434/0x6d4 mm/slub.c:5471 kmalloc_reserve+0x118/0x214 net/core/skbuff.c:637 __alloc_skb+0x230/0x610 net/core/skbuff.c:715 alloc_skb include/linux/skbuff.h:1384 [inline] netlink_alloc_large_skb+0xd4/0x114 net/netlink/af_netlink.c:1185 netlink_sendmsg+0x4c4/0x948 net/netlink/af_netlink.c:1875 sock_sendmsg_nosec net/socket.c:775 [inline] __sock_sendmsg+0xc8/0x17c net/socket.c:790 ____sys_sendmsg+0x3d0/0x6c8 net/socket.c:2684 ___sys_sendmsg+0x198/0x224 net/socket.c:2738 __sys_sendmsg+0x158/0x204 net/socket.c:2770 __do_sys_sendmsg net/socket.c:2775 [inline] __se_sys_sendmsg net/socket.c:2773 [inline] __arm64_sys_sendmsg+0x88/0x9c net/socket.c:2773 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x244 arch/arm64/kernel/syscall.c:49 el0_svc_common+0xec/0x23c arch/arm64/kernel/syscall.c:121 do_el0_svc+0x4c/0x5c arch/arm64/kernel/syscall.c:140 el0_svc+0x64/0x260 arch/arm64/kernel/entry-common.c:758 el0t_64_sync_handler+0x44/0x104 arch/arm64/kernel/entry-common.c:777 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:590 Freed by task 6894: kasan_save_stack mm/kasan/common.c:57 [inline] kasan_save_track+0x40/0x78 mm/kasan/common.c:78 kasan_save_free_info+0x54/0x6c mm/kasan/generic.c:584 poison_slab_object mm/kasan/common.c:253 [inline] __kasan_slab_free+0x74/0xa4 mm/kasan/common.c:285 kasan_slab_free include/linux/kasan.h:235 [inline] slab_free_hook mm/slub.c:2677 [inline] slab_free mm/slub.c:6377 [inline] kfree+0x188/0x690 mm/slub.c:6692 skb_kfree_head net/core/skbuff.c:1083 [inline] skb_free_head+0x70/0x120 net/core/skbuff.c:1095 skb_release_data+0x6f4/0x8b4 net/core/skbuff.c:1122 skb_release_all+0x60/0x7c net/core/skbuff.c:1197 __kfree_skb net/core/skbuff.c:1211 [inline] consume_skb+0x80/0xf4 net/core/skbuff.c:1445 netlink_unicast_kernel net/netlink/af_netlink.c:1320 [inline] netlink_unicast+0x608/0x7f8 net/netlink/af_netlink.c:1345 netlink_sendmsg+0x648/0x948 net/netlink/af_netlink.c:1900 sock_sendmsg_nosec net/socket.c:775 [inline] __sock_sendmsg+0xc8/0x17c net/socket.c:790 ____sys_sendmsg+0x3d0/0x6c8 net/socket.c:2684 ___sys_sendmsg+0x198/0x224 net/socket.c:2738 __sys_sendmsg+0x158/0x204 net/socket.c:2770 __do_sys_sendmsg net/socket.c:2775 [inline] __se_sys_sendmsg net/socket.c:2773 [inline] __arm64_sys_sendmsg+0x88/0x9c net/socket.c:2773 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x244 arch/arm64/kernel/syscall.c:49 el0_svc_common+0xec/0x23c arch/arm64/kernel/syscall.c:121 do_el0_svc+0x4c/0x5c arch/arm64/kernel/syscall.c:140 el0_svc+0x64/0x260 arch/arm64/kernel/entry-common.c:758 el0t_64_sync_handler+0x44/0x104 arch/arm64/kernel/entry-common.c:777 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:590 The buggy address belongs to the object at ffff0000d7b83000 which belongs to the cache kmalloc-1k of size 1024 The buggy address is located 24 bytes inside of freed 1024-byte region [ffff0000d7b83000, ffff0000d7b83400) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff0000d7b86000 pfn:0x117b80 head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0x5ffc00000000240(workingset|head|node=0|zone=2|lastcpupid=0x7ff) page_type: f5(slab) raw: 05ffc00000000240 ffff0000c0001dc0 fffffdffc347e210 fffffdffc3ccde10 raw: ffff0000d7b86000 000000080010000f 00000000f5000000 0000000000000000 head: 05ffc00000000240 ffff0000c0001dc0 fffffdffc347e210 fffffdffc3ccde10 head: ffff0000d7b86000 000000080010000f 00000000f5000000 0000000000000000 head: 05ffc00000000003 fffffdffc35ee001 00000000ffffffff 00000000ffffffff head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff0000d7b82f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff0000d7b82f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff0000d7b83000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff0000d7b83080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff0000d7b83100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ================================================================== ------------[ cut here ]------------ UBSAN: array-index-out-of-bounds in kernel/locking/qspinlock.h:68:9 index 12666 is out of range for type 'unsigned long[8]' CPU: 0 UID: 0 PID: 6905 Comm: syz.3.397 Tainted: G B L syzkaller #0 PREEMPT Tainted: [B]=BAD_PAGE, [L]=SOFTLOCKUP Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/07/2026 Call trace: show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:499 (C) __dump_stack+0x30/0x40 lib/dump_stack.c:94 dump_stack_lvl+0xd8/0x12c lib/dump_stack.c:120 dump_stack+0x1c/0x28 lib/dump_stack.c:129 ubsan_epilogue+0x14/0x48 lib/ubsan.c:233 __ubsan_handle_out_of_bounds+0xd0/0xf8 lib/ubsan.c:455 decode_tail kernel/locking/qspinlock.h:68 [inline] queued_spin_lock_slowpath+0x834/0xd04 kernel/locking/qspinlock.c:285 queued_spin_lock include/asm-generic/qspinlock.h:114 [inline] do_raw_spin_lock+0x21c/0x2d0 kernel/locking/spinlock_debug.c:116 __raw_spin_lock_irq include/linux/spinlock_api_smp.h:143 [inline] _raw_spin_lock_irq+0x60/0x70 kernel/locking/spinlock.c:174 spin_lock_irq include/linux/spinlock.h:372 [inline] gadget_dev_open+0x50/0x1c4 drivers/usb/gadget/legacy/inode.c:1919 do_dentry_open+0x5c4/0xfc0 fs/open.c:947 vfs_open+0x44/0x2dc fs/open.c:1052 do_open fs/namei.c:4700 [inline] path_openat+0x21fc/0x2a60 fs/namei.c:4863 do_file_open+0x1c8/0x2e8 fs/namei.c:4892 do_sys_openat2+0x114/0x1e8 fs/open.c:1368 do_sys_open+0xb0/0xe0 fs/open.c:1374 __do_sys_openat fs/open.c:1390 [inline] __se_sys_openat fs/open.c:1385 [inline] __arm64_sys_openat+0xa8/0xc4 fs/open.c:1385 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x244 arch/arm64/kernel/syscall.c:49 el0_svc_common+0xec/0x23c arch/arm64/kernel/syscall.c:121 do_el0_svc+0x4c/0x5c arch/arm64/kernel/syscall.c:140 el0_svc+0x64/0x260 arch/arm64/kernel/entry-common.c:758 el0t_64_sync_handler+0x44/0x104 arch/arm64/kernel/entry-common.c:777 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:590 ---[ end trace ]--- Unable to handle kernel paging request at virtual address ffff800088af8710 KASAN: probably user-memory-access in range [0x00000004457c3880-0x00000004457c3887] Mem abort info: ESR = 0x0000000096000047 EC = 0x25: DABT (current EL), IL = 32 bits SET = 0, FnV = 0 EA = 0, S1PTW = 0 FSC = 0x07: level 3 translation fault Data abort info: ISV = 0, ISS = 0x00000047, ISS2 = 0x00000000 CM = 0, WnR = 1, TnD = 0, TagAccess = 0 GCS = 0, Overlay = 0, DirtyBit = 0 swapper pgtable: 4k pages, 48-bit VAs, pgdp=000000021ae49000 [ffff800088af8710] pgd=0000000000000000, p4d=1000000221141003, pud=1000000221142003, pmd=1000000221146003, pte=0000000000000000 Internal error: Oops: 0000000096000047 [#1] SMP Modules linked in: CPU: 0 UID: 0 PID: 6905 Comm: syz.3.397 Tainted: G B L syzkaller #0 PREEMPT Tainted: [B]=BAD_PAGE, [L]=SOFTLOCKUP Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/07/2026 pstate: 834000c5 (Nzcv daIF +PAN -UAO +TCO +DIT -SSBS BTYPE=--) pc : queued_spin_lock_slowpath+0x544/0xd04 kernel/locking/qspinlock.c:288 lr : decode_tail kernel/locking/qspinlock.h:68 [inline] lr : queued_spin_lock_slowpath+0x834/0xd04 kernel/locking/qspinlock.c:285 sp : ffff800099fe7560 x29: ffff800099fe7600 x28: ffff800088af8710 x27: 1fffe00019e993aa x26: 1fffe0001af70600 x25: ffff0001a5dd0708 x24: dfff800000000000 x23: ffff7000133fceb0 x22: ffff0001a5dd0700 x21: 1fffe00034bba0e0 x20: ffff0000cf4c9d50 x19: ffff0000d7b83000 x18: 0000000000000000 x17: 363a682e6b636f6c x16: 0000000000000001 x15: 0000000000000000 x14: 0000000000000000 x13: 0000000000000001 x12: 0000000000000004 x11: ffff700011467668 x10: ffff800088af8700 x9 : ffff800088af8710 x8 : 0000000000000000 x7 : 0000000000000001 x6 : ffff80008048c60c x5 : 0000000000000000 x4 : 0000000000000000 x3 : ffff8000802f5c74 x2 : 0000000000000002 x1 : 0000000000000004 x0 : ffff0001a5dd0708 Call trace: queued_spin_lock_slowpath+0x544/0xd04 kernel/locking/qspinlock.c:291 (P) queued_spin_lock include/asm-generic/qspinlock.h:114 [inline] do_raw_spin_lock+0x21c/0x2d0 kernel/locking/spinlock_debug.c:116 __raw_spin_lock_irq include/linux/spinlock_api_smp.h:143 [inline] _raw_spin_lock_irq+0x60/0x70 kernel/locking/spinlock.c:174 spin_lock_irq include/linux/spinlock.h:372 [inline] gadget_dev_open+0x50/0x1c4 drivers/usb/gadget/legacy/inode.c:1919 do_dentry_open+0x5c4/0xfc0 fs/open.c:947 vfs_open+0x44/0x2dc fs/open.c:1052 do_open fs/namei.c:4700 [inline] path_openat+0x21fc/0x2a60 fs/namei.c:4863 do_file_open+0x1c8/0x2e8 fs/namei.c:4892 do_sys_openat2+0x114/0x1e8 fs/open.c:1368 do_sys_open+0xb0/0xe0 fs/open.c:1374 __do_sys_openat fs/open.c:1390 [inline] __se_sys_openat fs/open.c:1385 [inline] __arm64_sys_openat+0xa8/0xc4 fs/open.c:1385 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x244 arch/arm64/kernel/syscall.c:49 el0_svc_common+0xec/0x23c arch/arm64/kernel/syscall.c:121 do_el0_svc+0x4c/0x5c arch/arm64/kernel/syscall.c:140 el0_svc+0x64/0x260 arch/arm64/kernel/entry-common.c:758 el0t_64_sync_handler+0x44/0x104 arch/arm64/kernel/entry-common.c:777 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:590 Code: aa1c03e0 96899931 910022c0 52800081 (f9000396) ---[ end trace 0000000000000000 ]--- ---------------- Code disassembly (best guess): 0: aa1c03e0 mov x0, x28 4: 96899931 bl 0xfffffffffa2664c8 8: 910022c0 add x0, x22, #0x8 c: 52800081 mov w1, #0x4 // #4 * 10: f9000396 str x22, [x28] <-- trapping instruction