Date
June 18, 2025, 6:43 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 19.741621] ================================================================== [ 19.741808] BUG: KASAN: slab-out-of-bounds in kmalloc_node_oob_right+0x2f4/0x330 [ 19.741954] Read of size 1 at addr fff00000c7503000 by task kunit_try_catch/150 [ 19.742089] [ 19.742377] CPU: 0 UID: 0 PID: 150 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc2-next-20250618 #1 PREEMPT [ 19.742972] Tainted: [B]=BAD_PAGE, [N]=TEST [ 19.743065] Hardware name: linux,dummy-virt (DT) [ 19.743130] Call trace: [ 19.743174] show_stack+0x20/0x38 (C) [ 19.743675] dump_stack_lvl+0x8c/0xd0 [ 19.743919] print_report+0x118/0x608 [ 19.744048] kasan_report+0xdc/0x128 [ 19.744149] __asan_report_load1_noabort+0x20/0x30 [ 19.744268] kmalloc_node_oob_right+0x2f4/0x330 [ 19.744381] kunit_try_run_case+0x170/0x3f0 [ 19.744493] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 19.744634] kthread+0x328/0x630 [ 19.744748] ret_from_fork+0x10/0x20 [ 19.744863] [ 19.744906] Allocated by task 150: [ 19.744971] kasan_save_stack+0x3c/0x68 [ 19.745073] kasan_save_track+0x20/0x40 [ 19.745157] kasan_save_alloc_info+0x40/0x58 [ 19.745250] __kasan_kmalloc+0xd4/0xd8 [ 19.745328] __kmalloc_cache_node_noprof+0x178/0x3d0 [ 19.745423] kmalloc_node_oob_right+0xbc/0x330 [ 19.745510] kunit_try_run_case+0x170/0x3f0 [ 19.745599] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 19.745691] kthread+0x328/0x630 [ 19.745772] ret_from_fork+0x10/0x20 [ 19.746089] [ 19.746135] The buggy address belongs to the object at fff00000c7502000 [ 19.746135] which belongs to the cache kmalloc-4k of size 4096 [ 19.746267] The buggy address is located 0 bytes to the right of [ 19.746267] allocated 4096-byte region [fff00000c7502000, fff00000c7503000) [ 19.746888] [ 19.746978] The buggy address belongs to the physical page: [ 19.747156] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107500 [ 19.747569] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 19.747684] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 19.747832] page_type: f5(slab) [ 19.747926] raw: 0bfffe0000000040 fff00000c0002140 dead000000000122 0000000000000000 [ 19.748105] raw: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 19.748287] head: 0bfffe0000000040 fff00000c0002140 dead000000000122 0000000000000000 [ 19.748442] head: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 19.748612] head: 0bfffe0000000003 ffffc1ffc31d4001 00000000ffffffff 00000000ffffffff [ 19.748714] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 19.748812] page dumped because: kasan: bad access detected [ 19.748914] [ 19.748954] Memory state around the buggy address: [ 19.749033] fff00000c7502f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 19.749130] fff00000c7502f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 19.749240] >fff00000c7503000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.749325] ^ [ 19.749383] fff00000c7503080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.749472] fff00000c7503100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.749561] ==================================================================
[ 10.533426] ================================================================== [ 10.534120] BUG: KASAN: slab-out-of-bounds in kmalloc_node_oob_right+0x369/0x3c0 [ 10.534775] Read of size 1 at addr ffff8881038f7000 by task kunit_try_catch/166 [ 10.535625] [ 10.535860] CPU: 0 UID: 0 PID: 166 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc2-next-20250618 #1 PREEMPT(voluntary) [ 10.535912] Tainted: [B]=BAD_PAGE, [N]=TEST [ 10.535924] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 10.535944] Call Trace: [ 10.535956] <TASK> [ 10.535973] dump_stack_lvl+0x73/0xb0 [ 10.536002] print_report+0xd1/0x650 [ 10.536023] ? __virt_addr_valid+0x1db/0x2d0 [ 10.536045] ? kmalloc_node_oob_right+0x369/0x3c0 [ 10.536067] ? kasan_complete_mode_report_info+0x2a/0x200 [ 10.536091] ? kmalloc_node_oob_right+0x369/0x3c0 [ 10.536113] kasan_report+0x141/0x180 [ 10.536134] ? kmalloc_node_oob_right+0x369/0x3c0 [ 10.536160] __asan_report_load1_noabort+0x18/0x20 [ 10.536182] kmalloc_node_oob_right+0x369/0x3c0 [ 10.536219] ? __pfx_kmalloc_node_oob_right+0x10/0x10 [ 10.536242] ? __schedule+0x10cc/0x2b60 [ 10.536262] ? __pfx_read_tsc+0x10/0x10 [ 10.536283] ? ktime_get_ts64+0x86/0x230 [ 10.536307] kunit_try_run_case+0x1a5/0x480 [ 10.536330] ? __pfx_kunit_try_run_case+0x10/0x10 [ 10.536351] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 10.536373] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 10.536394] ? __kthread_parkme+0x82/0x180 [ 10.536413] ? preempt_count_sub+0x50/0x80 [ 10.536436] ? __pfx_kunit_try_run_case+0x10/0x10 [ 10.536458] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 10.536478] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 10.536500] kthread+0x337/0x6f0 [ 10.536518] ? trace_preempt_on+0x20/0xc0 [ 10.536540] ? __pfx_kthread+0x10/0x10 [ 10.536559] ? _raw_spin_unlock_irq+0x47/0x80 [ 10.536578] ? calculate_sigpending+0x7b/0xa0 [ 10.536601] ? __pfx_kthread+0x10/0x10 [ 10.536621] ret_from_fork+0x116/0x1d0 [ 10.536639] ? __pfx_kthread+0x10/0x10 [ 10.536661] ret_from_fork_asm+0x1a/0x30 [ 10.536691] </TASK> [ 10.536701] [ 10.543812] Allocated by task 166: [ 10.543970] kasan_save_stack+0x45/0x70 [ 10.544151] kasan_save_track+0x18/0x40 [ 10.544370] kasan_save_alloc_info+0x3b/0x50 [ 10.544749] __kasan_kmalloc+0xb7/0xc0 [ 10.544922] __kmalloc_cache_node_noprof+0x188/0x420 [ 10.545123] kmalloc_node_oob_right+0xab/0x3c0 [ 10.545362] kunit_try_run_case+0x1a5/0x480 [ 10.545617] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 10.545840] kthread+0x337/0x6f0 [ 10.546002] ret_from_fork+0x116/0x1d0 [ 10.546161] ret_from_fork_asm+0x1a/0x30 [ 10.546364] [ 10.546451] The buggy address belongs to the object at ffff8881038f6000 [ 10.546451] which belongs to the cache kmalloc-4k of size 4096 [ 10.546995] The buggy address is located 0 bytes to the right of [ 10.546995] allocated 4096-byte region [ffff8881038f6000, ffff8881038f7000) [ 10.547496] [ 10.547561] The buggy address belongs to the physical page: [ 10.547890] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1038f0 [ 10.548468] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 10.548732] flags: 0x200000000000040(head|node=0|zone=2) [ 10.549174] page_type: f5(slab) [ 10.551165] raw: 0200000000000040 ffff888100042140 dead000000000122 0000000000000000 [ 10.551418] raw: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 10.551671] head: 0200000000000040 ffff888100042140 dead000000000122 0000000000000000 [ 10.551896] head: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 10.552161] head: 0200000000000003 ffffea00040e3c01 00000000ffffffff 00000000ffffffff [ 10.552921] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 10.553167] page dumped because: kasan: bad access detected [ 10.553402] [ 10.553511] Memory state around the buggy address: [ 10.553727] ffff8881038f6f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 10.554916] ffff8881038f6f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 10.555472] >ffff8881038f7000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 10.555748] ^ [ 10.555857] ffff8881038f7080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 10.556145] ffff8881038f7100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 10.556496] ==================================================================