Date
July 1, 2025, 3:08 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 16.964580] ================================================================== [ 16.964662] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_16+0x3a0/0x3f8 [ 16.965051] Write of size 16 at addr fff00000c56b60a0 by task kunit_try_catch/167 [ 16.965111] [ 16.965523] CPU: 1 UID: 0 PID: 167 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT [ 16.965674] Tainted: [B]=BAD_PAGE, [N]=TEST [ 16.965706] Hardware name: linux,dummy-virt (DT) [ 16.965739] Call trace: [ 16.965787] show_stack+0x20/0x38 (C) [ 16.965954] dump_stack_lvl+0x8c/0xd0 [ 16.966004] print_report+0x118/0x608 [ 16.966051] kasan_report+0xdc/0x128 [ 16.966096] __asan_report_store16_noabort+0x20/0x30 [ 16.966143] kmalloc_oob_16+0x3a0/0x3f8 [ 16.966187] kunit_try_run_case+0x170/0x3f0 [ 16.966235] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.966290] kthread+0x328/0x630 [ 16.966651] ret_from_fork+0x10/0x20 [ 16.966791] [ 16.966827] Allocated by task 167: [ 16.966855] kasan_save_stack+0x3c/0x68 [ 16.966899] kasan_save_track+0x20/0x40 [ 16.966935] kasan_save_alloc_info+0x40/0x58 [ 16.966974] __kasan_kmalloc+0xd4/0xd8 [ 16.967019] __kmalloc_cache_noprof+0x16c/0x3c0 [ 16.967058] kmalloc_oob_16+0xb4/0x3f8 [ 16.967092] kunit_try_run_case+0x170/0x3f0 [ 16.967422] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.967510] kthread+0x328/0x630 [ 16.967695] ret_from_fork+0x10/0x20 [ 16.967731] [ 16.967756] The buggy address belongs to the object at fff00000c56b60a0 [ 16.967756] which belongs to the cache kmalloc-16 of size 16 [ 16.967892] The buggy address is located 0 bytes inside of [ 16.967892] allocated 13-byte region [fff00000c56b60a0, fff00000c56b60ad) [ 16.968040] [ 16.968098] The buggy address belongs to the physical page: [ 16.968171] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1056b6 [ 16.968260] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 16.968431] page_type: f5(slab) [ 16.968476] raw: 0bfffe0000000000 fff00000c0001640 dead000000000122 0000000000000000 [ 16.968526] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 16.968577] page dumped because: kasan: bad access detected [ 16.968607] [ 16.968625] Memory state around the buggy address: [ 16.968658] fff00000c56b5f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.969037] fff00000c56b6000: fa fb fc fc 00 02 fc fc fa fb fc fc fa fb fc fc [ 16.969188] >fff00000c56b6080: fa fb fc fc 00 05 fc fc 00 00 fc fc fc fc fc fc [ 16.969390] ^ [ 16.969461] fff00000c56b6100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.969513] fff00000c56b6180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.969551] ==================================================================
[ 11.557177] ================================================================== [ 11.558365] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_16+0x452/0x4a0 [ 11.559075] Write of size 16 at addr ffff8881021d5660 by task kunit_try_catch/183 [ 11.559780] [ 11.560019] CPU: 0 UID: 0 PID: 183 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT(voluntary) [ 11.560095] Tainted: [B]=BAD_PAGE, [N]=TEST [ 11.560107] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 11.560152] Call Trace: [ 11.560166] <TASK> [ 11.560186] dump_stack_lvl+0x73/0xb0 [ 11.560245] print_report+0xd1/0x650 [ 11.560267] ? __virt_addr_valid+0x1db/0x2d0 [ 11.560291] ? kmalloc_oob_16+0x452/0x4a0 [ 11.560323] ? kasan_complete_mode_report_info+0x2a/0x200 [ 11.560343] ? kmalloc_oob_16+0x452/0x4a0 [ 11.560363] kasan_report+0x141/0x180 [ 11.560383] ? kmalloc_oob_16+0x452/0x4a0 [ 11.560407] __asan_report_store16_noabort+0x1b/0x30 [ 11.560427] kmalloc_oob_16+0x452/0x4a0 [ 11.560446] ? __pfx_kmalloc_oob_16+0x10/0x10 [ 11.560467] ? __schedule+0x10cc/0x2b60 [ 11.560488] ? __pfx_read_tsc+0x10/0x10 [ 11.560510] ? ktime_get_ts64+0x86/0x230 [ 11.560534] kunit_try_run_case+0x1a5/0x480 [ 11.560559] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.560579] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 11.560601] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 11.560642] ? __kthread_parkme+0x82/0x180 [ 11.560663] ? preempt_count_sub+0x50/0x80 [ 11.560697] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.560719] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.560740] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 11.560762] kthread+0x337/0x6f0 [ 11.560779] ? trace_preempt_on+0x20/0xc0 [ 11.560803] ? __pfx_kthread+0x10/0x10 [ 11.560822] ? _raw_spin_unlock_irq+0x47/0x80 [ 11.560841] ? calculate_sigpending+0x7b/0xa0 [ 11.560864] ? __pfx_kthread+0x10/0x10 [ 11.560884] ret_from_fork+0x116/0x1d0 [ 11.560902] ? __pfx_kthread+0x10/0x10 [ 11.560921] ret_from_fork_asm+0x1a/0x30 [ 11.560951] </TASK> [ 11.560963] [ 11.574007] Allocated by task 183: [ 11.574170] kasan_save_stack+0x45/0x70 [ 11.574320] kasan_save_track+0x18/0x40 [ 11.574512] kasan_save_alloc_info+0x3b/0x50 [ 11.574722] __kasan_kmalloc+0xb7/0xc0 [ 11.574912] __kmalloc_cache_noprof+0x189/0x420 [ 11.575291] kmalloc_oob_16+0xa8/0x4a0 [ 11.575435] kunit_try_run_case+0x1a5/0x480 [ 11.575578] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.575966] kthread+0x337/0x6f0 [ 11.576253] ret_from_fork+0x116/0x1d0 [ 11.576469] ret_from_fork_asm+0x1a/0x30 [ 11.576751] [ 11.576850] The buggy address belongs to the object at ffff8881021d5660 [ 11.576850] which belongs to the cache kmalloc-16 of size 16 [ 11.577424] The buggy address is located 0 bytes inside of [ 11.577424] allocated 13-byte region [ffff8881021d5660, ffff8881021d566d) [ 11.578106] [ 11.578200] The buggy address belongs to the physical page: [ 11.578474] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1021d5 [ 11.578983] flags: 0x200000000000000(node=0|zone=2) [ 11.579264] page_type: f5(slab) [ 11.579479] raw: 0200000000000000 ffff888100041640 dead000000000122 0000000000000000 [ 11.579949] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 11.580327] page dumped because: kasan: bad access detected [ 11.580727] [ 11.580870] Memory state around the buggy address: [ 11.581064] ffff8881021d5500: 00 05 fc fc 00 00 fc fc 00 06 fc fc 00 06 fc fc [ 11.581434] ffff8881021d5580: 00 00 fc fc 00 02 fc fc 00 02 fc fc 00 06 fc fc [ 11.581873] >ffff8881021d5600: 00 06 fc fc fa fb fc fc fa fb fc fc 00 05 fc fc [ 11.582189] ^ [ 11.582541] ffff8881021d5680: 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.583046] ffff8881021d5700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.583381] ==================================================================