Date
June 7, 2025, 10:40 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 20.308490] ================================================================== [ 20.309652] BUG: KASAN: slab-out-of-bounds in kmalloc_node_oob_right+0x310/0x348 [ 20.310365] Read of size 1 at addr fff00000c6903000 by task kunit_try_catch/130 [ 20.311225] [ 20.311939] CPU: 0 UID: 0 PID: 130 Comm: kunit_try_catch Tainted: G B N 6.12.33-rc1 #1 [ 20.312224] Tainted: [B]=BAD_PAGE, [N]=TEST [ 20.312291] Hardware name: linux,dummy-virt (DT) [ 20.312370] Call trace: [ 20.312428] dump_backtrace+0x9c/0x128 [ 20.312543] show_stack+0x20/0x38 [ 20.312649] dump_stack_lvl+0x8c/0xd0 [ 20.312756] print_report+0x118/0x5f0 [ 20.312872] kasan_report+0xdc/0x128 [ 20.312980] __asan_report_load1_noabort+0x20/0x30 [ 20.313050] kmalloc_node_oob_right+0x310/0x348 [ 20.313101] kunit_try_run_case+0x170/0x3f0 [ 20.313147] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 20.313199] kthread+0x24c/0x2d0 [ 20.313246] ret_from_fork+0x10/0x20 [ 20.313293] [ 20.321113] Allocated by task 130: [ 20.321579] kasan_save_stack+0x3c/0x68 [ 20.322045] kasan_save_track+0x20/0x40 [ 20.322591] kasan_save_alloc_info+0x40/0x58 [ 20.323167] __kasan_kmalloc+0xd4/0xd8 [ 20.323704] __kmalloc_cache_node_noprof+0x174/0x348 [ 20.324362] kmalloc_node_oob_right+0xbc/0x348 [ 20.325356] kunit_try_run_case+0x170/0x3f0 [ 20.325883] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 20.326493] kthread+0x24c/0x2d0 [ 20.326991] ret_from_fork+0x10/0x20 [ 20.328000] [ 20.328241] The buggy address belongs to the object at fff00000c6902000 [ 20.328241] which belongs to the cache kmalloc-4k of size 4096 [ 20.329403] The buggy address is located 0 bytes to the right of [ 20.329403] allocated 4096-byte region [fff00000c6902000, fff00000c6903000) [ 20.330532] [ 20.330820] The buggy address belongs to the physical page: [ 20.331576] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106900 [ 20.332634] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 20.333381] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 20.334234] page_type: f5(slab) [ 20.334745] raw: 0bfffe0000000040 fff00000c0002140 dead000000000122 0000000000000000 [ 20.335673] raw: 0000000000000000 0000000080040004 00000001f5000000 0000000000000000 [ 20.336590] head: 0bfffe0000000040 fff00000c0002140 dead000000000122 0000000000000000 [ 20.337332] head: 0000000000000000 0000000080040004 00000001f5000000 0000000000000000 [ 20.338347] head: 0bfffe0000000003 ffffc1ffc31a4001 ffffffffffffffff 0000000000000000 [ 20.339139] head: 0000000000000008 0000000000000000 00000000ffffffff 0000000000000000 [ 20.340191] page dumped because: kasan: bad access detected [ 20.340795] [ 20.341135] Memory state around the buggy address: [ 20.341669] fff00000c6902f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 20.342468] fff00000c6902f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 20.343279] >fff00000c6903000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 20.344525] ^ [ 20.344997] fff00000c6903080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 20.346027] fff00000c6903100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 20.347265] ==================================================================
[ 16.395963] ================================================================== [ 16.396870] BUG: KASAN: slab-out-of-bounds in kmalloc_node_oob_right+0x36b/0x3d0 [ 16.397404] Read of size 1 at addr ffff888102b03000 by task kunit_try_catch/147 [ 16.398013] [ 16.398636] CPU: 0 UID: 0 PID: 147 Comm: kunit_try_catch Tainted: G B N 6.12.33-rc1 #1 [ 16.398755] Tainted: [B]=BAD_PAGE, [N]=TEST [ 16.398791] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 16.398886] Call Trace: [ 16.398906] <TASK> [ 16.398936] dump_stack_lvl+0x73/0xb0 [ 16.398986] print_report+0xd1/0x640 [ 16.399026] ? __virt_addr_valid+0x1db/0x2d0 [ 16.399099] ? kmalloc_node_oob_right+0x36b/0x3d0 [ 16.399169] ? kasan_complete_mode_report_info+0x2a/0x200 [ 16.399272] ? kmalloc_node_oob_right+0x36b/0x3d0 [ 16.399343] kasan_report+0x140/0x180 [ 16.399420] ? kmalloc_node_oob_right+0x36b/0x3d0 [ 16.399640] __asan_report_load1_noabort+0x18/0x20 [ 16.399713] kmalloc_node_oob_right+0x36b/0x3d0 [ 16.399765] ? __pfx_kmalloc_node_oob_right+0x10/0x10 [ 16.399798] ? __schedule+0xc49/0x27a0 [ 16.399879] ? __pfx_read_tsc+0x10/0x10 [ 16.399908] ? ktime_get_ts64+0x84/0x230 [ 16.399946] kunit_try_run_case+0x1a6/0x480 [ 16.399980] ? __pfx_kunit_try_run_case+0x10/0x10 [ 16.400011] ? irqentry_exit+0x2a/0x60 [ 16.400042] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 16.400084] ? __pfx_kunit_try_run_case+0x10/0x10 [ 16.400112] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 16.400148] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 16.400185] kthread+0x257/0x310 [ 16.400236] ? __pfx_kthread+0x10/0x10 [ 16.400267] ret_from_fork+0x41/0x80 [ 16.400296] ? __pfx_kthread+0x10/0x10 [ 16.400323] ret_from_fork_asm+0x1a/0x30 [ 16.400365] </TASK> [ 16.400378] [ 16.417576] Allocated by task 147: [ 16.418136] kasan_save_stack+0x45/0x70 [ 16.418911] kasan_save_track+0x18/0x40 [ 16.419452] kasan_save_alloc_info+0x3b/0x50 [ 16.420113] __kasan_kmalloc+0xb7/0xc0 [ 16.421177] __kmalloc_cache_node_noprof+0x187/0x370 [ 16.421897] kmalloc_node_oob_right+0xac/0x3d0 [ 16.422295] kunit_try_run_case+0x1a6/0x480 [ 16.422719] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 16.423472] kthread+0x257/0x310 [ 16.424374] ret_from_fork+0x41/0x80 [ 16.424760] ret_from_fork_asm+0x1a/0x30 [ 16.425711] [ 16.425886] The buggy address belongs to the object at ffff888102b02000 [ 16.425886] which belongs to the cache kmalloc-4k of size 4096 [ 16.427192] The buggy address is located 0 bytes to the right of [ 16.427192] allocated 4096-byte region [ffff888102b02000, ffff888102b03000) [ 16.428593] [ 16.429237] The buggy address belongs to the physical page: [ 16.430115] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102b00 [ 16.431327] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 16.432136] flags: 0x200000000000040(head|node=0|zone=2) [ 16.433136] page_type: f5(slab) [ 16.433768] raw: 0200000000000040 ffff888100042140 dead000000000122 0000000000000000 [ 16.434508] raw: 0000000000000000 0000000080040004 00000001f5000000 0000000000000000 [ 16.435371] head: 0200000000000040 ffff888100042140 dead000000000122 0000000000000000 [ 16.435951] head: 0000000000000000 0000000080040004 00000001f5000000 0000000000000000 [ 16.437069] head: 0200000000000003 ffffea00040ac001 ffffffffffffffff 0000000000000000 [ 16.437925] head: 0000000000000008 0000000000000000 00000000ffffffff 0000000000000000 [ 16.438888] page dumped because: kasan: bad access detected [ 16.439798] [ 16.439983] Memory state around the buggy address: [ 16.441061] ffff888102b02f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 16.441639] ffff888102b02f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 16.442616] >ffff888102b03000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.443400] ^ [ 16.444143] ffff888102b03080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.444736] ffff888102b03100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.445583] ==================================================================