Date
June 2, 2025, 2:13 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 17.869336] ================================================================== [ 17.870455] BUG: KASAN: slab-out-of-bounds in kmalloc_node_oob_right+0x2f4/0x330 [ 17.870971] Read of size 1 at addr fff00000c64e7000 by task kunit_try_catch/130 [ 17.871571] [ 17.871841] CPU: 1 UID: 0 PID: 130 Comm: kunit_try_catch Tainted: G B N 6.14.10-rc1 #1 [ 17.872028] Tainted: [B]=BAD_PAGE, [N]=TEST [ 17.872087] Hardware name: linux,dummy-virt (DT) [ 17.872194] Call trace: [ 17.872252] show_stack+0x20/0x38 (C) [ 17.872376] dump_stack_lvl+0x8c/0xd0 [ 17.872484] print_report+0x118/0x608 [ 17.872586] kasan_report+0xdc/0x128 [ 17.872673] __asan_report_load1_noabort+0x20/0x30 [ 17.872758] kmalloc_node_oob_right+0x2f4/0x330 [ 17.872878] kunit_try_run_case+0x170/0x3f0 [ 17.872995] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 17.873100] kthread+0x318/0x620 [ 17.873200] ret_from_fork+0x10/0x20 [ 17.873297] [ 17.877575] Allocated by task 130: [ 17.877939] kasan_save_stack+0x3c/0x68 [ 17.878367] kasan_save_track+0x20/0x40 [ 17.878653] kasan_save_alloc_info+0x40/0x58 [ 17.878942] __kasan_kmalloc+0xd4/0xd8 [ 17.879238] __kmalloc_cache_node_noprof+0x178/0x3d0 [ 17.879786] kmalloc_node_oob_right+0xbc/0x330 [ 17.880363] kunit_try_run_case+0x170/0x3f0 [ 17.880842] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 17.881410] kthread+0x318/0x620 [ 17.881755] ret_from_fork+0x10/0x20 [ 17.882172] [ 17.882378] The buggy address belongs to the object at fff00000c64e6000 [ 17.882378] which belongs to the cache kmalloc-4k of size 4096 [ 17.883000] The buggy address is located 0 bytes to the right of [ 17.883000] allocated 4096-byte region [fff00000c64e6000, fff00000c64e7000) [ 17.884034] [ 17.884300] The buggy address belongs to the physical page: [ 17.884810] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1064e0 [ 17.885497] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 17.886270] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 17.887042] page_type: f5(slab) [ 17.887473] raw: 0bfffe0000000040 fff00000c0002140 dead000000000122 0000000000000000 [ 17.887965] raw: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 17.888592] head: 0bfffe0000000040 fff00000c0002140 dead000000000122 0000000000000000 [ 17.889025] head: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 17.889746] head: 0bfffe0000000003 ffffc1ffc3193801 ffffffffffffffff 0000000000000000 [ 17.890579] head: 0000000000000008 0000000000000000 00000000ffffffff 0000000000000000 [ 17.891242] page dumped because: kasan: bad access detected [ 17.891729] [ 17.891888] Memory state around the buggy address: [ 17.892375] fff00000c64e6f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 17.892914] fff00000c64e6f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 17.893448] >fff00000c64e7000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.894139] ^ [ 17.894458] fff00000c64e7080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.895092] fff00000c64e7100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.895764] ==================================================================
[ 12.121361] ================================================================== [ 12.121836] BUG: KASAN: slab-out-of-bounds in kmalloc_node_oob_right+0x36b/0x3d0 [ 12.122907] Read of size 1 at addr ffff888102bd1000 by task kunit_try_catch/148 [ 12.123767] [ 12.124127] CPU: 1 UID: 0 PID: 148 Comm: kunit_try_catch Tainted: G B N 6.14.10-rc1 #1 [ 12.124174] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.124186] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.124205] Call Trace: [ 12.124218] <TASK> [ 12.124235] dump_stack_lvl+0x73/0xb0 [ 12.124261] print_report+0xd1/0x650 [ 12.124281] ? __virt_addr_valid+0x1db/0x2d0 [ 12.124303] ? kmalloc_node_oob_right+0x36b/0x3d0 [ 12.124324] ? kasan_complete_mode_report_info+0x2a/0x200 [ 12.124348] ? kmalloc_node_oob_right+0x36b/0x3d0 [ 12.124370] kasan_report+0x140/0x180 [ 12.124391] ? kmalloc_node_oob_right+0x36b/0x3d0 [ 12.124417] __asan_report_load1_noabort+0x18/0x20 [ 12.124439] kmalloc_node_oob_right+0x36b/0x3d0 [ 12.124462] ? __pfx_kmalloc_node_oob_right+0x10/0x10 [ 12.124486] ? __schedule+0xce8/0x2840 [ 12.124509] ? __pfx_read_tsc+0x10/0x10 [ 12.124530] ? ktime_get_ts64+0x86/0x230 [ 12.124556] kunit_try_run_case+0x1a6/0x480 [ 12.124578] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.124599] ? _raw_spin_lock_irqsave+0xa2/0x110 [ 12.124621] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 12.124643] ? __kthread_parkme+0x82/0x160 [ 12.124704] ? preempt_count_sub+0x50/0x80 [ 12.124730] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.124752] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.124777] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.124803] kthread+0x324/0x6e0 [ 12.124823] ? trace_preempt_on+0x20/0xc0 [ 12.124845] ? __pfx_kthread+0x10/0x10 [ 12.124866] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.124887] ? calculate_sigpending+0x7b/0xa0 [ 12.124908] ? __pfx_kthread+0x10/0x10 [ 12.124930] ret_from_fork+0x41/0x80 [ 12.124947] ? __pfx_kthread+0x10/0x10 [ 12.124968] ret_from_fork_asm+0x1a/0x30 [ 12.124998] </TASK> [ 12.125009] [ 12.133151] Allocated by task 148: [ 12.133374] kasan_save_stack+0x45/0x70 [ 12.133613] kasan_save_track+0x18/0x40 [ 12.133887] kasan_save_alloc_info+0x3b/0x50 [ 12.134116] __kasan_kmalloc+0xb7/0xc0 [ 12.134293] __kmalloc_cache_node_noprof+0x189/0x420 [ 12.134489] kmalloc_node_oob_right+0xac/0x3d0 [ 12.134810] kunit_try_run_case+0x1a6/0x480 [ 12.135057] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.135314] kthread+0x324/0x6e0 [ 12.135538] ret_from_fork+0x41/0x80 [ 12.135784] ret_from_fork_asm+0x1a/0x30 [ 12.136014] [ 12.136100] The buggy address belongs to the object at ffff888102bd0000 [ 12.136100] which belongs to the cache kmalloc-4k of size 4096 [ 12.136704] The buggy address is located 0 bytes to the right of [ 12.136704] allocated 4096-byte region [ffff888102bd0000, ffff888102bd1000) [ 12.137107] [ 12.137220] The buggy address belongs to the physical page: [ 12.137654] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102bd0 [ 12.138279] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 12.138709] flags: 0x200000000000040(head|node=0|zone=2) [ 12.139121] page_type: f5(slab) [ 12.139298] raw: 0200000000000040 ffff888100042140 dead000000000122 0000000000000000 [ 12.139577] raw: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 12.139926] head: 0200000000000040 ffff888100042140 dead000000000122 0000000000000000 [ 12.140273] head: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 12.140568] head: 0200000000000003 ffffea00040af401 ffffffffffffffff 0000000000000000 [ 12.140840] head: 0000000000000008 0000000000000000 00000000ffffffff 0000000000000000 [ 12.141198] page dumped because: kasan: bad access detected [ 12.141364] [ 12.141456] Memory state around the buggy address: [ 12.141755] ffff888102bd0f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 12.142048] ffff888102bd0f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 12.142433] >ffff888102bd1000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.142688] ^ [ 12.142951] ffff888102bd1080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.143319] ffff888102bd1100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.143810] ==================================================================