Date
July 9, 2025, 11:07 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 17.285312] ================================================================== [ 17.285410] BUG: KASAN: slab-out-of-bounds in kmem_cache_oob+0x344/0x430 [ 17.285577] Read of size 1 at addr fff00000c6ccd0c8 by task kunit_try_catch/207 [ 17.285652] [ 17.285694] CPU: 1 UID: 0 PID: 207 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT [ 17.285839] Tainted: [B]=BAD_PAGE, [N]=TEST [ 17.285876] Hardware name: linux,dummy-virt (DT) [ 17.285912] Call trace: [ 17.286051] show_stack+0x20/0x38 (C) [ 17.286107] dump_stack_lvl+0x8c/0xd0 [ 17.286190] print_report+0x118/0x608 [ 17.286239] kasan_report+0xdc/0x128 [ 17.286286] __asan_report_load1_noabort+0x20/0x30 [ 17.286336] kmem_cache_oob+0x344/0x430 [ 17.286380] kunit_try_run_case+0x170/0x3f0 [ 17.286439] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 17.286493] kthread+0x328/0x630 [ 17.286545] ret_from_fork+0x10/0x20 [ 17.286606] [ 17.286624] Allocated by task 207: [ 17.286651] kasan_save_stack+0x3c/0x68 [ 17.286692] kasan_save_track+0x20/0x40 [ 17.286729] kasan_save_alloc_info+0x40/0x58 [ 17.286768] __kasan_slab_alloc+0xa8/0xb0 [ 17.286804] kmem_cache_alloc_noprof+0x10c/0x398 [ 17.286845] kmem_cache_oob+0x12c/0x430 [ 17.286879] kunit_try_run_case+0x170/0x3f0 [ 17.286917] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 17.286958] kthread+0x328/0x630 [ 17.286990] ret_from_fork+0x10/0x20 [ 17.287024] [ 17.287043] The buggy address belongs to the object at fff00000c6ccd000 [ 17.287043] which belongs to the cache test_cache of size 200 [ 17.287112] The buggy address is located 0 bytes to the right of [ 17.287112] allocated 200-byte region [fff00000c6ccd000, fff00000c6ccd0c8) [ 17.287189] [ 17.287208] The buggy address belongs to the physical page: [ 17.287241] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106ccd [ 17.287296] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 17.287349] page_type: f5(slab) [ 17.287390] raw: 0bfffe0000000000 fff00000c56b28c0 dead000000000122 0000000000000000 [ 17.287698] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000 [ 17.287776] page dumped because: kasan: bad access detected [ 17.287808] [ 17.287826] Memory state around the buggy address: [ 17.287860] fff00000c6cccf80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 17.287904] fff00000c6ccd000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 17.287948] >fff00000c6ccd080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc [ 17.288013] ^ [ 17.288047] fff00000c6ccd100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.288089] fff00000c6ccd180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.288141] ==================================================================
[ 13.191284] ================================================================== [ 13.192440] BUG: KASAN: slab-out-of-bounds in kmem_cache_oob+0x402/0x530 [ 13.192674] Read of size 1 at addr ffff8881031f60c8 by task kunit_try_catch/224 [ 13.193734] [ 13.194120] CPU: 0 UID: 0 PID: 224 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT(voluntary) [ 13.194167] Tainted: [B]=BAD_PAGE, [N]=TEST [ 13.194179] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 13.194326] Call Trace: [ 13.194342] <TASK> [ 13.194357] dump_stack_lvl+0x73/0xb0 [ 13.194389] print_report+0xd1/0x650 [ 13.194410] ? __virt_addr_valid+0x1db/0x2d0 [ 13.194432] ? kmem_cache_oob+0x402/0x530 [ 13.194454] ? kasan_complete_mode_report_info+0x2a/0x200 [ 13.194477] ? kmem_cache_oob+0x402/0x530 [ 13.194499] kasan_report+0x141/0x180 [ 13.194520] ? kmem_cache_oob+0x402/0x530 [ 13.194548] __asan_report_load1_noabort+0x18/0x20 [ 13.194572] kmem_cache_oob+0x402/0x530 [ 13.194593] ? trace_hardirqs_on+0x37/0xe0 [ 13.194617] ? __pfx_kmem_cache_oob+0x10/0x10 [ 13.194639] ? finish_task_switch.isra.0+0x153/0x700 [ 13.194662] ? __switch_to+0x47/0xf50 [ 13.194691] ? __pfx_read_tsc+0x10/0x10 [ 13.194723] ? ktime_get_ts64+0x86/0x230 [ 13.194748] kunit_try_run_case+0x1a5/0x480 [ 13.194772] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.194794] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 13.194818] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 13.194841] ? __kthread_parkme+0x82/0x180 [ 13.194862] ? preempt_count_sub+0x50/0x80 [ 13.194885] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.194908] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.194932] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 13.194957] kthread+0x337/0x6f0 [ 13.194975] ? trace_preempt_on+0x20/0xc0 [ 13.194996] ? __pfx_kthread+0x10/0x10 [ 13.195016] ? _raw_spin_unlock_irq+0x47/0x80 [ 13.195057] ? calculate_sigpending+0x7b/0xa0 [ 13.195094] ? __pfx_kthread+0x10/0x10 [ 13.195115] ret_from_fork+0x116/0x1d0 [ 13.195132] ? __pfx_kthread+0x10/0x10 [ 13.195152] ret_from_fork_asm+0x1a/0x30 [ 13.195182] </TASK> [ 13.195193] [ 13.208105] Allocated by task 224: [ 13.208456] kasan_save_stack+0x45/0x70 [ 13.208834] kasan_save_track+0x18/0x40 [ 13.209176] kasan_save_alloc_info+0x3b/0x50 [ 13.209637] __kasan_slab_alloc+0x91/0xa0 [ 13.209791] kmem_cache_alloc_noprof+0x123/0x3f0 [ 13.209941] kmem_cache_oob+0x157/0x530 [ 13.210217] kunit_try_run_case+0x1a5/0x480 [ 13.210642] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.211243] kthread+0x337/0x6f0 [ 13.211556] ret_from_fork+0x116/0x1d0 [ 13.211955] ret_from_fork_asm+0x1a/0x30 [ 13.212405] [ 13.212530] The buggy address belongs to the object at ffff8881031f6000 [ 13.212530] which belongs to the cache test_cache of size 200 [ 13.212882] The buggy address is located 0 bytes to the right of [ 13.212882] allocated 200-byte region [ffff8881031f6000, ffff8881031f60c8) [ 13.213825] [ 13.213990] The buggy address belongs to the physical page: [ 13.214598] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1031f6 [ 13.215479] flags: 0x200000000000000(node=0|zone=2) [ 13.215933] page_type: f5(slab) [ 13.216186] raw: 0200000000000000 ffff8881031f2000 dead000000000122 0000000000000000 [ 13.216772] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000 [ 13.217564] page dumped because: kasan: bad access detected [ 13.217907] [ 13.217978] Memory state around the buggy address: [ 13.218201] ffff8881031f5f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.218948] ffff8881031f6000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 13.219757] >ffff8881031f6080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc [ 13.220334] ^ [ 13.220510] ffff8881031f6100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.220734] ffff8881031f6180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.220945] ==================================================================