Date
June 18, 2025, 6:43 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 21.724750] ================================================================== [ 21.724897] BUG: KASAN: slab-out-of-bounds in kmem_cache_oob+0x344/0x430 [ 21.724984] Read of size 1 at addr fff00000c770c0c8 by task kunit_try_catch/217 [ 21.725064] [ 21.725114] CPU: 0 UID: 0 PID: 217 Comm: kunit_try_catch Tainted: G B W N 6.16.0-rc2-next-20250618 #1 PREEMPT [ 21.725214] Tainted: [B]=BAD_PAGE, [W]=WARN, [N]=TEST [ 21.725246] Hardware name: linux,dummy-virt (DT) [ 21.725281] Call trace: [ 21.725306] show_stack+0x20/0x38 (C) [ 21.725365] dump_stack_lvl+0x8c/0xd0 [ 21.725419] print_report+0x118/0x608 [ 21.725469] kasan_report+0xdc/0x128 [ 21.725516] __asan_report_load1_noabort+0x20/0x30 [ 21.725570] kmem_cache_oob+0x344/0x430 [ 21.725617] kunit_try_run_case+0x170/0x3f0 [ 21.725666] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 21.725721] kthread+0x328/0x630 [ 21.725767] ret_from_fork+0x10/0x20 [ 21.725818] [ 21.725837] Allocated by task 217: [ 21.725868] kasan_save_stack+0x3c/0x68 [ 21.725913] kasan_save_track+0x20/0x40 [ 21.725954] kasan_save_alloc_info+0x40/0x58 [ 21.725993] __kasan_slab_alloc+0xa8/0xb0 [ 21.726044] kmem_cache_alloc_noprof+0x10c/0x398 [ 21.726090] kmem_cache_oob+0x12c/0x430 [ 21.726126] kunit_try_run_case+0x170/0x3f0 [ 21.726164] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 21.726205] kthread+0x328/0x630 [ 21.726238] ret_from_fork+0x10/0x20 [ 21.726273] [ 21.726294] The buggy address belongs to the object at fff00000c770c000 [ 21.726294] which belongs to the cache test_cache of size 200 [ 21.726353] The buggy address is located 0 bytes to the right of [ 21.726353] allocated 200-byte region [fff00000c770c000, fff00000c770c0c8) [ 21.726416] [ 21.726439] The buggy address belongs to the physical page: [ 21.726470] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10770c [ 21.726528] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 21.726582] page_type: f5(slab) [ 21.726628] raw: 0bfffe0000000000 fff00000c5bedb40 dead000000000122 0000000000000000 [ 21.726680] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000 [ 21.726722] page dumped because: kasan: bad access detected [ 21.726755] [ 21.726772] Memory state around the buggy address: [ 21.726807] fff00000c770bf80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.726853] fff00000c770c000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 21.726897] >fff00000c770c080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc [ 21.726936] ^ [ 21.726972] fff00000c770c100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.727016] fff00000c770c180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.727476] ==================================================================
[ 11.791065] ================================================================== [ 11.791684] BUG: KASAN: slab-out-of-bounds in kmem_cache_oob+0x402/0x530 [ 11.792063] Read of size 1 at addr ffff888102ca10c8 by task kunit_try_catch/233 [ 11.792401] [ 11.792522] CPU: 1 UID: 0 PID: 233 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc2-next-20250618 #1 PREEMPT(voluntary) [ 11.792631] Tainted: [B]=BAD_PAGE, [N]=TEST [ 11.792643] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 11.792669] Call Trace: [ 11.792681] <TASK> [ 11.792697] dump_stack_lvl+0x73/0xb0 [ 11.792725] print_report+0xd1/0x650 [ 11.792745] ? __virt_addr_valid+0x1db/0x2d0 [ 11.792767] ? kmem_cache_oob+0x402/0x530 [ 11.792788] ? kasan_complete_mode_report_info+0x2a/0x200 [ 11.792812] ? kmem_cache_oob+0x402/0x530 [ 11.792858] kasan_report+0x141/0x180 [ 11.792880] ? kmem_cache_oob+0x402/0x530 [ 11.792905] __asan_report_load1_noabort+0x18/0x20 [ 11.792927] kmem_cache_oob+0x402/0x530 [ 11.792947] ? trace_hardirqs_on+0x37/0xe0 [ 11.792970] ? __pfx_kmem_cache_oob+0x10/0x10 [ 11.792990] ? finish_task_switch.isra.0+0x153/0x700 [ 11.793012] ? __switch_to+0x47/0xf50 [ 11.793039] ? __pfx_read_tsc+0x10/0x10 [ 11.793060] ? ktime_get_ts64+0x86/0x230 [ 11.793084] kunit_try_run_case+0x1a5/0x480 [ 11.793106] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.793127] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 11.793149] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 11.793170] ? __kthread_parkme+0x82/0x180 [ 11.793189] ? preempt_count_sub+0x50/0x80 [ 11.793221] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.793243] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.793264] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 11.793285] kthread+0x337/0x6f0 [ 11.793303] ? trace_preempt_on+0x20/0xc0 [ 11.793324] ? __pfx_kthread+0x10/0x10 [ 11.793343] ? _raw_spin_unlock_irq+0x47/0x80 [ 11.793362] ? calculate_sigpending+0x7b/0xa0 [ 11.793384] ? __pfx_kthread+0x10/0x10 [ 11.793404] ret_from_fork+0x116/0x1d0 [ 11.793422] ? __pfx_kthread+0x10/0x10 [ 11.793442] ret_from_fork_asm+0x1a/0x30 [ 11.793471] </TASK> [ 11.793481] [ 11.803375] Allocated by task 233: [ 11.803554] kasan_save_stack+0x45/0x70 [ 11.803781] kasan_save_track+0x18/0x40 [ 11.803957] kasan_save_alloc_info+0x3b/0x50 [ 11.804134] __kasan_slab_alloc+0x91/0xa0 [ 11.804967] kmem_cache_alloc_noprof+0x123/0x3f0 [ 11.805179] kmem_cache_oob+0x157/0x530 [ 11.805525] kunit_try_run_case+0x1a5/0x480 [ 11.805719] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.805937] kthread+0x337/0x6f0 [ 11.806050] ret_from_fork+0x116/0x1d0 [ 11.806385] ret_from_fork_asm+0x1a/0x30 [ 11.806672] [ 11.807007] The buggy address belongs to the object at ffff888102ca1000 [ 11.807007] which belongs to the cache test_cache of size 200 [ 11.807589] The buggy address is located 0 bytes to the right of [ 11.807589] allocated 200-byte region [ffff888102ca1000, ffff888102ca10c8) [ 11.808277] [ 11.808564] The buggy address belongs to the physical page: [ 11.808854] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102ca1 [ 11.809280] flags: 0x200000000000000(node=0|zone=2) [ 11.809491] page_type: f5(slab) [ 11.809884] raw: 0200000000000000 ffff88810108ea00 dead000000000122 0000000000000000 [ 11.810339] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000 [ 11.810796] page dumped because: kasan: bad access detected [ 11.811028] [ 11.811101] Memory state around the buggy address: [ 11.811441] ffff888102ca0f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.811700] ffff888102ca1000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 11.812010] >ffff888102ca1080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc [ 11.812676] ^ [ 11.812874] ffff888102ca1100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.813362] ffff888102ca1180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.813804] ==================================================================