Hay
Date
Nov. 26, 2024, 6:09 a.m.

Environment
qemu-arm64
qemu-x86_64

[   34.145363] ==================================================================
[   34.146680] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_left+0x2b8/0x310
[   34.147573] Read of size 1 at addr ffff800080ae7bdf by task kunit_try_catch/240
[   34.148350] 
[   34.148741] CPU: 0 UID: 0 PID: 240 Comm: kunit_try_catch Tainted: G    B            N 6.12.0-next-20241126 #1
[   34.149749] Tainted: [B]=BAD_PAGE, [N]=TEST
[   34.151032] Hardware name: linux,dummy-virt (DT)
[   34.151681] Call trace:
[   34.153347]  show_stack+0x20/0x38 (C)
[   34.153967]  dump_stack_lvl+0x8c/0xd0
[   34.154580]  print_report+0x2fc/0x5e0
[   34.155361]  kasan_report+0xc8/0x118
[   34.156042]  __asan_report_load1_noabort+0x20/0x30
[   34.157144]  kasan_alloca_oob_left+0x2b8/0x310
[   34.157718]  kunit_try_run_case+0x14c/0x3d0
[   34.158308]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   34.159382]  kthread+0x24c/0x2d0
[   34.159930]  ret_from_fork+0x10/0x20
[   34.160850] 
[   34.161188] The buggy address belongs to stack of task kunit_try_catch/240
[   34.162037] 
[   34.162397] The buggy address belongs to the virtual mapping at
[   34.162397]  [ffff800080ae0000, ffff800080ae9000) created by:
[   34.162397]  kernel_clone+0x140/0x790
[   34.164339] 
[   34.165472] The buggy address belongs to the physical page:
[   34.166172] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106086
[   34.167149] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   34.168007] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   34.169121] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   34.170650] page dumped because: kasan: bad access detected
[   34.171324] 
[   34.171731] Memory state around the buggy address:
[   34.172366]  ffff800080ae7a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   34.173257]  ffff800080ae7b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   34.174516] >ffff800080ae7b80: 00 00 00 00 00 00 00 00 ca ca ca ca 00 02 cb cb
[   34.175374]                                                     ^
[   34.176149]  ffff800080ae7c00: cb cb cb cb 00 00 00 00 00 00 f1 f1 f1 f1 01 f2
[   34.177350]  ffff800080ae7c80: 04 f2 00 f2 f2 f2 00 00 f3 f3 00 00 00 00 00 00
[   34.177742] ==================================================================

[   34.173016] ==================================================================
[   34.174717] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_left+0x2b8/0x310
[   34.175811] Read of size 1 at addr ffff800080b77bdf by task kunit_try_catch/240
[   34.177084] 
[   34.177437] CPU: 0 UID: 0 PID: 240 Comm: kunit_try_catch Tainted: G    B            N 6.12.0-next-20241126 #1
[   34.178760] Tainted: [B]=BAD_PAGE, [N]=TEST
[   34.179247] Hardware name: linux,dummy-virt (DT)
[   34.179935] Call trace:
[   34.180357]  show_stack+0x20/0x38 (C)
[   34.180992]  dump_stack_lvl+0x8c/0xd0
[   34.181623]  print_report+0x2fc/0x5e0
[   34.182275]  kasan_report+0xc8/0x118
[   34.183089]  __asan_report_load1_noabort+0x20/0x30
[   34.183783]  kasan_alloca_oob_left+0x2b8/0x310
[   34.184448]  kunit_try_run_case+0x14c/0x3d0
[   34.185195]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   34.186231]  kthread+0x24c/0x2d0
[   34.186813]  ret_from_fork+0x10/0x20
[   34.187338] 
[   34.187741] The buggy address belongs to stack of task kunit_try_catch/240
[   34.188598] 
[   34.189023] The buggy address belongs to the virtual mapping at
[   34.189023]  [ffff800080b70000, ffff800080b79000) created by:
[   34.189023]  kernel_clone+0x140/0x790
[   34.190958] 
[   34.191339] The buggy address belongs to the physical page:
[   34.191989] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105ed0
[   34.193032] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   34.194302] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   34.195178] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   34.196108] page dumped because: kasan: bad access detected
[   34.196837] 
[   34.197215] Memory state around the buggy address:
[   34.198192]  ffff800080b77a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   34.198976]  ffff800080b77b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   34.199924] >ffff800080b77b80: 00 00 00 00 00 00 00 00 ca ca ca ca 00 02 cb cb
[   34.200732]                                                     ^
[   34.201788]  ffff800080b77c00: cb cb cb cb 00 00 00 00 00 00 f1 f1 f1 f1 01 f2
[   34.202632]  ffff800080b77c80: 04 f2 00 f2 f2 f2 00 00 f3 f3 00 00 00 00 00 00
[   34.203432] ==================================================================

