Date
July 15, 2025, 11:09 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 16.076164] ================================================================== [ 16.076238] BUG: KASAN: slab-out-of-bounds in kmem_cache_oob+0x344/0x430 [ 16.076294] Read of size 1 at addr fff00000c594d0c8 by task kunit_try_catch/208 [ 16.076345] [ 16.076380] CPU: 1 UID: 0 PID: 208 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT [ 16.076466] Tainted: [B]=BAD_PAGE, [N]=TEST [ 16.076493] Hardware name: linux,dummy-virt (DT) [ 16.076526] Call trace: [ 16.076546] show_stack+0x20/0x38 (C) [ 16.076597] dump_stack_lvl+0x8c/0xd0 [ 16.076644] print_report+0x118/0x5d0 [ 16.076689] kasan_report+0xdc/0x128 [ 16.076735] __asan_report_load1_noabort+0x20/0x30 [ 16.076786] kmem_cache_oob+0x344/0x430 [ 16.076829] kunit_try_run_case+0x170/0x3f0 [ 16.076877] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.076930] kthread+0x328/0x630 [ 16.076986] ret_from_fork+0x10/0x20 [ 16.077238] [ 16.077346] Allocated by task 208: [ 16.077649] kasan_save_stack+0x3c/0x68 [ 16.077814] kasan_save_track+0x20/0x40 [ 16.077912] kasan_save_alloc_info+0x40/0x58 [ 16.078002] __kasan_slab_alloc+0xa8/0xb0 [ 16.078092] kmem_cache_alloc_noprof+0x10c/0x398 [ 16.078213] kmem_cache_oob+0x12c/0x430 [ 16.078291] kunit_try_run_case+0x170/0x3f0 [ 16.078364] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.078428] kthread+0x328/0x630 [ 16.078458] ret_from_fork+0x10/0x20 [ 16.078905] [ 16.078974] The buggy address belongs to the object at fff00000c594d000 [ 16.078974] which belongs to the cache test_cache of size 200 [ 16.079097] The buggy address is located 0 bytes to the right of [ 16.079097] allocated 200-byte region [fff00000c594d000, fff00000c594d0c8) [ 16.079259] [ 16.079305] The buggy address belongs to the physical page: [ 16.079354] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10594d [ 16.079620] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 16.079917] page_type: f5(slab) [ 16.079976] raw: 0bfffe0000000000 fff00000c590f3c0 dead000000000122 0000000000000000 [ 16.080154] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000 [ 16.080293] page dumped because: kasan: bad access detected [ 16.080345] [ 16.080362] Memory state around the buggy address: [ 16.080429] fff00000c594cf80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.080837] fff00000c594d000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 16.080890] >fff00000c594d080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc [ 16.080967] ^ [ 16.081002] fff00000c594d100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.081044] fff00000c594d180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.081083] ==================================================================
[ 13.207453] ================================================================== [ 13.207942] BUG: KASAN: slab-out-of-bounds in kmem_cache_oob+0x402/0x530 [ 13.208254] Read of size 1 at addr ffff8881038d40c8 by task kunit_try_catch/224 [ 13.208766] [ 13.208887] CPU: 1 UID: 0 PID: 224 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT(voluntary) [ 13.209140] Tainted: [B]=BAD_PAGE, [N]=TEST [ 13.209154] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 13.209186] Call Trace: [ 13.209197] <TASK> [ 13.209212] dump_stack_lvl+0x73/0xb0 [ 13.209244] print_report+0xd1/0x610 [ 13.209266] ? __virt_addr_valid+0x1db/0x2d0 [ 13.209291] ? kmem_cache_oob+0x402/0x530 [ 13.209313] ? kasan_complete_mode_report_info+0x2a/0x200 [ 13.209378] ? kmem_cache_oob+0x402/0x530 [ 13.209402] kasan_report+0x141/0x180 [ 13.209424] ? kmem_cache_oob+0x402/0x530 [ 13.209488] __asan_report_load1_noabort+0x18/0x20 [ 13.209514] kmem_cache_oob+0x402/0x530 [ 13.209535] ? trace_hardirqs_on+0x37/0xe0 [ 13.209560] ? __pfx_kmem_cache_oob+0x10/0x10 [ 13.209582] ? finish_task_switch.isra.0+0x153/0x700 [ 13.209606] ? __switch_to+0x47/0xf50 [ 13.209635] ? __pfx_read_tsc+0x10/0x10 [ 13.209656] ? ktime_get_ts64+0x86/0x230 [ 13.209680] kunit_try_run_case+0x1a5/0x480 [ 13.209706] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.209729] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 13.209766] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 13.209790] ? __kthread_parkme+0x82/0x180 [ 13.209811] ? preempt_count_sub+0x50/0x80 [ 13.209834] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.209858] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.209883] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 13.209908] kthread+0x337/0x6f0 [ 13.209927] ? trace_preempt_on+0x20/0xc0 [ 13.209949] ? __pfx_kthread+0x10/0x10 [ 13.209969] ? _raw_spin_unlock_irq+0x47/0x80 [ 13.209991] ? calculate_sigpending+0x7b/0xa0 [ 13.210015] ? __pfx_kthread+0x10/0x10 [ 13.210037] ret_from_fork+0x116/0x1d0 [ 13.210055] ? __pfx_kthread+0x10/0x10 [ 13.210076] ret_from_fork_asm+0x1a/0x30 [ 13.210106] </TASK> [ 13.210116] [ 13.218218] Allocated by task 224: [ 13.218464] kasan_save_stack+0x45/0x70 [ 13.218745] kasan_save_track+0x18/0x40 [ 13.218966] kasan_save_alloc_info+0x3b/0x50 [ 13.219117] __kasan_slab_alloc+0x91/0xa0 [ 13.219335] kmem_cache_alloc_noprof+0x123/0x3f0 [ 13.219559] kmem_cache_oob+0x157/0x530 [ 13.219724] kunit_try_run_case+0x1a5/0x480 [ 13.220057] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.220459] kthread+0x337/0x6f0 [ 13.220656] ret_from_fork+0x116/0x1d0 [ 13.220826] ret_from_fork_asm+0x1a/0x30 [ 13.221037] [ 13.221147] The buggy address belongs to the object at ffff8881038d4000 [ 13.221147] which belongs to the cache test_cache of size 200 [ 13.221786] The buggy address is located 0 bytes to the right of [ 13.221786] allocated 200-byte region [ffff8881038d4000, ffff8881038d40c8) [ 13.222159] [ 13.222260] The buggy address belongs to the physical page: [ 13.222535] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1038d4 [ 13.222904] flags: 0x200000000000000(node=0|zone=2) [ 13.223498] page_type: f5(slab) [ 13.223641] raw: 0200000000000000 ffff888101bdeb40 dead000000000122 0000000000000000 [ 13.223982] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000 [ 13.224346] page dumped because: kasan: bad access detected [ 13.224609] [ 13.224683] Memory state around the buggy address: [ 13.225012] ffff8881038d3f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.225362] ffff8881038d4000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 13.225646] >ffff8881038d4080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc [ 13.226053] ^ [ 13.226291] ffff8881038d4100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.226740] ffff8881038d4180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.227062] ==================================================================