Hay
Date
July 2, 2025, 11:10 a.m.

Environment
qemu-arm64
qemu-x86_64

[   30.831299] ==================================================================
[   30.831420] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_2+0x150/0x2f8
[   30.831495] Write of size 2 at addr fff00000c404fd77 by task kunit_try_catch/205
[   30.831571] 
[   30.831624] CPU: 0 UID: 0 PID: 205 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4-next-20250702 #1 PREEMPT 
[   30.831829] Tainted: [B]=BAD_PAGE, [N]=TEST
[   30.831888] Hardware name: linux,dummy-virt (DT)
[   30.832076] Call trace:
[   30.832104]  show_stack+0x20/0x38 (C)
[   30.832156]  dump_stack_lvl+0x8c/0xd0
[   30.832210]  print_report+0x118/0x608
[   30.832497]  kasan_report+0xdc/0x128
[   30.832597]  kasan_check_range+0x100/0x1a8
[   30.832674]  __asan_memset+0x34/0x78
[   30.832788]  kmalloc_oob_memset_2+0x150/0x2f8
[   30.832865]  kunit_try_run_case+0x170/0x3f0
[   30.832988]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   30.833074]  kthread+0x328/0x630
[   30.833195]  ret_from_fork+0x10/0x20
[   30.833244] 
[   30.833494] Allocated by task 205:
[   30.833631]  kasan_save_stack+0x3c/0x68
[   30.833708]  kasan_save_track+0x20/0x40
[   30.833759]  kasan_save_alloc_info+0x40/0x58
[   30.833875]  __kasan_kmalloc+0xd4/0xd8
[   30.833959]  __kmalloc_cache_noprof+0x16c/0x3c0
[   30.833999]  kmalloc_oob_memset_2+0xb0/0x2f8
[   30.834295]  kunit_try_run_case+0x170/0x3f0
[   30.834360]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   30.834423]  kthread+0x328/0x630
[   30.834481]  ret_from_fork+0x10/0x20
[   30.834713] 
[   30.834919] The buggy address belongs to the object at fff00000c404fd00
[   30.834919]  which belongs to the cache kmalloc-128 of size 128
[   30.835301] The buggy address is located 119 bytes inside of
[   30.835301]  allocated 120-byte region [fff00000c404fd00, fff00000c404fd78)
[   30.835445] 
[   30.835495] The buggy address belongs to the physical page:
[   30.835551] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10404f
[   30.835687] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   30.835769] page_type: f5(slab)
[   30.835868] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000
[   30.835918] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000
[   30.835968] page dumped because: kasan: bad access detected
[   30.836021] 
[   30.836041] Memory state around the buggy address:
[   30.836071]  fff00000c404fc00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[   30.836382]  fff00000c404fc80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   30.836502] >fff00000c404fd00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc
[   30.836595]                                                                 ^
[   30.836673]  fff00000c404fd80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   30.836774]  fff00000c404fe00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   30.836823] ==================================================================

[   32.601450] ==================================================================
[   32.601517] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_2+0x150/0x2f8
[   32.601570] Write of size 2 at addr fff00000c63fb877 by task kunit_try_catch/203
[   32.601618] 
[   32.601648] CPU: 1 UID: 0 PID: 203 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4-next-20250702 #1 PREEMPT 
[   32.602353] Tainted: [B]=BAD_PAGE, [N]=TEST
[   32.602522] Hardware name: linux,dummy-virt (DT)
[   32.602557] Call trace:
[   32.602713]  show_stack+0x20/0x38 (C)
[   32.602908]  dump_stack_lvl+0x8c/0xd0
[   32.603004]  print_report+0x118/0x608
[   32.603226]  kasan_report+0xdc/0x128
[   32.603316]  kasan_check_range+0x100/0x1a8
[   32.603485]  __asan_memset+0x34/0x78
[   32.603530]  kmalloc_oob_memset_2+0x150/0x2f8
[   32.603576]  kunit_try_run_case+0x170/0x3f0
[   32.603624]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   32.603676]  kthread+0x328/0x630
[   32.604029]  ret_from_fork+0x10/0x20
[   32.604080] 
[   32.604099] Allocated by task 203:
[   32.604253]  kasan_save_stack+0x3c/0x68
[   32.604299]  kasan_save_track+0x20/0x40
[   32.604337]  kasan_save_alloc_info+0x40/0x58
[   32.604374]  __kasan_kmalloc+0xd4/0xd8
[   32.604410]  __kmalloc_cache_noprof+0x16c/0x3c0
[   32.604449]  kmalloc_oob_memset_2+0xb0/0x2f8
[   32.604486]  kunit_try_run_case+0x170/0x3f0
[   32.604761]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   32.604827]  kthread+0x328/0x630
[   32.604907]  ret_from_fork+0x10/0x20
[   32.604943] 
[   32.604992] The buggy address belongs to the object at fff00000c63fb800
[   32.604992]  which belongs to the cache kmalloc-128 of size 128
[   32.605373] The buggy address is located 119 bytes inside of
[   32.605373]  allocated 120-byte region [fff00000c63fb800, fff00000c63fb878)
[   32.605452] 
[   32.605472] The buggy address belongs to the physical page:
[   32.605590] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1063fb
[   32.605640] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   32.605687] page_type: f5(slab)
[   32.605725] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000
[   32.605774] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000
[   32.605973] page dumped because: kasan: bad access detected
[   32.606006] 
[   32.606086] Memory state around the buggy address:
[   32.606123]  fff00000c63fb700: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[   32.606210]  fff00000c63fb780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   32.606266] >fff00000c63fb800: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc
[   32.606303]                                                                 ^
[   32.606603]  fff00000c63fb880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   32.606690]  fff00000c63fb900: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   32.606729] ==================================================================

