Hay
Date
April 20, 2025, 11:09 p.m.

Environment
qemu-arm64
qemu-x86_64
rk3399-rock-pi-4b

[   23.358214] ==================================================================
[   23.358323] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_16+0x150/0x2f8
[   23.358440] Write of size 16 at addr fff00000c6600169 by task kunit_try_catch/180
[   23.358556] 
[   23.358647] CPU: 0 UID: 0 PID: 180 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-rc3 #1 PREEMPT 
[   23.358842] Tainted: [B]=BAD_PAGE, [N]=TEST
[   23.358908] Hardware name: linux,dummy-virt (DT)
[   23.359195] Call trace:
[   23.359370]  show_stack+0x20/0x38 (C)
[   23.359566]  dump_stack_lvl+0x8c/0xd0
[   23.359676]  print_report+0x118/0x608
[   23.359747]  kasan_report+0xdc/0x128
[   23.359970]  kasan_check_range+0x100/0x1a8
[   23.360307]  __asan_memset+0x34/0x78
[   23.360668]  kmalloc_oob_memset_16+0x150/0x2f8
[   23.360845]  kunit_try_run_case+0x170/0x3f0
[   23.361145]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   23.361288]  kthread+0x328/0x630
[   23.361415]  ret_from_fork+0x10/0x20
[   23.361692] 
[   23.362063] Allocated by task 180:
[   23.362564]  kasan_save_stack+0x3c/0x68
[   23.362800]  kasan_save_track+0x20/0x40
[   23.362969]  kasan_save_alloc_info+0x40/0x58
[   23.363094]  __kasan_kmalloc+0xd4/0xd8
[   23.363296]  __kmalloc_cache_noprof+0x15c/0x3c0
[   23.363489]  kmalloc_oob_memset_16+0xb0/0x2f8
[   23.363591]  kunit_try_run_case+0x170/0x3f0
[   23.363693]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   23.363834]  kthread+0x328/0x630
[   23.364010]  ret_from_fork+0x10/0x20
[   23.364854] 
[   23.364918] The buggy address belongs to the object at fff00000c6600100
[   23.364918]  which belongs to the cache kmalloc-128 of size 128
[   23.365145] The buggy address is located 105 bytes inside of
[   23.365145]  allocated 120-byte region [fff00000c6600100, fff00000c6600178)
[   23.365557] 
[   23.365715] The buggy address belongs to the physical page:
[   23.365828] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106600
[   23.366002] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   23.366130] page_type: f5(slab)
[   23.366314] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000
[   23.366449] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000
[   23.366550] page dumped because: kasan: bad access detected
[   23.366894] 
[   23.366997] Memory state around the buggy address:
[   23.367303]  fff00000c6600000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[   23.367546]  fff00000c6600080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   23.367981] >fff00000c6600100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc
[   23.368089]                                                                 ^
[   23.368209]  fff00000c6600180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   23.368356]  fff00000c6600200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   23.368452] ==================================================================

[   11.652285] ==================================================================
[   11.652981] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_16+0x166/0x330
[   11.653301] Write of size 16 at addr ffff888102734d69 by task kunit_try_catch/198
[   11.653703] 
[   11.653822] CPU: 0 UID: 0 PID: 198 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-rc3 #1 PREEMPT(voluntary) 
[   11.653864] Tainted: [B]=BAD_PAGE, [N]=TEST
[   11.653875] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   11.653894] Call Trace:
[   11.653905]  <TASK>
[   11.653918]  dump_stack_lvl+0x73/0xb0
[   11.653943]  print_report+0xd1/0x650
[   11.653965]  ? __virt_addr_valid+0x1db/0x2d0
[   11.653986]  ? kmalloc_oob_memset_16+0x166/0x330
[   11.654007]  ? kasan_complete_mode_report_info+0x2a/0x200
[   11.654029]  ? kmalloc_oob_memset_16+0x166/0x330
[   11.654051]  kasan_report+0x141/0x180
[   11.654073]  ? kmalloc_oob_memset_16+0x166/0x330
[   11.654100]  kasan_check_range+0x10c/0x1c0
[   11.654123]  __asan_memset+0x27/0x50
[   11.654142]  kmalloc_oob_memset_16+0x166/0x330
[   11.654165]  ? __pfx_kmalloc_oob_memset_16+0x10/0x10
[   11.654187]  ? __schedule+0x10cc/0x2b30
[   11.654221]  ? __pfx_read_tsc+0x10/0x10
[   11.654240]  ? ktime_get_ts64+0x86/0x230
[   11.654264]  kunit_try_run_case+0x1a5/0x480
[   11.654287]  ? __pfx_kunit_try_run_case+0x10/0x10
[   11.654307]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   11.654341]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   11.654364]  ? __kthread_parkme+0x82/0x180
[   11.654427]  ? preempt_count_sub+0x50/0x80
[   11.654454]  ? __pfx_kunit_try_run_case+0x10/0x10
[   11.654476]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   11.654498]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   11.654520]  kthread+0x337/0x6f0
[   11.654539]  ? trace_preempt_on+0x20/0xc0
[   11.654562]  ? __pfx_kthread+0x10/0x10
[   11.654583]  ? _raw_spin_unlock_irq+0x47/0x80
[   11.654604]  ? calculate_sigpending+0x7b/0xa0
[   11.654624]  ? __pfx_kthread+0x10/0x10
[   11.654646]  ret_from_fork+0x41/0x80
[   11.654665]  ? __pfx_kthread+0x10/0x10
[   11.654687]  ret_from_fork_asm+0x1a/0x30
[   11.654717]  </TASK>
[   11.654727] 
[   11.662040] Allocated by task 198:
[   11.662172]  kasan_save_stack+0x45/0x70
[   11.662318]  kasan_save_track+0x18/0x40
[   11.662853]  kasan_save_alloc_info+0x3b/0x50
[   11.663081]  __kasan_kmalloc+0xb7/0xc0
[   11.663452]  __kmalloc_cache_noprof+0x189/0x420
[   11.663680]  kmalloc_oob_memset_16+0xac/0x330
[   11.663844]  kunit_try_run_case+0x1a5/0x480
[   11.663989]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   11.664195]  kthread+0x337/0x6f0
[   11.664376]  ret_from_fork+0x41/0x80
[   11.664560]  ret_from_fork_asm+0x1a/0x30
[   11.664809] 
[   11.664902] The buggy address belongs to the object at ffff888102734d00
[   11.664902]  which belongs to the cache kmalloc-128 of size 128
[   11.665276] The buggy address is located 105 bytes inside of
[   11.665276]  allocated 120-byte region [ffff888102734d00, ffff888102734d78)
[   11.665795] 
[   11.665895] The buggy address belongs to the physical page:
[   11.666143] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102734
[   11.666512] flags: 0x200000000000000(node=0|zone=2)
[   11.666716] page_type: f5(slab)
[   11.666949] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000
[   11.667244] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000
[   11.667479] page dumped because: kasan: bad access detected
[   11.667685] 
[   11.668057] Memory state around the buggy address:
[   11.668318]  ffff888102734c00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[   11.668645]  ffff888102734c80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   11.668873] >ffff888102734d00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc
[   11.669234]                                                                 ^
[   11.669578]  ffff888102734d80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   11.669897]  ffff888102734e00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   11.670652] ==================================================================

