Date
June 17, 2025, 3:40 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 21.147354] ================================================================== [ 21.147547] BUG: KASAN: slab-out-of-bounds in kmalloc_big_oob_right+0x2a4/0x2f0 [ 21.147701] Write of size 1 at addr fff00000c7989f00 by task kunit_try_catch/146 [ 21.147827] [ 21.147912] CPU: 0 UID: 0 PID: 146 Comm: kunit_try_catch Tainted: G B N 6.15.3-rc1 #1 PREEMPT [ 21.148459] Tainted: [B]=BAD_PAGE, [N]=TEST [ 21.148533] Hardware name: linux,dummy-virt (DT) [ 21.148609] Call trace: [ 21.148665] show_stack+0x20/0x38 (C) [ 21.149324] dump_stack_lvl+0x8c/0xd0 [ 21.149619] print_report+0x118/0x608 [ 21.149771] kasan_report+0xdc/0x128 [ 21.149897] __asan_report_store1_noabort+0x20/0x30 [ 21.150063] kmalloc_big_oob_right+0x2a4/0x2f0 [ 21.150198] kunit_try_run_case+0x170/0x3f0 [ 21.150314] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 21.150446] kthread+0x328/0x630 [ 21.150557] ret_from_fork+0x10/0x20 [ 21.150685] [ 21.150741] Allocated by task 146: [ 21.150812] kasan_save_stack+0x3c/0x68 [ 21.151211] kasan_save_track+0x20/0x40 [ 21.151291] kasan_save_alloc_info+0x40/0x58 [ 21.151364] __kasan_kmalloc+0xd4/0xd8 [ 21.151837] __kmalloc_cache_noprof+0x16c/0x3c0 [ 21.151966] kmalloc_big_oob_right+0xb8/0x2f0 [ 21.152146] kunit_try_run_case+0x170/0x3f0 [ 21.152293] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 21.152445] kthread+0x328/0x630 [ 21.152537] ret_from_fork+0x10/0x20 [ 21.152662] [ 21.152747] The buggy address belongs to the object at fff00000c7988000 [ 21.152747] which belongs to the cache kmalloc-8k of size 8192 [ 21.152960] The buggy address is located 0 bytes to the right of [ 21.152960] allocated 7936-byte region [fff00000c7988000, fff00000c7989f00) [ 21.153120] [ 21.153183] The buggy address belongs to the physical page: [ 21.153294] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107988 [ 21.153415] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 21.153526] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 21.153655] page_type: f5(slab) [ 21.154001] raw: 0bfffe0000000040 fff00000c0002280 dead000000000122 0000000000000000 [ 21.154119] raw: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 21.154237] head: 0bfffe0000000040 fff00000c0002280 dead000000000122 0000000000000000 [ 21.154598] head: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 21.155157] head: 0bfffe0000000003 ffffc1ffc31e6201 00000000ffffffff 00000000ffffffff [ 21.155536] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 21.155724] page dumped because: kasan: bad access detected [ 21.155831] [ 21.155916] Memory state around the buggy address: [ 21.156000] fff00000c7989e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 21.156123] fff00000c7989e80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 21.156794] >fff00000c7989f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.156941] ^ [ 21.157526] fff00000c7989f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.157656] fff00000c798a000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.157765] ==================================================================
[ 17.953451] ================================================================== [ 17.954719] BUG: KASAN: slab-out-of-bounds in kmalloc_big_oob_right+0x316/0x370 [ 17.955419] Write of size 1 at addr ffff888103879f00 by task kunit_try_catch/164 [ 17.956564] [ 17.956833] CPU: 1 UID: 0 PID: 164 Comm: kunit_try_catch Tainted: G B N 6.15.3-rc1 #1 PREEMPT(voluntary) [ 17.956932] Tainted: [B]=BAD_PAGE, [N]=TEST [ 17.956951] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 17.956981] Call Trace: [ 17.957000] <TASK> [ 17.957048] dump_stack_lvl+0x73/0xb0 [ 17.957119] print_report+0xd1/0x650 [ 17.957159] ? __virt_addr_valid+0x1db/0x2d0 [ 17.957196] ? kmalloc_big_oob_right+0x316/0x370 [ 17.957233] ? kasan_complete_mode_report_info+0x2a/0x200 [ 17.957270] ? kmalloc_big_oob_right+0x316/0x370 [ 17.957475] kasan_report+0x141/0x180 [ 17.957567] ? kmalloc_big_oob_right+0x316/0x370 [ 17.957663] __asan_report_store1_noabort+0x1b/0x30 [ 17.957741] kmalloc_big_oob_right+0x316/0x370 [ 17.957807] ? __pfx_kmalloc_big_oob_right+0x10/0x10 [ 17.957847] ? __schedule+0x10cc/0x2b60 [ 17.957888] ? __pfx_read_tsc+0x10/0x10 [ 17.957921] ? ktime_get_ts64+0x86/0x230 [ 17.957963] kunit_try_run_case+0x1a5/0x480 [ 17.958006] ? __pfx_kunit_try_run_case+0x10/0x10 [ 17.958070] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 17.958121] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 17.958161] ? __kthread_parkme+0x82/0x180 [ 17.958198] ? preempt_count_sub+0x50/0x80 [ 17.958237] ? __pfx_kunit_try_run_case+0x10/0x10 [ 17.958274] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 17.958340] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 17.958378] kthread+0x337/0x6f0 [ 17.958405] ? trace_preempt_on+0x20/0xc0 [ 17.958443] ? __pfx_kthread+0x10/0x10 [ 17.958471] ? _raw_spin_unlock_irq+0x47/0x80 [ 17.958506] ? calculate_sigpending+0x7b/0xa0 [ 17.958540] ? __pfx_kthread+0x10/0x10 [ 17.958568] ret_from_fork+0x41/0x80 [ 17.958601] ? __pfx_kthread+0x10/0x10 [ 17.958628] ret_from_fork_asm+0x1a/0x30 [ 17.958676] </TASK> [ 17.958690] [ 17.975545] Allocated by task 164: [ 17.975959] kasan_save_stack+0x45/0x70 [ 17.976542] kasan_save_track+0x18/0x40 [ 17.977044] kasan_save_alloc_info+0x3b/0x50 [ 17.977628] __kasan_kmalloc+0xb7/0xc0 [ 17.978241] __kmalloc_cache_noprof+0x189/0x420 [ 17.978847] kmalloc_big_oob_right+0xa9/0x370 [ 17.979228] kunit_try_run_case+0x1a5/0x480 [ 17.979582] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 17.980121] kthread+0x337/0x6f0 [ 17.980693] ret_from_fork+0x41/0x80 [ 17.981209] ret_from_fork_asm+0x1a/0x30 [ 17.981729] [ 17.982065] The buggy address belongs to the object at ffff888103878000 [ 17.982065] which belongs to the cache kmalloc-8k of size 8192 [ 17.983247] The buggy address is located 0 bytes to the right of [ 17.983247] allocated 7936-byte region [ffff888103878000, ffff888103879f00) [ 17.987251] [ 17.987451] The buggy address belongs to the physical page: [ 17.987755] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103878 [ 17.988229] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 17.988758] flags: 0x200000000000040(head|node=0|zone=2) [ 17.989329] page_type: f5(slab) [ 17.989660] raw: 0200000000000040 ffff888100042280 dead000000000122 0000000000000000 [ 17.990278] raw: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 17.990918] head: 0200000000000040 ffff888100042280 dead000000000122 0000000000000000 [ 17.991561] head: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 17.992052] head: 0200000000000003 ffffea00040e1e01 00000000ffffffff 00000000ffffffff [ 17.992645] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 17.995608] page dumped because: kasan: bad access detected [ 17.996771] [ 17.996938] Memory state around the buggy address: [ 17.997261] ffff888103879e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 17.998131] ffff888103879e80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 17.999614] >ffff888103879f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.001201] ^ [ 18.001715] ffff888103879f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.003666] ffff88810387a000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.004524] ==================================================================