Date
May 12, 2025, 11:48 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 17.403549] ================================================================== [ 17.403669] BUG: KASAN: slab-out-of-bounds in kmem_cache_oob+0x344/0x430 [ 17.403783] Read of size 1 at addr fff00000c79480c8 by task kunit_try_catch/207 [ 17.403891] [ 17.403954] CPU: 1 UID: 0 PID: 207 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc6-next-20250512 #1 PREEMPT [ 17.404155] Tainted: [B]=BAD_PAGE, [N]=TEST [ 17.404217] Hardware name: linux,dummy-virt (DT) [ 17.404285] Call trace: [ 17.404331] show_stack+0x20/0x38 (C) [ 17.404439] dump_stack_lvl+0x8c/0xd0 [ 17.404545] print_report+0x118/0x608 [ 17.404646] kasan_report+0xdc/0x128 [ 17.404746] __asan_report_load1_noabort+0x20/0x30 [ 17.404859] kmem_cache_oob+0x344/0x430 [ 17.404966] kunit_try_run_case+0x170/0x3f0 [ 17.405075] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 17.405178] kthread+0x328/0x630 [ 17.405393] ret_from_fork+0x10/0x20 [ 17.405506] [ 17.405543] Allocated by task 207: [ 17.405847] kasan_save_stack+0x3c/0x68 [ 17.405952] kasan_save_track+0x20/0x40 [ 17.406035] kasan_save_alloc_info+0x40/0x58 [ 17.406132] __kasan_slab_alloc+0xa8/0xb0 [ 17.406198] kmem_cache_alloc_noprof+0x10c/0x3a0 [ 17.406277] kmem_cache_oob+0x12c/0x430 [ 17.406559] kunit_try_run_case+0x170/0x3f0 [ 17.406646] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 17.406723] kthread+0x328/0x630 [ 17.406792] ret_from_fork+0x10/0x20 [ 17.406864] [ 17.406947] The buggy address belongs to the object at fff00000c7948000 [ 17.406947] which belongs to the cache test_cache of size 200 [ 17.407176] The buggy address is located 0 bytes to the right of [ 17.407176] allocated 200-byte region [fff00000c7948000, fff00000c79480c8) [ 17.407322] [ 17.407414] The buggy address belongs to the physical page: [ 17.407642] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107948 [ 17.407839] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 17.407946] page_type: f5(slab) [ 17.408033] raw: 0bfffe0000000000 fff00000c1096780 dead000000000122 0000000000000000 [ 17.408382] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000 [ 17.408819] page dumped because: kasan: bad access detected [ 17.408897] [ 17.408939] Memory state around the buggy address: [ 17.409014] fff00000c7947f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.409418] fff00000c7948000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 17.409736] >fff00000c7948080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc [ 17.409822] ^ [ 17.410096] fff00000c7948100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.410522] fff00000c7948180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.410637] ==================================================================
[ 17.487534] ================================================================== [ 17.488088] BUG: KASAN: slab-out-of-bounds in kmem_cache_oob+0x402/0x530 [ 17.488493] Read of size 1 at addr ffff888102b540c8 by task kunit_try_catch/224 [ 17.488844] [ 17.489109] CPU: 1 UID: 0 PID: 224 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc6-next-20250512 #1 PREEMPT(voluntary) [ 17.489215] Tainted: [B]=BAD_PAGE, [N]=TEST [ 17.489237] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 17.489289] Call Trace: [ 17.489319] <TASK> [ 17.489354] dump_stack_lvl+0x73/0xb0 [ 17.489421] print_report+0xd1/0x650 [ 17.489468] ? __virt_addr_valid+0x1db/0x2d0 [ 17.489513] ? kmem_cache_oob+0x402/0x530 [ 17.489552] ? kasan_complete_mode_report_info+0x2a/0x200 [ 17.489595] ? kmem_cache_oob+0x402/0x530 [ 17.489627] kasan_report+0x141/0x180 [ 17.489661] ? kmem_cache_oob+0x402/0x530 [ 17.489703] __asan_report_load1_noabort+0x18/0x20 [ 17.489742] kmem_cache_oob+0x402/0x530 [ 17.489779] ? trace_hardirqs_on+0x37/0xe0 [ 17.489830] ? __pfx_kmem_cache_oob+0x10/0x10 [ 17.489871] ? finish_task_switch.isra.0+0x153/0x700 [ 17.489918] ? __switch_to+0x47/0xf50 [ 17.489975] ? __pfx_read_tsc+0x10/0x10 [ 17.490066] ? ktime_get_ts64+0x86/0x230 [ 17.490109] kunit_try_run_case+0x1a5/0x480 [ 17.490139] ? __pfx_kunit_try_run_case+0x10/0x10 [ 17.490163] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 17.490188] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 17.490211] ? __kthread_parkme+0x82/0x180 [ 17.490235] ? preempt_count_sub+0x50/0x80 [ 17.490278] ? __pfx_kunit_try_run_case+0x10/0x10 [ 17.490308] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 17.490333] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 17.490357] kthread+0x337/0x6f0 [ 17.490378] ? trace_preempt_on+0x20/0xc0 [ 17.490401] ? __pfx_kthread+0x10/0x10 [ 17.490423] ? _raw_spin_unlock_irq+0x47/0x80 [ 17.490444] ? calculate_sigpending+0x7b/0xa0 [ 17.490470] ? __pfx_kthread+0x10/0x10 [ 17.490492] ret_from_fork+0x116/0x1d0 [ 17.490512] ? __pfx_kthread+0x10/0x10 [ 17.490533] ret_from_fork_asm+0x1a/0x30 [ 17.490565] </TASK> [ 17.490580] [ 17.502062] Allocated by task 224: [ 17.502446] kasan_save_stack+0x45/0x70 [ 17.502896] kasan_save_track+0x18/0x40 [ 17.503163] kasan_save_alloc_info+0x3b/0x50 [ 17.503371] __kasan_slab_alloc+0x91/0xa0 [ 17.503627] kmem_cache_alloc_noprof+0x123/0x3f0 [ 17.503850] kmem_cache_oob+0x157/0x530 [ 17.504182] kunit_try_run_case+0x1a5/0x480 [ 17.504433] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 17.504817] kthread+0x337/0x6f0 [ 17.505070] ret_from_fork+0x116/0x1d0 [ 17.505303] ret_from_fork_asm+0x1a/0x30 [ 17.505623] [ 17.505824] The buggy address belongs to the object at ffff888102b54000 [ 17.505824] which belongs to the cache test_cache of size 200 [ 17.506307] The buggy address is located 0 bytes to the right of [ 17.506307] allocated 200-byte region [ffff888102b54000, ffff888102b540c8) [ 17.507150] [ 17.507359] The buggy address belongs to the physical page: [ 17.507706] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102b54 [ 17.508166] flags: 0x200000000000000(node=0|zone=2) [ 17.508571] page_type: f5(slab) [ 17.508797] raw: 0200000000000000 ffff8881017c2c80 dead000000000122 0000000000000000 [ 17.509238] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000 [ 17.509625] page dumped because: kasan: bad access detected [ 17.509931] [ 17.510040] Memory state around the buggy address: [ 17.510245] ffff888102b53f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.510785] ffff888102b54000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 17.511197] >ffff888102b54080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc [ 17.511472] ^ [ 17.511926] ffff888102b54100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.512450] ffff888102b54180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.512856] ==================================================================