Hay
Date
July 9, 2025, 11:07 p.m.

Environment
qemu-arm64
qemu-x86_64

[   16.344791] ==================================================================
[   16.344871] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_left+0x2ec/0x320
[   16.344969] Read of size 1 at addr fff00000c61bc3bf by task kunit_try_catch/138
[   16.345066] 
[   16.345103] CPU: 1 UID: 0 PID: 138 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT 
[   16.345252] Tainted: [B]=BAD_PAGE, [N]=TEST
[   16.345282] Hardware name: linux,dummy-virt (DT)
[   16.345341] Call trace:
[   16.345369]  show_stack+0x20/0x38 (C)
[   16.345621]  dump_stack_lvl+0x8c/0xd0
[   16.345755]  print_report+0x118/0x608
[   16.345811]  kasan_report+0xdc/0x128
[   16.345856]  __asan_report_load1_noabort+0x20/0x30
[   16.346012]  kmalloc_oob_left+0x2ec/0x320
[   16.346072]  kunit_try_run_case+0x170/0x3f0
[   16.346228]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   16.346289]  kthread+0x328/0x630
[   16.346389]  ret_from_fork+0x10/0x20
[   16.346441] 
[   16.346464] Allocated by task 24:
[   16.346633]  kasan_save_stack+0x3c/0x68
[   16.346723]  kasan_save_track+0x20/0x40
[   16.346768]  kasan_save_alloc_info+0x40/0x58
[   16.346909]  __kasan_kmalloc+0xd4/0xd8
[   16.346990]  __kmalloc_node_track_caller_noprof+0x194/0x4b8
[   16.347036]  kvasprintf+0xe0/0x180
[   16.347175]  __kthread_create_on_node+0x16c/0x350
[   16.347264]  kthread_create_on_node+0xe4/0x130
[   16.347468]  create_worker+0x380/0x6b8
[   16.347545]  worker_thread+0x808/0xf38
[   16.347587]  kthread+0x328/0x630
[   16.347734]  ret_from_fork+0x10/0x20
[   16.347944] 
[   16.348015] The buggy address belongs to the object at fff00000c61bc3a0
[   16.348015]  which belongs to the cache kmalloc-16 of size 16
[   16.348250] The buggy address is located 19 bytes to the right of
[   16.348250]  allocated 12-byte region [fff00000c61bc3a0, fff00000c61bc3ac)
[   16.348439] 
[   16.348536] The buggy address belongs to the physical page:
[   16.348577] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1061bc
[   16.348769] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   16.348825] page_type: f5(slab)
[   16.348864] raw: 0bfffe0000000000 fff00000c0001640 dead000000000122 0000000000000000
[   16.349018] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000
[   16.349204] page dumped because: kasan: bad access detected
[   16.349283] 
[   16.349430] Memory state around the buggy address:
[   16.349676]  fff00000c61bc280: 00 02 fc fc 00 05 fc fc fa fb fc fc 00 02 fc fc
[   16.349770]  fff00000c61bc300: fa fb fc fc fa fb fc fc fa fb fc fc fa fb fc fc
[   16.349989] >fff00000c61bc380: fa fb fc fc 00 04 fc fc 00 07 fc fc fc fc fc fc
[   16.350204]                                         ^
[   16.350378]  fff00000c61bc400: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   16.350481]  fff00000c61bc480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   16.350750] ==================================================================

