Date
July 15, 2025, 2:09 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 17.533187] ================================================================== [ 17.533269] BUG: KASAN: slab-out-of-bounds in kmalloc_node_oob_right+0x2f4/0x330 [ 17.533320] Read of size 1 at addr fff00000c7891000 by task kunit_try_catch/142 [ 17.533796] [ 17.534256] CPU: 0 UID: 0 PID: 142 Comm: kunit_try_catch Tainted: G B N 6.15.7-rc1 #1 PREEMPT [ 17.534352] Tainted: [B]=BAD_PAGE, [N]=TEST [ 17.534562] Hardware name: linux,dummy-virt (DT) [ 17.534645] Call trace: [ 17.534938] show_stack+0x20/0x38 (C) [ 17.535285] dump_stack_lvl+0x8c/0xd0 [ 17.535847] print_report+0x118/0x5d0 [ 17.535950] kasan_report+0xdc/0x128 [ 17.536041] __asan_report_load1_noabort+0x20/0x30 [ 17.536374] kmalloc_node_oob_right+0x2f4/0x330 [ 17.536558] kunit_try_run_case+0x170/0x3f0 [ 17.536643] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 17.536779] kthread+0x328/0x630 [ 17.536892] ret_from_fork+0x10/0x20 [ 17.537213] [ 17.537366] Allocated by task 142: [ 17.537418] kasan_save_stack+0x3c/0x68 [ 17.537531] kasan_save_track+0x20/0x40 [ 17.537618] kasan_save_alloc_info+0x40/0x58 [ 17.537724] __kasan_kmalloc+0xd4/0xd8 [ 17.537872] __kmalloc_cache_node_noprof+0x178/0x3d0 [ 17.538125] kmalloc_node_oob_right+0xbc/0x330 [ 17.538269] kunit_try_run_case+0x170/0x3f0 [ 17.538371] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 17.538587] kthread+0x328/0x630 [ 17.538817] ret_from_fork+0x10/0x20 [ 17.539060] [ 17.539190] The buggy address belongs to the object at fff00000c7890000 [ 17.539190] which belongs to the cache kmalloc-4k of size 4096 [ 17.539328] The buggy address is located 0 bytes to the right of [ 17.539328] allocated 4096-byte region [fff00000c7890000, fff00000c7891000) [ 17.539505] [ 17.539529] The buggy address belongs to the physical page: [ 17.539970] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107890 [ 17.540502] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 17.540577] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 17.541021] page_type: f5(slab) [ 17.541146] raw: 0bfffe0000000040 fff00000c0002140 dead000000000122 0000000000000000 [ 17.541241] raw: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 17.541390] head: 0bfffe0000000040 fff00000c0002140 dead000000000122 0000000000000000 [ 17.541463] head: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 17.541659] head: 0bfffe0000000003 ffffc1ffc31e2401 00000000ffffffff 00000000ffffffff [ 17.541724] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 17.542234] page dumped because: kasan: bad access detected [ 17.542371] [ 17.542435] Memory state around the buggy address: [ 17.542504] fff00000c7890f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 17.542661] fff00000c7890f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 17.542725] >fff00000c7891000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.542774] ^ [ 17.542887] fff00000c7891080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.542950] fff00000c7891100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.543152] ==================================================================
[ 10.404295] ================================================================== [ 10.405228] BUG: KASAN: slab-out-of-bounds in kmalloc_node_oob_right+0x369/0x3c0 [ 10.405475] Read of size 1 at addr ffff8881028bd000 by task kunit_try_catch/159 [ 10.405695] [ 10.405791] CPU: 0 UID: 0 PID: 159 Comm: kunit_try_catch Tainted: G B N 6.15.7-rc1 #1 PREEMPT(voluntary) [ 10.405841] Tainted: [B]=BAD_PAGE, [N]=TEST [ 10.405852] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 10.405873] Call Trace: [ 10.405904] <TASK> [ 10.405921] dump_stack_lvl+0x73/0xb0 [ 10.405947] print_report+0xd1/0x610 [ 10.405969] ? __virt_addr_valid+0x1db/0x2d0 [ 10.405991] ? kmalloc_node_oob_right+0x369/0x3c0 [ 10.406009] ? kasan_complete_mode_report_info+0x2a/0x200 [ 10.406031] ? kmalloc_node_oob_right+0x369/0x3c0 [ 10.406050] kasan_report+0x141/0x180 [ 10.406072] ? kmalloc_node_oob_right+0x369/0x3c0 [ 10.406120] __asan_report_load1_noabort+0x18/0x20 [ 10.406141] kmalloc_node_oob_right+0x369/0x3c0 [ 10.406175] ? __pfx_kmalloc_node_oob_right+0x10/0x10 [ 10.406209] ? __schedule+0x10cc/0x2b60 [ 10.406245] ? __pfx_read_tsc+0x10/0x10 [ 10.406279] ? ktime_get_ts64+0x86/0x230 [ 10.406305] kunit_try_run_case+0x1a5/0x480 [ 10.406340] ? __pfx_kunit_try_run_case+0x10/0x10 [ 10.406358] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 10.406381] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 10.406403] ? __kthread_parkme+0x82/0x180 [ 10.406439] ? preempt_count_sub+0x50/0x80 [ 10.406464] ? __pfx_kunit_try_run_case+0x10/0x10 [ 10.406483] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 10.406516] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 10.406538] kthread+0x337/0x6f0 [ 10.406553] ? trace_preempt_on+0x20/0xc0 [ 10.406587] ? __pfx_kthread+0x10/0x10 [ 10.406620] ? _raw_spin_unlock_irq+0x47/0x80 [ 10.406641] ? calculate_sigpending+0x7b/0xa0 [ 10.406677] ? __pfx_kthread+0x10/0x10 [ 10.406711] ret_from_fork+0x41/0x80 [ 10.406739] ? __pfx_kthread+0x10/0x10 [ 10.406756] ret_from_fork_asm+0x1a/0x30 [ 10.406800] </TASK> [ 10.406810] [ 10.420244] Allocated by task 159: [ 10.420487] kasan_save_stack+0x45/0x70 [ 10.420944] kasan_save_track+0x18/0x40 [ 10.421162] kasan_save_alloc_info+0x3b/0x50 [ 10.421345] __kasan_kmalloc+0xb7/0xc0 [ 10.421515] __kmalloc_cache_node_noprof+0x188/0x420 [ 10.422018] kmalloc_node_oob_right+0xab/0x3c0 [ 10.422284] kunit_try_run_case+0x1a5/0x480 [ 10.422582] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 10.423198] kthread+0x337/0x6f0 [ 10.423425] ret_from_fork+0x41/0x80 [ 10.423798] ret_from_fork_asm+0x1a/0x30 [ 10.424012] [ 10.424105] The buggy address belongs to the object at ffff8881028bc000 [ 10.424105] which belongs to the cache kmalloc-4k of size 4096 [ 10.424593] The buggy address is located 0 bytes to the right of [ 10.424593] allocated 4096-byte region [ffff8881028bc000, ffff8881028bd000) [ 10.425543] [ 10.425642] The buggy address belongs to the physical page: [ 10.426528] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1028b8 [ 10.427481] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 10.428138] flags: 0x200000000000040(head|node=0|zone=2) [ 10.428633] page_type: f5(slab) [ 10.428983] raw: 0200000000000040 ffff888100042140 dead000000000122 0000000000000000 [ 10.429316] raw: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 10.429651] head: 0200000000000040 ffff888100042140 dead000000000122 0000000000000000 [ 10.430126] head: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 10.430839] head: 0200000000000003 ffffea00040a2e01 00000000ffffffff 00000000ffffffff [ 10.431352] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 10.432175] page dumped because: kasan: bad access detected [ 10.432676] [ 10.432962] Memory state around the buggy address: [ 10.433318] ffff8881028bcf00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 10.433854] ffff8881028bcf80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 10.434368] >ffff8881028bd000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 10.434942] ^ [ 10.435109] ffff8881028bd080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 10.435403] ffff8881028bd100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 10.435688] ==================================================================