Hay
Date
June 24, 2025, 12:47 p.m.

Environment
qemu-arm64
qemu-x86_64

[   23.156725] ==================================================================
[   23.156852] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_left+0x2ec/0x320
[   23.156987] Read of size 1 at addr fff00000c3fab67f by task kunit_try_catch/140
[   23.157102] 
[   23.157185] CPU: 0 UID: 0 PID: 140 Comm: kunit_try_catch Tainted: G    B            N  6.15.4-rc2 #1 PREEMPT 
[   23.157683] Tainted: [B]=BAD_PAGE, [N]=TEST
[   23.157795] Hardware name: linux,dummy-virt (DT)
[   23.157998] Call trace:
[   23.158960]  show_stack+0x20/0x38 (C)
[   23.159786]  dump_stack_lvl+0x8c/0xd0
[   23.159942]  print_report+0x118/0x608
[   23.160076]  kasan_report+0xdc/0x128
[   23.160205]  __asan_report_load1_noabort+0x20/0x30
[   23.160372]  kmalloc_oob_left+0x2ec/0x320
[   23.160523]  kunit_try_run_case+0x170/0x3f0
[   23.160698]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   23.160985]  kthread+0x328/0x630
[   23.161172]  ret_from_fork+0x10/0x20
[   23.161476] 
[   23.161522] Allocated by task 10:
[   23.161593]  kasan_save_stack+0x3c/0x68
[   23.161740]  kasan_save_track+0x20/0x40
[   23.161961]  kasan_save_alloc_info+0x40/0x58
[   23.162119]  __kasan_kmalloc+0xd4/0xd8
[   23.162252]  __kmalloc_node_track_caller_noprof+0x194/0x4b8
[   23.162457]  kvasprintf+0xe0/0x180
[   23.162549]  __kthread_create_on_node+0x16c/0x350
[   23.162644]  kthread_create_on_node+0xe4/0x130
[   23.162792]  create_worker+0x380/0x6b8
[   23.162885]  worker_thread+0x808/0xf38
[   23.162969]  kthread+0x328/0x630
[   23.163099]  ret_from_fork+0x10/0x20
[   23.163193] 
[   23.163296] The buggy address belongs to the object at fff00000c3fab660
[   23.163296]  which belongs to the cache kmalloc-16 of size 16
[   23.163503] The buggy address is located 19 bytes to the right of
[   23.163503]  allocated 12-byte region [fff00000c3fab660, fff00000c3fab66c)
[   23.165125] 
[   23.165227] The buggy address belongs to the physical page:
[   23.165339] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103fab
[   23.165562] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   23.165684] page_type: f5(slab)
[   23.165776] raw: 0bfffe0000000000 fff00000c0001640 dead000000000122 0000000000000000
[   23.165897] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000
[   23.165993] page dumped because: kasan: bad access detected
[   23.166066] 
[   23.166109] Memory state around the buggy address:
[   23.166241]  fff00000c3fab500: 00 02 fc fc 00 02 fc fc 00 02 fc fc 00 05 fc fc
[   23.166405]  fff00000c3fab580: fa fb fc fc 00 02 fc fc fa fb fc fc fa fb fc fc
[   23.166677] >fff00000c3fab600: fa fb fc fc fa fb fc fc fa fb fc fc 00 04 fc fc
[   23.166828]                                                                 ^
[   23.166926]  fff00000c3fab680: 00 07 fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   23.167038]  fff00000c3fab700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   23.167294] ==================================================================

