Date
June 7, 2025, 10:40 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 23.355178] ================================================================== [ 23.355386] BUG: KASAN: slab-out-of-bounds in kmem_cache_oob+0x344/0x430 [ 23.356587] Read of size 1 at addr fff00000c776e0c8 by task kunit_try_catch/211 [ 23.356705] [ 23.356795] CPU: 1 UID: 0 PID: 211 Comm: kunit_try_catch Tainted: G B N 6.15.2-rc1 #1 PREEMPT [ 23.357201] Tainted: [B]=BAD_PAGE, [N]=TEST [ 23.357360] Hardware name: linux,dummy-virt (DT) [ 23.357472] Call trace: [ 23.357614] show_stack+0x20/0x38 (C) [ 23.357877] dump_stack_lvl+0x8c/0xd0 [ 23.358322] print_report+0x118/0x608 [ 23.358611] kasan_report+0xdc/0x128 [ 23.358756] __asan_report_load1_noabort+0x20/0x30 [ 23.358914] kmem_cache_oob+0x344/0x430 [ 23.359063] kunit_try_run_case+0x170/0x3f0 [ 23.359187] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 23.359342] kthread+0x328/0x630 [ 23.359463] ret_from_fork+0x10/0x20 [ 23.359614] [ 23.359682] Allocated by task 211: [ 23.359786] kasan_save_stack+0x3c/0x68 [ 23.359911] kasan_save_track+0x20/0x40 [ 23.360007] kasan_save_alloc_info+0x40/0x58 [ 23.360101] __kasan_slab_alloc+0xa8/0xb0 [ 23.360208] kmem_cache_alloc_noprof+0x10c/0x398 [ 23.360350] kmem_cache_oob+0x12c/0x430 [ 23.360502] kunit_try_run_case+0x170/0x3f0 [ 23.360638] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 23.360758] kthread+0x328/0x630 [ 23.360878] ret_from_fork+0x10/0x20 [ 23.361007] [ 23.361060] The buggy address belongs to the object at fff00000c776e000 [ 23.361060] which belongs to the cache test_cache of size 200 [ 23.361262] The buggy address is located 0 bytes to the right of [ 23.361262] allocated 200-byte region [fff00000c776e000, fff00000c776e0c8) [ 23.361654] [ 23.361730] The buggy address belongs to the physical page: [ 23.361815] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10776e [ 23.362120] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 23.362561] page_type: f5(slab) [ 23.362789] raw: 0bfffe0000000000 fff00000c56b5140 dead000000000122 0000000000000000 [ 23.362956] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000 [ 23.363049] page dumped because: kasan: bad access detected [ 23.363110] [ 23.363143] Memory state around the buggy address: [ 23.363239] fff00000c776df80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.363340] fff00000c776e000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 23.363467] >fff00000c776e080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc [ 23.363570] ^ [ 23.363656] fff00000c776e100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.363769] fff00000c776e180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.363907] ==================================================================
[ 14.533799] ================================================================== [ 14.534362] BUG: KASAN: slab-out-of-bounds in kmem_cache_oob+0x402/0x530 [ 14.535320] Read of size 1 at addr ffff8881033a80c8 by task kunit_try_catch/227 [ 14.535916] [ 14.536089] CPU: 0 UID: 0 PID: 227 Comm: kunit_try_catch Tainted: G B N 6.15.2-rc1 #1 PREEMPT(voluntary) [ 14.536496] Tainted: [B]=BAD_PAGE, [N]=TEST [ 14.536514] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 14.536539] Call Trace: [ 14.536575] <TASK> [ 14.536779] dump_stack_lvl+0x73/0xb0 [ 14.536834] print_report+0xd1/0x650 [ 14.536864] ? __virt_addr_valid+0x1db/0x2d0 [ 14.536889] ? kmem_cache_oob+0x402/0x530 [ 14.536909] ? kasan_complete_mode_report_info+0x2a/0x200 [ 14.536932] ? kmem_cache_oob+0x402/0x530 [ 14.536952] kasan_report+0x141/0x180 [ 14.536975] ? kmem_cache_oob+0x402/0x530 [ 14.536999] __asan_report_load1_noabort+0x18/0x20 [ 14.537020] kmem_cache_oob+0x402/0x530 [ 14.537038] ? trace_hardirqs_on+0x37/0xe0 [ 14.537066] ? __pfx_kmem_cache_oob+0x10/0x10 [ 14.537085] ? finish_task_switch.isra.0+0x153/0x700 [ 14.537112] ? __switch_to+0x5d9/0xf60 [ 14.537134] ? dequeue_task_fair+0x166/0x4e0 [ 14.537162] ? __pfx_read_tsc+0x10/0x10 [ 14.537182] ? ktime_get_ts64+0x86/0x230 [ 14.537209] kunit_try_run_case+0x1a5/0x480 [ 14.537235] ? __pfx_kunit_try_run_case+0x10/0x10 [ 14.537257] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 14.537281] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 14.537304] ? __kthread_parkme+0x82/0x180 [ 14.537327] ? preempt_count_sub+0x50/0x80 [ 14.537351] ? __pfx_kunit_try_run_case+0x10/0x10 [ 14.537375] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.537399] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 14.537422] kthread+0x337/0x6f0 [ 14.537439] ? trace_preempt_on+0x20/0xc0 [ 14.537462] ? __pfx_kthread+0x10/0x10 [ 14.537480] ? _raw_spin_unlock_irq+0x47/0x80 [ 14.537500] ? calculate_sigpending+0x7b/0xa0 [ 14.537523] ? __pfx_kthread+0x10/0x10 [ 14.537542] ret_from_fork+0x41/0x80 [ 14.537575] ? __pfx_kthread+0x10/0x10 [ 14.537597] ret_from_fork_asm+0x1a/0x30 [ 14.537628] </TASK> [ 14.537642] [ 14.548287] Allocated by task 227: [ 14.550998] kasan_save_stack+0x45/0x70 [ 14.551419] kasan_save_track+0x18/0x40 [ 14.552162] kasan_save_alloc_info+0x3b/0x50 [ 14.552398] __kasan_slab_alloc+0x91/0xa0 [ 14.552555] kmem_cache_alloc_noprof+0x123/0x3f0 [ 14.552816] kmem_cache_oob+0x157/0x530 [ 14.552981] kunit_try_run_case+0x1a5/0x480 [ 14.553159] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.553353] kthread+0x337/0x6f0 [ 14.553501] ret_from_fork+0x41/0x80 [ 14.553680] ret_from_fork_asm+0x1a/0x30 [ 14.553848] [ 14.553945] The buggy address belongs to the object at ffff8881033a8000 [ 14.553945] which belongs to the cache test_cache of size 200 [ 14.554356] The buggy address is located 0 bytes to the right of [ 14.554356] allocated 200-byte region [ffff8881033a8000, ffff8881033a80c8) [ 14.555084] [ 14.555219] The buggy address belongs to the physical page: [ 14.555722] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1033a8 [ 14.556242] flags: 0x200000000000000(node=0|zone=2) [ 14.556476] page_type: f5(slab) [ 14.556701] raw: 0200000000000000 ffff88810159ddc0 dead000000000122 0000000000000000 [ 14.556991] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000 [ 14.557231] page dumped because: kasan: bad access detected [ 14.557409] [ 14.557492] Memory state around the buggy address: [ 14.557717] ffff8881033a7f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 14.558596] ffff8881033a8000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 14.559203] >ffff8881033a8080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc [ 14.559485] ^ [ 14.559959] ffff8881033a8100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 14.560446] ffff8881033a8180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 14.560958] ==================================================================