Date
June 7, 2025, 10:40 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 23.760559] ================================================================== [ 23.761942] BUG: KASAN: stack-out-of-bounds in kasan_stack_oob+0x240/0x278 [ 23.762692] Read of size 1 at addr ffff800080ba7cba by task kunit_try_catch/237 [ 23.763429] [ 23.763951] CPU: 1 UID: 0 PID: 237 Comm: kunit_try_catch Tainted: G B N 6.12.33-rc1 #1 [ 23.764155] Tainted: [B]=BAD_PAGE, [N]=TEST [ 23.764236] Hardware name: linux,dummy-virt (DT) [ 23.764319] Call trace: [ 23.764389] dump_backtrace+0x9c/0x128 [ 23.764509] show_stack+0x20/0x38 [ 23.764618] dump_stack_lvl+0x8c/0xd0 [ 23.764736] print_report+0x310/0x5f0 [ 23.764861] kasan_report+0xdc/0x128 [ 23.764990] __asan_report_load1_noabort+0x20/0x30 [ 23.765113] kasan_stack_oob+0x240/0x278 [ 23.765171] kunit_try_run_case+0x170/0x3f0 [ 23.765219] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 23.765273] kthread+0x24c/0x2d0 [ 23.765319] ret_from_fork+0x10/0x20 [ 23.765365] [ 23.773066] The buggy address belongs to stack of task kunit_try_catch/237 [ 23.773973] and is located at offset 138 in frame: [ 23.774578] kasan_stack_oob+0x0/0x278 [ 23.775330] [ 23.776253] This frame has 4 objects: [ 23.777169] [48, 49) '__assertion' [ 23.777282] [64, 72) 'array' [ 23.777657] [96, 112) '__assertion' [ 23.778125] [128, 138) 'stack_array' [ 23.778635] [ 23.779291] The buggy address belongs to the virtual mapping at [ 23.779291] [ffff800080ba0000, ffff800080ba9000) created by: [ 23.779291] kernel_clone+0x150/0x7a8 [ 23.780809] [ 23.781193] The buggy address belongs to the physical page: [ 23.781849] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x104206 [ 23.782703] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 23.783469] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000 [ 23.785054] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 23.785927] page dumped because: kasan: bad access detected [ 23.786557] [ 23.786909] Memory state around the buggy address: [ 23.787750] ffff800080ba7b80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 23.788612] ffff800080ba7c00: 00 00 00 00 00 00 f1 f1 f1 f1 f1 f1 01 f2 00 f2 [ 23.789442] >ffff800080ba7c80: f2 f2 00 00 f2 f2 00 02 f3 f3 00 00 00 00 00 00 [ 23.790205] ^ [ 23.790848] ffff800080ba7d00: 00 00 00 00 00 00 00 00 00 00 f1 f1 f1 f1 00 00 [ 23.791629] ffff800080ba7d80: f2 f2 00 00 f2 f2 00 00 f3 f3 00 00 00 00 00 00 [ 23.793029] ==================================================================
[ 20.423787] ================================================================== [ 20.425798] BUG: KASAN: stack-out-of-bounds in kasan_stack_oob+0x2b7/0x300 [ 20.426757] Read of size 1 at addr ffff888102ce7d72 by task kunit_try_catch/254 [ 20.428093] [ 20.428584] CPU: 1 UID: 0 PID: 254 Comm: kunit_try_catch Tainted: G B N 6.12.33-rc1 #1 [ 20.428705] Tainted: [B]=BAD_PAGE, [N]=TEST [ 20.428742] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 20.428801] Call Trace: [ 20.428839] <TASK> [ 20.428939] dump_stack_lvl+0x73/0xb0 [ 20.429050] print_report+0xd1/0x640 [ 20.429129] ? __virt_addr_valid+0x1db/0x2d0 [ 20.429167] ? kasan_stack_oob+0x2b7/0x300 [ 20.429198] ? kasan_addr_to_slab+0x11/0xa0 [ 20.429256] ? kasan_stack_oob+0x2b7/0x300 [ 20.429291] kasan_report+0x140/0x180 [ 20.429327] ? kasan_stack_oob+0x2b7/0x300 [ 20.429365] __asan_report_load1_noabort+0x18/0x20 [ 20.429398] kasan_stack_oob+0x2b7/0x300 [ 20.429429] ? __pfx_kasan_stack_oob+0x10/0x10 [ 20.429509] ? finish_task_switch.isra.0+0x153/0x700 [ 20.429577] ? __switch_to+0x5d9/0xf60 [ 20.429662] ? __schedule+0xc49/0x27a0 [ 20.429733] ? __pfx_read_tsc+0x10/0x10 [ 20.429780] ? ktime_get_ts64+0x84/0x230 [ 20.429824] kunit_try_run_case+0x1a6/0x480 [ 20.429889] ? __pfx_kunit_try_run_case+0x10/0x10 [ 20.429918] ? _raw_spin_lock_irqsave+0xa2/0x110 [ 20.429947] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 20.429983] ? __kthread_parkme+0x82/0x160 [ 20.430013] ? preempt_count_sub+0x50/0x80 [ 20.430042] ? __pfx_kunit_try_run_case+0x10/0x10 [ 20.430070] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 20.430106] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 20.430143] kthread+0x257/0x310 [ 20.430169] ? __pfx_kthread+0x10/0x10 [ 20.430196] ret_from_fork+0x41/0x80 [ 20.430248] ? __pfx_kthread+0x10/0x10 [ 20.430276] ret_from_fork_asm+0x1a/0x30 [ 20.430317] </TASK> [ 20.430332] [ 20.450787] The buggy address belongs to stack of task kunit_try_catch/254 [ 20.452162] and is located at offset 138 in frame: [ 20.452557] kasan_stack_oob+0x0/0x300 [ 20.453320] [ 20.453645] This frame has 4 objects: [ 20.454086] [48, 49) '__assertion' [ 20.454156] [64, 72) 'array' [ 20.454598] [96, 112) '__assertion' [ 20.455030] [128, 138) 'stack_array' [ 20.455688] [ 20.456959] The buggy address belongs to the physical page: [ 20.457455] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102ce7 [ 20.458529] flags: 0x200000000000000(node=0|zone=2) [ 20.459084] raw: 0200000000000000 ffffea00040b39c8 ffffea00040b39c8 0000000000000000 [ 20.460155] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 20.461137] page dumped because: kasan: bad access detected [ 20.461590] [ 20.462182] Memory state around the buggy address: [ 20.462502] ffff888102ce7c00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 20.463129] ffff888102ce7c80: 00 00 00 00 00 00 00 00 00 00 00 00 00 f1 f1 f1 [ 20.464390] >ffff888102ce7d00: f1 f1 f1 01 f2 00 f2 f2 f2 00 00 f2 f2 00 02 f3 [ 20.465150] ^ [ 20.466168] ffff888102ce7d80: f3 00 00 00 00 00 00 00 00 00 00 00 00 f1 f1 f1 [ 20.467106] ffff888102ce7e00: f1 00 00 f2 f2 00 00 f2 f2 00 00 f3 f3 00 00 00 [ 20.467749] ==================================================================