[   10.905490] ==================================================================
[   10.906168] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_left+0x361/0x3c0
[   10.906723] Read of size 1 at addr ffff8881023b0f1f by task kunit_try_catch/158
[   10.907263] 
[   10.907415] CPU: 0 UID: 0 PID: 158 Comm: kunit_try_catch Tainted: G    B            N  6.15.4-rc2 #1 PREEMPT(voluntary) 
[   10.907501] Tainted: [B]=BAD_PAGE, [N]=TEST
[   10.907522] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   10.907617] Call Trace:
[   10.907671]  <TASK>
[   10.907705]  dump_stack_lvl+0x73/0xb0
[   10.907766]  print_report+0xd1/0x650
[   10.907812]  ? __virt_addr_valid+0x1db/0x2d0
[   10.907849]  ? kmalloc_oob_left+0x361/0x3c0
[   10.907884]  ? kasan_complete_mode_report_info+0x2a/0x200
[   10.907920]  ? kmalloc_oob_left+0x361/0x3c0
[   10.907958]  kasan_report+0x141/0x180
[   10.908020]  ? kmalloc_oob_left+0x361/0x3c0
[   10.908070]  __asan_report_load1_noabort+0x18/0x20
[   10.908104]  kmalloc_oob_left+0x361/0x3c0
[   10.908146]  ? __pfx_kmalloc_oob_left+0x10/0x10
[   10.908184]  ? __schedule+0x10cc/0x2b60
[   10.908228]  ? __pfx_read_tsc+0x10/0x10
[   10.908319]  ? ktime_get_ts64+0x86/0x230
[   10.908362]  kunit_try_run_case+0x1a5/0x480
[   10.908401]  ? __pfx_kunit_try_run_case+0x10/0x10
[   10.908433]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   10.908474]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   10.908513]  ? __kthread_parkme+0x82/0x180
[   10.908569]  ? preempt_count_sub+0x50/0x80
[   10.908603]  ? __pfx_kunit_try_run_case+0x10/0x10
[   10.908642]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   10.908667]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   10.908689]  kthread+0x337/0x6f0
[   10.908712]  ? trace_preempt_on+0x20/0xc0
[   10.908747]  ? __pfx_kthread+0x10/0x10
[   10.908774]  ? _raw_spin_unlock_irq+0x47/0x80
[   10.908809]  ? calculate_sigpending+0x7b/0xa0
[   10.908846]  ? __pfx_kthread+0x10/0x10
[   10.908901]  ret_from_fork+0x41/0x80
[   10.908938]  ? __pfx_kthread+0x10/0x10
[   10.908973]  ret_from_fork_asm+0x1a/0x30
[   10.909027]  </TASK>
[   10.909050] 
[   10.919263] Allocated by task 11:
[   10.919775]  kasan_save_stack+0x45/0x70
[   10.920135]  kasan_save_track+0x18/0x40
[   10.920565]  kasan_save_alloc_info+0x3b/0x50
[   10.920924]  __kasan_kmalloc+0xb7/0xc0
[   10.921117]  __kmalloc_node_track_caller_noprof+0x1cb/0x500
[   10.921519]  kvasprintf+0xc5/0x150
[   10.921971]  __kthread_create_on_node+0x18b/0x3a0
[   10.922359]  kthread_create_on_node+0xab/0xe0
[   10.922687]  create_worker+0x3e5/0x7b0
[   10.922847]  worker_thread+0x992/0x1220
[   10.923099]  kthread+0x337/0x6f0
[   10.923343]  ret_from_fork+0x41/0x80
[   10.923507]  ret_from_fork_asm+0x1a/0x30
[   10.923723] 
[   10.923867] The buggy address belongs to the object at ffff8881023b0f00
[   10.923867]  which belongs to the cache kmalloc-16 of size 16
[   10.924753] The buggy address is located 19 bytes to the right of
[   10.924753]  allocated 12-byte region [ffff8881023b0f00, ffff8881023b0f0c)
[   10.925172] 
[   10.925285] The buggy address belongs to the physical page:
[   10.925935] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1023b0
[   10.926526] flags: 0x200000000000000(node=0|zone=2)
[   10.926947] page_type: f5(slab)
[   10.927118] raw: 0200000000000000 ffff888100041640 dead000000000122 0000000000000000
[   10.927372] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000
[   10.927885] page dumped because: kasan: bad access detected
[   10.928251] 
[   10.928407] Memory state around the buggy address:
[   10.928851]  ffff8881023b0e00: 00 03 fc fc fa fb fc fc fa fb fc fc fa fb fc fc
[   10.929336]  ffff8881023b0e80: fa fb fc fc 00 00 fc fc fa fb fc fc 00 00 fc fc
[   10.929582] >ffff8881023b0f00: 00 04 fc fc 00 07 fc fc fc fc fc fc fc fc fc fc
[   10.930081]                             ^
[   10.930377]  ffff8881023b0f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   10.932122]  ffff8881023b1000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   10.932383] ==================================================================