Date
July 1, 2025, 3:08 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 16.663604] ================================================================== [ 16.663671] BUG: KASAN: slab-out-of-bounds in kmalloc_node_oob_right+0x2f4/0x330 [ 16.663724] Read of size 1 at addr fff00000c5ff3000 by task kunit_try_catch/141 [ 16.663774] [ 16.663806] CPU: 1 UID: 0 PID: 141 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT [ 16.663888] Tainted: [B]=BAD_PAGE, [N]=TEST [ 16.663916] Hardware name: linux,dummy-virt (DT) [ 16.664055] Call trace: [ 16.664087] show_stack+0x20/0x38 (C) [ 16.664136] dump_stack_lvl+0x8c/0xd0 [ 16.664183] print_report+0x118/0x608 [ 16.664685] kasan_report+0xdc/0x128 [ 16.664843] __asan_report_load1_noabort+0x20/0x30 [ 16.665364] kmalloc_node_oob_right+0x2f4/0x330 [ 16.665897] kunit_try_run_case+0x170/0x3f0 [ 16.665948] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.666002] kthread+0x328/0x630 [ 16.666044] ret_from_fork+0x10/0x20 [ 16.666930] [ 16.666985] Allocated by task 141: [ 16.667015] kasan_save_stack+0x3c/0x68 [ 16.667059] kasan_save_track+0x20/0x40 [ 16.667097] kasan_save_alloc_info+0x40/0x58 [ 16.668009] __kasan_kmalloc+0xd4/0xd8 [ 16.668270] __kmalloc_cache_node_noprof+0x178/0x3d0 [ 16.668488] kmalloc_node_oob_right+0xbc/0x330 [ 16.668729] kunit_try_run_case+0x170/0x3f0 [ 16.668805] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.669462] kthread+0x328/0x630 [ 16.669531] ret_from_fork+0x10/0x20 [ 16.669577] [ 16.670431] The buggy address belongs to the object at fff00000c5ff2000 [ 16.670431] which belongs to the cache kmalloc-4k of size 4096 [ 16.670655] The buggy address is located 0 bytes to the right of [ 16.670655] allocated 4096-byte region [fff00000c5ff2000, fff00000c5ff3000) [ 16.671020] [ 16.671080] The buggy address belongs to the physical page: [ 16.671731] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105ff0 [ 16.673230] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 16.673298] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 16.674072] page_type: f5(slab) [ 16.674123] raw: 0bfffe0000000040 fff00000c0002140 dead000000000122 0000000000000000 [ 16.674174] raw: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 16.674234] head: 0bfffe0000000040 fff00000c0002140 dead000000000122 0000000000000000 [ 16.674284] head: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 16.674336] head: 0bfffe0000000003 ffffc1ffc317fc01 00000000ffffffff 00000000ffffffff [ 16.674385] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 16.674429] page dumped because: kasan: bad access detected [ 16.674460] [ 16.674478] Memory state around the buggy address: [ 16.674512] fff00000c5ff2f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 16.674555] fff00000c5ff2f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 16.674691] >fff00000c5ff3000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.674858] ^ [ 16.674975] fff00000c5ff3080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.675018] fff00000c5ff3100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.675055] ==================================================================
[ 10.907620] ================================================================== [ 10.908105] BUG: KASAN: slab-out-of-bounds in kmalloc_node_oob_right+0x369/0x3c0 [ 10.908432] Read of size 1 at addr ffff8881029c7000 by task kunit_try_catch/157 [ 10.909323] [ 10.909456] CPU: 0 UID: 0 PID: 157 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT(voluntary) [ 10.909506] Tainted: [B]=BAD_PAGE, [N]=TEST [ 10.909517] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 10.909539] Call Trace: [ 10.909551] <TASK> [ 10.909570] dump_stack_lvl+0x73/0xb0 [ 10.909602] print_report+0xd1/0x650 [ 10.909625] ? __virt_addr_valid+0x1db/0x2d0 [ 10.909755] ? kmalloc_node_oob_right+0x369/0x3c0 [ 10.909783] ? kasan_complete_mode_report_info+0x2a/0x200 [ 10.909804] ? kmalloc_node_oob_right+0x369/0x3c0 [ 10.909827] kasan_report+0x141/0x180 [ 10.909848] ? kmalloc_node_oob_right+0x369/0x3c0 [ 10.909876] __asan_report_load1_noabort+0x18/0x20 [ 10.909899] kmalloc_node_oob_right+0x369/0x3c0 [ 10.909922] ? __pfx_kmalloc_node_oob_right+0x10/0x10 [ 10.909944] ? __schedule+0x10cc/0x2b60 [ 10.909966] ? __pfx_read_tsc+0x10/0x10 [ 10.909987] ? ktime_get_ts64+0x86/0x230 [ 10.910011] kunit_try_run_case+0x1a5/0x480 [ 10.910050] ? __pfx_kunit_try_run_case+0x10/0x10 [ 10.910071] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 10.910093] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 10.910114] ? __kthread_parkme+0x82/0x180 [ 10.910133] ? preempt_count_sub+0x50/0x80 [ 10.910156] ? __pfx_kunit_try_run_case+0x10/0x10 [ 10.910178] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 10.910199] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 10.910221] kthread+0x337/0x6f0 [ 10.910239] ? trace_preempt_on+0x20/0xc0 [ 10.910261] ? __pfx_kthread+0x10/0x10 [ 10.910280] ? _raw_spin_unlock_irq+0x47/0x80 [ 10.910300] ? calculate_sigpending+0x7b/0xa0 [ 10.910322] ? __pfx_kthread+0x10/0x10 [ 10.910342] ret_from_fork+0x116/0x1d0 [ 10.910360] ? __pfx_kthread+0x10/0x10 [ 10.910379] ret_from_fork_asm+0x1a/0x30 [ 10.910408] </TASK> [ 10.910420] [ 10.917369] Allocated by task 157: [ 10.917627] kasan_save_stack+0x45/0x70 [ 10.917832] kasan_save_track+0x18/0x40 [ 10.918029] kasan_save_alloc_info+0x3b/0x50 [ 10.918239] __kasan_kmalloc+0xb7/0xc0 [ 10.918422] __kmalloc_cache_node_noprof+0x188/0x420 [ 10.918593] kmalloc_node_oob_right+0xab/0x3c0 [ 10.918743] kunit_try_run_case+0x1a5/0x480 [ 10.919065] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 10.919315] kthread+0x337/0x6f0 [ 10.919482] ret_from_fork+0x116/0x1d0 [ 10.919737] ret_from_fork_asm+0x1a/0x30 [ 10.919896] [ 10.919992] The buggy address belongs to the object at ffff8881029c6000 [ 10.919992] which belongs to the cache kmalloc-4k of size 4096 [ 10.920411] The buggy address is located 0 bytes to the right of [ 10.920411] allocated 4096-byte region [ffff8881029c6000, ffff8881029c7000) [ 10.921212] [ 10.921317] The buggy address belongs to the physical page: [ 10.921596] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1029c0 [ 10.922141] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 10.922377] flags: 0x200000000000040(head|node=0|zone=2) [ 10.923322] page_type: f5(slab) [ 10.923512] raw: 0200000000000040 ffff888100042140 dead000000000122 0000000000000000 [ 10.924213] raw: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 10.924568] head: 0200000000000040 ffff888100042140 dead000000000122 0000000000000000 [ 10.925041] head: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 10.925346] head: 0200000000000003 ffffea00040a7001 00000000ffffffff 00000000ffffffff [ 10.925745] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 10.925989] page dumped because: kasan: bad access detected [ 10.926181] [ 10.926279] Memory state around the buggy address: [ 10.926510] ffff8881029c6f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 10.926971] ffff8881029c6f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 10.927339] >ffff8881029c7000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 10.927618] ^ [ 10.927948] ffff8881029c7080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 10.928194] ffff8881029c7100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 10.928434] ==================================================================