Date
July 12, 2025, 11:09 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 19.356178] ================================================================== [ 19.356319] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_16+0x3a0/0x3f8 [ 19.356427] Write of size 16 at addr fff00000c4561a80 by task kunit_try_catch/167 [ 19.356539] [ 19.356609] CPU: 0 UID: 0 PID: 167 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT [ 19.356776] Tainted: [B]=BAD_PAGE, [N]=TEST [ 19.356853] Hardware name: linux,dummy-virt (DT) [ 19.356924] Call trace: [ 19.356971] show_stack+0x20/0x38 (C) [ 19.357093] dump_stack_lvl+0x8c/0xd0 [ 19.357244] print_report+0x118/0x608 [ 19.357397] kasan_report+0xdc/0x128 [ 19.357541] __asan_report_store16_noabort+0x20/0x30 [ 19.357702] kmalloc_oob_16+0x3a0/0x3f8 [ 19.357848] kunit_try_run_case+0x170/0x3f0 [ 19.357947] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 19.358098] kthread+0x328/0x630 [ 19.358575] ret_from_fork+0x10/0x20 [ 19.359015] [ 19.359066] Allocated by task 167: [ 19.359126] kasan_save_stack+0x3c/0x68 [ 19.359238] kasan_save_track+0x20/0x40 [ 19.359363] kasan_save_alloc_info+0x40/0x58 [ 19.359449] __kasan_kmalloc+0xd4/0xd8 [ 19.359534] __kmalloc_cache_noprof+0x16c/0x3c0 [ 19.359617] kmalloc_oob_16+0xb4/0x3f8 [ 19.359700] kunit_try_run_case+0x170/0x3f0 [ 19.359786] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 19.359901] kthread+0x328/0x630 [ 19.359977] ret_from_fork+0x10/0x20 [ 19.360059] [ 19.360102] The buggy address belongs to the object at fff00000c4561a80 [ 19.360102] which belongs to the cache kmalloc-16 of size 16 [ 19.360229] The buggy address is located 0 bytes inside of [ 19.360229] allocated 13-byte region [fff00000c4561a80, fff00000c4561a8d) [ 19.360373] [ 19.360420] The buggy address belongs to the physical page: [ 19.360487] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x104561 [ 19.360620] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 19.360725] page_type: f5(slab) [ 19.360888] raw: 0bfffe0000000000 fff00000c0001640 dead000000000122 0000000000000000 [ 19.361024] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 19.361272] page dumped because: kasan: bad access detected [ 19.361360] [ 19.361488] Memory state around the buggy address: [ 19.361590] fff00000c4561980: fa fb fc fc fa fb fc fc 00 02 fc fc fa fb fc fc [ 19.361724] fff00000c4561a00: fa fb fc fc 00 05 fc fc fa fb fc fc fa fb fc fc [ 19.361810] >fff00000c4561a80: 00 05 fc fc 00 00 fc fc fc fc fc fc fc fc fc fc [ 19.361898] ^ [ 19.361951] fff00000c4561b00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.362465] fff00000c4561b80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.362577] ==================================================================
[ 12.646796] ================================================================== [ 12.647237] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_16+0x452/0x4a0 [ 12.647529] Write of size 16 at addr ffff888101c05c80 by task kunit_try_catch/184 [ 12.647975] [ 12.648069] CPU: 1 UID: 0 PID: 184 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT(voluntary) [ 12.648112] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.648123] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.648143] Call Trace: [ 12.648155] <TASK> [ 12.648170] dump_stack_lvl+0x73/0xb0 [ 12.648200] print_report+0xd1/0x650 [ 12.648233] ? __virt_addr_valid+0x1db/0x2d0 [ 12.648257] ? kmalloc_oob_16+0x452/0x4a0 [ 12.648323] ? kasan_complete_mode_report_info+0x2a/0x200 [ 12.648346] ? kmalloc_oob_16+0x452/0x4a0 [ 12.648366] kasan_report+0x141/0x180 [ 12.648388] ? kmalloc_oob_16+0x452/0x4a0 [ 12.648413] __asan_report_store16_noabort+0x1b/0x30 [ 12.648439] kmalloc_oob_16+0x452/0x4a0 [ 12.648459] ? __pfx_kmalloc_oob_16+0x10/0x10 [ 12.648481] ? __schedule+0x10cc/0x2b60 [ 12.648504] ? __pfx_read_tsc+0x10/0x10 [ 12.648525] ? ktime_get_ts64+0x86/0x230 [ 12.648550] kunit_try_run_case+0x1a5/0x480 [ 12.648574] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.648597] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 12.648620] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 12.648653] ? __kthread_parkme+0x82/0x180 [ 12.648673] ? preempt_count_sub+0x50/0x80 [ 12.648883] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.648908] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.648933] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.648958] kthread+0x337/0x6f0 [ 12.648977] ? trace_preempt_on+0x20/0xc0 [ 12.649000] ? __pfx_kthread+0x10/0x10 [ 12.649020] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.649042] ? calculate_sigpending+0x7b/0xa0 [ 12.649065] ? __pfx_kthread+0x10/0x10 [ 12.649087] ret_from_fork+0x116/0x1d0 [ 12.649105] ? __pfx_kthread+0x10/0x10 [ 12.649125] ret_from_fork_asm+0x1a/0x30 [ 12.649155] </TASK> [ 12.649165] [ 12.655672] Allocated by task 184: [ 12.655872] kasan_save_stack+0x45/0x70 [ 12.656106] kasan_save_track+0x18/0x40 [ 12.656307] kasan_save_alloc_info+0x3b/0x50 [ 12.656523] __kasan_kmalloc+0xb7/0xc0 [ 12.656765] __kmalloc_cache_noprof+0x189/0x420 [ 12.657029] kmalloc_oob_16+0xa8/0x4a0 [ 12.657226] kunit_try_run_case+0x1a5/0x480 [ 12.657376] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.657546] kthread+0x337/0x6f0 [ 12.657832] ret_from_fork+0x116/0x1d0 [ 12.658184] ret_from_fork_asm+0x1a/0x30 [ 12.658335] [ 12.658440] The buggy address belongs to the object at ffff888101c05c80 [ 12.658440] which belongs to the cache kmalloc-16 of size 16 [ 12.658974] The buggy address is located 0 bytes inside of [ 12.658974] allocated 13-byte region [ffff888101c05c80, ffff888101c05c8d) [ 12.659514] [ 12.659709] The buggy address belongs to the physical page: [ 12.659941] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x101c05 [ 12.660269] flags: 0x200000000000000(node=0|zone=2) [ 12.660485] page_type: f5(slab) [ 12.660734] raw: 0200000000000000 ffff888100041640 dead000000000122 0000000000000000 [ 12.661033] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 12.661249] page dumped because: kasan: bad access detected [ 12.661412] [ 12.661479] Memory state around the buggy address: [ 12.661627] ffff888101c05b80: 00 04 fc fc 00 04 fc fc 00 00 fc fc fa fb fc fc [ 12.662149] ffff888101c05c00: fa fb fc fc fa fb fc fc fa fb fc fc 00 05 fc fc [ 12.662632] >ffff888101c05c80: 00 05 fc fc 00 00 fc fc fc fc fc fc fc fc fc fc [ 12.662861] ^ [ 12.662977] ffff888101c05d00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.663182] ffff888101c05d80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.663385] ==================================================================