Date
Dec. 4, 2024, 3:07 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 35.084109] ================================================================== [ 35.085426] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_right+0x2e4/0x348 [ 35.086401] Read of size 1 at addr ffff800080bf7bea by task kunit_try_catch/241 [ 35.087115] [ 35.088288] CPU: 1 UID: 0 PID: 241 Comm: kunit_try_catch Tainted: G B N 6.13.0-rc1-next-20241204 #1 [ 35.089620] Tainted: [B]=BAD_PAGE, [N]=TEST [ 35.090449] Hardware name: linux,dummy-virt (DT) [ 35.091404] Call trace: [ 35.092062] show_stack+0x20/0x38 (C) [ 35.092858] dump_stack_lvl+0x8c/0xd0 [ 35.093416] print_report+0x2fc/0x5e0 [ 35.094471] kasan_report+0xc8/0x118 [ 35.095239] __asan_report_load1_noabort+0x20/0x30 [ 35.095652] kasan_alloca_oob_right+0x2e4/0x348 [ 35.095993] kunit_try_run_case+0x14c/0x3d0 [ 35.096317] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 35.096844] kthread+0x24c/0x2d0 [ 35.097820] ret_from_fork+0x10/0x20 [ 35.098408] [ 35.098765] The buggy address belongs to stack of task kunit_try_catch/241 [ 35.100271] [ 35.100554] The buggy address belongs to the virtual mapping at [ 35.100554] [ffff800080bf0000, ffff800080bf9000) created by: [ 35.100554] kernel_clone+0x140/0x788 [ 35.102337] [ 35.103033] The buggy address belongs to the physical page: [ 35.103730] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106709 [ 35.104933] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 35.106472] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000 [ 35.107459] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 35.108266] page dumped because: kasan: bad access detected [ 35.109035] [ 35.109377] Memory state around the buggy address: [ 35.110493] ffff800080bf7a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 35.111749] ffff800080bf7b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 35.112582] >ffff800080bf7b80: 00 00 00 00 00 00 00 00 ca ca ca ca 00 02 cb cb [ 35.113734] ^ [ 35.114844] ffff800080bf7c00: cb cb cb cb 00 00 00 00 00 00 f1 f1 f1 f1 01 f2 [ 35.115559] ffff800080bf7c80: 04 f2 00 f2 f2 f2 00 00 f3 f3 00 00 00 00 00 00 [ 35.116535] ==================================================================
[ 25.885783] ================================================================== [ 25.886952] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_right+0x328/0x390 [ 25.887703] Read of size 1 at addr ffff888102d2fcaa by task kunit_try_catch/261 [ 25.888920] [ 25.889181] CPU: 1 UID: 0 PID: 261 Comm: kunit_try_catch Tainted: G B N 6.13.0-rc1-next-20241204 #1 [ 25.890974] Tainted: [B]=BAD_PAGE, [N]=TEST [ 25.891427] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 25.893492] Call Trace: [ 25.894307] <TASK> [ 25.894914] dump_stack_lvl+0x73/0xb0 [ 25.895760] print_report+0xd1/0x640 [ 25.896898] ? __virt_addr_valid+0x1db/0x2d0 [ 25.897320] ? kasan_addr_to_slab+0x11/0xa0 [ 25.898137] kasan_report+0x102/0x140 [ 25.899124] ? kasan_alloca_oob_right+0x328/0x390 [ 25.899627] ? kasan_alloca_oob_right+0x328/0x390 [ 25.900466] __asan_report_load1_noabort+0x18/0x20 [ 25.900942] kasan_alloca_oob_right+0x328/0x390 [ 25.901478] ? irqentry_exit+0x2a/0x60 [ 25.901915] ? sysvec_reschedule_ipi+0xa0/0xa0 [ 25.902408] ? trace_hardirqs_on+0x37/0xe0 [ 25.902830] ? __pfx_kasan_alloca_oob_right+0x10/0x10 [ 25.904049] ? __pfx_kasan_alloca_oob_right+0x10/0x10 [ 25.905201] kunit_try_run_case+0x1b3/0x490 [ 25.906620] ? __pfx_kunit_try_run_case+0x10/0x10 [ 25.907116] ? _raw_spin_lock_irqsave+0xa2/0x110 [ 25.908438] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 25.909050] ? __kthread_parkme+0x82/0x160 [ 25.910021] ? preempt_count_sub+0x50/0x80 [ 25.910439] ? __pfx_kunit_try_run_case+0x10/0x10 [ 25.911148] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 25.912186] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 25.912957] kthread+0x257/0x310 [ 25.913550] ? __pfx_kthread+0x10/0x10 [ 25.913949] ret_from_fork+0x41/0x80 [ 25.914303] ? __pfx_kthread+0x10/0x10 [ 25.914656] ret_from_fork_asm+0x1a/0x30 [ 25.915130] </TASK> [ 25.915471] [ 25.916230] The buggy address belongs to stack of task kunit_try_catch/261 [ 25.917497] [ 25.917816] The buggy address belongs to the physical page: [ 25.918587] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102d2f [ 25.919750] flags: 0x200000000000000(node=0|zone=2) [ 25.920319] raw: 0200000000000000 ffffea00040b4bc8 ffffea00040b4bc8 0000000000000000 [ 25.921517] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 25.922658] page dumped because: kasan: bad access detected [ 25.923302] [ 25.923674] Memory state around the buggy address: [ 25.924111] ffff888102d2fb80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 25.924863] ffff888102d2fc00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 25.926482] >ffff888102d2fc80: ca ca ca ca 00 02 cb cb cb cb cb cb 00 00 00 00 [ 25.927085] ^ [ 25.927839] ffff888102d2fd00: 00 f1 f1 f1 f1 01 f2 04 f2 00 f2 f2 f2 00 00 f3 [ 25.928542] ffff888102d2fd80: f3 00 00 00 00 00 00 00 00 00 00 00 00 f1 f1 f1 [ 25.929788] ==================================================================