[   21.552501] ==================================================================
[   21.553559] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_16+0x150/0x2f8
[   21.554243] Write of size 16 at addr ffff00000df93669 by task kunit_try_catch/232
[   21.554925] 
[   21.555083] CPU: 2 UID: 0 PID: 232 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-rc3 #1 PREEMPT 
[   21.555119] Tainted: [B]=BAD_PAGE, [N]=TEST
[   21.555130] Hardware name: Radxa ROCK Pi 4B (DT)
[   21.555143] Call trace:
[   21.555152]  show_stack+0x20/0x38 (C)
[   21.555178]  dump_stack_lvl+0x8c/0xd0
[   21.555201]  print_report+0x118/0x608
[   21.555223]  kasan_report+0xdc/0x128
[   21.555243]  kasan_check_range+0x100/0x1a8
[   21.555265]  __asan_memset+0x34/0x78
[   21.555287]  kmalloc_oob_memset_16+0x150/0x2f8
[   21.555311]  kunit_try_run_case+0x170/0x3f0
[   21.555337]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   21.555366]  kthread+0x328/0x630
[   21.555391]  ret_from_fork+0x10/0x20
[   21.555415] 
[   21.561236] Allocated by task 232:
[   21.561554]  kasan_save_stack+0x3c/0x68
[   21.561915]  kasan_save_track+0x20/0x40
[   21.562276]  kasan_save_alloc_info+0x40/0x58
[   21.562675]  __kasan_kmalloc+0xd4/0xd8
[   21.563027]  __kmalloc_cache_noprof+0x15c/0x3c0
[   21.563456]  kmalloc_oob_memset_16+0xb0/0x2f8
[   21.563865]  kunit_try_run_case+0x170/0x3f0
[   21.564259]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   21.564769]  kthread+0x328/0x630
[   21.565081]  ret_from_fork+0x10/0x20
[   21.565419] 
[   21.565566] The buggy address belongs to the object at ffff00000df93600
[   21.565566]  which belongs to the cache kmalloc-128 of size 128
[   21.566685] The buggy address is located 105 bytes inside of
[   21.566685]  allocated 120-byte region [ffff00000df93600, ffff00000df93678)
[   21.567814] 
[   21.567962] The buggy address belongs to the physical page:
[   21.568469] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0xdf93
[   21.569182] flags: 0x3fffe0000000000(node=0|zone=0|lastcpupid=0x1ffff)
[   21.569782] page_type: f5(slab)
[   21.570085] raw: 03fffe0000000000 ffff000000402a00 dead000000000122 0000000000000000
[   21.570789] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000
[   21.571487] page dumped because: kasan: bad access detected
[   21.571991] 
[   21.572138] Memory state around the buggy address:
[   21.572577]  ffff00000df93500: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[   21.573231]  ffff00000df93580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   21.573885] >ffff00000df93600: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc
[   21.574537]                                                                 ^
[   21.575182]  ffff00000df93680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   21.575837]  ffff00000df93700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   21.576489] ==================================================================