Date
May 15, 2025, 10:38 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 18.582185] ================================================================== [ 18.582244] BUG: KASAN: slab-out-of-bounds in kmem_cache_oob+0x344/0x430 [ 18.582311] Read of size 1 at addr fff00000c17330c8 by task kunit_try_catch/207 [ 18.582408] [ 18.582452] CPU: 0 UID: 0 PID: 207 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc6-next-20250515 #1 PREEMPT [ 18.582565] Tainted: [B]=BAD_PAGE, [N]=TEST [ 18.582623] Hardware name: linux,dummy-virt (DT) [ 18.582700] Call trace: [ 18.582745] show_stack+0x20/0x38 (C) [ 18.582800] dump_stack_lvl+0x8c/0xd0 [ 18.582893] print_report+0x118/0x608 [ 18.582971] kasan_report+0xdc/0x128 [ 18.583018] __asan_report_load1_noabort+0x20/0x30 [ 18.583083] kmem_cache_oob+0x344/0x430 [ 18.583190] kunit_try_run_case+0x170/0x3f0 [ 18.583241] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.583312] kthread+0x328/0x630 [ 18.583366] ret_from_fork+0x10/0x20 [ 18.583417] [ 18.583435] Allocated by task 207: [ 18.583466] kasan_save_stack+0x3c/0x68 [ 18.583505] kasan_save_track+0x20/0x40 [ 18.583542] kasan_save_alloc_info+0x40/0x58 [ 18.583784] __kasan_slab_alloc+0xa8/0xb0 [ 18.583846] kmem_cache_alloc_noprof+0x10c/0x3a0 [ 18.583955] kmem_cache_oob+0x12c/0x430 [ 18.583991] kunit_try_run_case+0x170/0x3f0 [ 18.584027] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.584085] kthread+0x328/0x630 [ 18.584120] ret_from_fork+0x10/0x20 [ 18.584166] [ 18.584187] The buggy address belongs to the object at fff00000c1733000 [ 18.584187] which belongs to the cache test_cache of size 200 [ 18.584282] The buggy address is located 0 bytes to the right of [ 18.584282] allocated 200-byte region [fff00000c1733000, fff00000c17330c8) [ 18.584347] [ 18.584395] The buggy address belongs to the physical page: [ 18.584431] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x101733 [ 18.584534] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 18.584587] page_type: f5(slab) [ 18.584645] raw: 0bfffe0000000000 fff00000c1736000 dead000000000122 0000000000000000 [ 18.584730] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000 [ 18.584795] page dumped because: kasan: bad access detected [ 18.584828] [ 18.584845] Memory state around the buggy address: [ 18.585015] fff00000c1732f80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 18.585061] fff00000c1733000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 18.585102] >fff00000c1733080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc [ 18.585151] ^ [ 18.585196] fff00000c1733100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.585253] fff00000c1733180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.585310] ==================================================================
[ 14.796769] ================================================================== [ 14.797743] BUG: KASAN: slab-out-of-bounds in kmem_cache_oob+0x402/0x530 [ 14.798207] Read of size 1 at addr ffff888102b5e0c8 by task kunit_try_catch/225 [ 14.798599] [ 14.798813] CPU: 0 UID: 0 PID: 225 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc6-next-20250515 #1 PREEMPT(voluntary) [ 14.798960] Tainted: [B]=BAD_PAGE, [N]=TEST [ 14.798982] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 14.799039] Call Trace: [ 14.799065] <TASK> [ 14.799098] dump_stack_lvl+0x73/0xb0 [ 14.799162] print_report+0xd1/0x650 [ 14.799210] ? __virt_addr_valid+0x1db/0x2d0 [ 14.799269] ? kmem_cache_oob+0x402/0x530 [ 14.799308] ? kasan_complete_mode_report_info+0x2a/0x200 [ 14.799343] ? kmem_cache_oob+0x402/0x530 [ 14.799375] kasan_report+0x141/0x180 [ 14.799415] ? kmem_cache_oob+0x402/0x530 [ 14.799488] __asan_report_load1_noabort+0x18/0x20 [ 14.799528] kmem_cache_oob+0x402/0x530 [ 14.799576] ? trace_hardirqs_on+0x37/0xe0 [ 14.799622] ? __pfx_kmem_cache_oob+0x10/0x10 [ 14.799662] ? finish_task_switch.isra.0+0x153/0x700 [ 14.799699] ? __switch_to+0x47/0xf50 [ 14.799759] ? __pfx_read_tsc+0x10/0x10 [ 14.799797] ? ktime_get_ts64+0x86/0x230 [ 14.799841] kunit_try_run_case+0x1a5/0x480 [ 14.799894] ? __pfx_kunit_try_run_case+0x10/0x10 [ 14.799937] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 14.799977] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 14.800008] ? __kthread_parkme+0x82/0x180 [ 14.800031] ? preempt_count_sub+0x50/0x80 [ 14.800053] ? __pfx_kunit_try_run_case+0x10/0x10 [ 14.800077] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.800099] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 14.800120] kthread+0x337/0x6f0 [ 14.800139] ? trace_preempt_on+0x20/0xc0 [ 14.800160] ? __pfx_kthread+0x10/0x10 [ 14.800180] ? _raw_spin_unlock_irq+0x47/0x80 [ 14.800200] ? calculate_sigpending+0x7b/0xa0 [ 14.800244] ? __pfx_kthread+0x10/0x10 [ 14.800268] ret_from_fork+0x116/0x1d0 [ 14.800286] ? __pfx_kthread+0x10/0x10 [ 14.800306] ret_from_fork_asm+0x1a/0x30 [ 14.800339] </TASK> [ 14.800352] [ 14.812514] Allocated by task 225: [ 14.812928] kasan_save_stack+0x45/0x70 [ 14.813131] kasan_save_track+0x18/0x40 [ 14.813516] kasan_save_alloc_info+0x3b/0x50 [ 14.813796] __kasan_slab_alloc+0x91/0xa0 [ 14.813969] kmem_cache_alloc_noprof+0x123/0x3f0 [ 14.814131] kmem_cache_oob+0x157/0x530 [ 14.814467] kunit_try_run_case+0x1a5/0x480 [ 14.814859] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.815272] kthread+0x337/0x6f0 [ 14.815570] ret_from_fork+0x116/0x1d0 [ 14.816168] ret_from_fork_asm+0x1a/0x30 [ 14.816583] [ 14.816723] The buggy address belongs to the object at ffff888102b5e000 [ 14.816723] which belongs to the cache test_cache of size 200 [ 14.817108] The buggy address is located 0 bytes to the right of [ 14.817108] allocated 200-byte region [ffff888102b5e000, ffff888102b5e0c8) [ 14.817718] [ 14.817826] The buggy address belongs to the physical page: [ 14.818107] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102b5e [ 14.818546] flags: 0x200000000000000(node=0|zone=2) [ 14.818764] page_type: f5(slab) [ 14.819024] raw: 0200000000000000 ffff8881009b3780 dead000000000122 0000000000000000 [ 14.819400] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000 [ 14.819674] page dumped because: kasan: bad access detected [ 14.819872] [ 14.819972] Memory state around the buggy address: [ 14.820301] ffff888102b5df80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 14.820730] ffff888102b5e000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 14.821180] >ffff888102b5e080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc [ 14.821635] ^ [ 14.822471] ffff888102b5e100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 14.823081] ffff888102b5e180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 14.823431] ==================================================================