Hay
Date
May 12, 2025, 6:12 p.m.

Environment
qemu-arm64
qemu-x86_64

[   17.832937] ==================================================================
[   17.833635] BUG: KASAN: slab-out-of-bounds in kmalloc_node_oob_right+0x2f4/0x330
[   17.834327] Read of size 1 at addr fff00000c617d000 by task kunit_try_catch/129
[   17.835918] 
[   17.836228] CPU: 1 UID: 0 PID: 129 Comm: kunit_try_catch Tainted: G    B            N 6.14.7-rc1 #1
[   17.836378] Tainted: [B]=BAD_PAGE, [N]=TEST
[   17.836410] Hardware name: linux,dummy-virt (DT)
[   17.836467] Call trace:
[   17.836515]  show_stack+0x20/0x38 (C)
[   17.836626]  dump_stack_lvl+0x8c/0xd0
[   17.836723]  print_report+0x118/0x608
[   17.836838]  kasan_report+0xdc/0x128
[   17.836889]  __asan_report_load1_noabort+0x20/0x30
[   17.836939]  kmalloc_node_oob_right+0x2f4/0x330
[   17.836988]  kunit_try_run_case+0x170/0x3f0
[   17.837038]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   17.837092]  kthread+0x318/0x620
[   17.837141]  ret_from_fork+0x10/0x20
[   17.837194] 
[   17.841978] Allocated by task 129:
[   17.842327]  kasan_save_stack+0x3c/0x68
[   17.843951]  kasan_save_track+0x20/0x40
[   17.844356]  kasan_save_alloc_info+0x40/0x58
[   17.844847]  __kasan_kmalloc+0xd4/0xd8
[   17.845274]  __kmalloc_cache_node_noprof+0x168/0x3d0
[   17.845758]  kmalloc_node_oob_right+0xbc/0x330
[   17.846247]  kunit_try_run_case+0x170/0x3f0
[   17.847095]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   17.847556]  kthread+0x318/0x620
[   17.847917]  ret_from_fork+0x10/0x20
[   17.848269] 
[   17.848532] The buggy address belongs to the object at fff00000c617c000
[   17.848532]  which belongs to the cache kmalloc-4k of size 4096
[   17.849421] The buggy address is located 0 bytes to the right of
[   17.849421]  allocated 4096-byte region [fff00000c617c000, fff00000c617d000)
[   17.850295] 
[   17.851439] The buggy address belongs to the physical page:
[   17.851848] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106178
[   17.852832] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   17.853475] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff)
[   17.854134] page_type: f5(slab)
[   17.854960] raw: 0bfffe0000000040 fff00000c0002140 dead000000000122 0000000000000000
[   17.855489] raw: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000
[   17.856043] head: 0bfffe0000000040 fff00000c0002140 dead000000000122 0000000000000000
[   17.856666] head: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000
[   17.857297] head: 0bfffe0000000003 ffffc1ffc3185e01 ffffffffffffffff 0000000000000000
[   17.857844] head: 0000000000000008 0000000000000000 00000000ffffffff 0000000000000000
[   17.858426] page dumped because: kasan: bad access detected
[   17.859727] 
[   17.860016] Memory state around the buggy address:
[   17.860373]  fff00000c617cf00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   17.861097]  fff00000c617cf80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   17.861636] >fff00000c617d000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   17.862291]                    ^
[   17.862632]  fff00000c617d080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   17.863243]  fff00000c617d100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   17.864240] ==================================================================

