Date
July 20, 2025, 11:12 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 17.507137] ================================================================== [ 17.507457] BUG: KASAN: stack-out-of-bounds in kasan_stack_oob+0x238/0x270 [ 17.507515] Read of size 1 at addr ffff800080b47c2a by task kunit_try_catch/249 [ 17.507565] [ 17.507597] CPU: 0 UID: 0 PID: 249 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT [ 17.507870] Tainted: [B]=BAD_PAGE, [N]=TEST [ 17.507981] Hardware name: linux,dummy-virt (DT) [ 17.508018] Call trace: [ 17.508042] show_stack+0x20/0x38 (C) [ 17.508179] dump_stack_lvl+0x8c/0xd0 [ 17.508272] print_report+0x310/0x5d0 [ 17.508317] kasan_report+0xdc/0x128 [ 17.508399] __asan_report_load1_noabort+0x20/0x30 [ 17.508512] kasan_stack_oob+0x238/0x270 [ 17.508628] kunit_try_run_case+0x170/0x3f0 [ 17.508684] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 17.508736] kthread+0x328/0x630 [ 17.508777] ret_from_fork+0x10/0x20 [ 17.509180] [ 17.509449] The buggy address belongs to stack of task kunit_try_catch/249 [ 17.509622] and is located at offset 138 in frame: [ 17.509658] kasan_stack_oob+0x0/0x270 [ 17.510288] [ 17.510330] This frame has 4 objects: [ 17.510752] [48, 49) '__assertion' [ 17.510801] [64, 72) 'array' [ 17.510835] [96, 112) '__assertion' [ 17.510877] [128, 138) 'stack_array' [ 17.511121] [ 17.511252] The buggy address ffff800080b47c2a belongs to a vmalloc virtual mapping [ 17.511375] The buggy address belongs to the physical page: [ 17.511416] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1078b7 [ 17.511568] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 17.511672] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000 [ 17.511727] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 17.511783] page dumped because: kasan: bad access detected [ 17.511815] [ 17.511833] Memory state around the buggy address: [ 17.511866] ffff800080b47b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 17.512057] ffff800080b47b80: 00 00 00 00 f1 f1 f1 f1 f1 f1 01 f2 00 f2 f2 f2 [ 17.512117] >ffff800080b47c00: 00 00 f2 f2 00 02 f3 f3 00 00 00 00 00 00 00 00 [ 17.512155] ^ [ 17.512198] ffff800080b47c80: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 00 00 f2 f2 [ 17.512311] ffff800080b47d00: 00 00 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00 [ 17.512349] ==================================================================
[ 14.101857] ================================================================== [ 14.102494] BUG: KASAN: stack-out-of-bounds in kasan_stack_oob+0x2b5/0x300 [ 14.102772] Read of size 1 at addr ffff888103b3fd02 by task kunit_try_catch/266 [ 14.103067] [ 14.103177] CPU: 0 UID: 0 PID: 266 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT(voluntary) [ 14.103220] Tainted: [B]=BAD_PAGE, [N]=TEST [ 14.103232] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 14.103254] Call Trace: [ 14.103267] <TASK> [ 14.103282] dump_stack_lvl+0x73/0xb0 [ 14.103307] print_report+0xd1/0x610 [ 14.103329] ? __virt_addr_valid+0x1db/0x2d0 [ 14.103349] ? kasan_stack_oob+0x2b5/0x300 [ 14.103368] ? kasan_addr_to_slab+0x11/0xa0 [ 14.103387] ? kasan_stack_oob+0x2b5/0x300 [ 14.103406] kasan_report+0x141/0x180 [ 14.103426] ? kasan_stack_oob+0x2b5/0x300 [ 14.103449] __asan_report_load1_noabort+0x18/0x20 [ 14.103473] kasan_stack_oob+0x2b5/0x300 [ 14.103492] ? __pfx_kasan_stack_oob+0x10/0x10 [ 14.103509] ? finish_task_switch.isra.0+0x153/0x700 [ 14.103530] ? __switch_to+0x47/0xf50 [ 14.103556] ? __schedule+0x10cc/0x2b60 [ 14.103577] ? __pfx_read_tsc+0x10/0x10 [ 14.103596] ? ktime_get_ts64+0x86/0x230 [ 14.103620] kunit_try_run_case+0x1a5/0x480 [ 14.103642] ? __pfx_kunit_try_run_case+0x10/0x10 [ 14.103663] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 14.103685] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 14.103710] ? __kthread_parkme+0x82/0x180 [ 14.103729] ? preempt_count_sub+0x50/0x80 [ 14.103752] ? __pfx_kunit_try_run_case+0x10/0x10 [ 14.103776] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.103798] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 14.103823] kthread+0x337/0x6f0 [ 14.103843] ? trace_preempt_on+0x20/0xc0 [ 14.103867] ? __pfx_kthread+0x10/0x10 [ 14.103888] ? _raw_spin_unlock_irq+0x47/0x80 [ 14.103958] ? calculate_sigpending+0x7b/0xa0 [ 14.103983] ? __pfx_kthread+0x10/0x10 [ 14.104020] ret_from_fork+0x116/0x1d0 [ 14.104038] ? __pfx_kthread+0x10/0x10 [ 14.104059] ret_from_fork_asm+0x1a/0x30 [ 14.104088] </TASK> [ 14.104098] [ 14.111810] The buggy address belongs to stack of task kunit_try_catch/266 [ 14.112187] and is located at offset 138 in frame: [ 14.112489] kasan_stack_oob+0x0/0x300 [ 14.112806] [ 14.112903] This frame has 4 objects: [ 14.113160] [48, 49) '__assertion' [ 14.113181] [64, 72) 'array' [ 14.113577] [96, 112) '__assertion' [ 14.113763] [128, 138) 'stack_array' [ 14.114000] [ 14.114266] The buggy address belongs to the physical page: [ 14.114598] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103b3f [ 14.114931] flags: 0x200000000000000(node=0|zone=2) [ 14.115162] raw: 0200000000000000 ffffea00040ecfc8 ffffea00040ecfc8 0000000000000000 [ 14.115544] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 14.115900] page dumped because: kasan: bad access detected [ 14.116122] [ 14.116217] Memory state around the buggy address: [ 14.116480] ffff888103b3fc00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 f1 [ 14.116800] ffff888103b3fc80: f1 f1 f1 f1 f1 01 f2 00 f2 f2 f2 00 00 f2 f2 00 [ 14.117089] >ffff888103b3fd00: 02 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1 [ 14.117439] ^ [ 14.117590] ffff888103b3fd80: f1 f1 f1 00 00 f2 f2 00 00 f2 f2 00 00 f3 f3 00 [ 14.117831] ffff888103b3fe00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 14.118126] ==================================================================