Date
July 5, 2025, 11:09 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 18.530971] ================================================================== [ 18.531093] BUG: KASAN: slab-out-of-bounds in kmalloc_track_caller_oob_right+0x40c/0x488 [ 18.531197] Write of size 1 at addr fff00000c56f1678 by task kunit_try_catch/143 [ 18.531294] [ 18.531352] CPU: 0 UID: 0 PID: 143 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT [ 18.531522] Tainted: [B]=BAD_PAGE, [N]=TEST [ 18.531575] Hardware name: linux,dummy-virt (DT) [ 18.531634] Call trace: [ 18.531677] show_stack+0x20/0x38 (C) [ 18.531776] dump_stack_lvl+0x8c/0xd0 [ 18.531891] print_report+0x118/0x608 [ 18.531995] kasan_report+0xdc/0x128 [ 18.532095] __asan_report_store1_noabort+0x20/0x30 [ 18.532202] kmalloc_track_caller_oob_right+0x40c/0x488 [ 18.532587] kunit_try_run_case+0x170/0x3f0 [ 18.532727] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.533121] kthread+0x328/0x630 [ 18.534066] ret_from_fork+0x10/0x20 [ 18.534156] [ 18.534194] Allocated by task 143: [ 18.534256] kasan_save_stack+0x3c/0x68 [ 18.534678] kasan_save_track+0x20/0x40 [ 18.534762] kasan_save_alloc_info+0x40/0x58 [ 18.534846] __kasan_kmalloc+0xd4/0xd8 [ 18.534925] __kmalloc_node_track_caller_noprof+0x194/0x4b8 [ 18.535040] kmalloc_track_caller_oob_right+0xa8/0x488 [ 18.535131] kunit_try_run_case+0x170/0x3f0 [ 18.535222] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.535315] kthread+0x328/0x630 [ 18.535405] ret_from_fork+0x10/0x20 [ 18.535470] [ 18.535503] The buggy address belongs to the object at fff00000c56f1600 [ 18.535503] which belongs to the cache kmalloc-128 of size 128 [ 18.535606] The buggy address is located 0 bytes to the right of [ 18.535606] allocated 120-byte region [fff00000c56f1600, fff00000c56f1678) [ 18.535736] [ 18.535788] The buggy address belongs to the physical page: [ 18.535860] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1056f1 [ 18.535973] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 18.536076] page_type: f5(slab) [ 18.536157] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 18.536266] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 18.536377] page dumped because: kasan: bad access detected [ 18.536437] [ 18.536472] Memory state around the buggy address: [ 18.536533] fff00000c56f1500: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 18.536679] fff00000c56f1580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.536921] >fff00000c56f1600: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 18.537006] ^ [ 18.537111] fff00000c56f1680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.537200] fff00000c56f1700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.537479] ==================================================================
[ 12.895726] ================================================================== [ 12.896531] BUG: KASAN: slab-out-of-bounds in kmalloc_track_caller_oob_right+0x4b1/0x520 [ 12.897090] Write of size 1 at addr ffff8881029df678 by task kunit_try_catch/159 [ 12.897459] [ 12.897594] CPU: 0 UID: 0 PID: 159 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT(voluntary) [ 12.897658] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.897673] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.897698] Call Trace: [ 12.897714] <TASK> [ 12.897736] dump_stack_lvl+0x73/0xb0 [ 12.897771] print_report+0xd1/0x650 [ 12.897796] ? __virt_addr_valid+0x1db/0x2d0 [ 12.897824] ? kmalloc_track_caller_oob_right+0x4b1/0x520 [ 12.897852] ? kasan_complete_mode_report_info+0x2a/0x200 [ 12.897877] ? kmalloc_track_caller_oob_right+0x4b1/0x520 [ 12.897906] kasan_report+0x141/0x180 [ 12.897931] ? kmalloc_track_caller_oob_right+0x4b1/0x520 [ 12.897965] __asan_report_store1_noabort+0x1b/0x30 [ 12.897989] kmalloc_track_caller_oob_right+0x4b1/0x520 [ 12.898017] ? __pfx_kmalloc_track_caller_oob_right+0x10/0x10 [ 12.898047] ? __schedule+0x10cc/0x2b60 [ 12.898073] ? __pfx_read_tsc+0x10/0x10 [ 12.898098] ? ktime_get_ts64+0x86/0x230 [ 12.898127] kunit_try_run_case+0x1a5/0x480 [ 12.898156] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.898184] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 12.898211] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 12.898237] ? __kthread_parkme+0x82/0x180 [ 12.898261] ? preempt_count_sub+0x50/0x80 [ 12.898288] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.898315] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.898341] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.898367] kthread+0x337/0x6f0 [ 12.898389] ? trace_preempt_on+0x20/0xc0 [ 12.898416] ? __pfx_kthread+0x10/0x10 [ 12.898450] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.898473] ? calculate_sigpending+0x7b/0xa0 [ 12.898501] ? __pfx_kthread+0x10/0x10 [ 12.898526] ret_from_fork+0x116/0x1d0 [ 12.898547] ? __pfx_kthread+0x10/0x10 [ 12.898570] ret_from_fork_asm+0x1a/0x30 [ 12.898605] </TASK> [ 12.898618] [ 12.909525] Allocated by task 159: [ 12.910251] kasan_save_stack+0x45/0x70 [ 12.910527] kasan_save_track+0x18/0x40 [ 12.910742] kasan_save_alloc_info+0x3b/0x50 [ 12.911256] __kasan_kmalloc+0xb7/0xc0 [ 12.911482] __kmalloc_node_track_caller_noprof+0x1cb/0x500 [ 12.911788] kmalloc_track_caller_oob_right+0x19a/0x520 [ 12.912064] kunit_try_run_case+0x1a5/0x480 [ 12.912315] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.912594] kthread+0x337/0x6f0 [ 12.913321] ret_from_fork+0x116/0x1d0 [ 12.913552] ret_from_fork_asm+0x1a/0x30 [ 12.914009] [ 12.914134] The buggy address belongs to the object at ffff8881029df600 [ 12.914134] which belongs to the cache kmalloc-128 of size 128 [ 12.915185] The buggy address is located 0 bytes to the right of [ 12.915185] allocated 120-byte region [ffff8881029df600, ffff8881029df678) [ 12.915978] [ 12.916091] The buggy address belongs to the physical page: [ 12.916398] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1029df [ 12.917199] flags: 0x200000000000000(node=0|zone=2) [ 12.917462] page_type: f5(slab) [ 12.918013] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 12.918410] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 12.919108] page dumped because: kasan: bad access detected [ 12.919344] [ 12.919716] Memory state around the buggy address: [ 12.920300] ffff8881029df500: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 12.920767] ffff8881029df580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.921371] >ffff8881029df600: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 12.921864] ^ [ 12.922429] ffff8881029df680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.923223] ffff8881029df700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.923530] ================================================================== [ 12.855272] ================================================================== [ 12.856411] BUG: KASAN: slab-out-of-bounds in kmalloc_track_caller_oob_right+0x4c8/0x520 [ 12.857015] Write of size 1 at addr ffff8881029df578 by task kunit_try_catch/159 [ 12.857302] [ 12.857422] CPU: 0 UID: 0 PID: 159 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT(voluntary) [ 12.857482] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.857498] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.857527] Call Trace: [ 12.857543] <TASK> [ 12.857569] dump_stack_lvl+0x73/0xb0 [ 12.857607] print_report+0xd1/0x650 [ 12.857634] ? __virt_addr_valid+0x1db/0x2d0 [ 12.857677] ? kmalloc_track_caller_oob_right+0x4c8/0x520 [ 12.857707] ? kasan_complete_mode_report_info+0x2a/0x200 [ 12.857732] ? kmalloc_track_caller_oob_right+0x4c8/0x520 [ 12.857761] kasan_report+0x141/0x180 [ 12.857786] ? kmalloc_track_caller_oob_right+0x4c8/0x520 [ 12.857820] __asan_report_store1_noabort+0x1b/0x30 [ 12.857844] kmalloc_track_caller_oob_right+0x4c8/0x520 [ 12.857871] ? __pfx_kmalloc_track_caller_oob_right+0x10/0x10 [ 12.857901] ? __schedule+0x10cc/0x2b60 [ 12.857927] ? __pfx_read_tsc+0x10/0x10 [ 12.857952] ? ktime_get_ts64+0x86/0x230 [ 12.857982] kunit_try_run_case+0x1a5/0x480 [ 12.858013] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.858038] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 12.858066] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 12.858092] ? __kthread_parkme+0x82/0x180 [ 12.858117] ? preempt_count_sub+0x50/0x80 [ 12.858144] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.858172] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.858197] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.858223] kthread+0x337/0x6f0 [ 12.858246] ? trace_preempt_on+0x20/0xc0 [ 12.858273] ? __pfx_kthread+0x10/0x10 [ 12.858296] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.858320] ? calculate_sigpending+0x7b/0xa0 [ 12.858349] ? __pfx_kthread+0x10/0x10 [ 12.858373] ret_from_fork+0x116/0x1d0 [ 12.858394] ? __pfx_kthread+0x10/0x10 [ 12.858417] ret_from_fork_asm+0x1a/0x30 [ 12.858461] </TASK> [ 12.858475] [ 12.873124] Allocated by task 159: [ 12.873315] kasan_save_stack+0x45/0x70 [ 12.873503] kasan_save_track+0x18/0x40 [ 12.873675] kasan_save_alloc_info+0x3b/0x50 [ 12.874564] __kasan_kmalloc+0xb7/0xc0 [ 12.875625] __kmalloc_node_track_caller_noprof+0x1cb/0x500 [ 12.876825] kmalloc_track_caller_oob_right+0x99/0x520 [ 12.877944] kunit_try_run_case+0x1a5/0x480 [ 12.878616] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.879459] kthread+0x337/0x6f0 [ 12.879622] ret_from_fork+0x116/0x1d0 [ 12.879796] ret_from_fork_asm+0x1a/0x30 [ 12.880421] [ 12.880821] The buggy address belongs to the object at ffff8881029df500 [ 12.880821] which belongs to the cache kmalloc-128 of size 128 [ 12.882734] The buggy address is located 0 bytes to the right of [ 12.882734] allocated 120-byte region [ffff8881029df500, ffff8881029df578) [ 12.884595] [ 12.885060] The buggy address belongs to the physical page: [ 12.885287] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1029df [ 12.885585] flags: 0x200000000000000(node=0|zone=2) [ 12.886139] page_type: f5(slab) [ 12.886909] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 12.888004] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 12.889272] page dumped because: kasan: bad access detected [ 12.889986] [ 12.890349] Memory state around the buggy address: [ 12.891171] ffff8881029df400: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 12.891453] ffff8881029df480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.891737] >ffff8881029df500: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 12.892504] ^ [ 12.893377] ffff8881029df580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.893761] ffff8881029df600: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.894611] ==================================================================