Hay
Date
June 17, 2025, 3:40 p.m.

Environment
qemu-arm64
qemu-x86_64

[   21.596466] ==================================================================
[   21.596914] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_16+0x3a0/0x3f8
[   21.597091] Write of size 16 at addr fff00000c58ac200 by task kunit_try_catch/168
[   21.597223] 
[   21.597567] CPU: 0 UID: 0 PID: 168 Comm: kunit_try_catch Tainted: G    B            N  6.15.3-rc1 #1 PREEMPT 
[   21.598064] Tainted: [B]=BAD_PAGE, [N]=TEST
[   21.598129] Hardware name: linux,dummy-virt (DT)
[   21.598195] Call trace:
[   21.598242]  show_stack+0x20/0x38 (C)
[   21.598773]  dump_stack_lvl+0x8c/0xd0
[   21.599144]  print_report+0x118/0x608
[   21.599408]  kasan_report+0xdc/0x128
[   21.599537]  __asan_report_store16_noabort+0x20/0x30
[   21.599655]  kmalloc_oob_16+0x3a0/0x3f8
[   21.599786]  kunit_try_run_case+0x170/0x3f0
[   21.599915]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   21.600048]  kthread+0x328/0x630
[   21.600174]  ret_from_fork+0x10/0x20
[   21.600297] 
[   21.600341] Allocated by task 168:
[   21.600890]  kasan_save_stack+0x3c/0x68
[   21.601256]  kasan_save_track+0x20/0x40
[   21.601339]  kasan_save_alloc_info+0x40/0x58
[   21.601503]  __kasan_kmalloc+0xd4/0xd8
[   21.601699]  __kmalloc_cache_noprof+0x16c/0x3c0
[   21.602126]  kmalloc_oob_16+0xb4/0x3f8
[   21.602313]  kunit_try_run_case+0x170/0x3f0
[   21.602482]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   21.602815]  kthread+0x328/0x630
[   21.602906]  ret_from_fork+0x10/0x20
[   21.603312] 
[   21.603378] The buggy address belongs to the object at fff00000c58ac200
[   21.603378]  which belongs to the cache kmalloc-16 of size 16
[   21.603711] The buggy address is located 0 bytes inside of
[   21.603711]  allocated 13-byte region [fff00000c58ac200, fff00000c58ac20d)
[   21.604027] 
[   21.604077] The buggy address belongs to the physical page:
[   21.604169] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1058ac
[   21.604307] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   21.604432] page_type: f5(slab)
[   21.604531] raw: 0bfffe0000000000 fff00000c0001640 dead000000000122 0000000000000000
[   21.604655] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000
[   21.604769] page dumped because: kasan: bad access detected
[   21.605319] 
[   21.605508] Memory state around the buggy address:
[   21.605738]  fff00000c58ac100: 00 00 fc fc fa fb fc fc 00 00 fc fc fa fb fc fc
[   21.606004]  fff00000c58ac180: 00 04 fc fc fa fb fc fc fa fb fc fc fa fb fc fc
[   21.606993] >fff00000c58ac200: 00 05 fc fc 00 00 fc fc fc fc fc fc fc fc fc fc
[   21.607624]                       ^
[   21.607763]  fff00000c58ac280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   21.608085]  fff00000c58ac300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   21.608383] ==================================================================

