Date
July 19, 2025, 11:11 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 15.783115] ================================================================== [ 15.783178] BUG: KASAN: slab-out-of-bounds in kmem_cache_oob+0x344/0x430 [ 15.783400] Read of size 1 at addr fff00000c6e6a0c8 by task kunit_try_catch/208 [ 15.784189] [ 15.784484] CPU: 1 UID: 0 PID: 208 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT [ 15.784698] Tainted: [B]=BAD_PAGE, [N]=TEST [ 15.784966] Hardware name: linux,dummy-virt (DT) [ 15.785064] Call trace: [ 15.785184] show_stack+0x20/0x38 (C) [ 15.785288] dump_stack_lvl+0x8c/0xd0 [ 15.785420] print_report+0x118/0x5d0 [ 15.785551] kasan_report+0xdc/0x128 [ 15.785599] __asan_report_load1_noabort+0x20/0x30 [ 15.785651] kmem_cache_oob+0x344/0x430 [ 15.785813] kunit_try_run_case+0x170/0x3f0 [ 15.785973] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 15.786094] kthread+0x328/0x630 [ 15.786321] ret_from_fork+0x10/0x20 [ 15.786380] [ 15.786446] Allocated by task 208: [ 15.786475] kasan_save_stack+0x3c/0x68 [ 15.786640] kasan_save_track+0x20/0x40 [ 15.786678] kasan_save_alloc_info+0x40/0x58 [ 15.786756] __kasan_slab_alloc+0xa8/0xb0 [ 15.786792] kmem_cache_alloc_noprof+0x10c/0x398 [ 15.786832] kmem_cache_oob+0x12c/0x430 [ 15.786866] kunit_try_run_case+0x170/0x3f0 [ 15.786904] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 15.786946] kthread+0x328/0x630 [ 15.787030] ret_from_fork+0x10/0x20 [ 15.787088] [ 15.787108] The buggy address belongs to the object at fff00000c6e6a000 [ 15.787108] which belongs to the cache test_cache of size 200 [ 15.787167] The buggy address is located 0 bytes to the right of [ 15.787167] allocated 200-byte region [fff00000c6e6a000, fff00000c6e6a0c8) [ 15.787480] [ 15.787523] The buggy address belongs to the physical page: [ 15.787573] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106e6a [ 15.787668] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 15.787769] page_type: f5(slab) [ 15.787881] raw: 0bfffe0000000000 fff00000c5b79640 dead000000000122 0000000000000000 [ 15.787931] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000 [ 15.787971] page dumped because: kasan: bad access detected [ 15.788003] [ 15.788021] Memory state around the buggy address: [ 15.788053] fff00000c6e69f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.788282] fff00000c6e6a000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 15.788425] >fff00000c6e6a080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc [ 15.788505] ^ [ 15.788559] fff00000c6e6a100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.788612] fff00000c6e6a180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.788650] ==================================================================
[ 12.690736] ================================================================== [ 12.691220] BUG: KASAN: slab-out-of-bounds in kmem_cache_oob+0x402/0x530 [ 12.691832] Read of size 1 at addr ffff8881027f10c8 by task kunit_try_catch/225 [ 12.692361] [ 12.692477] CPU: 0 UID: 0 PID: 225 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT(voluntary) [ 12.692536] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.692546] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.692568] Call Trace: [ 12.692581] <TASK> [ 12.692596] dump_stack_lvl+0x73/0xb0 [ 12.692667] print_report+0xd1/0x610 [ 12.692689] ? __virt_addr_valid+0x1db/0x2d0 [ 12.692737] ? kmem_cache_oob+0x402/0x530 [ 12.692759] ? kasan_complete_mode_report_info+0x2a/0x200 [ 12.692781] ? kmem_cache_oob+0x402/0x530 [ 12.692803] kasan_report+0x141/0x180 [ 12.692824] ? kmem_cache_oob+0x402/0x530 [ 12.692850] __asan_report_load1_noabort+0x18/0x20 [ 12.692873] kmem_cache_oob+0x402/0x530 [ 12.692894] ? trace_hardirqs_on+0x37/0xe0 [ 12.692916] ? __pfx_kmem_cache_oob+0x10/0x10 [ 12.692939] ? finish_task_switch.isra.0+0x153/0x700 [ 12.692962] ? __switch_to+0x47/0xf50 [ 12.692989] ? __pfx_read_tsc+0x10/0x10 [ 12.693009] ? ktime_get_ts64+0x86/0x230 [ 12.693032] kunit_try_run_case+0x1a5/0x480 [ 12.693056] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.693089] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 12.693112] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 12.693135] ? __kthread_parkme+0x82/0x180 [ 12.693189] ? preempt_count_sub+0x50/0x80 [ 12.693212] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.693235] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.693258] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.693290] kthread+0x337/0x6f0 [ 12.693308] ? trace_preempt_on+0x20/0xc0 [ 12.693329] ? __pfx_kthread+0x10/0x10 [ 12.693348] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.693368] ? calculate_sigpending+0x7b/0xa0 [ 12.693424] ? __pfx_kthread+0x10/0x10 [ 12.693444] ret_from_fork+0x116/0x1d0 [ 12.693462] ? __pfx_kthread+0x10/0x10 [ 12.693481] ret_from_fork_asm+0x1a/0x30 [ 12.693521] </TASK> [ 12.693531] [ 12.702911] Allocated by task 225: [ 12.703095] kasan_save_stack+0x45/0x70 [ 12.703297] kasan_save_track+0x18/0x40 [ 12.703461] kasan_save_alloc_info+0x3b/0x50 [ 12.703615] __kasan_slab_alloc+0x91/0xa0 [ 12.703946] kmem_cache_alloc_noprof+0x123/0x3f0 [ 12.704280] kmem_cache_oob+0x157/0x530 [ 12.704477] kunit_try_run_case+0x1a5/0x480 [ 12.704789] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.705045] kthread+0x337/0x6f0 [ 12.705365] ret_from_fork+0x116/0x1d0 [ 12.705637] ret_from_fork_asm+0x1a/0x30 [ 12.705850] [ 12.705956] The buggy address belongs to the object at ffff8881027f1000 [ 12.705956] which belongs to the cache test_cache of size 200 [ 12.706546] The buggy address is located 0 bytes to the right of [ 12.706546] allocated 200-byte region [ffff8881027f1000, ffff8881027f10c8) [ 12.707095] [ 12.707189] The buggy address belongs to the physical page: [ 12.707653] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1027f1 [ 12.707931] flags: 0x200000000000000(node=0|zone=2) [ 12.708300] page_type: f5(slab) [ 12.708480] raw: 0200000000000000 ffff8881016403c0 dead000000000122 0000000000000000 [ 12.708836] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000 [ 12.709227] page dumped because: kasan: bad access detected [ 12.709605] [ 12.709679] Memory state around the buggy address: [ 12.709830] ffff8881027f0f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.710136] ffff8881027f1000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 12.710449] >ffff8881027f1080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc [ 12.710889] ^ [ 12.711301] ffff8881027f1100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.711529] ffff8881027f1180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.711841] ==================================================================