Date
June 3, 2025, 7:38 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 18.721765] ================================================================== [ 18.721836] BUG: KASAN: slab-out-of-bounds in kmem_cache_oob+0x344/0x430 [ 18.721901] Read of size 1 at addr fff00000c65cb0c8 by task kunit_try_catch/207 [ 18.721953] [ 18.721991] CPU: 1 UID: 0 PID: 207 Comm: kunit_try_catch Tainted: G B N 6.15.0-next-20250603 #1 PREEMPT [ 18.722270] Tainted: [B]=BAD_PAGE, [N]=TEST [ 18.722328] Hardware name: linux,dummy-virt (DT) [ 18.722362] Call trace: [ 18.722394] show_stack+0x20/0x38 (C) [ 18.722638] dump_stack_lvl+0x8c/0xd0 [ 18.722996] print_report+0x118/0x608 [ 18.723075] kasan_report+0xdc/0x128 [ 18.723134] __asan_report_load1_noabort+0x20/0x30 [ 18.723184] kmem_cache_oob+0x344/0x430 [ 18.723228] kunit_try_run_case+0x170/0x3f0 [ 18.723402] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.723508] kthread+0x328/0x630 [ 18.723623] ret_from_fork+0x10/0x20 [ 18.723772] [ 18.723810] Allocated by task 207: [ 18.723840] kasan_save_stack+0x3c/0x68 [ 18.723901] kasan_save_track+0x20/0x40 [ 18.724177] kasan_save_alloc_info+0x40/0x58 [ 18.724267] __kasan_slab_alloc+0xa8/0xb0 [ 18.724340] kmem_cache_alloc_noprof+0x10c/0x398 [ 18.724379] kmem_cache_oob+0x12c/0x430 [ 18.724416] kunit_try_run_case+0x170/0x3f0 [ 18.724463] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.724690] kthread+0x328/0x630 [ 18.724790] ret_from_fork+0x10/0x20 [ 18.724916] [ 18.724999] The buggy address belongs to the object at fff00000c65cb000 [ 18.724999] which belongs to the cache test_cache of size 200 [ 18.725114] The buggy address is located 0 bytes to the right of [ 18.725114] allocated 200-byte region [fff00000c65cb000, fff00000c65cb0c8) [ 18.725242] [ 18.725311] The buggy address belongs to the physical page: [ 18.725343] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1065cb [ 18.725733] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 18.725871] page_type: f5(slab) [ 18.725958] raw: 0bfffe0000000000 fff00000c16fac80 dead000000000122 0000000000000000 [ 18.726084] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000 [ 18.726152] page dumped because: kasan: bad access detected [ 18.726250] [ 18.726302] Memory state around the buggy address: [ 18.726359] fff00000c65caf80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 18.726495] fff00000c65cb000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 18.726575] >fff00000c65cb080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc [ 18.726635] ^ [ 18.726671] fff00000c65cb100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.726912] fff00000c65cb180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.727083] ==================================================================
[ 15.385322] ================================================================== [ 15.385738] BUG: KASAN: slab-out-of-bounds in kmem_cache_oob+0x402/0x530 [ 15.385981] Read of size 1 at addr ffff88810333b0c8 by task kunit_try_catch/224 [ 15.386135] [ 15.386570] CPU: 1 UID: 0 PID: 224 Comm: kunit_try_catch Tainted: G B N 6.15.0-next-20250603 #1 PREEMPT(voluntary) [ 15.386630] Tainted: [B]=BAD_PAGE, [N]=TEST [ 15.386644] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 15.386669] Call Trace: [ 15.386684] <TASK> [ 15.386710] dump_stack_lvl+0x73/0xb0 [ 15.386746] print_report+0xd1/0x650 [ 15.386771] ? __virt_addr_valid+0x1db/0x2d0 [ 15.386799] ? kmem_cache_oob+0x402/0x530 [ 15.386819] ? kasan_complete_mode_report_info+0x2a/0x200 [ 15.386843] ? kmem_cache_oob+0x402/0x530 [ 15.386863] kasan_report+0x141/0x180 [ 15.386887] ? kmem_cache_oob+0x402/0x530 [ 15.386912] __asan_report_load1_noabort+0x18/0x20 [ 15.386934] kmem_cache_oob+0x402/0x530 [ 15.386954] ? trace_hardirqs_on+0x37/0xe0 [ 15.386981] ? __pfx_kmem_cache_oob+0x10/0x10 [ 15.387001] ? finish_task_switch.isra.0+0x153/0x700 [ 15.387026] ? __switch_to+0x47/0xf50 [ 15.387058] ? __pfx_read_tsc+0x10/0x10 [ 15.387082] ? ktime_get_ts64+0x86/0x230 [ 15.387201] kunit_try_run_case+0x1a5/0x480 [ 15.387231] ? __pfx_kunit_try_run_case+0x10/0x10 [ 15.387252] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 15.387280] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 15.387306] ? __kthread_parkme+0x82/0x180 [ 15.387330] ? preempt_count_sub+0x50/0x80 [ 15.387367] ? __pfx_kunit_try_run_case+0x10/0x10 [ 15.387392] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 15.387419] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 15.387445] kthread+0x337/0x6f0 [ 15.387491] ? trace_preempt_on+0x20/0xc0 [ 15.387516] ? __pfx_kthread+0x10/0x10 [ 15.387540] ? _raw_spin_unlock_irq+0x47/0x80 [ 15.387563] ? calculate_sigpending+0x7b/0xa0 [ 15.387590] ? __pfx_kthread+0x10/0x10 [ 15.387613] ret_from_fork+0x116/0x1d0 [ 15.387635] ? __pfx_kthread+0x10/0x10 [ 15.387656] ret_from_fork_asm+0x1a/0x30 [ 15.387689] </TASK> [ 15.387743] [ 15.397840] Allocated by task 224: [ 15.398410] kasan_save_stack+0x45/0x70 [ 15.398753] kasan_save_track+0x18/0x40 [ 15.399032] kasan_save_alloc_info+0x3b/0x50 [ 15.399263] __kasan_slab_alloc+0x91/0xa0 [ 15.399378] kmem_cache_alloc_noprof+0x123/0x3f0 [ 15.399728] kmem_cache_oob+0x157/0x530 [ 15.399950] kunit_try_run_case+0x1a5/0x480 [ 15.400064] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 15.400603] kthread+0x337/0x6f0 [ 15.400865] ret_from_fork+0x116/0x1d0 [ 15.400996] ret_from_fork_asm+0x1a/0x30 [ 15.401171] [ 15.401345] The buggy address belongs to the object at ffff88810333b000 [ 15.401345] which belongs to the cache test_cache of size 200 [ 15.402046] The buggy address is located 0 bytes to the right of [ 15.402046] allocated 200-byte region [ffff88810333b000, ffff88810333b0c8) [ 15.402675] [ 15.403363] The buggy address belongs to the physical page: [ 15.403551] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10333b [ 15.404058] flags: 0x200000000000000(node=0|zone=2) [ 15.404488] page_type: f5(slab) [ 15.404844] raw: 0200000000000000 ffff888101117a00 dead000000000122 0000000000000000 [ 15.405229] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000 [ 15.405585] page dumped because: kasan: bad access detected [ 15.405964] [ 15.406068] Memory state around the buggy address: [ 15.406386] ffff88810333af80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.406822] ffff88810333b000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 15.407224] >ffff88810333b080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc [ 15.407676] ^ [ 15.408220] ffff88810333b100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.409063] ffff88810333b180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.409379] ==================================================================