Hay
Date
July 19, 2025, 11:12 p.m.

Environment
qemu-arm64
qemu-x86_64

[   15.016277] ==================================================================
[   15.016336] BUG: KASAN: slab-out-of-bounds in kmalloc_big_oob_right+0x2a4/0x2f0
[   15.016385] Write of size 1 at addr fff00000c6115f00 by task kunit_try_catch/144
[   15.016432] 
[   15.016463] CPU: 1 UID: 0 PID: 144 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT 
[   15.016678] Tainted: [B]=BAD_PAGE, [N]=TEST
[   15.016739] Hardware name: linux,dummy-virt (DT)
[   15.016903] Call trace:
[   15.016933]  show_stack+0x20/0x38 (C)
[   15.016981]  dump_stack_lvl+0x8c/0xd0
[   15.017027]  print_report+0x118/0x5d0
[   15.017072]  kasan_report+0xdc/0x128
[   15.017116]  __asan_report_store1_noabort+0x20/0x30
[   15.017223]  kmalloc_big_oob_right+0x2a4/0x2f0
[   15.017284]  kunit_try_run_case+0x170/0x3f0
[   15.017332]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   15.017382]  kthread+0x328/0x630
[   15.017423]  ret_from_fork+0x10/0x20
[   15.017491] 
[   15.017510] Allocated by task 144:
[   15.017537]  kasan_save_stack+0x3c/0x68
[   15.017584]  kasan_save_track+0x20/0x40
[   15.017659]  kasan_save_alloc_info+0x40/0x58
[   15.017819]  __kasan_kmalloc+0xd4/0xd8
[   15.017865]  __kmalloc_cache_noprof+0x16c/0x3c0
[   15.017903]  kmalloc_big_oob_right+0xb8/0x2f0
[   15.017939]  kunit_try_run_case+0x170/0x3f0
[   15.017975]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   15.018016]  kthread+0x328/0x630
[   15.018055]  ret_from_fork+0x10/0x20
[   15.018092] 
[   15.018111] The buggy address belongs to the object at fff00000c6114000
[   15.018111]  which belongs to the cache kmalloc-8k of size 8192
[   15.018193] The buggy address is located 0 bytes to the right of
[   15.018193]  allocated 7936-byte region [fff00000c6114000, fff00000c6115f00)
[   15.018450] 
[   15.018470] The buggy address belongs to the physical page:
[   15.018514] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106110
[   15.018605] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   15.018744] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff)
[   15.018797] page_type: f5(slab)
[   15.018834] raw: 0bfffe0000000040 fff00000c0002280 dead000000000122 0000000000000000
[   15.018882] raw: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000
[   15.018931] head: 0bfffe0000000040 fff00000c0002280 dead000000000122 0000000000000000
[   15.018978] head: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000
[   15.019036] head: 0bfffe0000000003 ffffc1ffc3184401 00000000ffffffff 00000000ffffffff
[   15.019085] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008
[   15.019123] page dumped because: kasan: bad access detected
[   15.019214] 
[   15.019236] Memory state around the buggy address:
[   15.019279]  fff00000c6115e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   15.019321]  fff00000c6115e80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   15.019362] >fff00000c6115f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   15.019398]                    ^
[   15.019425]  fff00000c6115f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   15.019579]  fff00000c6116000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   15.019870] ==================================================================

