Date
July 3, 2025, 6:13 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 16.480074] ================================================================== [ 16.480133] BUG: KASAN: slab-out-of-bounds in kmalloc_node_oob_right+0x2f4/0x330 [ 16.480394] Read of size 1 at addr fff00000c7881000 by task kunit_try_catch/140 [ 16.480524] [ 16.480605] CPU: 0 UID: 0 PID: 140 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT [ 16.480697] Tainted: [B]=BAD_PAGE, [N]=TEST [ 16.480773] Hardware name: linux,dummy-virt (DT) [ 16.480962] Call trace: [ 16.481056] show_stack+0x20/0x38 (C) [ 16.481186] dump_stack_lvl+0x8c/0xd0 [ 16.481261] print_report+0x118/0x608 [ 16.481306] kasan_report+0xdc/0x128 [ 16.481608] __asan_report_load1_noabort+0x20/0x30 [ 16.481827] kmalloc_node_oob_right+0x2f4/0x330 [ 16.481964] kunit_try_run_case+0x170/0x3f0 [ 16.482179] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.482312] kthread+0x328/0x630 [ 16.482431] ret_from_fork+0x10/0x20 [ 16.482515] [ 16.482721] Allocated by task 140: [ 16.482859] kasan_save_stack+0x3c/0x68 [ 16.483134] kasan_save_track+0x20/0x40 [ 16.483222] kasan_save_alloc_info+0x40/0x58 [ 16.483407] __kasan_kmalloc+0xd4/0xd8 [ 16.483524] __kmalloc_cache_node_noprof+0x178/0x3d0 [ 16.483791] kmalloc_node_oob_right+0xbc/0x330 [ 16.483923] kunit_try_run_case+0x170/0x3f0 [ 16.484141] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.484260] kthread+0x328/0x630 [ 16.484347] ret_from_fork+0x10/0x20 [ 16.484619] [ 16.484944] The buggy address belongs to the object at fff00000c7880000 [ 16.484944] which belongs to the cache kmalloc-4k of size 4096 [ 16.485019] The buggy address is located 0 bytes to the right of [ 16.485019] allocated 4096-byte region [fff00000c7880000, fff00000c7881000) [ 16.485091] [ 16.485239] The buggy address belongs to the physical page: [ 16.485842] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107880 [ 16.486409] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 16.486511] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 16.486905] page_type: f5(slab) [ 16.486957] raw: 0bfffe0000000040 fff00000c0002140 dead000000000122 0000000000000000 [ 16.487220] raw: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 16.487563] head: 0bfffe0000000040 fff00000c0002140 dead000000000122 0000000000000000 [ 16.487653] head: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 16.487802] head: 0bfffe0000000003 ffffc1ffc31e2001 00000000ffffffff 00000000ffffffff [ 16.487932] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 16.488141] page dumped because: kasan: bad access detected [ 16.488235] [ 16.488324] Memory state around the buggy address: [ 16.488417] fff00000c7880f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 16.488465] fff00000c7880f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 16.488654] >fff00000c7881000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.488866] ^ [ 16.488984] fff00000c7881080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.489136] fff00000c7881100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.489200] ==================================================================
[ 10.853303] ================================================================== [ 10.853753] BUG: KASAN: slab-out-of-bounds in kmalloc_node_oob_right+0x369/0x3c0 [ 10.854037] Read of size 1 at addr ffff8881036bb000 by task kunit_try_catch/158 [ 10.855054] [ 10.855197] CPU: 1 UID: 0 PID: 158 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT(voluntary) [ 10.855251] Tainted: [B]=BAD_PAGE, [N]=TEST [ 10.855263] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 10.855282] Call Trace: [ 10.855294] <TASK> [ 10.855309] dump_stack_lvl+0x73/0xb0 [ 10.855846] print_report+0xd1/0x650 [ 10.855881] ? __virt_addr_valid+0x1db/0x2d0 [ 10.855905] ? kmalloc_node_oob_right+0x369/0x3c0 [ 10.855927] ? kasan_complete_mode_report_info+0x2a/0x200 [ 10.855950] ? kmalloc_node_oob_right+0x369/0x3c0 [ 10.855973] kasan_report+0x141/0x180 [ 10.855994] ? kmalloc_node_oob_right+0x369/0x3c0 [ 10.856022] __asan_report_load1_noabort+0x18/0x20 [ 10.856045] kmalloc_node_oob_right+0x369/0x3c0 [ 10.856068] ? __pfx_kmalloc_node_oob_right+0x10/0x10 [ 10.856093] ? __pfx_kmalloc_node_oob_right+0x10/0x10 [ 10.856130] kunit_try_run_case+0x1a5/0x480 [ 10.856152] ? __pfx_kunit_try_run_case+0x10/0x10 [ 10.856173] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 10.856194] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 10.856216] ? __kthread_parkme+0x82/0x180 [ 10.856235] ? preempt_count_sub+0x50/0x80 [ 10.856257] ? __pfx_kunit_try_run_case+0x10/0x10 [ 10.856278] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 10.856300] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 10.856321] kthread+0x337/0x6f0 [ 10.856340] ? trace_preempt_on+0x20/0xc0 [ 10.856364] ? __pfx_kthread+0x10/0x10 [ 10.856383] ? _raw_spin_unlock_irq+0x47/0x80 [ 10.856402] ? calculate_sigpending+0x7b/0xa0 [ 10.856424] ? __pfx_kthread+0x10/0x10 [ 10.856444] ret_from_fork+0x116/0x1d0 [ 10.856461] ? __pfx_kthread+0x10/0x10 [ 10.856480] ret_from_fork_asm+0x1a/0x30 [ 10.856509] </TASK> [ 10.856520] [ 10.869639] Allocated by task 158: [ 10.870056] kasan_save_stack+0x45/0x70 [ 10.870346] kasan_save_track+0x18/0x40 [ 10.870746] kasan_save_alloc_info+0x3b/0x50 [ 10.871082] __kasan_kmalloc+0xb7/0xc0 [ 10.871470] __kmalloc_cache_node_noprof+0x188/0x420 [ 10.871838] kmalloc_node_oob_right+0xab/0x3c0 [ 10.872071] kunit_try_run_case+0x1a5/0x480 [ 10.872292] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 10.872802] kthread+0x337/0x6f0 [ 10.873170] ret_from_fork+0x116/0x1d0 [ 10.873400] ret_from_fork_asm+0x1a/0x30 [ 10.873687] [ 10.873790] The buggy address belongs to the object at ffff8881036ba000 [ 10.873790] which belongs to the cache kmalloc-4k of size 4096 [ 10.874294] The buggy address is located 0 bytes to the right of [ 10.874294] allocated 4096-byte region [ffff8881036ba000, ffff8881036bb000) [ 10.875184] [ 10.875416] The buggy address belongs to the physical page: [ 10.876016] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1036b8 [ 10.876718] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 10.877036] flags: 0x200000000000040(head|node=0|zone=2) [ 10.877546] page_type: f5(slab) [ 10.877720] raw: 0200000000000040 ffff888100042140 dead000000000122 0000000000000000 [ 10.878004] raw: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 10.878742] head: 0200000000000040 ffff888100042140 dead000000000122 0000000000000000 [ 10.879045] head: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 10.879611] head: 0200000000000003 ffffea00040dae01 00000000ffffffff 00000000ffffffff [ 10.880077] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 10.880640] page dumped because: kasan: bad access detected [ 10.881006] [ 10.881106] Memory state around the buggy address: [ 10.881335] ffff8881036baf00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 10.881895] ffff8881036baf80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 10.882333] >ffff8881036bb000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 10.882759] ^ [ 10.883030] ffff8881036bb080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 10.883529] ffff8881036bb100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 10.883991] ==================================================================