Date
July 16, 2025, 3:10 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 16.928291] ================================================================== [ 16.928355] BUG: KASAN: slab-out-of-bounds in kmem_cache_oob+0x344/0x430 [ 16.928412] Read of size 1 at addr fff00000c59600c8 by task kunit_try_catch/207 [ 16.928474] [ 16.928619] CPU: 1 UID: 0 PID: 207 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT [ 16.928907] Tainted: [B]=BAD_PAGE, [N]=TEST [ 16.929061] Hardware name: linux,dummy-virt (DT) [ 16.929242] Call trace: [ 16.929265] show_stack+0x20/0x38 (C) [ 16.929324] dump_stack_lvl+0x8c/0xd0 [ 16.929589] print_report+0x118/0x5d0 [ 16.929649] kasan_report+0xdc/0x128 [ 16.929695] __asan_report_load1_noabort+0x20/0x30 [ 16.929759] kmem_cache_oob+0x344/0x430 [ 16.929804] kunit_try_run_case+0x170/0x3f0 [ 16.929924] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.930018] kthread+0x328/0x630 [ 16.930061] ret_from_fork+0x10/0x20 [ 16.930108] [ 16.930125] Allocated by task 207: [ 16.930154] kasan_save_stack+0x3c/0x68 [ 16.930194] kasan_save_track+0x20/0x40 [ 16.930233] kasan_save_alloc_info+0x40/0x58 [ 16.930354] __kasan_slab_alloc+0xa8/0xb0 [ 16.930427] kmem_cache_alloc_noprof+0x10c/0x398 [ 16.930466] kmem_cache_oob+0x12c/0x430 [ 16.930502] kunit_try_run_case+0x170/0x3f0 [ 16.930540] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.930634] kthread+0x328/0x630 [ 16.930678] ret_from_fork+0x10/0x20 [ 16.930795] [ 16.930889] The buggy address belongs to the object at fff00000c5960000 [ 16.930889] which belongs to the cache test_cache of size 200 [ 16.931005] The buggy address is located 0 bytes to the right of [ 16.931005] allocated 200-byte region [fff00000c5960000, fff00000c59600c8) [ 16.931215] [ 16.931348] The buggy address belongs to the physical page: [ 16.931443] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105960 [ 16.931507] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 16.931609] page_type: f5(slab) [ 16.931648] raw: 0bfffe0000000000 fff00000c3e3ea00 dead000000000122 0000000000000000 [ 16.931728] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000 [ 16.931771] page dumped because: kasan: bad access detected [ 16.931803] [ 16.931858] Memory state around the buggy address: [ 16.931893] fff00000c595ff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.931948] fff00000c5960000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 16.931991] >fff00000c5960080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc [ 16.932029] ^ [ 16.932076] fff00000c5960100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.932327] fff00000c5960180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.932393] ==================================================================
[ 13.219797] ================================================================== [ 13.220345] BUG: KASAN: slab-out-of-bounds in kmem_cache_oob+0x402/0x530 [ 13.220731] Read of size 1 at addr ffff8881030720c8 by task kunit_try_catch/224 [ 13.221028] [ 13.221235] CPU: 0 UID: 0 PID: 224 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT(voluntary) [ 13.221286] Tainted: [B]=BAD_PAGE, [N]=TEST [ 13.221297] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 13.221319] Call Trace: [ 13.221332] <TASK> [ 13.221351] dump_stack_lvl+0x73/0xb0 [ 13.221384] print_report+0xd1/0x610 [ 13.221408] ? __virt_addr_valid+0x1db/0x2d0 [ 13.221434] ? kmem_cache_oob+0x402/0x530 [ 13.221456] ? kasan_complete_mode_report_info+0x2a/0x200 [ 13.221481] ? kmem_cache_oob+0x402/0x530 [ 13.221504] kasan_report+0x141/0x180 [ 13.221526] ? kmem_cache_oob+0x402/0x530 [ 13.221554] __asan_report_load1_noabort+0x18/0x20 [ 13.221579] kmem_cache_oob+0x402/0x530 [ 13.221600] ? trace_hardirqs_on+0x37/0xe0 [ 13.221626] ? __pfx_kmem_cache_oob+0x10/0x10 [ 13.221650] ? finish_task_switch.isra.0+0x153/0x700 [ 13.221675] ? __switch_to+0x47/0xf50 [ 13.221704] ? __pfx_read_tsc+0x10/0x10 [ 13.221726] ? ktime_get_ts64+0x86/0x230 [ 13.221752] kunit_try_run_case+0x1a5/0x480 [ 13.221792] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.221815] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 13.221842] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 13.221866] ? __kthread_parkme+0x82/0x180 [ 13.221888] ? preempt_count_sub+0x50/0x80 [ 13.221912] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.221937] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.221962] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 13.221989] kthread+0x337/0x6f0 [ 13.222008] ? trace_preempt_on+0x20/0xc0 [ 13.222030] ? __pfx_kthread+0x10/0x10 [ 13.222100] ? _raw_spin_unlock_irq+0x47/0x80 [ 13.222124] ? calculate_sigpending+0x7b/0xa0 [ 13.222150] ? __pfx_kthread+0x10/0x10 [ 13.222172] ret_from_fork+0x116/0x1d0 [ 13.222192] ? __pfx_kthread+0x10/0x10 [ 13.222212] ret_from_fork_asm+0x1a/0x30 [ 13.222244] </TASK> [ 13.222255] [ 13.230263] Allocated by task 224: [ 13.230394] kasan_save_stack+0x45/0x70 [ 13.230839] kasan_save_track+0x18/0x40 [ 13.230989] kasan_save_alloc_info+0x3b/0x50 [ 13.231141] __kasan_slab_alloc+0x91/0xa0 [ 13.231407] kmem_cache_alloc_noprof+0x123/0x3f0 [ 13.231644] kmem_cache_oob+0x157/0x530 [ 13.231853] kunit_try_run_case+0x1a5/0x480 [ 13.232202] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.232445] kthread+0x337/0x6f0 [ 13.232575] ret_from_fork+0x116/0x1d0 [ 13.232751] ret_from_fork_asm+0x1a/0x30 [ 13.232963] [ 13.233106] The buggy address belongs to the object at ffff888103072000 [ 13.233106] which belongs to the cache test_cache of size 200 [ 13.233624] The buggy address is located 0 bytes to the right of [ 13.233624] allocated 200-byte region [ffff888103072000, ffff8881030720c8) [ 13.234009] [ 13.234089] The buggy address belongs to the physical page: [ 13.234349] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103072 [ 13.234901] flags: 0x200000000000000(node=0|zone=2) [ 13.235068] page_type: f5(slab) [ 13.235195] raw: 0200000000000000 ffff888101253dc0 dead000000000122 0000000000000000 [ 13.235427] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000 [ 13.235945] page dumped because: kasan: bad access detected [ 13.236365] [ 13.236516] Memory state around the buggy address: [ 13.236748] ffff888103071f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.237213] ffff888103072000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 13.237543] >ffff888103072080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc [ 13.237799] ^ [ 13.237978] ffff888103072100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.238271] ffff888103072180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.238582] ==================================================================