Hay
Date
July 18, 2025, 11:11 p.m.

Environment
qemu-arm64
qemu-x86_64

[   15.111968] ==================================================================
[   15.112297] BUG: KASAN: slab-out-of-bounds in kmalloc_big_oob_right+0x2a4/0x2f0
[   15.112398] Write of size 1 at addr fff00000c7741f00 by task kunit_try_catch/144
[   15.112485] 
[   15.112559] CPU: 1 UID: 0 PID: 144 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT 
[   15.112660] Tainted: [B]=BAD_PAGE, [N]=TEST
[   15.112687] Hardware name: linux,dummy-virt (DT)
[   15.112736] Call trace:
[   15.112759]  show_stack+0x20/0x38 (C)
[   15.112844]  dump_stack_lvl+0x8c/0xd0
[   15.112892]  print_report+0x118/0x5d0
[   15.112944]  kasan_report+0xdc/0x128
[   15.113143]  __asan_report_store1_noabort+0x20/0x30
[   15.113252]  kmalloc_big_oob_right+0x2a4/0x2f0
[   15.113505]  kunit_try_run_case+0x170/0x3f0
[   15.113582]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   15.113636]  kthread+0x328/0x630
[   15.113694]  ret_from_fork+0x10/0x20
[   15.113853] 
[   15.113892] Allocated by task 144:
[   15.113931]  kasan_save_stack+0x3c/0x68
[   15.113993]  kasan_save_track+0x20/0x40
[   15.114033]  kasan_save_alloc_info+0x40/0x58
[   15.114073]  __kasan_kmalloc+0xd4/0xd8
[   15.114109]  __kmalloc_cache_noprof+0x16c/0x3c0
[   15.114147]  kmalloc_big_oob_right+0xb8/0x2f0
[   15.114184]  kunit_try_run_case+0x170/0x3f0
[   15.114221]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   15.114402]  kthread+0x328/0x630
[   15.114539]  ret_from_fork+0x10/0x20
[   15.114634] 
[   15.114747] The buggy address belongs to the object at fff00000c7740000
[   15.114747]  which belongs to the cache kmalloc-8k of size 8192
[   15.114827] The buggy address is located 0 bytes to the right of
[   15.114827]  allocated 7936-byte region [fff00000c7740000, fff00000c7741f00)
[   15.115109] 
[   15.115169] The buggy address belongs to the physical page:
[   15.115218] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107740
[   15.115305] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   15.115426] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff)
[   15.115499] page_type: f5(slab)
[   15.115538] raw: 0bfffe0000000040 fff00000c0002280 dead000000000122 0000000000000000
[   15.115866] raw: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000
[   15.115931] head: 0bfffe0000000040 fff00000c0002280 dead000000000122 0000000000000000
[   15.116001] head: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000
[   15.116280] head: 0bfffe0000000003 ffffc1ffc31dd001 00000000ffffffff 00000000ffffffff
[   15.116354] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008
[   15.116489] page dumped because: kasan: bad access detected
[   15.116577] 
[   15.116652] Memory state around the buggy address:
[   15.116767]  fff00000c7741e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   15.116856]  fff00000c7741e80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   15.116957] >fff00000c7741f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   15.117024]                    ^
[   15.117428]  fff00000c7741f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   15.117496]  fff00000c7742000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   15.117535] ==================================================================