[   28.309204] ==================================================================
[   28.309492] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_left+0x31f/0x380
[   28.309492] Read of size 1 at addr ffff888102af7c9f by task kunit_try_catch/260
[   28.309492] 
[   28.309492] CPU: 1 UID: 0 PID: 260 Comm: kunit_try_catch Tainted: G    B            N 6.12.0-next-20241126 #1
[   28.314249] Tainted: [B]=BAD_PAGE, [N]=TEST
[   28.314249] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   28.314249] Call Trace:
[   28.314249]  <TASK>
[   28.314249]  dump_stack_lvl+0x73/0xb0
[   28.314249]  print_report+0xd1/0x640
[   28.314249]  ? __virt_addr_valid+0x1db/0x2d0
[   28.314249]  ? kasan_addr_to_slab+0x11/0xa0
[   28.314249]  kasan_report+0x102/0x140
[   28.314249]  ? kasan_alloca_oob_left+0x31f/0x380
[   28.314249]  ? kasan_alloca_oob_left+0x31f/0x380
[   28.314249]  __asan_report_load1_noabort+0x18/0x20
[   28.314249]  kasan_alloca_oob_left+0x31f/0x380
[   28.314249]  ? ktime_get_ts64+0x84/0x230
[   28.314249]  ? read_hpet+0x1f0/0x230
[   28.314249]  ? __pfx_read_hpet+0x10/0x10
[   28.314249]  ? __pfx_kasan_alloca_oob_left+0x10/0x10
[   28.314249]  ? __schedule+0xc3e/0x2790
[   28.314249]  ? ktime_get_ts64+0x84/0x230
[   28.314249]  kunit_try_run_case+0x1b3/0x490
[   28.314249]  ? __pfx_kunit_try_run_case+0x10/0x10
[   28.314249]  ? _raw_spin_lock_irqsave+0xa2/0x110
[   28.314249]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   28.314249]  ? __kthread_parkme+0x82/0x160
[   28.314249]  ? preempt_count_sub+0x50/0x80
[   28.314249]  ? __pfx_kunit_try_run_case+0x10/0x10
[   28.314249]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   28.314249]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   28.314249]  kthread+0x257/0x310
[   28.314249]  ? __pfx_kthread+0x10/0x10
[   28.314249]  ret_from_fork+0x41/0x80
[   28.314249]  ? __pfx_kthread+0x10/0x10
[   28.314249]  ret_from_fork_asm+0x1a/0x30
[   28.314249]  </TASK>
[   28.314249] 
[   28.314249] The buggy address belongs to stack of task kunit_try_catch/260
[   28.314249] 
[   28.314249] The buggy address belongs to the physical page:
[   28.314249] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102af7
[   28.314249] flags: 0x200000000000000(node=0|zone=2)
[   28.314249] raw: 0200000000000000 ffffea00040abdc8 ffffea00040abdc8 0000000000000000
[   28.314249] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
[   28.314249] page dumped because: kasan: bad access detected
[   28.314249] 
[   28.314249] Memory state around the buggy address:
[   28.314249]  ffff888102af7b80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   28.314249]  ffff888102af7c00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   28.314249] >ffff888102af7c80: ca ca ca ca 00 02 cb cb cb cb cb cb 00 00 00 00
[   28.314249]                             ^
[   28.314249]  ffff888102af7d00: 00 f1 f1 f1 f1 01 f2 04 f2 00 f2 f2 f2 00 00 f3
[   28.314249]  ffff888102af7d80: f3 00 00 00 00 00 00 00 00 00 00 00 00 f1 f1 f1
[   28.314249] ==================================================================

