Date
July 1, 2025, 12:10 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 18.038054] ================================================================== [ 18.038149] BUG: KASAN: slab-out-of-bounds in kmem_cache_oob+0x344/0x430 [ 18.038219] Read of size 1 at addr fff00000c59020c8 by task kunit_try_catch/207 [ 18.038274] [ 18.038322] CPU: 1 UID: 0 PID: 207 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT [ 18.038690] Tainted: [B]=BAD_PAGE, [N]=TEST [ 18.038739] Hardware name: linux,dummy-virt (DT) [ 18.038776] Call trace: [ 18.039211] show_stack+0x20/0x38 (C) [ 18.039298] dump_stack_lvl+0x8c/0xd0 [ 18.039351] print_report+0x118/0x608 [ 18.039980] kasan_report+0xdc/0x128 [ 18.040603] __asan_report_load1_noabort+0x20/0x30 [ 18.040709] kmem_cache_oob+0x344/0x430 [ 18.041063] kunit_try_run_case+0x170/0x3f0 [ 18.041123] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.041179] kthread+0x328/0x630 [ 18.041221] ret_from_fork+0x10/0x20 [ 18.041294] [ 18.041314] Allocated by task 207: [ 18.041345] kasan_save_stack+0x3c/0x68 [ 18.041385] kasan_save_track+0x20/0x40 [ 18.041437] kasan_save_alloc_info+0x40/0x58 [ 18.041488] __kasan_slab_alloc+0xa8/0xb0 [ 18.041535] kmem_cache_alloc_noprof+0x10c/0x398 [ 18.041591] kmem_cache_oob+0x12c/0x430 [ 18.041627] kunit_try_run_case+0x170/0x3f0 [ 18.041679] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.041722] kthread+0x328/0x630 [ 18.041753] ret_from_fork+0x10/0x20 [ 18.041789] [ 18.041819] The buggy address belongs to the object at fff00000c5902000 [ 18.041819] which belongs to the cache test_cache of size 200 [ 18.041880] The buggy address is located 0 bytes to the right of [ 18.041880] allocated 200-byte region [fff00000c5902000, fff00000c59020c8) [ 18.041946] [ 18.041974] The buggy address belongs to the physical page: [ 18.042015] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105902 [ 18.042099] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 18.042163] page_type: f5(slab) [ 18.042221] raw: 0bfffe0000000000 fff00000c3e4f140 dead000000000122 0000000000000000 [ 18.042282] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000 [ 18.042324] page dumped because: kasan: bad access detected [ 18.042356] [ 18.042381] Memory state around the buggy address: [ 18.042421] fff00000c5901f80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 18.042690] fff00000c5902000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 18.043640] >fff00000c5902080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc [ 18.043897] ^ [ 18.044350] fff00000c5902100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.044410] fff00000c5902180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.044802] ==================================================================
[ 12.087019] ================================================================== [ 12.087515] BUG: KASAN: slab-out-of-bounds in kmem_cache_oob+0x402/0x530 [ 12.087832] Read of size 1 at addr ffff8881031140c8 by task kunit_try_catch/224 [ 12.088441] [ 12.088665] CPU: 0 UID: 0 PID: 224 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT(voluntary) [ 12.088713] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.088725] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.088745] Call Trace: [ 12.088757] <TASK> [ 12.088774] dump_stack_lvl+0x73/0xb0 [ 12.088804] print_report+0xd1/0x650 [ 12.088826] ? __virt_addr_valid+0x1db/0x2d0 [ 12.088848] ? kmem_cache_oob+0x402/0x530 [ 12.088869] ? kasan_complete_mode_report_info+0x2a/0x200 [ 12.088890] ? kmem_cache_oob+0x402/0x530 [ 12.088912] kasan_report+0x141/0x180 [ 12.088933] ? kmem_cache_oob+0x402/0x530 [ 12.088959] __asan_report_load1_noabort+0x18/0x20 [ 12.088982] kmem_cache_oob+0x402/0x530 [ 12.089002] ? trace_hardirqs_on+0x37/0xe0 [ 12.089038] ? __pfx_kmem_cache_oob+0x10/0x10 [ 12.089177] ? __kasan_check_write+0x18/0x20 [ 12.089200] ? queued_spin_lock_slowpath+0x116/0xb40 [ 12.089223] ? irqentry_exit+0x2a/0x60 [ 12.089246] ? trace_hardirqs_on+0x37/0xe0 [ 12.089266] ? __pfx_read_tsc+0x10/0x10 [ 12.089286] ? ktime_get_ts64+0x86/0x230 [ 12.089310] kunit_try_run_case+0x1a5/0x480 [ 12.089334] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.089356] ? queued_spin_lock_slowpath+0x116/0xb40 [ 12.089377] ? __kthread_parkme+0x82/0x180 [ 12.089398] ? preempt_count_sub+0x50/0x80 [ 12.089421] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.089443] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.089464] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.089486] kthread+0x337/0x6f0 [ 12.089504] ? trace_preempt_on+0x20/0xc0 [ 12.089524] ? __pfx_kthread+0x10/0x10 [ 12.089543] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.089563] ? calculate_sigpending+0x7b/0xa0 [ 12.089586] ? __pfx_kthread+0x10/0x10 [ 12.089606] ret_from_fork+0x116/0x1d0 [ 12.089623] ? __pfx_kthread+0x10/0x10 [ 12.089642] ret_from_fork_asm+0x1a/0x30 [ 12.089671] </TASK> [ 12.089683] [ 12.099958] Allocated by task 224: [ 12.100490] kasan_save_stack+0x45/0x70 [ 12.100685] kasan_save_track+0x18/0x40 [ 12.100829] kasan_save_alloc_info+0x3b/0x50 [ 12.101207] __kasan_slab_alloc+0x91/0xa0 [ 12.101400] kmem_cache_alloc_noprof+0x123/0x3f0 [ 12.101614] kmem_cache_oob+0x157/0x530 [ 12.101786] kunit_try_run_case+0x1a5/0x480 [ 12.101977] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.102649] kthread+0x337/0x6f0 [ 12.102807] ret_from_fork+0x116/0x1d0 [ 12.102967] ret_from_fork_asm+0x1a/0x30 [ 12.103191] [ 12.103478] The buggy address belongs to the object at ffff888103114000 [ 12.103478] which belongs to the cache test_cache of size 200 [ 12.103970] The buggy address is located 0 bytes to the right of [ 12.103970] allocated 200-byte region [ffff888103114000, ffff8881031140c8) [ 12.104778] [ 12.104954] The buggy address belongs to the physical page: [ 12.105161] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103114 [ 12.105685] flags: 0x200000000000000(node=0|zone=2) [ 12.105915] page_type: f5(slab) [ 12.106215] raw: 0200000000000000 ffff888101ae4a00 dead000000000122 0000000000000000 [ 12.106536] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000 [ 12.106843] page dumped because: kasan: bad access detected [ 12.107143] [ 12.107235] Memory state around the buggy address: [ 12.107390] ffff888103113f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.107709] ffff888103114000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 12.108006] >ffff888103114080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc [ 12.108980] ^ [ 12.109227] ffff888103114100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.109734] ffff888103114180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.110157] ==================================================================