Date
July 1, 2025, 11:08 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 20.994456] ================================================================== [ 20.994563] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_right+0x2dc/0x340 [ 20.994642] Read of size 1 at addr ffff800080a87b4a by task kunit_try_catch/254 [ 20.994701] [ 20.995101] CPU: 0 UID: 0 PID: 254 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT [ 20.995456] Tainted: [B]=BAD_PAGE, [N]=TEST [ 20.995555] Hardware name: linux,dummy-virt (DT) [ 20.995676] Call trace: [ 20.995715] show_stack+0x20/0x38 (C) [ 20.995819] dump_stack_lvl+0x8c/0xd0 [ 20.996453] print_report+0x310/0x608 [ 20.996570] kasan_report+0xdc/0x128 [ 20.996766] __asan_report_load1_noabort+0x20/0x30 [ 20.996919] kasan_alloca_oob_right+0x2dc/0x340 [ 20.997051] kunit_try_run_case+0x170/0x3f0 [ 20.997505] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 20.997609] kthread+0x328/0x630 [ 20.997759] ret_from_fork+0x10/0x20 [ 20.997961] [ 20.998024] The buggy address belongs to stack of task kunit_try_catch/254 [ 20.998238] [ 20.998283] The buggy address belongs to the virtual mapping at [ 20.998283] [ffff800080a80000, ffff800080a89000) created by: [ 20.998283] kernel_clone+0x150/0x7a8 [ 20.998549] [ 20.998673] The buggy address belongs to the physical page: [ 20.998862] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107819 [ 20.998938] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 20.999023] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000 [ 20.999092] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 20.999179] page dumped because: kasan: bad access detected [ 20.999477] [ 20.999525] Memory state around the buggy address: [ 20.999581] ffff800080a87a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 20.999967] ffff800080a87a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 21.000139] >ffff800080a87b00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb [ 21.000341] ^ [ 21.000525] ffff800080a87b80: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 01 f2 04 f2 [ 21.000633] ffff800080a87c00: 00 f2 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00 [ 21.000705] ==================================================================
[ 13.372367] ================================================================== [ 13.372967] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_right+0x329/0x390 [ 13.373761] Read of size 1 at addr ffff88810395fc4a by task kunit_try_catch/270 [ 13.374331] [ 13.374449] CPU: 0 UID: 0 PID: 270 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT(voluntary) [ 13.374501] Tainted: [B]=BAD_PAGE, [N]=TEST [ 13.374515] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 13.374538] Call Trace: [ 13.374552] <TASK> [ 13.374571] dump_stack_lvl+0x73/0xb0 [ 13.374603] print_report+0xd1/0x650 [ 13.374627] ? __virt_addr_valid+0x1db/0x2d0 [ 13.374651] ? kasan_alloca_oob_right+0x329/0x390 [ 13.374673] ? kasan_addr_to_slab+0x11/0xa0 [ 13.374693] ? kasan_alloca_oob_right+0x329/0x390 [ 13.374715] kasan_report+0x141/0x180 [ 13.374736] ? kasan_alloca_oob_right+0x329/0x390 [ 13.374765] __asan_report_load1_noabort+0x18/0x20 [ 13.374789] kasan_alloca_oob_right+0x329/0x390 [ 13.374813] ? finish_task_switch.isra.0+0x153/0x700 [ 13.374838] ? out_of_line_wait_on_bit_timeout+0x7e/0x190 [ 13.374864] ? trace_hardirqs_on+0x37/0xe0 [ 13.374890] ? __pfx_kasan_alloca_oob_right+0x10/0x10 [ 13.374915] ? __schedule+0x10cc/0x2b60 [ 13.374950] ? __pfx_read_tsc+0x10/0x10 [ 13.374971] ? ktime_get_ts64+0x86/0x230 [ 13.374996] kunit_try_run_case+0x1a5/0x480 [ 13.375020] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.375042] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 13.375066] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 13.375089] ? __kthread_parkme+0x82/0x180 [ 13.375110] ? preempt_count_sub+0x50/0x80 [ 13.375133] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.375156] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.375178] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 13.375201] kthread+0x337/0x6f0 [ 13.375219] ? trace_preempt_on+0x20/0xc0 [ 13.375240] ? __pfx_kthread+0x10/0x10 [ 13.375260] ? _raw_spin_unlock_irq+0x47/0x80 [ 13.375281] ? calculate_sigpending+0x7b/0xa0 [ 13.375304] ? __pfx_kthread+0x10/0x10 [ 13.375324] ret_from_fork+0x116/0x1d0 [ 13.375342] ? __pfx_kthread+0x10/0x10 [ 13.375362] ret_from_fork_asm+0x1a/0x30 [ 13.375403] </TASK> [ 13.375414] [ 13.383513] The buggy address belongs to stack of task kunit_try_catch/270 [ 13.384157] [ 13.384332] The buggy address belongs to the physical page: [ 13.384620] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10395f [ 13.384950] flags: 0x200000000000000(node=0|zone=2) [ 13.385153] raw: 0200000000000000 ffffea00040e57c8 ffffea00040e57c8 0000000000000000 [ 13.385486] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 13.385852] page dumped because: kasan: bad access detected [ 13.386029] [ 13.386098] Memory state around the buggy address: [ 13.386487] ffff88810395fb00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 13.387052] ffff88810395fb80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 13.387331] >ffff88810395fc00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb [ 13.387727] ^ [ 13.388055] ffff88810395fc80: 00 00 00 f1 f1 f1 f1 01 f2 04 f2 00 f2 f2 f2 00 [ 13.388333] ffff88810395fd00: 00 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1 [ 13.388689] ==================================================================