Date
July 5, 2025, 11:09 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 18.930921] ================================================================== [ 18.931066] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_16+0x3a0/0x3f8 [ 18.931149] Write of size 16 at addr fff00000c5672840 by task kunit_try_catch/167 [ 18.931201] [ 18.931234] CPU: 0 UID: 0 PID: 167 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT [ 18.931390] Tainted: [B]=BAD_PAGE, [N]=TEST [ 18.931444] Hardware name: linux,dummy-virt (DT) [ 18.931504] Call trace: [ 18.931546] show_stack+0x20/0x38 (C) [ 18.931653] dump_stack_lvl+0x8c/0xd0 [ 18.931762] print_report+0x118/0x608 [ 18.931860] kasan_report+0xdc/0x128 [ 18.931955] __asan_report_store16_noabort+0x20/0x30 [ 18.932062] kmalloc_oob_16+0x3a0/0x3f8 [ 18.932170] kunit_try_run_case+0x170/0x3f0 [ 18.932257] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.932311] kthread+0x328/0x630 [ 18.932421] ret_from_fork+0x10/0x20 [ 18.932526] [ 18.932559] Allocated by task 167: [ 18.932614] kasan_save_stack+0x3c/0x68 [ 18.932692] kasan_save_track+0x20/0x40 [ 18.932786] kasan_save_alloc_info+0x40/0x58 [ 18.932889] __kasan_kmalloc+0xd4/0xd8 [ 18.932981] __kmalloc_cache_noprof+0x16c/0x3c0 [ 18.933096] kmalloc_oob_16+0xb4/0x3f8 [ 18.933229] kunit_try_run_case+0x170/0x3f0 [ 18.933388] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.933574] kthread+0x328/0x630 [ 18.933643] ret_from_fork+0x10/0x20 [ 18.933853] [ 18.934319] The buggy address belongs to the object at fff00000c5672840 [ 18.934319] which belongs to the cache kmalloc-16 of size 16 [ 18.935119] The buggy address is located 0 bytes inside of [ 18.935119] allocated 13-byte region [fff00000c5672840, fff00000c567284d) [ 18.935339] [ 18.935392] The buggy address belongs to the physical page: [ 18.935446] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105672 [ 18.935547] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 18.936088] page_type: f5(slab) [ 18.936192] raw: 0bfffe0000000000 fff00000c0001640 dead000000000122 0000000000000000 [ 18.937613] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 18.939119] page dumped because: kasan: bad access detected [ 18.940301] [ 18.940463] Memory state around the buggy address: [ 18.940535] fff00000c5672700: 00 05 fc fc fa fb fc fc 00 05 fc fc fa fb fc fc [ 18.940643] fff00000c5672780: 00 03 fc fc fa fb fc fc fa fb fc fc fa fb fc fc [ 18.940740] >fff00000c5672800: fa fb fc fc fa fb fc fc 00 05 fc fc 00 00 fc fc [ 18.940826] ^ [ 18.940903] fff00000c5672880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.942274] fff00000c5672900: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.942390] ==================================================================
[ 13.583098] ================================================================== [ 13.583676] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_16+0x452/0x4a0 [ 13.584398] Write of size 16 at addr ffff888101886820 by task kunit_try_catch/183 [ 13.585110] [ 13.585445] CPU: 1 UID: 0 PID: 183 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT(voluntary) [ 13.585508] Tainted: [B]=BAD_PAGE, [N]=TEST [ 13.585523] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 13.585549] Call Trace: [ 13.585565] <TASK> [ 13.585588] dump_stack_lvl+0x73/0xb0 [ 13.585627] print_report+0xd1/0x650 [ 13.585667] ? __virt_addr_valid+0x1db/0x2d0 [ 13.585696] ? kmalloc_oob_16+0x452/0x4a0 [ 13.585720] ? kasan_complete_mode_report_info+0x2a/0x200 [ 13.585746] ? kmalloc_oob_16+0x452/0x4a0 [ 13.585783] kasan_report+0x141/0x180 [ 13.585809] ? kmalloc_oob_16+0x452/0x4a0 [ 13.585839] __asan_report_store16_noabort+0x1b/0x30 [ 13.585863] kmalloc_oob_16+0x452/0x4a0 [ 13.585887] ? __pfx_kmalloc_oob_16+0x10/0x10 [ 13.585913] ? __schedule+0x10cc/0x2b60 [ 13.585940] ? __pfx_read_tsc+0x10/0x10 [ 13.585965] ? ktime_get_ts64+0x86/0x230 [ 13.585996] kunit_try_run_case+0x1a5/0x480 [ 13.586027] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.586053] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 13.586081] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 13.586107] ? __kthread_parkme+0x82/0x180 [ 13.586132] ? preempt_count_sub+0x50/0x80 [ 13.586160] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.586188] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.586214] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 13.586241] kthread+0x337/0x6f0 [ 13.586263] ? trace_preempt_on+0x20/0xc0 [ 13.586291] ? __pfx_kthread+0x10/0x10 [ 13.586315] ? _raw_spin_unlock_irq+0x47/0x80 [ 13.586339] ? calculate_sigpending+0x7b/0xa0 [ 13.586368] ? __pfx_kthread+0x10/0x10 [ 13.586393] ret_from_fork+0x116/0x1d0 [ 13.586416] ? __pfx_kthread+0x10/0x10 [ 13.586444] ret_from_fork_asm+0x1a/0x30 [ 13.586482] </TASK> [ 13.586494] [ 13.597937] Allocated by task 183: [ 13.598332] kasan_save_stack+0x45/0x70 [ 13.598524] kasan_save_track+0x18/0x40 [ 13.598857] kasan_save_alloc_info+0x3b/0x50 [ 13.599063] __kasan_kmalloc+0xb7/0xc0 [ 13.599223] __kmalloc_cache_noprof+0x189/0x420 [ 13.599682] kmalloc_oob_16+0xa8/0x4a0 [ 13.599974] kunit_try_run_case+0x1a5/0x480 [ 13.600157] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.600519] kthread+0x337/0x6f0 [ 13.600727] ret_from_fork+0x116/0x1d0 [ 13.600987] ret_from_fork_asm+0x1a/0x30 [ 13.601161] [ 13.601259] The buggy address belongs to the object at ffff888101886820 [ 13.601259] which belongs to the cache kmalloc-16 of size 16 [ 13.601949] The buggy address is located 0 bytes inside of [ 13.601949] allocated 13-byte region [ffff888101886820, ffff88810188682d) [ 13.602658] [ 13.602769] The buggy address belongs to the physical page: [ 13.603030] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x101886 [ 13.603324] flags: 0x200000000000000(node=0|zone=2) [ 13.603683] page_type: f5(slab) [ 13.603925] raw: 0200000000000000 ffff888100041640 dead000000000122 0000000000000000 [ 13.605133] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 13.605546] page dumped because: kasan: bad access detected [ 13.605891] [ 13.606048] Memory state around the buggy address: [ 13.606325] ffff888101886700: 00 00 fc fc fa fb fc fc fa fb fc fc fa fb fc fc [ 13.606735] ffff888101886780: fa fb fc fc fa fb fc fc fa fb fc fc fa fb fc fc [ 13.607106] >ffff888101886800: fa fb fc fc 00 05 fc fc 00 00 fc fc fc fc fc fc [ 13.607771] ^ [ 13.608149] ffff888101886880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.608687] ffff888101886900: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.609204] ==================================================================