Hay
Date
July 1, 2025, 3:08 p.m.

Environment
qemu-arm64
qemu-x86_64

[   16.699307] ==================================================================
[   16.699366] BUG: KASAN: slab-out-of-bounds in kmalloc_track_caller_oob_right+0x418/0x488
[   16.699679] Write of size 1 at addr fff00000c5733578 by task kunit_try_catch/143
[   16.699743] 
[   16.699778] CPU: 1 UID: 0 PID: 143 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT 
[   16.699868] Tainted: [B]=BAD_PAGE, [N]=TEST
[   16.699894] Hardware name: linux,dummy-virt (DT)
[   16.699925] Call trace:
[   16.699946]  show_stack+0x20/0x38 (C)
[   16.699994]  dump_stack_lvl+0x8c/0xd0
[   16.700428]  print_report+0x118/0x608
[   16.700575]  kasan_report+0xdc/0x128
[   16.700630]  __asan_report_store1_noabort+0x20/0x30
[   16.700925]  kmalloc_track_caller_oob_right+0x418/0x488
[   16.700983]  kunit_try_run_case+0x170/0x3f0
[   16.701039]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   16.701157]  kthread+0x328/0x630
[   16.701198]  ret_from_fork+0x10/0x20
[   16.701245] 
[   16.701267] Allocated by task 143:
[   16.701293]  kasan_save_stack+0x3c/0x68
[   16.701341]  kasan_save_track+0x20/0x40
[   16.701377]  kasan_save_alloc_info+0x40/0x58
[   16.701417]  __kasan_kmalloc+0xd4/0xd8
[   16.701452]  __kmalloc_node_track_caller_noprof+0x194/0x4b8
[   16.702015]  kmalloc_track_caller_oob_right+0x184/0x488
[   16.702078]  kunit_try_run_case+0x170/0x3f0
[   16.702115]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   16.702202]  kthread+0x328/0x630
[   16.702236]  ret_from_fork+0x10/0x20
[   16.702271] 
[   16.702291] The buggy address belongs to the object at fff00000c5733500
[   16.702291]  which belongs to the cache kmalloc-128 of size 128
[   16.702367] The buggy address is located 0 bytes to the right of
[   16.702367]  allocated 120-byte region [fff00000c5733500, fff00000c5733578)
[   16.702634] 
[   16.702681] The buggy address belongs to the physical page:
[   16.702842] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105733
[   16.703199] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   16.703265] page_type: f5(slab)
[   16.703304] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000
[   16.703356] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000
[   16.703397] page dumped because: kasan: bad access detected
[   16.703428] 
[   16.703446] Memory state around the buggy address:
[   16.703478]  fff00000c5733400: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[   16.704162]  fff00000c5733480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   16.704236] >fff00000c5733500: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc
[   16.704665]                                                                 ^
[   16.704713]  fff00000c5733580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   16.704757]  fff00000c5733600: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   16.704802] ==================================================================
[   16.689270] ==================================================================
[   16.689497] BUG: KASAN: slab-out-of-bounds in kmalloc_track_caller_oob_right+0x40c/0x488
[   16.689631] Write of size 1 at addr fff00000c5733478 by task kunit_try_catch/143
[   16.689723] 
[   16.689923] CPU: 1 UID: 0 PID: 143 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT 
[   16.690040] Tainted: [B]=BAD_PAGE, [N]=TEST
[   16.690069] Hardware name: linux,dummy-virt (DT)
[   16.690101] Call trace:
[   16.690679]  show_stack+0x20/0x38 (C)
[   16.690865]  dump_stack_lvl+0x8c/0xd0
[   16.690915]  print_report+0x118/0x608
[   16.690971]  kasan_report+0xdc/0x128
[   16.691127]  __asan_report_store1_noabort+0x20/0x30
[   16.691475]  kmalloc_track_caller_oob_right+0x40c/0x488
[   16.691527]  kunit_try_run_case+0x170/0x3f0
[   16.691586]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   16.691988]  kthread+0x328/0x630
[   16.692041]  ret_from_fork+0x10/0x20
[   16.692358] 
[   16.692379] Allocated by task 143:
[   16.692408]  kasan_save_stack+0x3c/0x68
[   16.692467]  kasan_save_track+0x20/0x40
[   16.692532]  kasan_save_alloc_info+0x40/0x58
[   16.692747]  __kasan_kmalloc+0xd4/0xd8
[   16.692960]  __kmalloc_node_track_caller_noprof+0x194/0x4b8
[   16.693006]  kmalloc_track_caller_oob_right+0xa8/0x488
[   16.693047]  kunit_try_run_case+0x170/0x3f0
[   16.693462]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   16.693515]  kthread+0x328/0x630
[   16.693547]  ret_from_fork+0x10/0x20
[   16.693764] 
[   16.693785] The buggy address belongs to the object at fff00000c5733400
[   16.693785]  which belongs to the cache kmalloc-128 of size 128
[   16.693845] The buggy address is located 0 bytes to the right of
[   16.693845]  allocated 120-byte region [fff00000c5733400, fff00000c5733478)
[   16.694353] 
[   16.694469] The buggy address belongs to the physical page:
[   16.694502] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105733
[   16.694560] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   16.694621] page_type: f5(slab)
[   16.694663] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000
[   16.694714] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000
[   16.694754] page dumped because: kasan: bad access detected
[   16.694785] 
[   16.695148] Memory state around the buggy address:
[   16.695192]  fff00000c5733300: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[   16.695236]  fff00000c5733380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   16.695897] >fff00000c5733400: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc
[   16.696014]                                                                 ^
[   16.696593]  fff00000c5733480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   16.697072]  fff00000c5733500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   16.697117] ==================================================================

