Date
Feb. 5, 2025, 2:09 p.m.
Environment | |
---|---|
qemu-x86_64 |
[ 50.102614] ================================================================== [ 50.104495] BUG: KASAN: slab-out-of-bounds in memchr+0x27/0x60 [ 50.105794] Read of size 1 at addr ffff8881028ced18 by task kunit_try_catch/218 [ 50.106720] [ 50.107071] CPU: 1 PID: 218 Comm: kunit_try_catch Tainted: G B N 6.6.76-rc1 #1 [ 50.108105] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 50.109286] Call Trace: [ 50.109763] <TASK> [ 50.110219] dump_stack_lvl+0x4e/0x90 [ 50.111397] print_report+0xd2/0x660 [ 50.112358] ? __virt_addr_valid+0x156/0x1e0 [ 50.113055] ? kasan_complete_mode_report_info+0x2a/0x200 [ 50.113834] kasan_report+0xff/0x140 [ 50.114496] ? memchr+0x27/0x60 [ 50.115056] ? memchr+0x27/0x60 [ 50.115576] __asan_load1+0x66/0x70 [ 50.116209] memchr+0x27/0x60 [ 50.116807] kasan_memchr+0xdd/0x1f0 [ 50.117451] ? __pfx_kasan_memchr+0x10/0x10 [ 50.118057] ? __schedule+0x70b/0x1190 [ 50.118818] ? ktime_get_ts64+0x118/0x140 [ 50.119438] kunit_try_run_case+0x126/0x290 [ 50.120002] ? __pfx_kunit_try_run_case+0x10/0x10 [ 50.120552] ? __kasan_check_write+0x18/0x20 [ 50.121892] ? trace_preempt_on+0x20/0xa0 [ 50.122583] ? __kthread_parkme+0x4f/0xd0 [ 50.123476] ? preempt_count_sub+0x50/0x80 [ 50.124192] ? __pfx_kunit_try_run_case+0x10/0x10 [ 50.124824] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 50.125510] kunit_generic_run_threadfn_adapter+0x33/0x50 [ 50.126158] kthread+0x19e/0x1e0 [ 50.126693] ? __pfx_kthread+0x10/0x10 [ 50.127335] ret_from_fork+0x41/0x70 [ 50.127936] ? __pfx_kthread+0x10/0x10 [ 50.128647] ret_from_fork_asm+0x1b/0x30 [ 50.129496] </TASK> [ 50.130008] [ 50.130487] Allocated by task 218: [ 50.130953] kasan_save_stack+0x3c/0x60 [ 50.131876] kasan_set_track+0x29/0x40 [ 50.132811] kasan_save_alloc_info+0x22/0x30 [ 50.133294] __kasan_kmalloc+0xb7/0xc0 [ 50.133841] kmalloc_trace+0x4c/0xb0 [ 50.134702] kasan_memchr+0x9f/0x1f0 [ 50.135464] kunit_try_run_case+0x126/0x290 [ 50.136372] kunit_generic_run_threadfn_adapter+0x33/0x50 [ 50.137066] kthread+0x19e/0x1e0 [ 50.138013] ret_from_fork+0x41/0x70 [ 50.138720] ret_from_fork_asm+0x1b/0x30 [ 50.139415] [ 50.139678] The buggy address belongs to the object at ffff8881028ced00 [ 50.139678] which belongs to the cache kmalloc-32 of size 32 [ 50.140706] The buggy address is located 0 bytes to the right of [ 50.140706] allocated 24-byte region [ffff8881028ced00, ffff8881028ced18) [ 50.141914] [ 50.142265] The buggy address belongs to the physical page: [ 50.143022] page:(____ptrval____) refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1028ce [ 50.144562] flags: 0x200000000000800(slab|node=0|zone=2) [ 50.145492] page_type: 0xffffffff() [ 50.146202] raw: 0200000000000800 ffff888100041500 dead000000000122 0000000000000000 [ 50.147200] raw: 0000000000000000 0000000080400040 00000001ffffffff 0000000000000000 [ 50.148247] page dumped because: kasan: bad access detected [ 50.148831] [ 50.149669] Memory state around the buggy address: [ 50.150818] ffff8881028cec00: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 50.151496] ffff8881028cec80: 00 00 07 fc fc fc fc fc 00 00 07 fc fc fc fc fc [ 50.152497] >ffff8881028ced00: 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc [ 50.153244] ^ [ 50.153924] ffff8881028ced80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 50.155223] ffff8881028cee00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 50.155893] ==================================================================