Date
Nov. 28, 2024, 2:36 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 33.332959] ================================================================== [ 33.334388] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_left+0x2b8/0x310 [ 33.335308] Read of size 1 at addr ffff800080b47bdf by task kunit_try_catch/239 [ 33.336225] [ 33.336626] CPU: 1 UID: 0 PID: 239 Comm: kunit_try_catch Tainted: G B N 6.12.0-next-20241128 #1 [ 33.338174] Tainted: [B]=BAD_PAGE, [N]=TEST [ 33.338665] Hardware name: linux,dummy-virt (DT) [ 33.339330] Call trace: [ 33.339750] show_stack+0x20/0x38 (C) [ 33.340410] dump_stack_lvl+0x8c/0xd0 [ 33.341063] print_report+0x2fc/0x5e0 [ 33.341949] kasan_report+0xc8/0x118 [ 33.342596] __asan_report_load1_noabort+0x20/0x30 [ 33.343295] kasan_alloca_oob_left+0x2b8/0x310 [ 33.343927] kunit_try_run_case+0x14c/0x3d0 [ 33.344548] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 33.345360] kthread+0x24c/0x2d0 [ 33.346170] ret_from_fork+0x10/0x20 [ 33.346749] [ 33.347150] The buggy address belongs to stack of task kunit_try_catch/239 [ 33.347921] [ 33.348349] The buggy address belongs to the virtual mapping at [ 33.348349] [ffff800080b40000, ffff800080b49000) created by: [ 33.348349] kernel_clone+0x140/0x788 [ 33.350177] [ 33.350434] The buggy address belongs to the physical page: [ 33.350979] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10404d [ 33.352101] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 33.353223] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000 [ 33.354130] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 33.355221] page dumped because: kasan: bad access detected [ 33.355951] [ 33.356215] Memory state around the buggy address: [ 33.356720] ffff800080b47a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 33.358352] ffff800080b47b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 33.359163] >ffff800080b47b80: 00 00 00 00 00 00 00 00 ca ca ca ca 00 02 cb cb [ 33.360012] ^ [ 33.360590] ffff800080b47c00: cb cb cb cb 00 00 00 00 00 00 f1 f1 f1 f1 01 f2 [ 33.361233] ffff800080b47c80: 04 f2 00 f2 f2 f2 00 00 f3 f3 00 00 00 00 00 00 [ 33.362335] ==================================================================
[ 24.259769] ================================================================== [ 24.260839] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_left+0x31f/0x380 [ 24.261904] Read of size 1 at addr ffff888102de7c9f by task kunit_try_catch/259 [ 24.262721] [ 24.263053] CPU: 0 UID: 0 PID: 259 Comm: kunit_try_catch Tainted: G B N 6.12.0-next-20241128 #1 [ 24.264755] Tainted: [B]=BAD_PAGE, [N]=TEST [ 24.265066] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 24.266859] Call Trace: [ 24.267265] <TASK> [ 24.267509] dump_stack_lvl+0x73/0xb0 [ 24.268080] print_report+0xd1/0x640 [ 24.268400] ? __virt_addr_valid+0x1db/0x2d0 [ 24.268960] ? kasan_addr_to_slab+0x11/0xa0 [ 24.269659] kasan_report+0x102/0x140 [ 24.269959] ? kasan_alloca_oob_left+0x31f/0x380 [ 24.270658] ? kasan_alloca_oob_left+0x31f/0x380 [ 24.271721] __asan_report_load1_noabort+0x18/0x20 [ 24.272250] kasan_alloca_oob_left+0x31f/0x380 [ 24.272713] ? trace_event_raw_event_sched_numa_pair_template+0x660/0x7d0 [ 24.273701] ? __schedule+0xc3e/0x2790 [ 24.274205] ? trace_hardirqs_on+0x37/0xe0 [ 24.274726] ? __pfx_kasan_alloca_oob_left+0x10/0x10 [ 24.275662] ? __schedule+0xc3e/0x2790 [ 24.276460] ? __pfx_read_tsc+0x10/0x10 [ 24.276853] ? ktime_get_ts64+0x84/0x230 [ 24.277354] kunit_try_run_case+0x1b3/0x490 [ 24.277806] ? __pfx_kunit_try_run_case+0x10/0x10 [ 24.278811] ? _raw_spin_lock_irqsave+0xa2/0x110 [ 24.279398] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 24.280297] ? __kthread_parkme+0x82/0x160 [ 24.280925] ? preempt_count_sub+0x50/0x80 [ 24.281622] ? __pfx_kunit_try_run_case+0x10/0x10 [ 24.282283] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 24.282920] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 24.283658] kthread+0x257/0x310 [ 24.284117] ? __pfx_kthread+0x10/0x10 [ 24.284708] ret_from_fork+0x41/0x80 [ 24.285384] ? __pfx_kthread+0x10/0x10 [ 24.285937] ret_from_fork_asm+0x1a/0x30 [ 24.286660] </TASK> [ 24.287000] [ 24.287649] The buggy address belongs to stack of task kunit_try_catch/259 [ 24.288461] [ 24.288638] The buggy address belongs to the physical page: [ 24.289288] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102de7 [ 24.290187] flags: 0x200000000000000(node=0|zone=2) [ 24.290760] raw: 0200000000000000 ffffea00040b79c8 ffffea00040b79c8 0000000000000000 [ 24.291557] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 24.292184] page dumped because: kasan: bad access detected [ 24.292817] [ 24.293352] Memory state around the buggy address: [ 24.294146] ffff888102de7b80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 24.294708] ffff888102de7c00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 24.295593] >ffff888102de7c80: ca ca ca ca 00 02 cb cb cb cb cb cb 00 00 00 00 [ 24.296504] ^ [ 24.296917] ffff888102de7d00: 00 f1 f1 f1 f1 01 f2 04 f2 00 f2 f2 f2 00 00 f3 [ 24.297893] ffff888102de7d80: f3 00 00 00 00 00 00 00 00 00 00 00 00 f1 f1 f1 [ 24.299258] ==================================================================