Hay
Date
July 3, 2025, 10:10 a.m.

Environment
dragonboard-845c
qemu-arm64
qemu-x86_64

[   52.272512] ==================================================================
[   52.284077] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_right+0x2dc/0x340
[   52.291757] Read of size 1 at addr ffff8000843d7b4a by task kunit_try_catch/362
[   52.299162] 
[   52.300698] CPU: 2 UID: 0 PID: 362 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4-next-20250703 #1 PREEMPT 
[   52.300730] Tainted: [B]=BAD_PAGE, [N]=TEST
[   52.300738] Hardware name: Thundercomm Dragonboard 845c (DT)
[   52.300751] Call trace:
[   52.300760]  show_stack+0x20/0x38 (C)
[   52.300778]  dump_stack_lvl+0x8c/0xd0
[   52.300803]  print_report+0x310/0x608
[   52.300824]  kasan_report+0xdc/0x128
[   52.300845]  __asan_report_load1_noabort+0x20/0x30
[   52.300865]  kasan_alloca_oob_right+0x2dc/0x340
[   52.300883]  kunit_try_run_case+0x170/0x3f0
[   52.300904]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   52.300925]  kthread+0x328/0x630
[   52.300941]  ret_from_fork+0x10/0x20
[   52.300961] 
[   52.367018] The buggy address belongs to stack of task kunit_try_catch/362
[   52.373999] 
[   52.375534] The buggy address belongs to the virtual mapping at
[   52.375534]  [ffff8000843d0000, ffff8000843d9000) created by:
[   52.375534]  kernel_clone+0x150/0x7a8
[   52.391014] 
[   52.392550] The buggy address belongs to the physical page:
[   52.398196] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105592
[   52.406303] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   52.412922] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   52.420772] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   52.428617] page dumped because: kasan: bad access detected
[   52.434264] 
[   52.435794] Memory state around the buggy address:
[   52.440654]  ffff8000843d7a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   52.447971]  ffff8000843d7a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   52.455288] >ffff8000843d7b00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb
[   52.462602]                                               ^
[   52.468252]  ffff8000843d7b80: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 01 f2 04 f2
[   52.475569]  ffff8000843d7c00: 00 f2 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00
[   52.482883] ==================================================================

[   33.253232] ==================================================================
[   33.253294] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_right+0x2dc/0x340
[   33.253352] Read of size 1 at addr ffff800080a17b4a by task kunit_try_catch/285
[   33.253406] 
[   33.253441] CPU: 0 UID: 0 PID: 285 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4-next-20250703 #1 PREEMPT 
[   33.253530] Tainted: [B]=BAD_PAGE, [N]=TEST
[   33.253558] Hardware name: linux,dummy-virt (DT)
[   33.253594] Call trace:
[   33.253618]  show_stack+0x20/0x38 (C)
[   33.253670]  dump_stack_lvl+0x8c/0xd0
[   33.253723]  print_report+0x310/0x608
[   33.254051]  kasan_report+0xdc/0x128
[   33.254130]  __asan_report_load1_noabort+0x20/0x30
[   33.254250]  kasan_alloca_oob_right+0x2dc/0x340
[   33.254495]  kunit_try_run_case+0x170/0x3f0
[   33.254606]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   33.255385]  kthread+0x328/0x630
[   33.255803]  ret_from_fork+0x10/0x20
[   33.256122] 
[   33.256149] The buggy address belongs to stack of task kunit_try_catch/285
[   33.256206] 
[   33.256233] The buggy address belongs to the virtual mapping at
[   33.256233]  [ffff800080a10000, ffff800080a19000) created by:
[   33.256233]  kernel_clone+0x150/0x7a8
[   33.256880] 
[   33.256915] The buggy address belongs to the physical page:
[   33.257004] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x109855
[   33.257113] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   33.257180] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   33.257235] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   33.257304] page dumped because: kasan: bad access detected
[   33.257338] 
[   33.257358] Memory state around the buggy address:
[   33.257393]  ffff800080a17a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   33.257438]  ffff800080a17a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   33.257658] >ffff800080a17b00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb
[   33.257862]                                               ^
[   33.257905]  ffff800080a17b80: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 01 f2 04 f2
[   33.257954]  ffff800080a17c00: 00 f2 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00
[   33.257996] ==================================================================