[   19.094343] ==================================================================
[   19.095950] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_16+0x452/0x4a0
[   19.096714] Write of size 16 at addr ffff8881026cd040 by task kunit_try_catch/186
[   19.097715] 
[   19.097960] CPU: 0 UID: 0 PID: 186 Comm: kunit_try_catch Tainted: G    B            N  6.15.3-rc1 #1 PREEMPT(voluntary) 
[   19.098095] Tainted: [B]=BAD_PAGE, [N]=TEST
[   19.098137] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   19.098198] Call Trace:
[   19.098239]  <TASK>
[   19.098305]  dump_stack_lvl+0x73/0xb0
[   19.098388]  print_report+0xd1/0x650
[   19.098462]  ? __virt_addr_valid+0x1db/0x2d0
[   19.098541]  ? kmalloc_oob_16+0x452/0x4a0
[   19.098609]  ? kasan_complete_mode_report_info+0x2a/0x200
[   19.098672]  ? kmalloc_oob_16+0x452/0x4a0
[   19.098707]  kasan_report+0x141/0x180
[   19.098741]  ? kmalloc_oob_16+0x452/0x4a0
[   19.098780]  __asan_report_store16_noabort+0x1b/0x30
[   19.098811]  kmalloc_oob_16+0x452/0x4a0
[   19.098843]  ? __pfx_kmalloc_oob_16+0x10/0x10
[   19.098877]  ? __schedule+0x10cc/0x2b60
[   19.098912]  ? __pfx_read_tsc+0x10/0x10
[   19.098945]  ? ktime_get_ts64+0x86/0x230
[   19.099030]  kunit_try_run_case+0x1a5/0x480
[   19.099400]  ? __pfx_kunit_try_run_case+0x10/0x10
[   19.099477]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   19.099552]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   19.099626]  ? __kthread_parkme+0x82/0x180
[   19.099691]  ? preempt_count_sub+0x50/0x80
[   19.099733]  ? __pfx_kunit_try_run_case+0x10/0x10
[   19.099768]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   19.099803]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   19.099839]  kthread+0x337/0x6f0
[   19.099863]  ? trace_preempt_on+0x20/0xc0
[   19.099912]  ? __pfx_kthread+0x10/0x10
[   19.099937]  ? _raw_spin_unlock_irq+0x47/0x80
[   19.100015]  ? calculate_sigpending+0x7b/0xa0
[   19.100096]  ? __pfx_kthread+0x10/0x10
[   19.100143]  ret_from_fork+0x41/0x80
[   19.100176]  ? __pfx_kthread+0x10/0x10
[   19.100201]  ret_from_fork_asm+0x1a/0x30
[   19.100246]  </TASK>
[   19.100262] 
[   19.120480] Allocated by task 186:
[   19.120799]  kasan_save_stack+0x45/0x70
[   19.121157]  kasan_save_track+0x18/0x40
[   19.121487]  kasan_save_alloc_info+0x3b/0x50
[   19.121834]  __kasan_kmalloc+0xb7/0xc0
[   19.122138]  __kmalloc_cache_noprof+0x189/0x420
[   19.124641]  kmalloc_oob_16+0xa8/0x4a0
[   19.125185]  kunit_try_run_case+0x1a5/0x480
[   19.125648]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   19.126547]  kthread+0x337/0x6f0
[   19.127133]  ret_from_fork+0x41/0x80
[   19.128105]  ret_from_fork_asm+0x1a/0x30
[   19.128757] 
[   19.129024] The buggy address belongs to the object at ffff8881026cd040
[   19.129024]  which belongs to the cache kmalloc-16 of size 16
[   19.130178] The buggy address is located 0 bytes inside of
[   19.130178]  allocated 13-byte region [ffff8881026cd040, ffff8881026cd04d)
[   19.131029] 
[   19.131513] The buggy address belongs to the physical page:
[   19.131951] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1026cd
[   19.133552] flags: 0x200000000000000(node=0|zone=2)
[   19.134570] page_type: f5(slab)
[   19.135093] raw: 0200000000000000 ffff888100041640 dead000000000122 0000000000000000
[   19.136191] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000
[   19.136844] page dumped because: kasan: bad access detected
[   19.137306] 
[   19.137544] Memory state around the buggy address:
[   19.137979]  ffff8881026ccf00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   19.139783]  ffff8881026ccf80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   19.140824] >ffff8881026cd000: fa fb fc fc fa fb fc fc 00 05 fc fc 00 00 fc fc
[   19.141442]                                               ^
[   19.141914]  ffff8881026cd080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   19.142552]  ffff8881026cd100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   19.143085] ==================================================================