Date
June 7, 2025, 10:40 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 21.639681] ================================================================== [ 21.640546] BUG: KASAN: slab-out-of-bounds in kmalloc_node_oob_right+0x2f4/0x330 [ 21.641402] Read of size 1 at addr fff00000c639d000 by task kunit_try_catch/129 [ 21.643269] [ 21.643638] CPU: 0 UID: 0 PID: 129 Comm: kunit_try_catch Tainted: G B N 6.14.11-rc1 #1 [ 21.643823] Tainted: [B]=BAD_PAGE, [N]=TEST [ 21.643903] Hardware name: linux,dummy-virt (DT) [ 21.643979] Call trace: [ 21.644090] show_stack+0x20/0x38 (C) [ 21.644261] dump_stack_lvl+0x8c/0xd0 [ 21.644452] print_report+0x118/0x608 [ 21.644691] kasan_report+0xdc/0x128 [ 21.644827] __asan_report_load1_noabort+0x20/0x30 [ 21.644962] kmalloc_node_oob_right+0x2f4/0x330 [ 21.645028] kunit_try_run_case+0x170/0x3f0 [ 21.645134] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 21.645268] kthread+0x318/0x620 [ 21.645409] ret_from_fork+0x10/0x20 [ 21.645477] [ 21.652619] Allocated by task 129: [ 21.653839] kasan_save_stack+0x3c/0x68 [ 21.654394] kasan_save_track+0x20/0x40 [ 21.654898] kasan_save_alloc_info+0x40/0x58 [ 21.655458] __kasan_kmalloc+0xd4/0xd8 [ 21.655996] __kmalloc_cache_node_noprof+0x178/0x3d0 [ 21.656639] kmalloc_node_oob_right+0xbc/0x330 [ 21.657180] kunit_try_run_case+0x170/0x3f0 [ 21.658219] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 21.658958] kthread+0x318/0x620 [ 21.659462] ret_from_fork+0x10/0x20 [ 21.660018] [ 21.660344] The buggy address belongs to the object at fff00000c639c000 [ 21.660344] which belongs to the cache kmalloc-4k of size 4096 [ 21.661587] The buggy address is located 0 bytes to the right of [ 21.661587] allocated 4096-byte region [fff00000c639c000, fff00000c639d000) [ 21.663571] [ 21.663826] The buggy address belongs to the physical page: [ 21.664380] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106398 [ 21.665574] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 21.666499] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 21.667290] page_type: f5(slab) [ 21.667754] raw: 0bfffe0000000040 fff00000c0002140 dead000000000122 0000000000000000 [ 21.668541] raw: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 21.669663] head: 0bfffe0000000040 fff00000c0002140 dead000000000122 0000000000000000 [ 21.670344] head: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 21.671133] head: 0bfffe0000000003 ffffc1ffc318e601 ffffffffffffffff 0000000000000000 [ 21.671918] head: 0000000000000008 0000000000000000 00000000ffffffff 0000000000000000 [ 21.672620] page dumped because: kasan: bad access detected [ 21.673349] [ 21.673688] Memory state around the buggy address: [ 21.674576] fff00000c639cf00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 21.675423] fff00000c639cf80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 21.676142] >fff00000c639d000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.676909] ^ [ 21.677456] fff00000c639d080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.678204] fff00000c639d100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.679134] ==================================================================
[ 16.515386] ================================================================== [ 16.516208] BUG: KASAN: slab-out-of-bounds in kmalloc_node_oob_right+0x36b/0x3d0 [ 16.516920] Read of size 1 at addr ffff8881027ad000 by task kunit_try_catch/148 [ 16.517263] [ 16.517503] CPU: 1 UID: 0 PID: 148 Comm: kunit_try_catch Tainted: G B N 6.14.11-rc1 #1 [ 16.517608] Tainted: [B]=BAD_PAGE, [N]=TEST [ 16.517639] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 16.517691] Call Trace: [ 16.517724] <TASK> [ 16.517765] dump_stack_lvl+0x73/0xb0 [ 16.517846] print_report+0xd1/0x650 [ 16.517951] ? __virt_addr_valid+0x1db/0x2d0 [ 16.518010] ? kmalloc_node_oob_right+0x36b/0x3d0 [ 16.518056] ? kasan_complete_mode_report_info+0x2a/0x200 [ 16.518105] ? kmalloc_node_oob_right+0x36b/0x3d0 [ 16.518148] kasan_report+0x140/0x180 [ 16.518197] ? kmalloc_node_oob_right+0x36b/0x3d0 [ 16.518257] __asan_report_load1_noabort+0x18/0x20 [ 16.518343] kmalloc_node_oob_right+0x36b/0x3d0 [ 16.518404] ? __pfx_kmalloc_node_oob_right+0x10/0x10 [ 16.518492] ? __schedule+0xce8/0x2840 [ 16.518548] ? __pfx_read_tsc+0x10/0x10 [ 16.518598] ? ktime_get_ts64+0x86/0x230 [ 16.518662] kunit_try_run_case+0x1a6/0x480 [ 16.518724] ? __pfx_kunit_try_run_case+0x10/0x10 [ 16.518770] ? _raw_spin_lock_irqsave+0xa2/0x110 [ 16.518826] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 16.518900] ? __kthread_parkme+0x82/0x160 [ 16.518957] ? preempt_count_sub+0x50/0x80 [ 16.519018] ? __pfx_kunit_try_run_case+0x10/0x10 [ 16.519068] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 16.519127] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 16.519179] kthread+0x324/0x6e0 [ 16.519226] ? trace_preempt_on+0x20/0xc0 [ 16.519282] ? __pfx_kthread+0x10/0x10 [ 16.519373] ? _raw_spin_unlock_irq+0x47/0x80 [ 16.519457] ? calculate_sigpending+0x7b/0xa0 [ 16.519513] ? __pfx_kthread+0x10/0x10 [ 16.519561] ret_from_fork+0x41/0x80 [ 16.519600] ? __pfx_kthread+0x10/0x10 [ 16.519639] ret_from_fork_asm+0x1a/0x30 [ 16.519709] </TASK> [ 16.519727] [ 16.533190] Allocated by task 148: [ 16.533778] kasan_save_stack+0x45/0x70 [ 16.534187] kasan_save_track+0x18/0x40 [ 16.534709] kasan_save_alloc_info+0x3b/0x50 [ 16.535005] __kasan_kmalloc+0xb7/0xc0 [ 16.535353] __kmalloc_cache_node_noprof+0x189/0x420 [ 16.536145] kmalloc_node_oob_right+0xac/0x3d0 [ 16.536494] kunit_try_run_case+0x1a6/0x480 [ 16.536924] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 16.537342] kthread+0x324/0x6e0 [ 16.537832] ret_from_fork+0x41/0x80 [ 16.538232] ret_from_fork_asm+0x1a/0x30 [ 16.538602] [ 16.538814] The buggy address belongs to the object at ffff8881027ac000 [ 16.538814] which belongs to the cache kmalloc-4k of size 4096 [ 16.539575] The buggy address is located 0 bytes to the right of [ 16.539575] allocated 4096-byte region [ffff8881027ac000, ffff8881027ad000) [ 16.540400] [ 16.540619] The buggy address belongs to the physical page: [ 16.541853] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1027a8 [ 16.543076] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 16.543817] flags: 0x200000000000040(head|node=0|zone=2) [ 16.544819] page_type: f5(slab) [ 16.545097] raw: 0200000000000040 ffff888100042140 dead000000000122 0000000000000000 [ 16.545737] raw: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 16.546453] head: 0200000000000040 ffff888100042140 dead000000000122 0000000000000000 [ 16.546899] head: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 16.547290] head: 0200000000000003 ffffea000409ea01 ffffffffffffffff 0000000000000000 [ 16.548293] head: 0000000000000008 0000000000000000 00000000ffffffff 0000000000000000 [ 16.549327] page dumped because: kasan: bad access detected [ 16.549893] [ 16.550038] Memory state around the buggy address: [ 16.550595] ffff8881027acf00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 16.551108] ffff8881027acf80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 16.551770] >ffff8881027ad000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.552234] ^ [ 16.552833] ffff8881027ad080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.553403] ffff8881027ad100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.554269] ==================================================================