Date
July 10, 2025, 11:10 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 15.903649] ================================================================== [ 15.903721] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_16+0x3a0/0x3f8 [ 15.904019] Write of size 16 at addr fff00000c5ff79a0 by task kunit_try_catch/166 [ 15.904214] [ 15.904274] CPU: 1 UID: 0 PID: 166 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT [ 15.904420] Tainted: [B]=BAD_PAGE, [N]=TEST [ 15.904449] Hardware name: linux,dummy-virt (DT) [ 15.904480] Call trace: [ 15.904502] show_stack+0x20/0x38 (C) [ 15.904572] dump_stack_lvl+0x8c/0xd0 [ 15.904876] print_report+0x118/0x608 [ 15.905029] kasan_report+0xdc/0x128 [ 15.905091] __asan_report_store16_noabort+0x20/0x30 [ 15.905186] kmalloc_oob_16+0x3a0/0x3f8 [ 15.905252] kunit_try_run_case+0x170/0x3f0 [ 15.905306] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 15.905477] kthread+0x328/0x630 [ 15.905526] ret_from_fork+0x10/0x20 [ 15.905581] [ 15.905600] Allocated by task 166: [ 15.905860] kasan_save_stack+0x3c/0x68 [ 15.906050] kasan_save_track+0x20/0x40 [ 15.906119] kasan_save_alloc_info+0x40/0x58 [ 15.906160] __kasan_kmalloc+0xd4/0xd8 [ 15.906196] __kmalloc_cache_noprof+0x16c/0x3c0 [ 15.906236] kmalloc_oob_16+0xb4/0x3f8 [ 15.906421] kunit_try_run_case+0x170/0x3f0 [ 15.906461] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 15.906562] kthread+0x328/0x630 [ 15.906643] ret_from_fork+0x10/0x20 [ 15.906777] [ 15.906848] The buggy address belongs to the object at fff00000c5ff79a0 [ 15.906848] which belongs to the cache kmalloc-16 of size 16 [ 15.907006] The buggy address is located 0 bytes inside of [ 15.907006] allocated 13-byte region [fff00000c5ff79a0, fff00000c5ff79ad) [ 15.907166] [ 15.907199] The buggy address belongs to the physical page: [ 15.907261] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105ff7 [ 15.907325] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 15.907376] page_type: f5(slab) [ 15.907667] raw: 0bfffe0000000000 fff00000c0001640 dead000000000122 0000000000000000 [ 15.907805] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 15.907897] page dumped because: kasan: bad access detected [ 15.907958] [ 15.907988] Memory state around the buggy address: [ 15.908111] fff00000c5ff7880: fa fb fc fc 00 02 fc fc fa fb fc fc fa fb fc fc [ 15.908168] fff00000c5ff7900: fa fb fc fc fa fb fc fc fa fb fc fc 00 04 fc fc [ 15.908314] >fff00000c5ff7980: fa fb fc fc 00 05 fc fc 00 00 fc fc fc fc fc fc [ 15.908372] ^ [ 15.908407] fff00000c5ff7a00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.908468] fff00000c5ff7a80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.908684] ==================================================================
[ 12.708330] ================================================================== [ 12.708841] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_16+0x452/0x4a0 [ 12.709160] Write of size 16 at addr ffff888102749d20 by task kunit_try_catch/183 [ 12.709437] [ 12.709795] CPU: 0 UID: 0 PID: 183 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT(voluntary) [ 12.709844] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.709855] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.709875] Call Trace: [ 12.709888] <TASK> [ 12.709904] dump_stack_lvl+0x73/0xb0 [ 12.709936] print_report+0xd1/0x650 [ 12.709958] ? __virt_addr_valid+0x1db/0x2d0 [ 12.709980] ? kmalloc_oob_16+0x452/0x4a0 [ 12.710000] ? kasan_complete_mode_report_info+0x2a/0x200 [ 12.710023] ? kmalloc_oob_16+0x452/0x4a0 [ 12.710045] kasan_report+0x141/0x180 [ 12.710069] ? kmalloc_oob_16+0x452/0x4a0 [ 12.710095] __asan_report_store16_noabort+0x1b/0x30 [ 12.710121] kmalloc_oob_16+0x452/0x4a0 [ 12.710141] ? __pfx_kmalloc_oob_16+0x10/0x10 [ 12.710163] ? __schedule+0x10cc/0x2b60 [ 12.710186] ? __pfx_read_tsc+0x10/0x10 [ 12.710207] ? ktime_get_ts64+0x86/0x230 [ 12.710232] kunit_try_run_case+0x1a5/0x480 [ 12.710257] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.710281] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 12.710304] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 12.710327] ? __kthread_parkme+0x82/0x180 [ 12.710347] ? preempt_count_sub+0x50/0x80 [ 12.710477] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.710501] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.710526] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.710551] kthread+0x337/0x6f0 [ 12.710569] ? trace_preempt_on+0x20/0xc0 [ 12.710593] ? __pfx_kthread+0x10/0x10 [ 12.710613] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.710634] ? calculate_sigpending+0x7b/0xa0 [ 12.710658] ? __pfx_kthread+0x10/0x10 [ 12.710679] ret_from_fork+0x116/0x1d0 [ 12.710697] ? __pfx_kthread+0x10/0x10 [ 12.710717] ret_from_fork_asm+0x1a/0x30 [ 12.710747] </TASK> [ 12.710758] [ 12.717908] Allocated by task 183: [ 12.718091] kasan_save_stack+0x45/0x70 [ 12.718244] kasan_save_track+0x18/0x40 [ 12.718594] kasan_save_alloc_info+0x3b/0x50 [ 12.718799] __kasan_kmalloc+0xb7/0xc0 [ 12.718966] __kmalloc_cache_noprof+0x189/0x420 [ 12.719128] kmalloc_oob_16+0xa8/0x4a0 [ 12.719292] kunit_try_run_case+0x1a5/0x480 [ 12.719511] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.719893] kthread+0x337/0x6f0 [ 12.720068] ret_from_fork+0x116/0x1d0 [ 12.720221] ret_from_fork_asm+0x1a/0x30 [ 12.720464] [ 12.720560] The buggy address belongs to the object at ffff888102749d20 [ 12.720560] which belongs to the cache kmalloc-16 of size 16 [ 12.721003] The buggy address is located 0 bytes inside of [ 12.721003] allocated 13-byte region [ffff888102749d20, ffff888102749d2d) [ 12.721371] [ 12.721466] The buggy address belongs to the physical page: [ 12.721761] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102749 [ 12.722112] flags: 0x200000000000000(node=0|zone=2) [ 12.722345] page_type: f5(slab) [ 12.722640] raw: 0200000000000000 ffff888100041640 dead000000000122 0000000000000000 [ 12.722881] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 12.723140] page dumped because: kasan: bad access detected [ 12.723581] [ 12.723692] Memory state around the buggy address: [ 12.723923] ffff888102749c00: 00 05 fc fc fa fb fc fc fa fb fc fc fa fb fc fc [ 12.724215] ffff888102749c80: fa fb fc fc fa fb fc fc fa fb fc fc fa fb fc fc [ 12.724586] >ffff888102749d00: 00 05 fc fc 00 05 fc fc 00 00 fc fc fc fc fc fc [ 12.724850] ^ [ 12.725065] ffff888102749d80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.725343] ffff888102749e00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.725675] ==================================================================