[   23.127253] ==================================================================
[   23.127770] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_2+0x166/0x330
[   23.128051] Write of size 2 at addr ffff888104950377 by task kunit_try_catch/220
[   23.128415] 
[   23.128559] CPU: 1 UID: 0 PID: 220 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4-next-20250702 #1 PREEMPT(voluntary) 
[   23.128627] Tainted: [B]=BAD_PAGE, [N]=TEST
[   23.128640] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   23.128902] Call Trace:
[   23.128922]  <TASK>
[   23.128940]  dump_stack_lvl+0x73/0xb0
[   23.128985]  print_report+0xd1/0x650
[   23.129007]  ? __virt_addr_valid+0x1db/0x2d0
[   23.129032]  ? kmalloc_oob_memset_2+0x166/0x330
[   23.129052]  ? kasan_complete_mode_report_info+0x2a/0x200
[   23.129077]  ? kmalloc_oob_memset_2+0x166/0x330
[   23.129130]  kasan_report+0x141/0x180
[   23.129151]  ? kmalloc_oob_memset_2+0x166/0x330
[   23.129199]  kasan_check_range+0x10c/0x1c0
[   23.129222]  __asan_memset+0x27/0x50
[   23.129245]  kmalloc_oob_memset_2+0x166/0x330
[   23.129266]  ? __pfx_kmalloc_oob_memset_2+0x10/0x10
[   23.129288]  ? __schedule+0x10cc/0x2b60
[   23.129318]  ? __pfx_read_tsc+0x10/0x10
[   23.129339]  ? ktime_get_ts64+0x86/0x230
[   23.129364]  kunit_try_run_case+0x1a5/0x480
[   23.129390]  ? __pfx_kunit_try_run_case+0x10/0x10
[   23.129413]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   23.129435]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   23.129456]  ? __kthread_parkme+0x82/0x180
[   23.129496]  ? preempt_count_sub+0x50/0x80
[   23.129519]  ? __pfx_kunit_try_run_case+0x10/0x10
[   23.129544]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   23.129567]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   23.129591]  kthread+0x337/0x6f0
[   23.129610]  ? trace_preempt_on+0x20/0xc0
[   23.129633]  ? __pfx_kthread+0x10/0x10
[   23.129654]  ? _raw_spin_unlock_irq+0x47/0x80
[   23.129749]  ? calculate_sigpending+0x7b/0xa0
[   23.129774]  ? __pfx_kthread+0x10/0x10
[   23.129796]  ret_from_fork+0x116/0x1d0
[   23.129814]  ? __pfx_kthread+0x10/0x10
[   23.129835]  ret_from_fork_asm+0x1a/0x30
[   23.129865]  </TASK>
[   23.129877] 
[   23.142472] Allocated by task 220:
[   23.142816]  kasan_save_stack+0x45/0x70
[   23.143252]  kasan_save_track+0x18/0x40
[   23.143674]  kasan_save_alloc_info+0x3b/0x50
[   23.144113]  __kasan_kmalloc+0xb7/0xc0
[   23.144593]  __kmalloc_cache_noprof+0x189/0x420
[   23.145030]  kmalloc_oob_memset_2+0xac/0x330
[   23.145389]  kunit_try_run_case+0x1a5/0x480
[   23.145913]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   23.146297]  kthread+0x337/0x6f0
[   23.146426]  ret_from_fork+0x116/0x1d0
[   23.146580]  ret_from_fork_asm+0x1a/0x30
[   23.147025] 
[   23.147194] The buggy address belongs to the object at ffff888104950300
[   23.147194]  which belongs to the cache kmalloc-128 of size 128
[   23.148547] The buggy address is located 119 bytes inside of
[   23.148547]  allocated 120-byte region [ffff888104950300, ffff888104950378)
[   23.149429] 
[   23.149603] The buggy address belongs to the physical page:
[   23.149954] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x104950
[   23.150194] flags: 0x200000000000000(node=0|zone=2)
[   23.150365] page_type: f5(slab)
[   23.150484] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000
[   23.151346] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000
[   23.152190] page dumped because: kasan: bad access detected
[   23.152712] 
[   23.152969] Memory state around the buggy address:
[   23.153412]  ffff888104950200: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[   23.154209]  ffff888104950280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   23.154651] >ffff888104950300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc
[   23.155077]                                                                 ^
[   23.155745]  ffff888104950380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   23.156533]  ffff888104950400: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   23.157081] ==================================================================