[   11.739255] ==================================================================
[   11.739724] BUG: KASAN: slab-out-of-bounds in kmalloc_node_oob_right+0x36b/0x3d0
[   11.739981] Read of size 1 at addr ffff888102b7b000 by task kunit_try_catch/148
[   11.741140] 
[   11.741573] CPU: 1 UID: 0 PID: 148 Comm: kunit_try_catch Tainted: G    B            N 6.14.7-rc1 #1
[   11.741664] Tainted: [B]=BAD_PAGE, [N]=TEST
[   11.741772] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   11.741795] Call Trace:
[   11.741811]  <TASK>
[   11.741832]  dump_stack_lvl+0x73/0xb0
[   11.741876]  print_report+0xd1/0x650
[   11.741898]  ? __virt_addr_valid+0x1db/0x2d0
[   11.741921]  ? kmalloc_node_oob_right+0x36b/0x3d0
[   11.741943]  ? kasan_complete_mode_report_info+0x2a/0x200
[   11.741969]  ? kmalloc_node_oob_right+0x36b/0x3d0
[   11.742014]  kasan_report+0x140/0x180
[   11.742050]  ? kmalloc_node_oob_right+0x36b/0x3d0
[   11.742077]  __asan_report_load1_noabort+0x18/0x20
[   11.742099]  kmalloc_node_oob_right+0x36b/0x3d0
[   11.742122]  ? __pfx_kmalloc_node_oob_right+0x10/0x10
[   11.742147]  ? __pfx_kmalloc_node_oob_right+0x10/0x10
[   11.742173]  kunit_try_run_case+0x1a6/0x480
[   11.742197]  ? __pfx_kunit_try_run_case+0x10/0x10
[   11.742218]  ? _raw_spin_lock_irqsave+0xa2/0x110
[   11.742239]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   11.742264]  ? __kthread_parkme+0x82/0x160
[   11.742286]  ? preempt_count_sub+0x50/0x80
[   11.742311]  ? __pfx_kunit_try_run_case+0x10/0x10
[   11.742332]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   11.742357]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   11.742382]  kthread+0x324/0x6e0
[   11.742403]  ? trace_preempt_on+0x20/0xc0
[   11.742426]  ? __pfx_kthread+0x10/0x10
[   11.742448]  ? _raw_spin_unlock_irq+0x47/0x80
[   11.742471]  ? calculate_sigpending+0x7b/0xa0
[   11.742491]  ? __pfx_kthread+0x10/0x10
[   11.742513]  ret_from_fork+0x41/0x80
[   11.742532]  ? __pfx_kthread+0x10/0x10
[   11.742554]  ret_from_fork_asm+0x1a/0x30
[   11.742584]  </TASK>
[   11.742595] 
[   11.754276] Allocated by task 148:
[   11.754662]  kasan_save_stack+0x45/0x70
[   11.755139]  kasan_save_track+0x18/0x40
[   11.755296]  kasan_save_alloc_info+0x3b/0x50
[   11.755638]  __kasan_kmalloc+0xb7/0xc0
[   11.756210]  __kmalloc_cache_node_noprof+0x189/0x420
[   11.756544]  kmalloc_node_oob_right+0xac/0x3d0
[   11.756701]  kunit_try_run_case+0x1a6/0x480
[   11.756859]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   11.757220]  kthread+0x324/0x6e0
[   11.757542]  ret_from_fork+0x41/0x80
[   11.757906]  ret_from_fork_asm+0x1a/0x30
[   11.758387] 
[   11.758554] The buggy address belongs to the object at ffff888102b7a000
[   11.758554]  which belongs to the cache kmalloc-4k of size 4096
[   11.759701] The buggy address is located 0 bytes to the right of
[   11.759701]  allocated 4096-byte region [ffff888102b7a000, ffff888102b7b000)
[   11.760552] 
[   11.760631] The buggy address belongs to the physical page:
[   11.760891] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102b78
[   11.762259] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   11.762940] flags: 0x200000000000040(head|node=0|zone=2)
[   11.763590] page_type: f5(slab)
[   11.763719] raw: 0200000000000040 ffff888100042140 dead000000000122 0000000000000000
[   11.763974] raw: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000
[   11.764788] head: 0200000000000040 ffff888100042140 dead000000000122 0000000000000000
[   11.765574] head: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000
[   11.766590] head: 0200000000000003 ffffea00040ade01 ffffffffffffffff 0000000000000000
[   11.766833] head: 0000000000000008 0000000000000000 00000000ffffffff 0000000000000000
[   11.767423] page dumped because: kasan: bad access detected
[   11.767966] 
[   11.768223] Memory state around the buggy address:
[   11.768678]  ffff888102b7af00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   11.769425]  ffff888102b7af80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   11.769757] >ffff888102b7b000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   11.770080]                    ^
[   11.770431]  ffff888102b7b080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   11.771512]  ffff888102b7b100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   11.772227] ==================================================================