Date
July 17, 2025, 11:10 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 15.328345] ================================================================== [ 15.328416] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_16+0x3a0/0x3f8 [ 15.328472] Write of size 16 at addr fff00000c433ebc0 by task kunit_try_catch/167 [ 15.329071] [ 15.329197] CPU: 0 UID: 0 PID: 167 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT [ 15.329914] Tainted: [B]=BAD_PAGE, [N]=TEST [ 15.330127] Hardware name: linux,dummy-virt (DT) [ 15.330362] Call trace: [ 15.330537] show_stack+0x20/0x38 (C) [ 15.330598] dump_stack_lvl+0x8c/0xd0 [ 15.330887] print_report+0x118/0x5d0 [ 15.331135] kasan_report+0xdc/0x128 [ 15.331836] __asan_report_store16_noabort+0x20/0x30 [ 15.331938] kmalloc_oob_16+0x3a0/0x3f8 [ 15.332118] kunit_try_run_case+0x170/0x3f0 [ 15.332216] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 15.332366] kthread+0x328/0x630 [ 15.332442] ret_from_fork+0x10/0x20 [ 15.332620] [ 15.332658] Allocated by task 167: [ 15.332687] kasan_save_stack+0x3c/0x68 [ 15.333003] kasan_save_track+0x20/0x40 [ 15.333069] kasan_save_alloc_info+0x40/0x58 [ 15.333214] __kasan_kmalloc+0xd4/0xd8 [ 15.333284] __kmalloc_cache_noprof+0x16c/0x3c0 [ 15.333440] kmalloc_oob_16+0xb4/0x3f8 [ 15.333641] kunit_try_run_case+0x170/0x3f0 [ 15.333766] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 15.333868] kthread+0x328/0x630 [ 15.333995] ret_from_fork+0x10/0x20 [ 15.334032] [ 15.334107] The buggy address belongs to the object at fff00000c433ebc0 [ 15.334107] which belongs to the cache kmalloc-16 of size 16 [ 15.334302] The buggy address is located 0 bytes inside of [ 15.334302] allocated 13-byte region [fff00000c433ebc0, fff00000c433ebcd) [ 15.334371] [ 15.334391] The buggy address belongs to the physical page: [ 15.334729] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10433e [ 15.334793] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 15.334866] page_type: f5(slab) [ 15.334921] raw: 0bfffe0000000000 fff00000c0001640 dead000000000122 0000000000000000 [ 15.334971] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 15.335024] page dumped because: kasan: bad access detected [ 15.335055] [ 15.335072] Memory state around the buggy address: [ 15.335112] fff00000c433ea80: fa fb fc fc 00 05 fc fc fa fb fc fc fa fb fc fc [ 15.335164] fff00000c433eb00: 00 07 fc fc fa fb fc fc fa fb fc fc fa fb fc fc [ 15.335205] >fff00000c433eb80: 00 04 fc fc fa fb fc fc 00 05 fc fc 00 00 fc fc [ 15.335243] ^ [ 15.335283] fff00000c433ec00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.335325] fff00000c433ec80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.335361] ==================================================================
[ 13.069144] ================================================================== [ 13.069901] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_16+0x452/0x4a0 [ 13.070585] Write of size 16 at addr ffff888101679d00 by task kunit_try_catch/183 [ 13.071068] [ 13.071164] CPU: 0 UID: 0 PID: 183 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT(voluntary) [ 13.071221] Tainted: [B]=BAD_PAGE, [N]=TEST [ 13.071234] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 13.071256] Call Trace: [ 13.071280] <TASK> [ 13.071304] dump_stack_lvl+0x73/0xb0 [ 13.071400] print_report+0xd1/0x610 [ 13.071435] ? __virt_addr_valid+0x1db/0x2d0 [ 13.071459] ? kmalloc_oob_16+0x452/0x4a0 [ 13.071479] ? kasan_complete_mode_report_info+0x2a/0x200 [ 13.071503] ? kmalloc_oob_16+0x452/0x4a0 [ 13.071524] kasan_report+0x141/0x180 [ 13.071545] ? kmalloc_oob_16+0x452/0x4a0 [ 13.071580] __asan_report_store16_noabort+0x1b/0x30 [ 13.071606] kmalloc_oob_16+0x452/0x4a0 [ 13.071627] ? __pfx_kmalloc_oob_16+0x10/0x10 [ 13.071649] ? __schedule+0x10cc/0x2b60 [ 13.071671] ? __pfx_read_tsc+0x10/0x10 [ 13.071692] ? ktime_get_ts64+0x86/0x230 [ 13.071717] kunit_try_run_case+0x1a5/0x480 [ 13.071740] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.071763] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 13.071787] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 13.071811] ? __kthread_parkme+0x82/0x180 [ 13.071832] ? preempt_count_sub+0x50/0x80 [ 13.071855] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.071880] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.071904] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 13.071929] kthread+0x337/0x6f0 [ 13.071948] ? trace_preempt_on+0x20/0xc0 [ 13.071972] ? __pfx_kthread+0x10/0x10 [ 13.071992] ? _raw_spin_unlock_irq+0x47/0x80 [ 13.072014] ? calculate_sigpending+0x7b/0xa0 [ 13.072038] ? __pfx_kthread+0x10/0x10 [ 13.072064] ret_from_fork+0x116/0x1d0 [ 13.072083] ? __pfx_kthread+0x10/0x10 [ 13.072104] ret_from_fork_asm+0x1a/0x30 [ 13.072134] </TASK> [ 13.072146] [ 13.079732] Allocated by task 183: [ 13.079910] kasan_save_stack+0x45/0x70 [ 13.080148] kasan_save_track+0x18/0x40 [ 13.080517] kasan_save_alloc_info+0x3b/0x50 [ 13.080727] __kasan_kmalloc+0xb7/0xc0 [ 13.080935] __kmalloc_cache_noprof+0x189/0x420 [ 13.081147] kmalloc_oob_16+0xa8/0x4a0 [ 13.081476] kunit_try_run_case+0x1a5/0x480 [ 13.081676] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.081922] kthread+0x337/0x6f0 [ 13.082098] ret_from_fork+0x116/0x1d0 [ 13.082290] ret_from_fork_asm+0x1a/0x30 [ 13.082528] [ 13.082657] The buggy address belongs to the object at ffff888101679d00 [ 13.082657] which belongs to the cache kmalloc-16 of size 16 [ 13.083152] The buggy address is located 0 bytes inside of [ 13.083152] allocated 13-byte region [ffff888101679d00, ffff888101679d0d) [ 13.083532] [ 13.083644] The buggy address belongs to the physical page: [ 13.084142] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x101679 [ 13.084666] flags: 0x200000000000000(node=0|zone=2) [ 13.084937] page_type: f5(slab) [ 13.085118] raw: 0200000000000000 ffff888100041640 dead000000000122 0000000000000000 [ 13.085591] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 13.085898] page dumped because: kasan: bad access detected [ 13.086071] [ 13.086140] Memory state around the buggy address: [ 13.086359] ffff888101679c00: 00 04 fc fc 00 04 fc fc 00 01 fc fc 00 01 fc fc [ 13.086687] ffff888101679c80: 00 04 fc fc 00 04 fc fc fa fb fc fc 00 05 fc fc [ 13.086952] >ffff888101679d00: 00 05 fc fc 00 00 fc fc fc fc fc fc fc fc fc fc [ 13.087166] ^ [ 13.087289] ffff888101679d80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.087971] ffff888101679e00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.088329] ==================================================================