[   11.540135] ==================================================================
[   11.540660] BUG: KASAN: slab-out-of-bounds in kmalloc_big_oob_right+0x316/0x370
[   11.540997] Write of size 1 at addr ffff888102925f00 by task kunit_try_catch/163
[   11.541399] 
[   11.541532] CPU: 0 UID: 0 PID: 163 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT(voluntary) 
[   11.541574] Tainted: [B]=BAD_PAGE, [N]=TEST
[   11.541585] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   11.541604] Call Trace:
[   11.541616]  <TASK>
[   11.541629]  dump_stack_lvl+0x73/0xb0
[   11.541656]  print_report+0xd1/0x610
[   11.541676]  ? __virt_addr_valid+0x1db/0x2d0
[   11.541719]  ? kmalloc_big_oob_right+0x316/0x370
[   11.541754]  ? kasan_complete_mode_report_info+0x2a/0x200
[   11.541776]  ? kmalloc_big_oob_right+0x316/0x370
[   11.541812]  kasan_report+0x141/0x180
[   11.541833]  ? kmalloc_big_oob_right+0x316/0x370
[   11.541859]  __asan_report_store1_noabort+0x1b/0x30
[   11.541883]  kmalloc_big_oob_right+0x316/0x370
[   11.541905]  ? __pfx_kmalloc_big_oob_right+0x10/0x10
[   11.541928]  ? __schedule+0x10cc/0x2b60
[   11.541949]  ? __pfx_read_tsc+0x10/0x10
[   11.541968]  ? ktime_get_ts64+0x86/0x230
[   11.541991]  kunit_try_run_case+0x1a5/0x480
[   11.542026]  ? __pfx_kunit_try_run_case+0x10/0x10
[   11.542048]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   11.542070]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   11.542093]  ? __kthread_parkme+0x82/0x180
[   11.542112]  ? preempt_count_sub+0x50/0x80
[   11.542134]  ? __pfx_kunit_try_run_case+0x10/0x10
[   11.542157]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   11.542196]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   11.542220]  kthread+0x337/0x6f0
[   11.542251]  ? trace_preempt_on+0x20/0xc0
[   11.542284]  ? __pfx_kthread+0x10/0x10
[   11.542303]  ? _raw_spin_unlock_irq+0x47/0x80
[   11.542323]  ? calculate_sigpending+0x7b/0xa0
[   11.542346]  ? __pfx_kthread+0x10/0x10
[   11.542366]  ret_from_fork+0x116/0x1d0
[   11.542384]  ? __pfx_kthread+0x10/0x10
[   11.542403]  ret_from_fork_asm+0x1a/0x30
[   11.542432]  </TASK>
[   11.542441] 
[   11.550844] Allocated by task 163:
[   11.551022]  kasan_save_stack+0x45/0x70
[   11.551334]  kasan_save_track+0x18/0x40
[   11.551656]  kasan_save_alloc_info+0x3b/0x50
[   11.551873]  __kasan_kmalloc+0xb7/0xc0
[   11.552053]  __kmalloc_cache_noprof+0x189/0x420
[   11.552285]  kmalloc_big_oob_right+0xa9/0x370
[   11.552565]  kunit_try_run_case+0x1a5/0x480
[   11.552764]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   11.553050]  kthread+0x337/0x6f0
[   11.553223]  ret_from_fork+0x116/0x1d0
[   11.553366]  ret_from_fork_asm+0x1a/0x30
[   11.553506] 
[   11.553576] The buggy address belongs to the object at ffff888102924000
[   11.553576]  which belongs to the cache kmalloc-8k of size 8192
[   11.554363] The buggy address is located 0 bytes to the right of
[   11.554363]  allocated 7936-byte region [ffff888102924000, ffff888102925f00)
[   11.554773] 
[   11.554845] The buggy address belongs to the physical page:
[   11.555336] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102920
[   11.555955] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   11.556759] flags: 0x200000000000040(head|node=0|zone=2)
[   11.556946] page_type: f5(slab)
[   11.558197] raw: 0200000000000040 ffff888100042280 dead000000000122 0000000000000000
[   11.559055] raw: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000
[   11.559891] head: 0200000000000040 ffff888100042280 dead000000000122 0000000000000000
[   11.560141] head: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000
[   11.560882] head: 0200000000000003 ffffea00040a4801 00000000ffffffff 00000000ffffffff
[   11.561793] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008
[   11.562747] page dumped because: kasan: bad access detected
[   11.563398] 
[   11.563766] Memory state around the buggy address:
[   11.563937]  ffff888102925e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   11.564833]  ffff888102925e80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   11.565664] >ffff888102925f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   11.566098]                    ^
[   11.566520]  ffff888102925f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   11.567071]  ffff888102926000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   11.567700] ==================================================================