Date
July 8, 2025, 11:09 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 19.019047] ================================================================== [ 19.019124] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_left+0x2ec/0x320 [ 19.019240] Read of size 1 at addr fff00000c58c2a9f by task kunit_try_catch/138 [ 19.019309] [ 19.019351] CPU: 1 UID: 0 PID: 138 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT [ 19.019430] Tainted: [B]=BAD_PAGE, [N]=TEST [ 19.019466] Hardware name: linux,dummy-virt (DT) [ 19.019497] Call trace: [ 19.019519] show_stack+0x20/0x38 (C) [ 19.019566] dump_stack_lvl+0x8c/0xd0 [ 19.019612] print_report+0x118/0x608 [ 19.019656] kasan_report+0xdc/0x128 [ 19.019700] __asan_report_load1_noabort+0x20/0x30 [ 19.019750] kmalloc_oob_left+0x2ec/0x320 [ 19.019794] kunit_try_run_case+0x170/0x3f0 [ 19.019840] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 19.019891] kthread+0x328/0x630 [ 19.019932] ret_from_fork+0x10/0x20 [ 19.019980] [ 19.019998] Allocated by task 24: [ 19.020027] kasan_save_stack+0x3c/0x68 [ 19.020066] kasan_save_track+0x20/0x40 [ 19.020103] kasan_save_alloc_info+0x40/0x58 [ 19.020142] __kasan_kmalloc+0xd4/0xd8 [ 19.020187] __kmalloc_node_track_caller_noprof+0x194/0x4b8 [ 19.020460] kvasprintf+0xe0/0x180 [ 19.020824] __kthread_create_on_node+0x16c/0x350 [ 19.020934] kthread_create_on_node+0xe4/0x130 [ 19.021197] create_worker+0x380/0x6b8 [ 19.021238] worker_thread+0x808/0xf38 [ 19.021273] kthread+0x328/0x630 [ 19.021337] ret_from_fork+0x10/0x20 [ 19.021676] [ 19.021736] The buggy address belongs to the object at fff00000c58c2a80 [ 19.021736] which belongs to the cache kmalloc-16 of size 16 [ 19.021971] The buggy address is located 19 bytes to the right of [ 19.021971] allocated 12-byte region [fff00000c58c2a80, fff00000c58c2a8c) [ 19.022241] [ 19.022319] The buggy address belongs to the physical page: [ 19.022444] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1058c2 [ 19.022537] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 19.022585] page_type: f5(slab) [ 19.022624] raw: 0bfffe0000000000 fff00000c0001640 dead000000000122 0000000000000000 [ 19.022999] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 19.023147] page dumped because: kasan: bad access detected [ 19.023211] [ 19.023228] Memory state around the buggy address: [ 19.023262] fff00000c58c2980: fa fb fc fc 00 02 fc fc fa fb fc fc fa fb fc fc [ 19.023321] fff00000c58c2a00: fa fb fc fc fa fb fc fc fa fb fc fc fa fb fc fc [ 19.023655] >fff00000c58c2a80: 00 04 fc fc 00 07 fc fc fc fc fc fc fc fc fc fc [ 19.023809] ^ [ 19.023947] fff00000c58c2b00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.024027] fff00000c58c2b80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.024072] ==================================================================
[ 11.826069] ================================================================== [ 11.827042] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_left+0x361/0x3c0 [ 11.827969] Read of size 1 at addr ffff88810233af1f by task kunit_try_catch/156 [ 11.828451] [ 11.828862] CPU: 0 UID: 0 PID: 156 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT(voluntary) [ 11.828969] Tainted: [B]=BAD_PAGE, [N]=TEST [ 11.828982] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 11.829003] Call Trace: [ 11.829017] <TASK> [ 11.829034] dump_stack_lvl+0x73/0xb0 [ 11.829069] print_report+0xd1/0x650 [ 11.829091] ? __virt_addr_valid+0x1db/0x2d0 [ 11.829115] ? kmalloc_oob_left+0x361/0x3c0 [ 11.829136] ? kasan_complete_mode_report_info+0x2a/0x200 [ 11.829158] ? kmalloc_oob_left+0x361/0x3c0 [ 11.829179] kasan_report+0x141/0x180 [ 11.829200] ? kmalloc_oob_left+0x361/0x3c0 [ 11.829226] __asan_report_load1_noabort+0x18/0x20 [ 11.829250] kmalloc_oob_left+0x361/0x3c0 [ 11.829271] ? __pfx_kmalloc_oob_left+0x10/0x10 [ 11.829293] ? __schedule+0x10cc/0x2b60 [ 11.829314] ? __pfx_read_tsc+0x10/0x10 [ 11.829335] ? ktime_get_ts64+0x86/0x230 [ 11.829359] kunit_try_run_case+0x1a5/0x480 [ 11.829384] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.829406] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 11.829429] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 11.829452] ? __kthread_parkme+0x82/0x180 [ 11.829472] ? preempt_count_sub+0x50/0x80 [ 11.829515] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.829539] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.829563] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 11.829588] kthread+0x337/0x6f0 [ 11.829617] ? trace_preempt_on+0x20/0xc0 [ 11.829639] ? __pfx_kthread+0x10/0x10 [ 11.829659] ? _raw_spin_unlock_irq+0x47/0x80 [ 11.829681] ? calculate_sigpending+0x7b/0xa0 [ 11.829710] ? __pfx_kthread+0x10/0x10 [ 11.829731] ret_from_fork+0x116/0x1d0 [ 11.829749] ? __pfx_kthread+0x10/0x10 [ 11.829769] ret_from_fork_asm+0x1a/0x30 [ 11.829801] </TASK> [ 11.829812] [ 11.844631] Allocated by task 1: [ 11.844766] kasan_save_stack+0x45/0x70 [ 11.845181] kasan_save_track+0x18/0x40 [ 11.845529] kasan_save_alloc_info+0x3b/0x50 [ 11.846039] __kasan_kmalloc+0xb7/0xc0 [ 11.846415] __kmalloc_node_track_caller_noprof+0x1cb/0x500 [ 11.847060] kvasprintf+0xc5/0x150 [ 11.847421] __kthread_create_on_node+0x18b/0x3a0 [ 11.847879] kthread_create_on_node+0xab/0xe0 [ 11.848322] create_worker+0x3e5/0x7b0 [ 11.848742] alloc_unbound_pwq+0x8ea/0xdb0 [ 11.849234] apply_wqattrs_prepare+0x332/0xd20 [ 11.849741] apply_workqueue_attrs_locked+0x4d/0xa0 [ 11.850039] alloc_workqueue+0xcc7/0x1ad0 [ 11.850176] latency_fsnotify_init+0x1b/0x50 [ 11.850320] do_one_initcall+0xd8/0x370 [ 11.851007] kernel_init_freeable+0x420/0x6f0 [ 11.851510] kernel_init+0x23/0x1e0 [ 11.851955] ret_from_fork+0x116/0x1d0 [ 11.852095] ret_from_fork_asm+0x1a/0x30 [ 11.852665] [ 11.853007] The buggy address belongs to the object at ffff88810233af00 [ 11.853007] which belongs to the cache kmalloc-16 of size 16 [ 11.854269] The buggy address is located 18 bytes to the right of [ 11.854269] allocated 13-byte region [ffff88810233af00, ffff88810233af0d) [ 11.855116] [ 11.855336] The buggy address belongs to the physical page: [ 11.856133] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10233a [ 11.857054] flags: 0x200000000000000(node=0|zone=2) [ 11.857232] page_type: f5(slab) [ 11.857357] raw: 0200000000000000 ffff888100041640 dead000000000122 0000000000000000 [ 11.857868] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 11.858718] page dumped because: kasan: bad access detected [ 11.859356] [ 11.859519] Memory state around the buggy address: [ 11.860060] ffff88810233ae00: 00 05 fc fc 00 02 fc fc 00 02 fc fc 00 02 fc fc [ 11.860273] ffff88810233ae80: 00 02 fc fc fa fb fc fc fa fb fc fc fa fb fc fc [ 11.860479] >ffff88810233af00: 00 05 fc fc 00 07 fc fc fc fc fc fc fc fc fc fc [ 11.860905] ^ [ 11.861069] ffff88810233af80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.861819] ffff88810233b000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 11.862237] ==================================================================