[   23.228819] ==================================================================
[   23.230029] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_left+0x31f/0x380
[   23.231115] Read of size 1 at addr ffff888102b37c9f by task kunit_try_catch/258
[   23.231823] 
[   23.232078] CPU: 1 UID: 0 PID: 258 Comm: kunit_try_catch Tainted: G    B            N 6.12.0-next-20241126 #1
[   23.233067] Tainted: [B]=BAD_PAGE, [N]=TEST
[   23.233323] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   23.235064] Call Trace:
[   23.235626]  <TASK>
[   23.236114]  dump_stack_lvl+0x73/0xb0
[   23.236656]  print_report+0xd1/0x640
[   23.237269]  ? __virt_addr_valid+0x1db/0x2d0
[   23.237619]  ? kasan_addr_to_slab+0x11/0xa0
[   23.238085]  kasan_report+0x102/0x140
[   23.239708]  ? kasan_alloca_oob_left+0x31f/0x380
[   23.240758]  ? kasan_alloca_oob_left+0x31f/0x380
[   23.241236]  __asan_report_load1_noabort+0x18/0x20
[   23.241967]  kasan_alloca_oob_left+0x31f/0x380
[   23.242333]  ? __pfx_trace_event_raw_event_ipi_raise+0x10/0x10
[   23.243103]  ? __schedule+0xc3e/0x2790
[   23.243626]  ? trace_hardirqs_on+0x37/0xe0
[   23.243936]  ? __pfx_kasan_alloca_oob_left+0x10/0x10
[   23.244903]  ? __schedule+0xc3e/0x2790
[   23.245790]  ? __pfx_read_tsc+0x10/0x10
[   23.246237]  ? ktime_get_ts64+0x84/0x230
[   23.246711]  kunit_try_run_case+0x1b3/0x490
[   23.247180]  ? __pfx_kunit_try_run_case+0x10/0x10
[   23.247687]  ? _raw_spin_lock_irqsave+0xa2/0x110
[   23.248259]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   23.248656]  ? __kthread_parkme+0x82/0x160
[   23.249115]  ? preempt_count_sub+0x50/0x80
[   23.249985]  ? __pfx_kunit_try_run_case+0x10/0x10
[   23.250800]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   23.251587]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   23.252842]  kthread+0x257/0x310
[   23.253636]  ? __pfx_kthread+0x10/0x10
[   23.254092]  ret_from_fork+0x41/0x80
[   23.255135]  ? __pfx_kthread+0x10/0x10
[   23.255584]  ret_from_fork_asm+0x1a/0x30
[   23.256223]  </TASK>
[   23.256413] 
[   23.256658] The buggy address belongs to stack of task kunit_try_catch/258
[   23.257261] 
[   23.257465] The buggy address belongs to the physical page:
[   23.257976] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102b37
[   23.259991] flags: 0x200000000000000(node=0|zone=2)
[   23.260454] raw: 0200000000000000 ffffea00040acdc8 ffffea00040acdc8 0000000000000000
[   23.261559] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
[   23.262233] page dumped because: kasan: bad access detected
[   23.263338] 
[   23.263569] Memory state around the buggy address:
[   23.264568]  ffff888102b37b80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   23.265596]  ffff888102b37c00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   23.265882] >ffff888102b37c80: ca ca ca ca 00 02 cb cb cb cb cb cb 00 00 00 00
[   23.266108]                             ^
[   23.266253]  ffff888102b37d00: 00 f1 f1 f1 f1 01 f2 04 f2 00 f2 f2 f2 00 00 f3
[   23.266462]  ffff888102b37d80: f3 00 00 00 00 00 00 00 00 00 00 00 00 f1 f1 f1
[   23.267550] ==================================================================