Date
July 19, 2025, 11:12 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 15.757559] ================================================================== [ 15.757627] BUG: KASAN: slab-out-of-bounds in kmem_cache_oob+0x344/0x430 [ 15.757682] Read of size 1 at addr fff00000c77c40c8 by task kunit_try_catch/207 [ 15.757747] [ 15.757782] CPU: 1 UID: 0 PID: 207 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT [ 15.757879] Tainted: [B]=BAD_PAGE, [N]=TEST [ 15.757907] Hardware name: linux,dummy-virt (DT) [ 15.757940] Call trace: [ 15.758000] show_stack+0x20/0x38 (C) [ 15.758289] dump_stack_lvl+0x8c/0xd0 [ 15.758749] print_report+0x118/0x5d0 [ 15.758808] kasan_report+0xdc/0x128 [ 15.758862] __asan_report_load1_noabort+0x20/0x30 [ 15.759019] kmem_cache_oob+0x344/0x430 [ 15.759390] kunit_try_run_case+0x170/0x3f0 [ 15.759455] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 15.759510] kthread+0x328/0x630 [ 15.759551] ret_from_fork+0x10/0x20 [ 15.759600] [ 15.759620] Allocated by task 207: [ 15.759649] kasan_save_stack+0x3c/0x68 [ 15.759702] kasan_save_track+0x20/0x40 [ 15.759738] kasan_save_alloc_info+0x40/0x58 [ 15.759780] __kasan_slab_alloc+0xa8/0xb0 [ 15.759818] kmem_cache_alloc_noprof+0x10c/0x398 [ 15.759973] kmem_cache_oob+0x12c/0x430 [ 15.760303] kunit_try_run_case+0x170/0x3f0 [ 15.760351] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 15.760489] kthread+0x328/0x630 [ 15.760531] ret_from_fork+0x10/0x20 [ 15.760571] [ 15.760791] The buggy address belongs to the object at fff00000c77c4000 [ 15.760791] which belongs to the cache test_cache of size 200 [ 15.761117] The buggy address is located 0 bytes to the right of [ 15.761117] allocated 200-byte region [fff00000c77c4000, fff00000c77c40c8) [ 15.761205] [ 15.761271] The buggy address belongs to the physical page: [ 15.761318] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1077c4 [ 15.761374] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 15.761423] page_type: f5(slab) [ 15.761470] raw: 0bfffe0000000000 fff00000c5b33500 dead000000000122 0000000000000000 [ 15.761519] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000 [ 15.761637] page dumped because: kasan: bad access detected [ 15.761953] [ 15.762125] Memory state around the buggy address: [ 15.762164] fff00000c77c3f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 15.762269] fff00000c77c4000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 15.762320] >fff00000c77c4080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc [ 15.762382] ^ [ 15.762429] fff00000c77c4100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.762471] fff00000c77c4180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.762510] ==================================================================
[ 12.664814] ================================================================== [ 12.665311] BUG: KASAN: slab-out-of-bounds in kmem_cache_oob+0x402/0x530 [ 12.665618] Read of size 1 at addr ffff8881027ed0c8 by task kunit_try_catch/224 [ 12.666094] [ 12.666214] CPU: 1 UID: 0 PID: 224 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT(voluntary) [ 12.666257] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.666268] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.666288] Call Trace: [ 12.666300] <TASK> [ 12.666315] dump_stack_lvl+0x73/0xb0 [ 12.666345] print_report+0xd1/0x610 [ 12.666366] ? __virt_addr_valid+0x1db/0x2d0 [ 12.666388] ? kmem_cache_oob+0x402/0x530 [ 12.666633] ? kasan_complete_mode_report_info+0x2a/0x200 [ 12.666655] ? kmem_cache_oob+0x402/0x530 [ 12.666677] kasan_report+0x141/0x180 [ 12.666698] ? kmem_cache_oob+0x402/0x530 [ 12.666723] __asan_report_load1_noabort+0x18/0x20 [ 12.666746] kmem_cache_oob+0x402/0x530 [ 12.666766] ? trace_hardirqs_on+0x37/0xe0 [ 12.666789] ? __pfx_kmem_cache_oob+0x10/0x10 [ 12.666810] ? finish_task_switch.isra.0+0x153/0x700 [ 12.666832] ? __switch_to+0x47/0xf50 [ 12.666859] ? __pfx_read_tsc+0x10/0x10 [ 12.666879] ? ktime_get_ts64+0x86/0x230 [ 12.666902] kunit_try_run_case+0x1a5/0x480 [ 12.666926] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.666947] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 12.666970] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 12.666992] ? __kthread_parkme+0x82/0x180 [ 12.667026] ? preempt_count_sub+0x50/0x80 [ 12.667048] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.667071] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.667092] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.667114] kthread+0x337/0x6f0 [ 12.667133] ? trace_preempt_on+0x20/0xc0 [ 12.667153] ? __pfx_kthread+0x10/0x10 [ 12.667172] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.667192] ? calculate_sigpending+0x7b/0xa0 [ 12.667215] ? __pfx_kthread+0x10/0x10 [ 12.667235] ret_from_fork+0x116/0x1d0 [ 12.667253] ? __pfx_kthread+0x10/0x10 [ 12.667272] ret_from_fork_asm+0x1a/0x30 [ 12.667301] </TASK> [ 12.667311] [ 12.674722] Allocated by task 224: [ 12.674896] kasan_save_stack+0x45/0x70 [ 12.675067] kasan_save_track+0x18/0x40 [ 12.675262] kasan_save_alloc_info+0x3b/0x50 [ 12.675492] __kasan_slab_alloc+0x91/0xa0 [ 12.675681] kmem_cache_alloc_noprof+0x123/0x3f0 [ 12.675837] kmem_cache_oob+0x157/0x530 [ 12.675974] kunit_try_run_case+0x1a5/0x480 [ 12.676191] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.676572] kthread+0x337/0x6f0 [ 12.676743] ret_from_fork+0x116/0x1d0 [ 12.676927] ret_from_fork_asm+0x1a/0x30 [ 12.677125] [ 12.677195] The buggy address belongs to the object at ffff8881027ed000 [ 12.677195] which belongs to the cache test_cache of size 200 [ 12.677916] The buggy address is located 0 bytes to the right of [ 12.677916] allocated 200-byte region [ffff8881027ed000, ffff8881027ed0c8) [ 12.678630] [ 12.678719] The buggy address belongs to the physical page: [ 12.678942] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1027ed [ 12.679265] flags: 0x200000000000000(node=0|zone=2) [ 12.679558] page_type: f5(slab) [ 12.679718] raw: 0200000000000000 ffff888101da2b40 dead000000000122 0000000000000000 [ 12.680032] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000 [ 12.680331] page dumped because: kasan: bad access detected [ 12.680570] [ 12.680665] Memory state around the buggy address: [ 12.680874] ffff8881027ecf80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.681127] ffff8881027ed000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 12.681344] >ffff8881027ed080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc [ 12.681655] ^ [ 12.681911] ffff8881027ed100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.682235] ffff8881027ed180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.682616] ==================================================================