Hay
Date
Dec. 6, 2024, 3:11 p.m.

Environment
qemu-arm64
qemu-x86_64

[   33.996474] ==================================================================
[   33.997586] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_left+0x2b8/0x310
[   33.998447] Read of size 1 at addr ffff800080c27bdf by task kunit_try_catch/240
[   33.999381] 
[   34.000701] CPU: 1 UID: 0 PID: 240 Comm: kunit_try_catch Tainted: G    B            N 6.13.0-rc1-next-20241206 #1
[   34.001904] Tainted: [B]=BAD_PAGE, [N]=TEST
[   34.003661] Hardware name: linux,dummy-virt (DT)
[   34.004187] Call trace:
[   34.004669]  show_stack+0x20/0x38 (C)
[   34.005306]  dump_stack_lvl+0x8c/0xd0
[   34.005951]  print_report+0x2fc/0x5e0
[   34.006657]  kasan_report+0xc8/0x118
[   34.007225]  __asan_report_load1_noabort+0x20/0x30
[   34.008399]  kasan_alloca_oob_left+0x2b8/0x310
[   34.009123]  kunit_try_run_case+0x14c/0x3d0
[   34.009818]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   34.011040]  kthread+0x24c/0x2d0
[   34.011704]  ret_from_fork+0x10/0x20
[   34.012225] 
[   34.012622] The buggy address belongs to stack of task kunit_try_catch/240
[   34.013408] 
[   34.014062] The buggy address belongs to the virtual mapping at
[   34.014062]  [ffff800080c20000, ffff800080c29000) created by:
[   34.014062]  kernel_clone+0x140/0x788
[   34.016043] 
[   34.016503] The buggy address belongs to the physical page:
[   34.017262] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106b61
[   34.018122] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   34.019977] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   34.020873] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   34.021739] page dumped because: kasan: bad access detected
[   34.022655] 
[   34.023035] Memory state around the buggy address:
[   34.023749]  ffff800080c27a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   34.024696]  ffff800080c27b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   34.025477] >ffff800080c27b80: 00 00 00 00 00 00 00 00 ca ca ca ca 00 02 cb cb
[   34.026275]                                                     ^
[   34.027368]  ffff800080c27c00: cb cb cb cb 00 00 00 00 00 00 f1 f1 f1 f1 01 f2
[   34.028303]  ffff800080c27c80: 04 f2 00 f2 f2 f2 00 00 f3 f3 00 00 00 00 00 00
[   34.029210] ==================================================================

[   26.878226] ==================================================================
[   26.879062] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_left+0x31f/0x380
[   26.880470] Read of size 1 at addr ffff888102b1fc9f by task kunit_try_catch/259
[   26.881566] 
[   26.882067] CPU: 0 UID: 0 PID: 259 Comm: kunit_try_catch Tainted: G    B            N 6.13.0-rc1-next-20241206 #1
[   26.882922] Tainted: [B]=BAD_PAGE, [N]=TEST
[   26.883790] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   26.884692] Call Trace:
[   26.884994]  <TASK>
[   26.885311]  dump_stack_lvl+0x73/0xb0
[   26.885754]  print_report+0xd1/0x640
[   26.886973]  ? __virt_addr_valid+0x1db/0x2d0
[   26.887480]  ? kasan_addr_to_slab+0x11/0xa0
[   26.887895]  kasan_report+0x102/0x140
[   26.888433]  ? kasan_alloca_oob_left+0x31f/0x380
[   26.888907]  ? kasan_alloca_oob_left+0x31f/0x380
[   26.889823]  __asan_report_load1_noabort+0x18/0x20
[   26.891309]  kasan_alloca_oob_left+0x31f/0x380
[   26.891749]  ? __schedule_bug+0xa0/0xf0
[   26.892263]  ? __schedule+0xc70/0x27e0
[   26.892708]  ? trace_hardirqs_on+0x37/0xe0
[   26.893251]  ? __pfx_kasan_alloca_oob_left+0x10/0x10
[   26.893877]  ? __schedule+0xc70/0x27e0
[   26.894519]  ? __pfx_read_tsc+0x10/0x10
[   26.894914]  ? ktime_get_ts64+0x86/0x230
[   26.895914]  kunit_try_run_case+0x1b3/0x490
[   26.896481]  ? __pfx_kunit_try_run_case+0x10/0x10
[   26.897027]  ? _raw_spin_lock_irqsave+0xa2/0x110
[   26.897810]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   26.898230]  ? __kthread_parkme+0x82/0x160
[   26.898727]  ? preempt_count_sub+0x50/0x80
[   26.899186]  ? __pfx_kunit_try_run_case+0x10/0x10
[   26.899835]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   26.900269]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   26.901141]  kthread+0x257/0x310
[   26.901679]  ? __pfx_kthread+0x10/0x10
[   26.902070]  ret_from_fork+0x41/0x80
[   26.902519]  ? __pfx_kthread+0x10/0x10
[   26.902927]  ret_from_fork_asm+0x1a/0x30
[   26.904307]  </TASK>
[   26.904545] 
[   26.905313] The buggy address belongs to stack of task kunit_try_catch/259
[   26.905963] 
[   26.906526] The buggy address belongs to the physical page:
[   26.906968] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102b1f
[   26.908274] flags: 0x200000000000000(node=0|zone=2)
[   26.908975] raw: 0200000000000000 ffffea00040ac7c8 ffffea00040ac7c8 0000000000000000
[   26.909891] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
[   26.911059] page dumped because: kasan: bad access detected
[   26.911838] 
[   26.912168] Memory state around the buggy address:
[   26.912661]  ffff888102b1fb80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   26.913846]  ffff888102b1fc00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   26.914555] >ffff888102b1fc80: ca ca ca ca 00 02 cb cb cb cb cb cb 00 00 00 00
[   26.915379]                             ^
[   26.915798]  ffff888102b1fd00: 00 f1 f1 f1 f1 01 f2 04 f2 00 f2 f2 f2 00 00 f3
[   26.916226]  ffff888102b1fd80: f3 00 00 00 00 00 00 00 00 00 00 00 00 f1 f1 f1
[   26.916954] ==================================================================