Date
May 12, 2025, 6:12 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 20.705231] ================================================================== [ 20.705817] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_right+0x2e4/0x348 [ 20.706175] Read of size 1 at addr ffff800080b17b4a by task kunit_try_catch/242 [ 20.706437] [ 20.707531] CPU: 1 UID: 0 PID: 242 Comm: kunit_try_catch Tainted: G B N 6.14.7-rc1 #1 [ 20.707653] Tainted: [B]=BAD_PAGE, [N]=TEST [ 20.707691] Hardware name: linux,dummy-virt (DT) [ 20.707732] Call trace: [ 20.707781] show_stack+0x20/0x38 (C) [ 20.707852] dump_stack_lvl+0x8c/0xd0 [ 20.707913] print_report+0x310/0x608 [ 20.707972] kasan_report+0xdc/0x128 [ 20.708024] __asan_report_load1_noabort+0x20/0x30 [ 20.708079] kasan_alloca_oob_right+0x2e4/0x348 [ 20.708135] kunit_try_run_case+0x170/0x3f0 [ 20.708194] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 20.708254] kthread+0x318/0x620 [ 20.708307] ret_from_fork+0x10/0x20 [ 20.708365] [ 20.712183] The buggy address belongs to stack of task kunit_try_catch/242 [ 20.712689] [ 20.712984] The buggy address belongs to the virtual mapping at [ 20.712984] [ffff800080b10000, ffff800080b19000) created by: [ 20.712984] kernel_clone+0x150/0x7a8 [ 20.713964] [ 20.714211] The buggy address belongs to the physical page: [ 20.714687] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10653b [ 20.715302] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 20.715664] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000 [ 20.715943] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 20.716504] page dumped because: kasan: bad access detected [ 20.716779] [ 20.716973] Memory state around the buggy address: [ 20.717215] ffff800080b17a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 20.717654] ffff800080b17a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 20.718042] >ffff800080b17b00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb [ 20.718390] ^ [ 20.718731] ffff800080b17b80: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 01 f2 04 f2 [ 20.719465] ffff800080b17c00: 00 f2 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00 [ 20.719899] ==================================================================
[ 14.251242] ================================================================== [ 14.251740] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_right+0x32b/0x390 [ 14.252109] Read of size 1 at addr ffff888102d5fc4a by task kunit_try_catch/261 [ 14.252504] [ 14.252616] CPU: 0 UID: 0 PID: 261 Comm: kunit_try_catch Tainted: G B N 6.14.7-rc1 #1 [ 14.252664] Tainted: [B]=BAD_PAGE, [N]=TEST [ 14.252677] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 14.252700] Call Trace: [ 14.252715] <TASK> [ 14.252734] dump_stack_lvl+0x73/0xb0 [ 14.252763] print_report+0xd1/0x650 [ 14.252786] ? __virt_addr_valid+0x1db/0x2d0 [ 14.252809] ? kasan_alloca_oob_right+0x32b/0x390 [ 14.252831] ? kasan_addr_to_slab+0x11/0xa0 [ 14.252863] ? kasan_alloca_oob_right+0x32b/0x390 [ 14.252884] kasan_report+0x140/0x180 [ 14.252906] ? kasan_alloca_oob_right+0x32b/0x390 [ 14.252931] __asan_report_load1_noabort+0x18/0x20 [ 14.252955] kasan_alloca_oob_right+0x32b/0x390 [ 14.252978] ? finish_task_switch.isra.0+0x153/0x700 [ 14.253002] ? rwsem_down_write_slowpath+0x1de/0x1110 [ 14.253027] ? trace_hardirqs_on+0x37/0xe0 [ 14.253052] ? __pfx_kasan_alloca_oob_right+0x10/0x10 [ 14.253075] ? __kasan_check_write+0x18/0x20 [ 14.253111] ? queued_spin_lock_slowpath+0x117/0xb40 [ 14.253134] ? trace_hardirqs_on+0x37/0xe0 [ 14.253156] ? __pfx_read_tsc+0x10/0x10 [ 14.253178] ? ktime_get_ts64+0x86/0x230 [ 14.253203] kunit_try_run_case+0x1a6/0x480 [ 14.253227] ? __pfx_kunit_try_run_case+0x10/0x10 [ 14.253250] ? queued_spin_lock_slowpath+0x117/0xb40 [ 14.253272] ? __kthread_parkme+0x82/0x160 [ 14.253294] ? preempt_count_sub+0x50/0x80 [ 14.253317] ? __pfx_kunit_try_run_case+0x10/0x10 [ 14.253339] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.253365] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 14.253390] kthread+0x324/0x6e0 [ 14.253412] ? trace_preempt_on+0x20/0xc0 [ 14.253433] ? __pfx_kthread+0x10/0x10 [ 14.253455] ? _raw_spin_unlock_irq+0x47/0x80 [ 14.253479] ? calculate_sigpending+0x7b/0xa0 [ 14.253499] ? __pfx_kthread+0x10/0x10 [ 14.253522] ret_from_fork+0x41/0x80 [ 14.253540] ? __pfx_kthread+0x10/0x10 [ 14.253562] ret_from_fork_asm+0x1a/0x30 [ 14.253593] </TASK> [ 14.253605] [ 14.262179] The buggy address belongs to stack of task kunit_try_catch/261 [ 14.262466] [ 14.262563] The buggy address belongs to the physical page: [ 14.262809] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102d5f [ 14.263084] flags: 0x200000000000000(node=0|zone=2) [ 14.263334] raw: 0200000000000000 ffffea00040b57c8 ffffea00040b57c8 0000000000000000 [ 14.263684] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 14.264566] page dumped because: kasan: bad access detected [ 14.264785] [ 14.264894] Memory state around the buggy address: [ 14.265212] ffff888102d5fb00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 14.265455] ffff888102d5fb80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 14.265671] >ffff888102d5fc00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb [ 14.265932] ^ [ 14.266186] ffff888102d5fc80: 00 00 00 f1 f1 f1 f1 01 f2 04 f2 00 f2 f2 f2 00 [ 14.266502] ffff888102d5fd00: 00 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1 [ 14.266772] ==================================================================