Date
July 18, 2025, 1:09 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 31.982920] ================================================================== [ 31.982978] BUG: KASAN: slab-out-of-bounds in kmem_cache_oob+0x344/0x430 [ 31.983066] Read of size 1 at addr fff00000c3f1c0c8 by task kunit_try_catch/238 [ 31.983443] [ 31.983478] CPU: 0 UID: 0 PID: 238 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6-next-20250718 #1 PREEMPT [ 31.983562] Tainted: [B]=BAD_PAGE, [N]=TEST [ 31.983589] Hardware name: linux,dummy-virt (DT) [ 31.984000] Call trace: [ 31.984099] show_stack+0x20/0x38 (C) [ 31.984470] dump_stack_lvl+0x8c/0xd0 [ 31.984800] print_report+0x118/0x5e8 [ 31.985507] kasan_report+0xdc/0x128 [ 31.985594] __asan_report_load1_noabort+0x20/0x30 [ 31.985678] kmem_cache_oob+0x344/0x430 [ 31.985760] kunit_try_run_case+0x170/0x3f0 [ 31.986009] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 31.986145] kthread+0x328/0x630 [ 31.986258] ret_from_fork+0x10/0x20 [ 31.986337] [ 31.986367] Allocated by task 238: [ 31.986927] kasan_save_stack+0x3c/0x68 [ 31.987045] kasan_save_track+0x20/0x40 [ 31.987144] kasan_save_alloc_info+0x40/0x58 [ 31.987317] __kasan_slab_alloc+0xa8/0xb0 [ 31.987578] kmem_cache_alloc_noprof+0x10c/0x398 [ 31.987889] kmem_cache_oob+0x12c/0x430 [ 31.988037] kunit_try_run_case+0x170/0x3f0 [ 31.988177] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 31.988272] kthread+0x328/0x630 [ 31.988411] ret_from_fork+0x10/0x20 [ 31.988498] [ 31.988598] The buggy address belongs to the object at fff00000c3f1c000 [ 31.988598] which belongs to the cache test_cache of size 200 [ 31.988694] The buggy address is located 0 bytes to the right of [ 31.988694] allocated 200-byte region [fff00000c3f1c000, fff00000c3f1c0c8) [ 31.988832] [ 31.988854] The buggy address belongs to the physical page: [ 31.988903] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103f1c [ 31.989109] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 31.989332] page_type: f5(slab) [ 31.989412] raw: 0bfffe0000000000 fff00000c4743500 dead000000000122 0000000000000000 [ 31.989779] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000 [ 31.989883] page dumped because: kasan: bad access detected [ 31.989962] [ 31.989998] Memory state around the buggy address: [ 31.990047] fff00000c3f1bf80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 31.990237] fff00000c3f1c000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 31.990709] >fff00000c3f1c080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc [ 31.991059] ^ [ 31.991299] fff00000c3f1c100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 31.991364] fff00000c3f1c180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 31.991653] ==================================================================
[ 25.487388] ================================================================== [ 25.488593] BUG: KASAN: slab-out-of-bounds in kmem_cache_oob+0x402/0x530 [ 25.489883] Read of size 1 at addr ffff8881053be0c8 by task kunit_try_catch/255 [ 25.490359] [ 25.490541] CPU: 0 UID: 0 PID: 255 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6-next-20250718 #1 PREEMPT(voluntary) [ 25.490647] Tainted: [B]=BAD_PAGE, [N]=TEST [ 25.490660] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 25.490683] Call Trace: [ 25.490723] <TASK> [ 25.490742] dump_stack_lvl+0x73/0xb0 [ 25.490778] print_report+0xd1/0x640 [ 25.490803] ? __virt_addr_valid+0x1db/0x2d0 [ 25.490948] ? kmem_cache_oob+0x402/0x530 [ 25.490981] ? kasan_complete_mode_report_info+0x2a/0x200 [ 25.491006] ? kmem_cache_oob+0x402/0x530 [ 25.491028] kasan_report+0x141/0x180 [ 25.491049] ? kmem_cache_oob+0x402/0x530 [ 25.491075] __asan_report_load1_noabort+0x18/0x20 [ 25.491098] kmem_cache_oob+0x402/0x530 [ 25.491118] ? trace_hardirqs_on+0x37/0xe0 [ 25.491143] ? __pfx_kmem_cache_oob+0x10/0x10 [ 25.491163] ? finish_task_switch.isra.0+0x153/0x700 [ 25.491185] ? __switch_to+0x47/0xf80 [ 25.491215] ? __pfx_read_tsc+0x10/0x10 [ 25.491246] ? ktime_get_ts64+0x86/0x230 [ 25.491271] kunit_try_run_case+0x1a5/0x480 [ 25.491297] ? __pfx_kunit_try_run_case+0x10/0x10 [ 25.491318] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 25.491352] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 25.491384] ? __kthread_parkme+0x82/0x180 [ 25.491404] ? preempt_count_sub+0x50/0x80 [ 25.491425] ? __pfx_kunit_try_run_case+0x10/0x10 [ 25.491447] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 25.491469] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 25.491491] kthread+0x337/0x6f0 [ 25.491509] ? trace_preempt_on+0x20/0xc0 [ 25.491531] ? __pfx_kthread+0x10/0x10 [ 25.491550] ? _raw_spin_unlock_irq+0x47/0x80 [ 25.491579] ? calculate_sigpending+0x7b/0xa0 [ 25.491602] ? __pfx_kthread+0x10/0x10 [ 25.491622] ret_from_fork+0x116/0x1d0 [ 25.491640] ? __pfx_kthread+0x10/0x10 [ 25.491659] ret_from_fork_asm+0x1a/0x30 [ 25.491689] </TASK> [ 25.491700] [ 25.503965] Allocated by task 255: [ 25.504100] kasan_save_stack+0x45/0x70 [ 25.504344] kasan_save_track+0x18/0x40 [ 25.504542] kasan_save_alloc_info+0x3b/0x50 [ 25.504860] __kasan_slab_alloc+0x91/0xa0 [ 25.505298] kmem_cache_alloc_noprof+0x123/0x3f0 [ 25.505639] kmem_cache_oob+0x157/0x530 [ 25.505775] kunit_try_run_case+0x1a5/0x480 [ 25.506257] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 25.506741] kthread+0x337/0x6f0 [ 25.506948] ret_from_fork+0x116/0x1d0 [ 25.507477] ret_from_fork_asm+0x1a/0x30 [ 25.507755] [ 25.507958] The buggy address belongs to the object at ffff8881053be000 [ 25.507958] which belongs to the cache test_cache of size 200 [ 25.508619] The buggy address is located 0 bytes to the right of [ 25.508619] allocated 200-byte region [ffff8881053be000, ffff8881053be0c8) [ 25.509460] [ 25.509624] The buggy address belongs to the physical page: [ 25.510268] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1053be [ 25.510979] flags: 0x200000000000000(node=0|zone=2) [ 25.511146] page_type: f5(slab) [ 25.511278] raw: 0200000000000000 ffff888100a0b3c0 dead000000000122 0000000000000000 [ 25.511504] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000 [ 25.511721] page dumped because: kasan: bad access detected [ 25.511912] [ 25.512011] Memory state around the buggy address: [ 25.512427] ffff8881053bdf80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.512667] ffff8881053be000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 25.512924] >ffff8881053be080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc [ 25.513206] ^ [ 25.513385] ffff8881053be100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.513700] ffff8881053be180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.514021] ==================================================================