Date
June 7, 2025, 10:40 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 25.318495] ================================================================== [ 25.318930] BUG: KASAN: stack-out-of-bounds in kasan_stack_oob+0x238/0x270 [ 25.319547] Read of size 1 at addr ffff8000809c7c2a by task kunit_try_catch/253 [ 25.319711] [ 25.319810] CPU: 1 UID: 0 PID: 253 Comm: kunit_try_catch Tainted: G B N 6.15.2-rc1 #1 PREEMPT [ 25.320073] Tainted: [B]=BAD_PAGE, [N]=TEST [ 25.320176] Hardware name: linux,dummy-virt (DT) [ 25.320371] Call trace: [ 25.320720] show_stack+0x20/0x38 (C) [ 25.321096] dump_stack_lvl+0x8c/0xd0 [ 25.321309] print_report+0x310/0x608 [ 25.321540] kasan_report+0xdc/0x128 [ 25.321841] __asan_report_load1_noabort+0x20/0x30 [ 25.321966] kasan_stack_oob+0x238/0x270 [ 25.322083] kunit_try_run_case+0x170/0x3f0 [ 25.322542] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 25.322746] kthread+0x328/0x630 [ 25.322857] ret_from_fork+0x10/0x20 [ 25.323127] [ 25.323480] The buggy address belongs to stack of task kunit_try_catch/253 [ 25.324015] and is located at offset 138 in frame: [ 25.324436] kasan_stack_oob+0x0/0x270 [ 25.325015] [ 25.325092] This frame has 4 objects: [ 25.325843] [48, 49) '__assertion' [ 25.326101] [64, 72) 'array' [ 25.326344] [96, 112) '__assertion' [ 25.326558] [128, 138) 'stack_array' [ 25.326657] [ 25.326734] The buggy address belongs to the virtual mapping at [ 25.326734] [ffff8000809c0000, ffff8000809c9000) created by: [ 25.326734] kernel_clone+0x150/0x7a8 [ 25.326940] [ 25.327001] The buggy address belongs to the physical page: [ 25.327721] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1063be [ 25.328504] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 25.328764] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000 [ 25.328946] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 25.329078] page dumped because: kasan: bad access detected [ 25.329158] [ 25.329215] Memory state around the buggy address: [ 25.329328] ffff8000809c7b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 25.329516] ffff8000809c7b80: 00 00 00 00 f1 f1 f1 f1 f1 f1 01 f2 00 f2 f2 f2 [ 25.330100] >ffff8000809c7c00: 00 00 f2 f2 00 02 f3 f3 00 00 00 00 00 00 00 00 [ 25.330354] ^ [ 25.330463] ffff8000809c7c80: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 00 00 f2 f2 [ 25.330961] ffff8000809c7d00: 00 00 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00 [ 25.331136] ==================================================================
[ 15.749347] ================================================================== [ 15.750098] BUG: KASAN: stack-out-of-bounds in kasan_stack_oob+0x2b5/0x300 [ 15.750292] Read of size 1 at addr ffff888103937d02 by task kunit_try_catch/269 [ 15.750586] [ 15.751111] CPU: 0 UID: 0 PID: 269 Comm: kunit_try_catch Tainted: G B N 6.15.2-rc1 #1 PREEMPT(voluntary) [ 15.751198] Tainted: [B]=BAD_PAGE, [N]=TEST [ 15.751214] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 15.751240] Call Trace: [ 15.751259] <TASK> [ 15.751282] dump_stack_lvl+0x73/0xb0 [ 15.751323] print_report+0xd1/0x650 [ 15.751353] ? __virt_addr_valid+0x1db/0x2d0 [ 15.751376] ? kasan_stack_oob+0x2b5/0x300 [ 15.751418] ? kasan_addr_to_slab+0x11/0xa0 [ 15.751445] ? kasan_stack_oob+0x2b5/0x300 [ 15.751466] kasan_report+0x141/0x180 [ 15.751490] ? kasan_stack_oob+0x2b5/0x300 [ 15.751515] __asan_report_load1_noabort+0x18/0x20 [ 15.751536] kasan_stack_oob+0x2b5/0x300 [ 15.751585] ? __pfx_kasan_stack_oob+0x10/0x10 [ 15.751607] ? finish_task_switch.isra.0+0x153/0x700 [ 15.751709] ? __switch_to+0x5d9/0xf60 [ 15.751732] ? dequeue_task_fair+0x166/0x4e0 [ 15.751758] ? __schedule+0x10cc/0x2b30 [ 15.751781] ? __pfx_read_tsc+0x10/0x10 [ 15.751804] ? ktime_get_ts64+0x86/0x230 [ 15.751829] kunit_try_run_case+0x1a5/0x480 [ 15.751856] ? __pfx_kunit_try_run_case+0x10/0x10 [ 15.751878] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 15.751902] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 15.751925] ? __kthread_parkme+0x82/0x180 [ 15.751947] ? preempt_count_sub+0x50/0x80 [ 15.751971] ? __pfx_kunit_try_run_case+0x10/0x10 [ 15.751994] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 15.752018] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 15.752041] kthread+0x337/0x6f0 [ 15.752059] ? trace_preempt_on+0x20/0xc0 [ 15.752083] ? __pfx_kthread+0x10/0x10 [ 15.752100] ? _raw_spin_unlock_irq+0x47/0x80 [ 15.752121] ? calculate_sigpending+0x7b/0xa0 [ 15.752142] ? __pfx_kthread+0x10/0x10 [ 15.752161] ret_from_fork+0x41/0x80 [ 15.752181] ? __pfx_kthread+0x10/0x10 [ 15.752199] ret_from_fork_asm+0x1a/0x30 [ 15.752228] </TASK> [ 15.752241] [ 15.761743] The buggy address belongs to stack of task kunit_try_catch/269 [ 15.762214] and is located at offset 138 in frame: [ 15.762496] kasan_stack_oob+0x0/0x300 [ 15.762974] [ 15.763071] This frame has 4 objects: [ 15.763303] [48, 49) '__assertion' [ 15.763332] [64, 72) 'array' [ 15.763483] [96, 112) '__assertion' [ 15.763601] [128, 138) 'stack_array' [ 15.763815] [ 15.764104] The buggy address belongs to the physical page: [ 15.764338] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103937 [ 15.765138] flags: 0x200000000000000(node=0|zone=2) [ 15.765349] raw: 0200000000000000 ffffea00040e4dc8 ffffea00040e4dc8 0000000000000000 [ 15.765521] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 15.766083] page dumped because: kasan: bad access detected [ 15.766265] [ 15.766335] Memory state around the buggy address: [ 15.766488] ffff888103937c00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 f1 [ 15.767399] ffff888103937c80: f1 f1 f1 f1 f1 01 f2 00 f2 f2 f2 00 00 f2 f2 00 [ 15.767606] >ffff888103937d00: 02 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1 [ 15.768012] ^ [ 15.768209] ffff888103937d80: f1 f1 f1 00 00 f2 f2 00 00 f2 f2 00 00 f3 f3 00 [ 15.768497] ffff888103937e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 15.769099] ==================================================================