[   25.026537] ==================================================================
[   25.027078] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_right+0x329/0x390
[   25.027485] Read of size 1 at addr ffff8881061ffc4a by task kunit_try_catch/302
[   25.027821] 
[   25.027913] CPU: 0 UID: 0 PID: 302 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4-next-20250703 #1 PREEMPT(voluntary) 
[   25.027961] Tainted: [B]=BAD_PAGE, [N]=TEST
[   25.027974] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   25.027996] Call Trace:
[   25.028009]  <TASK>
[   25.028024]  dump_stack_lvl+0x73/0xb0
[   25.028055]  print_report+0xd1/0x650
[   25.028077]  ? __virt_addr_valid+0x1db/0x2d0
[   25.028101]  ? kasan_alloca_oob_right+0x329/0x390
[   25.028124]  ? kasan_addr_to_slab+0x11/0xa0
[   25.028157]  ? kasan_alloca_oob_right+0x329/0x390
[   25.028180]  kasan_report+0x141/0x180
[   25.028202]  ? kasan_alloca_oob_right+0x329/0x390
[   25.028229]  __asan_report_load1_noabort+0x18/0x20
[   25.028254]  kasan_alloca_oob_right+0x329/0x390
[   25.028275]  ? __kasan_check_write+0x18/0x20
[   25.028299]  ? __pfx_sched_clock_cpu+0x10/0x10
[   25.028320]  ? finish_task_switch.isra.0+0x153/0x700
[   25.028343]  ? rwsem_down_read_slowpath+0x58e/0xb90
[   25.028369]  ? trace_hardirqs_on+0x37/0xe0
[   25.028393]  ? __pfx_kasan_alloca_oob_right+0x10/0x10
[   25.028420]  ? trace_hardirqs_on+0x37/0xe0
[   25.028441]  ? __pfx_read_tsc+0x10/0x10
[   25.028472]  ? ktime_get_ts64+0x86/0x230
[   25.028497]  kunit_try_run_case+0x1a5/0x480
[   25.028524]  ? __pfx_kunit_try_run_case+0x10/0x10
[   25.028550]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   25.028573]  ? __kthread_parkme+0x82/0x180
[   25.028595]  ? preempt_count_sub+0x50/0x80
[   25.028618]  ? __pfx_kunit_try_run_case+0x10/0x10
[   25.028643]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   25.028667]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   25.028691]  kthread+0x337/0x6f0
[   25.028711]  ? trace_preempt_on+0x20/0xc0
[   25.028732]  ? __pfx_kthread+0x10/0x10
[   25.028753]  ? _raw_spin_unlock_irq+0x47/0x80
[   25.028779]  ? calculate_sigpending+0x7b/0xa0
[   25.028803]  ? __pfx_kthread+0x10/0x10
[   25.028825]  ret_from_fork+0x116/0x1d0
[   25.028845]  ? __pfx_kthread+0x10/0x10
[   25.028866]  ret_from_fork_asm+0x1a/0x30
[   25.028897]  </TASK>
[   25.028908] 
[   25.039326] The buggy address belongs to stack of task kunit_try_catch/302
[   25.039802] 
[   25.040027] The buggy address belongs to the physical page:
[   25.040361] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1061ff
[   25.040813] flags: 0x200000000000000(node=0|zone=2)
[   25.041122] raw: 0200000000000000 ffffea0004187fc8 ffffea0004187fc8 0000000000000000
[   25.041737] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
[   25.042125] page dumped because: kasan: bad access detected
[   25.042614] 
[   25.042712] Memory state around the buggy address:
[   25.043000]  ffff8881061ffb00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   25.043569]  ffff8881061ffb80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   25.043828] >ffff8881061ffc00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb
[   25.044373]                                               ^
[   25.044574]  ffff8881061ffc80: 00 00 00 f1 f1 f1 f1 01 f2 04 f2 00 f2 f2 f2 00
[   25.044895]  ffff8881061ffd00: 00 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   25.045562] ==================================================================