[   11.913629] ==================================================================
[   11.914175] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_left+0x361/0x3c0
[   11.914447] Read of size 1 at addr ffff8881018fefbf by task kunit_try_catch/155
[   11.914751] 
[   11.914864] CPU: 0 UID: 0 PID: 155 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT(voluntary) 
[   11.914907] Tainted: [B]=BAD_PAGE, [N]=TEST
[   11.914919] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   11.914938] Call Trace:
[   11.914950]  <TASK>
[   11.914966]  dump_stack_lvl+0x73/0xb0
[   11.914994]  print_report+0xd1/0x650
[   11.915016]  ? __virt_addr_valid+0x1db/0x2d0
[   11.915051]  ? kmalloc_oob_left+0x361/0x3c0
[   11.915071]  ? kasan_complete_mode_report_info+0x2a/0x200
[   11.915094]  ? kmalloc_oob_left+0x361/0x3c0
[   11.915115]  kasan_report+0x141/0x180
[   11.915136]  ? kmalloc_oob_left+0x361/0x3c0
[   11.915161]  __asan_report_load1_noabort+0x18/0x20
[   11.915185]  kmalloc_oob_left+0x361/0x3c0
[   11.915207]  ? __pfx_kmalloc_oob_left+0x10/0x10
[   11.915239]  ? __schedule+0x10cc/0x2b60
[   11.915259]  ? __pfx_read_tsc+0x10/0x10
[   11.915280]  ? ktime_get_ts64+0x86/0x230
[   11.915303]  kunit_try_run_case+0x1a5/0x480
[   11.915327]  ? __pfx_kunit_try_run_case+0x10/0x10
[   11.915349]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   11.915371]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   11.915395]  ? __kthread_parkme+0x82/0x180
[   11.915415]  ? preempt_count_sub+0x50/0x80
[   11.915438]  ? __pfx_kunit_try_run_case+0x10/0x10
[   11.915462]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   11.915485]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   11.915510]  kthread+0x337/0x6f0
[   11.915529]  ? trace_preempt_on+0x20/0xc0
[   11.915552]  ? __pfx_kthread+0x10/0x10
[   11.915572]  ? _raw_spin_unlock_irq+0x47/0x80
[   11.915593]  ? calculate_sigpending+0x7b/0xa0
[   11.915619]  ? __pfx_kthread+0x10/0x10
[   11.915640]  ret_from_fork+0x116/0x1d0
[   11.915657]  ? __pfx_kthread+0x10/0x10
[   11.915677]  ret_from_fork_asm+0x1a/0x30
[   11.915719]  </TASK>
[   11.915729] 
[   11.924715] Allocated by task 1:
[   11.925111]  kasan_save_stack+0x45/0x70
[   11.925329]  kasan_save_track+0x18/0x40
[   11.925484]  kasan_save_alloc_info+0x3b/0x50
[   11.925695]  __kasan_kmalloc+0xb7/0xc0
[   11.925892]  __kmalloc_node_track_caller_noprof+0x1cb/0x500
[   11.926412]  kvasprintf+0xc5/0x150
[   11.926565]  __kthread_create_on_node+0x18b/0x3a0
[   11.926938]  kthread_create_on_node+0xab/0xe0
[   11.927124]  create_worker+0x3e5/0x7b0
[   11.927499]  alloc_unbound_pwq+0x8ea/0xdb0
[   11.927862]  apply_wqattrs_prepare+0x332/0xd20
[   11.928165]  apply_workqueue_attrs_locked+0x4d/0xa0
[   11.928451]  alloc_workqueue+0xcc7/0x1ad0
[   11.928619]  latency_fsnotify_init+0x1b/0x50
[   11.928835]  do_one_initcall+0xd8/0x370
[   11.929009]  kernel_init_freeable+0x420/0x6f0
[   11.929462]  kernel_init+0x23/0x1e0
[   11.929691]  ret_from_fork+0x116/0x1d0
[   11.929937]  ret_from_fork_asm+0x1a/0x30
[   11.930206] 
[   11.930345] The buggy address belongs to the object at ffff8881018fefa0
[   11.930345]  which belongs to the cache kmalloc-16 of size 16
[   11.930874] The buggy address is located 18 bytes to the right of
[   11.930874]  allocated 13-byte region [ffff8881018fefa0, ffff8881018fefad)
[   11.931767] 
[   11.931870] The buggy address belongs to the physical page:
[   11.932101] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1018fe
[   11.932723] flags: 0x200000000000000(node=0|zone=2)
[   11.932929] page_type: f5(slab)
[   11.933100] raw: 0200000000000000 ffff888100041640 dead000000000122 0000000000000000
[   11.933566] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000
[   11.933898] page dumped because: kasan: bad access detected
[   11.934283] 
[   11.934425] Memory state around the buggy address:
[   11.934616]  ffff8881018fee80: 00 02 fc fc 00 05 fc fc 00 02 fc fc 00 02 fc fc
[   11.935073]  ffff8881018fef00: 00 02 fc fc 00 02 fc fc fa fb fc fc fa fb fc fc
[   11.935661] >ffff8881018fef80: fa fb fc fc 00 05 fc fc 00 07 fc fc fc fc fc fc
[   11.936187]                                         ^
[   11.936527]  ffff8881018ff000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   11.936918]  ffff8881018ff080: 00 fc fc fc fc fc fc fc fc 00 00 00 00 00 00 00
[   11.937217] ==================================================================