[   11.467782] ==================================================================
[   11.468816] BUG: KASAN: slab-out-of-bounds in kmalloc_big_oob_right+0x316/0x370
[   11.469534] Write of size 1 at addr ffff888102b39f00 by task kunit_try_catch/161
[   11.469795] 
[   11.469882] CPU: 1 UID: 0 PID: 161 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT(voluntary) 
[   11.469924] Tainted: [B]=BAD_PAGE, [N]=TEST
[   11.469935] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   11.469953] Call Trace:
[   11.469964]  <TASK>
[   11.469978]  dump_stack_lvl+0x73/0xb0
[   11.470023]  print_report+0xd1/0x610
[   11.470044]  ? __virt_addr_valid+0x1db/0x2d0
[   11.470065]  ? kmalloc_big_oob_right+0x316/0x370
[   11.470086]  ? kasan_complete_mode_report_info+0x2a/0x200
[   11.470106]  ? kmalloc_big_oob_right+0x316/0x370
[   11.470127]  kasan_report+0x141/0x180
[   11.470148]  ? kmalloc_big_oob_right+0x316/0x370
[   11.470174]  __asan_report_store1_noabort+0x1b/0x30
[   11.470197]  kmalloc_big_oob_right+0x316/0x370
[   11.470218]  ? __pfx_kmalloc_big_oob_right+0x10/0x10
[   11.470239]  ? __schedule+0x10cc/0x2b60
[   11.470261]  ? __pfx_read_tsc+0x10/0x10
[   11.470281]  ? ktime_get_ts64+0x86/0x230
[   11.470303]  kunit_try_run_case+0x1a5/0x480
[   11.470326]  ? __pfx_kunit_try_run_case+0x10/0x10
[   11.470415]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   11.470442]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   11.470464]  ? __kthread_parkme+0x82/0x180
[   11.470482]  ? preempt_count_sub+0x50/0x80
[   11.470504]  ? __pfx_kunit_try_run_case+0x10/0x10
[   11.470527]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   11.470549]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   11.470571]  kthread+0x337/0x6f0
[   11.470589]  ? trace_preempt_on+0x20/0xc0
[   11.470611]  ? __pfx_kthread+0x10/0x10
[   11.470630]  ? _raw_spin_unlock_irq+0x47/0x80
[   11.470650]  ? calculate_sigpending+0x7b/0xa0
[   11.470674]  ? __pfx_kthread+0x10/0x10
[   11.470694]  ret_from_fork+0x116/0x1d0
[   11.470713]  ? __pfx_kthread+0x10/0x10
[   11.470734]  ret_from_fork_asm+0x1a/0x30
[   11.470764]  </TASK>
[   11.470773] 
[   11.482309] Allocated by task 161:
[   11.482863]  kasan_save_stack+0x45/0x70
[   11.483240]  kasan_save_track+0x18/0x40
[   11.483657]  kasan_save_alloc_info+0x3b/0x50
[   11.484046]  __kasan_kmalloc+0xb7/0xc0
[   11.484179]  __kmalloc_cache_noprof+0x189/0x420
[   11.484335]  kmalloc_big_oob_right+0xa9/0x370
[   11.484781]  kunit_try_run_case+0x1a5/0x480
[   11.485178]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   11.485709]  kthread+0x337/0x6f0
[   11.485971]  ret_from_fork+0x116/0x1d0
[   11.486313]  ret_from_fork_asm+0x1a/0x30
[   11.486528] 
[   11.486601] The buggy address belongs to the object at ffff888102b38000
[   11.486601]  which belongs to the cache kmalloc-8k of size 8192
[   11.486957] The buggy address is located 0 bytes to the right of
[   11.486957]  allocated 7936-byte region [ffff888102b38000, ffff888102b39f00)
[   11.487891] 
[   11.488068] The buggy address belongs to the physical page:
[   11.488572] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102b38
[   11.488820] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   11.489061] flags: 0x200000000000040(head|node=0|zone=2)
[   11.489240] page_type: f5(slab)
[   11.489359] raw: 0200000000000040 ffff888100042280 dead000000000122 0000000000000000
[   11.490082] raw: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000
[   11.490861] head: 0200000000000040 ffff888100042280 dead000000000122 0000000000000000
[   11.491702] head: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000
[   11.492467] head: 0200000000000003 ffffea00040ace01 00000000ffffffff 00000000ffffffff
[   11.493139] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008
[   11.493975] page dumped because: kasan: bad access detected
[   11.494559] 
[   11.494738] Memory state around the buggy address:
[   11.495110]  ffff888102b39e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   11.495796]  ffff888102b39e80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   11.496232] >ffff888102b39f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   11.496454]                    ^
[   11.496571]  ffff888102b39f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   11.496786]  ffff888102b3a000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   11.497014] ==================================================================