Date
Dec. 5, 2024, 2:07 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 32.979110] ================================================================== [ 32.980475] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_right+0x2e4/0x348 [ 32.982200] Read of size 1 at addr ffff800080c17bea by task kunit_try_catch/242 [ 32.983117] [ 32.983527] CPU: 1 UID: 0 PID: 242 Comm: kunit_try_catch Tainted: G B N 6.13.0-rc1-next-20241205 #1 [ 32.984623] Tainted: [B]=BAD_PAGE, [N]=TEST [ 32.985320] Hardware name: linux,dummy-virt (DT) [ 32.986464] Call trace: [ 32.986958] show_stack+0x20/0x38 (C) [ 32.987539] dump_stack_lvl+0x8c/0xd0 [ 32.988647] print_report+0x2fc/0x5e0 [ 32.989483] kasan_report+0xc8/0x118 [ 32.990079] __asan_report_load1_noabort+0x20/0x30 [ 32.990928] kasan_alloca_oob_right+0x2e4/0x348 [ 32.992033] kunit_try_run_case+0x14c/0x3d0 [ 32.992608] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 32.993446] kthread+0x24c/0x2d0 [ 32.994003] ret_from_fork+0x10/0x20 [ 32.994583] [ 32.995052] The buggy address belongs to stack of task kunit_try_catch/242 [ 32.996230] [ 32.997142] The buggy address belongs to the virtual mapping at [ 32.997142] [ffff800080c10000, ffff800080c19000) created by: [ 32.997142] kernel_clone+0x140/0x788 [ 32.999093] [ 32.999753] The buggy address belongs to the physical page: [ 33.000598] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10664d [ 33.001636] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 33.002634] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000 [ 33.003926] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 33.005355] page dumped because: kasan: bad access detected [ 33.006068] [ 33.006484] Memory state around the buggy address: [ 33.007646] ffff800080c17a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 33.008608] ffff800080c17b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 33.009534] >ffff800080c17b80: 00 00 00 00 00 00 00 00 ca ca ca ca 00 02 cb cb [ 33.010434] ^ [ 33.011853] ffff800080c17c00: cb cb cb cb 00 00 00 00 00 00 f1 f1 f1 f1 01 f2 [ 33.012583] ffff800080c17c80: 04 f2 00 f2 f2 f2 00 00 f3 f3 00 00 00 00 00 00 [ 33.013518] ==================================================================
[ 30.796249] ================================================================== [ 30.797324] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_right+0x328/0x390 [ 30.798747] Read of size 1 at addr ffff888102da7caa by task kunit_try_catch/260 [ 30.800474] [ 30.800702] CPU: 1 UID: 0 PID: 260 Comm: kunit_try_catch Tainted: G B N 6.13.0-rc1-next-20241205 #1 [ 30.802838] Tainted: [B]=BAD_PAGE, [N]=TEST [ 30.803429] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 30.804640] Call Trace: [ 30.805174] <TASK> [ 30.805699] dump_stack_lvl+0x73/0xb0 [ 30.806118] print_report+0xd1/0x640 [ 30.807009] ? __virt_addr_valid+0x1db/0x2d0 [ 30.807778] ? kasan_addr_to_slab+0x11/0xa0 [ 30.808480] kasan_report+0x102/0x140 [ 30.809232] ? kasan_alloca_oob_right+0x328/0x390 [ 30.809727] ? kasan_alloca_oob_right+0x328/0x390 [ 30.810269] __asan_report_load1_noabort+0x18/0x20 [ 30.811301] kasan_alloca_oob_right+0x328/0x390 [ 30.811781] ? uclamp_rq_dec_id+0x3c0/0x460 [ 30.812988] ? __schedule+0xc70/0x27e0 [ 30.813499] ? trace_hardirqs_on+0x37/0xe0 [ 30.813943] ? __pfx_kasan_alloca_oob_right+0x10/0x10 [ 30.815397] ? __schedule+0xc70/0x27e0 [ 30.815792] ? __pfx_read_tsc+0x10/0x10 [ 30.816825] ? ktime_get_ts64+0x86/0x230 [ 30.817243] kunit_try_run_case+0x1b3/0x490 [ 30.817703] ? __pfx_kunit_try_run_case+0x10/0x10 [ 30.818881] ? _raw_spin_lock_irqsave+0xa2/0x110 [ 30.819340] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 30.819795] ? __kthread_parkme+0x82/0x160 [ 30.820210] ? preempt_count_sub+0x50/0x80 [ 30.820585] ? __pfx_kunit_try_run_case+0x10/0x10 [ 30.821644] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 30.822409] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 30.823408] kthread+0x257/0x310 [ 30.824501] ? __pfx_kthread+0x10/0x10 [ 30.825169] ret_from_fork+0x41/0x80 [ 30.826068] ? __pfx_kthread+0x10/0x10 [ 30.826581] ret_from_fork_asm+0x1a/0x30 [ 30.827346] </TASK> [ 30.827895] [ 30.828197] The buggy address belongs to stack of task kunit_try_catch/260 [ 30.829277] [ 30.829446] The buggy address belongs to the physical page: [ 30.830519] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102da7 [ 30.831365] flags: 0x200000000000000(node=0|zone=2) [ 30.832548] raw: 0200000000000000 ffffea00040b69c8 ffffea00040b69c8 0000000000000000 [ 30.833638] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 30.834527] page dumped because: kasan: bad access detected [ 30.835427] [ 30.835927] Memory state around the buggy address: [ 30.836743] ffff888102da7b80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 30.837780] ffff888102da7c00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 30.838994] >ffff888102da7c80: ca ca ca ca 00 02 cb cb cb cb cb cb 00 00 00 00 [ 30.839504] ^ [ 30.840326] ffff888102da7d00: 00 f1 f1 f1 f1 01 f2 04 f2 00 f2 f2 f2 00 00 f3 [ 30.841346] ffff888102da7d80: f3 00 00 00 00 00 00 00 00 00 00 00 00 f1 f1 f1 [ 30.842323] ==================================================================