[   23.397578] ==================================================================
[   23.398606] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_2+0x166/0x330
[   23.398846] Write of size 2 at addr ffff8881049c5977 by task kunit_try_catch/221
[   23.399492] 
[   23.399684] CPU: 1 UID: 0 PID: 221 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4-next-20250702 #1 PREEMPT(voluntary) 
[   23.399737] Tainted: [B]=BAD_PAGE, [N]=TEST
[   23.399750] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   23.399773] Call Trace:
[   23.399788]  <TASK>
[   23.399807]  dump_stack_lvl+0x73/0xb0
[   23.399839]  print_report+0xd1/0x650
[   23.399861]  ? __virt_addr_valid+0x1db/0x2d0
[   23.399886]  ? kmalloc_oob_memset_2+0x166/0x330
[   23.399908]  ? kasan_complete_mode_report_info+0x2a/0x200
[   23.399954]  ? kmalloc_oob_memset_2+0x166/0x330
[   23.399975]  kasan_report+0x141/0x180
[   23.399997]  ? kmalloc_oob_memset_2+0x166/0x330
[   23.400022]  kasan_check_range+0x10c/0x1c0
[   23.400046]  __asan_memset+0x27/0x50
[   23.400078]  kmalloc_oob_memset_2+0x166/0x330
[   23.400099]  ? __pfx_kmalloc_oob_memset_2+0x10/0x10
[   23.400121]  ? __schedule+0x10cc/0x2b60
[   23.400143]  ? __pfx_read_tsc+0x10/0x10
[   23.400164]  ? ktime_get_ts64+0x86/0x230
[   23.400195]  kunit_try_run_case+0x1a5/0x480
[   23.400222]  ? __pfx_kunit_try_run_case+0x10/0x10
[   23.400245]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   23.400267]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   23.400288]  ? __kthread_parkme+0x82/0x180
[   23.400308]  ? preempt_count_sub+0x50/0x80
[   23.400331]  ? __pfx_kunit_try_run_case+0x10/0x10
[   23.400355]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   23.400379]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   23.400402]  kthread+0x337/0x6f0
[   23.400423]  ? trace_preempt_on+0x20/0xc0
[   23.400446]  ? __pfx_kthread+0x10/0x10
[   23.400467]  ? _raw_spin_unlock_irq+0x47/0x80
[   23.400490]  ? calculate_sigpending+0x7b/0xa0
[   23.400601]  ? __pfx_kthread+0x10/0x10
[   23.400623]  ret_from_fork+0x116/0x1d0
[   23.400643]  ? __pfx_kthread+0x10/0x10
[   23.400663]  ret_from_fork_asm+0x1a/0x30
[   23.400695]  </TASK>
[   23.400707] 
[   23.411699] Allocated by task 221:
[   23.412227]  kasan_save_stack+0x45/0x70
[   23.412668]  kasan_save_track+0x18/0x40
[   23.413097]  kasan_save_alloc_info+0x3b/0x50
[   23.413653]  __kasan_kmalloc+0xb7/0xc0
[   23.414092]  __kmalloc_cache_noprof+0x189/0x420
[   23.414684]  kmalloc_oob_memset_2+0xac/0x330
[   23.415250]  kunit_try_run_case+0x1a5/0x480
[   23.415646]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   23.416201]  kthread+0x337/0x6f0
[   23.416633]  ret_from_fork+0x116/0x1d0
[   23.417002]  ret_from_fork_asm+0x1a/0x30
[   23.417413] 
[   23.417619] The buggy address belongs to the object at ffff8881049c5900
[   23.417619]  which belongs to the cache kmalloc-128 of size 128
[   23.418787] The buggy address is located 119 bytes inside of
[   23.418787]  allocated 120-byte region [ffff8881049c5900, ffff8881049c5978)
[   23.419571] 
[   23.419734] The buggy address belongs to the physical page:
[   23.420328] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1049c5
[   23.420740] flags: 0x200000000000000(node=0|zone=2)
[   23.420906] page_type: f5(slab)
[   23.421210] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000
[   23.421956] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000
[   23.422761] page dumped because: kasan: bad access detected
[   23.423254] 
[   23.423324] Memory state around the buggy address:
[   23.423476]  ffff8881049c5800: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[   23.423686]  ffff8881049c5880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   23.423893] >ffff8881049c5900: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc
[   23.424125]                                                                 ^
[   23.424608]  ffff8881049c5980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   23.424906]  ffff8881049c5a00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   23.425231] ==================================================================