[   10.960812] ==================================================================
[   10.961156] BUG: KASAN: slab-out-of-bounds in kmalloc_track_caller_oob_right+0x4b1/0x520
[   10.961473] Write of size 1 at addr ffff88810339bf78 by task kunit_try_catch/159
[   10.961780] 
[   10.962095] CPU: 0 UID: 0 PID: 159 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT(voluntary) 
[   10.962148] Tainted: [B]=BAD_PAGE, [N]=TEST
[   10.962161] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   10.962181] Call Trace:
[   10.962194]  <TASK>
[   10.962212]  dump_stack_lvl+0x73/0xb0
[   10.962241]  print_report+0xd1/0x650
[   10.962263]  ? __virt_addr_valid+0x1db/0x2d0
[   10.962286]  ? kmalloc_track_caller_oob_right+0x4b1/0x520
[   10.962310]  ? kasan_complete_mode_report_info+0x2a/0x200
[   10.962330]  ? kmalloc_track_caller_oob_right+0x4b1/0x520
[   10.962354]  kasan_report+0x141/0x180
[   10.962375]  ? kmalloc_track_caller_oob_right+0x4b1/0x520
[   10.962402]  __asan_report_store1_noabort+0x1b/0x30
[   10.962422]  kmalloc_track_caller_oob_right+0x4b1/0x520
[   10.962445]  ? __pfx_kmalloc_track_caller_oob_right+0x10/0x10
[   10.962469]  ? __schedule+0x10cc/0x2b60
[   10.962490]  ? __pfx_read_tsc+0x10/0x10
[   10.962510]  ? ktime_get_ts64+0x86/0x230
[   10.962534]  kunit_try_run_case+0x1a5/0x480
[   10.962559]  ? __pfx_kunit_try_run_case+0x10/0x10
[   10.962580]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   10.962602]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   10.962623]  ? __kthread_parkme+0x82/0x180
[   10.962643]  ? preempt_count_sub+0x50/0x80
[   10.962666]  ? __pfx_kunit_try_run_case+0x10/0x10
[   10.962688]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   10.962709]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   10.962731]  kthread+0x337/0x6f0
[   10.962749]  ? trace_preempt_on+0x20/0xc0
[   10.962772]  ? __pfx_kthread+0x10/0x10
[   10.962791]  ? _raw_spin_unlock_irq+0x47/0x80
[   10.962810]  ? calculate_sigpending+0x7b/0xa0
[   10.962833]  ? __pfx_kthread+0x10/0x10
[   10.962853]  ret_from_fork+0x116/0x1d0
[   10.962870]  ? __pfx_kthread+0x10/0x10
[   10.962889]  ret_from_fork_asm+0x1a/0x30
[   10.962919]  </TASK>
[   10.962929] 
[   10.970840] Allocated by task 159:
[   10.970973]  kasan_save_stack+0x45/0x70
[   10.971130]  kasan_save_track+0x18/0x40
[   10.971267]  kasan_save_alloc_info+0x3b/0x50
[   10.971419]  __kasan_kmalloc+0xb7/0xc0
[   10.972116]  __kmalloc_node_track_caller_noprof+0x1cb/0x500
[   10.972403]  kmalloc_track_caller_oob_right+0x19a/0x520
[   10.972654]  kunit_try_run_case+0x1a5/0x480
[   10.973036]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   10.973597]  kthread+0x337/0x6f0
[   10.974010]  ret_from_fork+0x116/0x1d0
[   10.974281]  ret_from_fork_asm+0x1a/0x30
[   10.974576] 
[   10.974862] The buggy address belongs to the object at ffff88810339bf00
[   10.974862]  which belongs to the cache kmalloc-128 of size 128
[   10.975373] The buggy address is located 0 bytes to the right of
[   10.975373]  allocated 120-byte region [ffff88810339bf00, ffff88810339bf78)
[   10.976151] 
[   10.976385] The buggy address belongs to the physical page:
[   10.976816] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10339b
[   10.977302] flags: 0x200000000000000(node=0|zone=2)
[   10.977529] page_type: f5(slab)
[   10.977862] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000
[   10.978392] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000
[   10.979117] page dumped because: kasan: bad access detected
[   10.979411] 
[   10.979633] Memory state around the buggy address:
[   10.979865]  ffff88810339be00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[   10.980171]  ffff88810339be80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   10.980466] >ffff88810339bf00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc
[   10.980976]                                                                 ^
[   10.981467]  ffff88810339bf80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   10.982127]  ffff88810339c000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[   10.982627] ==================================================================
[   10.939927] ==================================================================
[   10.940414] BUG: KASAN: slab-out-of-bounds in kmalloc_track_caller_oob_right+0x4c8/0x520
[   10.940768] Write of size 1 at addr ffff88810339be78 by task kunit_try_catch/159
[   10.941260] 
[   10.941383] CPU: 0 UID: 0 PID: 159 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT(voluntary) 
[   10.941429] Tainted: [B]=BAD_PAGE, [N]=TEST
[   10.941441] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   10.941462] Call Trace:
[   10.941474]  <TASK>
[   10.941493]  dump_stack_lvl+0x73/0xb0
[   10.941521]  print_report+0xd1/0x650
[   10.941544]  ? __virt_addr_valid+0x1db/0x2d0
[   10.941568]  ? kmalloc_track_caller_oob_right+0x4c8/0x520
[   10.941591]  ? kasan_complete_mode_report_info+0x2a/0x200
[   10.941612]  ? kmalloc_track_caller_oob_right+0x4c8/0x520
[   10.941635]  kasan_report+0x141/0x180
[   10.941656]  ? kmalloc_track_caller_oob_right+0x4c8/0x520
[   10.941684]  __asan_report_store1_noabort+0x1b/0x30
[   10.941703]  kmalloc_track_caller_oob_right+0x4c8/0x520
[   10.941726]  ? __pfx_kmalloc_track_caller_oob_right+0x10/0x10
[   10.941750]  ? __schedule+0x10cc/0x2b60
[   10.941771]  ? __pfx_read_tsc+0x10/0x10
[   10.941791]  ? ktime_get_ts64+0x86/0x230
[   10.941815]  kunit_try_run_case+0x1a5/0x480
[   10.941839]  ? __pfx_kunit_try_run_case+0x10/0x10
[   10.941860]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   10.941882]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   10.941902]  ? __kthread_parkme+0x82/0x180
[   10.941922]  ? preempt_count_sub+0x50/0x80
[   10.941945]  ? __pfx_kunit_try_run_case+0x10/0x10
[   10.941967]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   10.941988]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   10.942009]  kthread+0x337/0x6f0
[   10.942040]  ? trace_preempt_on+0x20/0xc0
[   10.942063]  ? __pfx_kthread+0x10/0x10
[   10.942082]  ? _raw_spin_unlock_irq+0x47/0x80
[   10.942102]  ? calculate_sigpending+0x7b/0xa0
[   10.942125]  ? __pfx_kthread+0x10/0x10
[   10.942145]  ret_from_fork+0x116/0x1d0
[   10.942162]  ? __pfx_kthread+0x10/0x10
[   10.942181]  ret_from_fork_asm+0x1a/0x30
[   10.942211]  </TASK>
[   10.942222] 
[   10.949212] Allocated by task 159:
[   10.949389]  kasan_save_stack+0x45/0x70
[   10.949594]  kasan_save_track+0x18/0x40
[   10.949840]  kasan_save_alloc_info+0x3b/0x50
[   10.950056]  __kasan_kmalloc+0xb7/0xc0
[   10.950222]  __kmalloc_node_track_caller_noprof+0x1cb/0x500
[   10.950403]  kmalloc_track_caller_oob_right+0x99/0x520
[   10.950652]  kunit_try_run_case+0x1a5/0x480
[   10.950860]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   10.951123]  kthread+0x337/0x6f0
[   10.951284]  ret_from_fork+0x116/0x1d0
[   10.951435]  ret_from_fork_asm+0x1a/0x30
[   10.951590] 
[   10.951698] The buggy address belongs to the object at ffff88810339be00
[   10.951698]  which belongs to the cache kmalloc-128 of size 128
[   10.952215] The buggy address is located 0 bytes to the right of
[   10.952215]  allocated 120-byte region [ffff88810339be00, ffff88810339be78)
[   10.952711] 
[   10.952805] The buggy address belongs to the physical page:
[   10.952979] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10339b
[   10.953231] flags: 0x200000000000000(node=0|zone=2)
[   10.953443] page_type: f5(slab)
[   10.953674] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000
[   10.954010] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000
[   10.954350] page dumped because: kasan: bad access detected
[   10.954602] 
[   10.954760] Memory state around the buggy address:
[   10.954937]  ffff88810339bd00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[   10.955160]  ffff88810339bd80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   10.955407] >ffff88810339be00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc
[   10.955814]                                                                 ^
[   10.956139]  ffff88810339be80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   10.956462]  ffff88810339bf00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   10.956846] ==================================================================