Date
July 2, 2025, 11:09 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 20.330641] ================================================================== [ 20.330728] BUG: KASAN: stack-out-of-bounds in kasan_stack_oob+0x238/0x270 [ 20.330793] Read of size 1 at addr ffff800080a37c2a by task kunit_try_catch/249 [ 20.331230] [ 20.331290] CPU: 0 UID: 0 PID: 249 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT [ 20.331386] Tainted: [B]=BAD_PAGE, [N]=TEST [ 20.331413] Hardware name: linux,dummy-virt (DT) [ 20.331512] Call trace: [ 20.331558] show_stack+0x20/0x38 (C) [ 20.331639] dump_stack_lvl+0x8c/0xd0 [ 20.332006] print_report+0x310/0x608 [ 20.332140] kasan_report+0xdc/0x128 [ 20.332191] __asan_report_load1_noabort+0x20/0x30 [ 20.332406] kasan_stack_oob+0x238/0x270 [ 20.332723] kunit_try_run_case+0x170/0x3f0 [ 20.333051] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 20.333249] kthread+0x328/0x630 [ 20.333491] ret_from_fork+0x10/0x20 [ 20.333702] [ 20.333886] The buggy address belongs to stack of task kunit_try_catch/249 [ 20.334563] and is located at offset 138 in frame: [ 20.335166] kasan_stack_oob+0x0/0x270 [ 20.336004] [ 20.336251] This frame has 4 objects: [ 20.337286] [48, 49) '__assertion' [ 20.337429] [64, 72) 'array' [ 20.337626] [96, 112) '__assertion' [ 20.337922] [128, 138) 'stack_array' [ 20.338068] [ 20.338305] The buggy address belongs to the virtual mapping at [ 20.338305] [ffff800080a30000, ffff800080a39000) created by: [ 20.338305] kernel_clone+0x150/0x7a8 [ 20.338606] [ 20.338732] The buggy address belongs to the physical page: [ 20.338773] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107095 [ 20.339025] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 20.339282] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000 [ 20.339701] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 20.339964] page dumped because: kasan: bad access detected [ 20.340171] [ 20.340430] Memory state around the buggy address: [ 20.340600] ffff800080a37b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 20.340676] ffff800080a37b80: 00 00 00 00 f1 f1 f1 f1 f1 f1 01 f2 00 f2 f2 f2 [ 20.340870] >ffff800080a37c00: 00 00 f2 f2 00 02 f3 f3 00 00 00 00 00 00 00 00 [ 20.341095] ^ [ 20.341172] ffff800080a37c80: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 00 00 f2 f2 [ 20.341226] ffff800080a37d00: 00 00 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00 [ 20.341268] ==================================================================
[ 13.240900] ================================================================== [ 13.241697] BUG: KASAN: stack-out-of-bounds in kasan_stack_oob+0x2b5/0x300 [ 13.241986] Read of size 1 at addr ffff88810393fd02 by task kunit_try_catch/268 [ 13.242404] [ 13.242678] CPU: 0 UID: 0 PID: 268 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT(voluntary) [ 13.242727] Tainted: [B]=BAD_PAGE, [N]=TEST [ 13.242739] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 13.242760] Call Trace: [ 13.242772] <TASK> [ 13.242790] dump_stack_lvl+0x73/0xb0 [ 13.242821] print_report+0xd1/0x650 [ 13.242844] ? __virt_addr_valid+0x1db/0x2d0 [ 13.243173] ? kasan_stack_oob+0x2b5/0x300 [ 13.243201] ? kasan_addr_to_slab+0x11/0xa0 [ 13.243222] ? kasan_stack_oob+0x2b5/0x300 [ 13.243242] kasan_report+0x141/0x180 [ 13.243264] ? kasan_stack_oob+0x2b5/0x300 [ 13.243288] __asan_report_load1_noabort+0x18/0x20 [ 13.243313] kasan_stack_oob+0x2b5/0x300 [ 13.243332] ? __pfx_kasan_stack_oob+0x10/0x10 [ 13.243351] ? finish_task_switch.isra.0+0x153/0x700 [ 13.243384] ? __switch_to+0x47/0xf50 [ 13.243411] ? __schedule+0x10cc/0x2b60 [ 13.243433] ? __pfx_read_tsc+0x10/0x10 [ 13.243452] ? ktime_get_ts64+0x86/0x230 [ 13.243476] kunit_try_run_case+0x1a5/0x480 [ 13.243500] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.243521] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 13.243545] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 13.243617] ? __kthread_parkme+0x82/0x180 [ 13.243640] ? preempt_count_sub+0x50/0x80 [ 13.243663] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.243691] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.243715] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 13.243738] kthread+0x337/0x6f0 [ 13.243757] ? trace_preempt_on+0x20/0xc0 [ 13.243781] ? __pfx_kthread+0x10/0x10 [ 13.243802] ? _raw_spin_unlock_irq+0x47/0x80 [ 13.243822] ? calculate_sigpending+0x7b/0xa0 [ 13.243846] ? __pfx_kthread+0x10/0x10 [ 13.243866] ret_from_fork+0x116/0x1d0 [ 13.243884] ? __pfx_kthread+0x10/0x10 [ 13.243904] ret_from_fork_asm+0x1a/0x30 [ 13.243934] </TASK> [ 13.243946] [ 13.255128] The buggy address belongs to stack of task kunit_try_catch/268 [ 13.255508] and is located at offset 138 in frame: [ 13.255920] kasan_stack_oob+0x0/0x300 [ 13.256434] [ 13.256554] This frame has 4 objects: [ 13.257246] [48, 49) '__assertion' [ 13.257278] [64, 72) 'array' [ 13.257456] [96, 112) '__assertion' [ 13.257587] [128, 138) 'stack_array' [ 13.258085] [ 13.258458] The buggy address belongs to the physical page: [ 13.259002] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10393f [ 13.259313] flags: 0x200000000000000(node=0|zone=2) [ 13.259817] raw: 0200000000000000 ffffea00040e4fc8 ffffea00040e4fc8 0000000000000000 [ 13.260230] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 13.260553] page dumped because: kasan: bad access detected [ 13.260991] [ 13.261093] Memory state around the buggy address: [ 13.261434] ffff88810393fc00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 f1 [ 13.261818] ffff88810393fc80: f1 f1 f1 f1 f1 01 f2 00 f2 f2 f2 00 00 f2 f2 00 [ 13.262131] >ffff88810393fd00: 02 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1 [ 13.262440] ^ [ 13.262603] ffff88810393fd80: f1 f1 f1 00 00 f2 f2 00 00 f2 f2 00 00 f3 f3 00 [ 13.263188] ffff88810393fe00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 13.263548] ==================================================================