Date
July 17, 2025, 11:10 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 15.874086] ================================================================== [ 15.874437] BUG: KASAN: slab-out-of-bounds in kmem_cache_oob+0x344/0x430 [ 15.874564] Read of size 1 at addr fff00000c78a00c8 by task kunit_try_catch/208 [ 15.874618] [ 15.874654] CPU: 0 UID: 0 PID: 208 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT [ 15.874836] Tainted: [B]=BAD_PAGE, [N]=TEST [ 15.874966] Hardware name: linux,dummy-virt (DT) [ 15.875028] Call trace: [ 15.875076] show_stack+0x20/0x38 (C) [ 15.875164] dump_stack_lvl+0x8c/0xd0 [ 15.875230] print_report+0x118/0x5d0 [ 15.875295] kasan_report+0xdc/0x128 [ 15.875354] __asan_report_load1_noabort+0x20/0x30 [ 15.875425] kmem_cache_oob+0x344/0x430 [ 15.875507] kunit_try_run_case+0x170/0x3f0 [ 15.875555] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 15.875609] kthread+0x328/0x630 [ 15.875683] ret_from_fork+0x10/0x20 [ 15.875782] [ 15.875800] Allocated by task 208: [ 15.875828] kasan_save_stack+0x3c/0x68 [ 15.875966] kasan_save_track+0x20/0x40 [ 15.876032] kasan_save_alloc_info+0x40/0x58 [ 15.876074] __kasan_slab_alloc+0xa8/0xb0 [ 15.876110] kmem_cache_alloc_noprof+0x10c/0x398 [ 15.876150] kmem_cache_oob+0x12c/0x430 [ 15.876212] kunit_try_run_case+0x170/0x3f0 [ 15.876353] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 15.876514] kthread+0x328/0x630 [ 15.876556] ret_from_fork+0x10/0x20 [ 15.876591] [ 15.876609] The buggy address belongs to the object at fff00000c78a0000 [ 15.876609] which belongs to the cache test_cache of size 200 [ 15.876669] The buggy address is located 0 bytes to the right of [ 15.876669] allocated 200-byte region [fff00000c78a0000, fff00000c78a00c8) [ 15.876735] [ 15.876755] The buggy address belongs to the physical page: [ 15.876787] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1078a0 [ 15.876852] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 15.876902] page_type: f5(slab) [ 15.876940] raw: 0bfffe0000000000 fff00000c1378c80 dead000000000122 0000000000000000 [ 15.877002] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000 [ 15.877043] page dumped because: kasan: bad access detected [ 15.877081] [ 15.877098] Memory state around the buggy address: [ 15.877130] fff00000c789ff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.877173] fff00000c78a0000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 15.877216] >fff00000c78a0080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc [ 15.877253] ^ [ 15.877288] fff00000c78a0100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.877330] fff00000c78a0180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.877369] ==================================================================
[ 13.669144] ================================================================== [ 13.670542] BUG: KASAN: slab-out-of-bounds in kmem_cache_oob+0x402/0x530 [ 13.670795] Read of size 1 at addr ffff888102a190c8 by task kunit_try_catch/224 [ 13.671019] [ 13.671109] CPU: 0 UID: 0 PID: 224 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT(voluntary) [ 13.671156] Tainted: [B]=BAD_PAGE, [N]=TEST [ 13.671167] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 13.671189] Call Trace: [ 13.671202] <TASK> [ 13.671218] dump_stack_lvl+0x73/0xb0 [ 13.671248] print_report+0xd1/0x610 [ 13.671270] ? __virt_addr_valid+0x1db/0x2d0 [ 13.671294] ? kmem_cache_oob+0x402/0x530 [ 13.671317] ? kasan_complete_mode_report_info+0x2a/0x200 [ 13.671340] ? kmem_cache_oob+0x402/0x530 [ 13.671364] kasan_report+0x141/0x180 [ 13.671386] ? kmem_cache_oob+0x402/0x530 [ 13.671476] __asan_report_load1_noabort+0x18/0x20 [ 13.671506] kmem_cache_oob+0x402/0x530 [ 13.671536] ? trace_hardirqs_on+0x37/0xe0 [ 13.671575] ? __pfx_kmem_cache_oob+0x10/0x10 [ 13.671598] ? finish_task_switch.isra.0+0x153/0x700 [ 13.671622] ? __switch_to+0x47/0xf50 [ 13.671651] ? __pfx_read_tsc+0x10/0x10 [ 13.671672] ? ktime_get_ts64+0x86/0x230 [ 13.671697] kunit_try_run_case+0x1a5/0x480 [ 13.671722] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.671746] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 13.671772] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 13.671797] ? __kthread_parkme+0x82/0x180 [ 13.671819] ? preempt_count_sub+0x50/0x80 [ 13.671842] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.671867] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.671891] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 13.671917] kthread+0x337/0x6f0 [ 13.671936] ? trace_preempt_on+0x20/0xc0 [ 13.671958] ? __pfx_kthread+0x10/0x10 [ 13.671979] ? _raw_spin_unlock_irq+0x47/0x80 [ 13.672000] ? calculate_sigpending+0x7b/0xa0 [ 13.672025] ? __pfx_kthread+0x10/0x10 [ 13.672051] ret_from_fork+0x116/0x1d0 [ 13.672070] ? __pfx_kthread+0x10/0x10 [ 13.672091] ret_from_fork_asm+0x1a/0x30 [ 13.672123] </TASK> [ 13.672134] [ 13.685081] Allocated by task 224: [ 13.685450] kasan_save_stack+0x45/0x70 [ 13.685728] kasan_save_track+0x18/0x40 [ 13.686052] kasan_save_alloc_info+0x3b/0x50 [ 13.686528] __kasan_slab_alloc+0x91/0xa0 [ 13.686868] kmem_cache_alloc_noprof+0x123/0x3f0 [ 13.687090] kmem_cache_oob+0x157/0x530 [ 13.687467] kunit_try_run_case+0x1a5/0x480 [ 13.687815] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.688058] kthread+0x337/0x6f0 [ 13.688216] ret_from_fork+0x116/0x1d0 [ 13.688709] ret_from_fork_asm+0x1a/0x30 [ 13.689036] [ 13.689142] The buggy address belongs to the object at ffff888102a19000 [ 13.689142] which belongs to the cache test_cache of size 200 [ 13.689810] The buggy address is located 0 bytes to the right of [ 13.689810] allocated 200-byte region [ffff888102a19000, ffff888102a190c8) [ 13.690674] [ 13.690875] The buggy address belongs to the physical page: [ 13.691374] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102a19 [ 13.691875] flags: 0x200000000000000(node=0|zone=2) [ 13.692267] page_type: f5(slab) [ 13.692598] raw: 0200000000000000 ffff88810166ba00 dead000000000122 0000000000000000 [ 13.693396] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000 [ 13.694039] page dumped because: kasan: bad access detected [ 13.694426] [ 13.694750] Memory state around the buggy address: [ 13.695172] ffff888102a18f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.695777] ffff888102a19000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 13.696570] >ffff888102a19080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc [ 13.696896] ^ [ 13.697127] ffff888102a19100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.698072] ffff888102a19180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.698659] ==================================================================