Date
Dec. 6, 2024, 3:11 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 34.093760] ================================================================== [ 34.094880] BUG: KASAN: slab-out-of-bounds in memcmp+0x198/0x1d8 [ 34.095582] Read of size 1 at addr fff00000c69e4c58 by task kunit_try_catch/246 [ 34.096415] [ 34.096851] CPU: 0 UID: 0 PID: 246 Comm: kunit_try_catch Tainted: G B N 6.13.0-rc1-next-20241206 #1 [ 34.098723] Tainted: [B]=BAD_PAGE, [N]=TEST [ 34.099321] Hardware name: linux,dummy-virt (DT) [ 34.100063] Call trace: [ 34.100544] show_stack+0x20/0x38 (C) [ 34.101210] dump_stack_lvl+0x8c/0xd0 [ 34.101817] print_report+0x118/0x5e0 [ 34.102744] kasan_report+0xc8/0x118 [ 34.103343] __asan_report_load1_noabort+0x20/0x30 [ 34.104021] memcmp+0x198/0x1d8 [ 34.104594] kasan_memcmp+0x16c/0x300 [ 34.105169] kunit_try_run_case+0x14c/0x3d0 [ 34.105911] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 34.106974] kthread+0x24c/0x2d0 [ 34.107544] ret_from_fork+0x10/0x20 [ 34.108180] [ 34.108579] Allocated by task 246: [ 34.109012] kasan_save_stack+0x3c/0x68 [ 34.109676] kasan_save_track+0x20/0x40 [ 34.110714] kasan_save_alloc_info+0x40/0x58 [ 34.111346] __kasan_kmalloc+0xd4/0xd8 [ 34.111929] __kmalloc_cache_noprof+0x15c/0x3c0 [ 34.112566] kasan_memcmp+0xbc/0x300 [ 34.113065] kunit_try_run_case+0x14c/0x3d0 [ 34.113760] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 34.114797] kthread+0x24c/0x2d0 [ 34.115353] ret_from_fork+0x10/0x20 [ 34.115937] [ 34.116291] The buggy address belongs to the object at fff00000c69e4c40 [ 34.116291] which belongs to the cache kmalloc-32 of size 32 [ 34.117481] The buggy address is located 0 bytes to the right of [ 34.117481] allocated 24-byte region [fff00000c69e4c40, fff00000c69e4c58) [ 34.119160] [ 34.119562] The buggy address belongs to the physical page: [ 34.120194] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1069e4 [ 34.121113] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 34.121897] page_type: f5(slab) [ 34.122774] raw: 0bfffe0000000000 fff00000c0001780 dead000000000122 0000000000000000 [ 34.123618] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 34.124468] page dumped because: kasan: bad access detected [ 34.125183] [ 34.125578] Memory state around the buggy address: [ 34.126148] fff00000c69e4b00: 00 00 07 fc fc fc fc fc 00 00 07 fc fc fc fc fc [ 34.127402] fff00000c69e4b80: 00 00 00 fc fc fc fc fc 00 00 00 04 fc fc fc fc [ 34.128216] >fff00000c69e4c00: 00 00 07 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 34.129084] ^ [ 34.129813] fff00000c69e4c80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 34.131129] fff00000c69e4d00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 34.131902] ==================================================================
[ 26.995334] ================================================================== [ 26.996109] BUG: KASAN: slab-out-of-bounds in memcmp+0x1b4/0x1d0 [ 26.997119] Read of size 1 at addr ffff88810292db98 by task kunit_try_catch/265 [ 26.998541] [ 26.999002] CPU: 0 UID: 0 PID: 265 Comm: kunit_try_catch Tainted: G B N 6.13.0-rc1-next-20241206 #1 [ 27.000764] Tainted: [B]=BAD_PAGE, [N]=TEST [ 27.002121] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 27.002594] Call Trace: [ 27.002825] <TASK> [ 27.003147] dump_stack_lvl+0x73/0xb0 [ 27.004348] print_report+0xd1/0x640 [ 27.005319] ? __virt_addr_valid+0x1db/0x2d0 [ 27.005705] ? kasan_complete_mode_report_info+0x2a/0x200 [ 27.006901] kasan_report+0x102/0x140 [ 27.007741] ? memcmp+0x1b4/0x1d0 [ 27.008104] ? memcmp+0x1b4/0x1d0 [ 27.008582] __asan_report_load1_noabort+0x18/0x20 [ 27.009212] memcmp+0x1b4/0x1d0 [ 27.009982] kasan_memcmp+0x190/0x390 [ 27.010901] ? trace_hardirqs_on+0x37/0xe0 [ 27.011612] ? __pfx_kasan_memcmp+0x10/0x10 [ 27.012172] ? finish_task_switch.isra.0+0x153/0x700 [ 27.012959] ? __switch_to+0x5d9/0xf60 [ 27.014166] ? __pfx_read_tsc+0x10/0x10 [ 27.014584] ? ktime_get_ts64+0x86/0x230 [ 27.015061] kunit_try_run_case+0x1b3/0x490 [ 27.015815] ? __pfx_kunit_try_run_case+0x10/0x10 [ 27.016805] ? _raw_spin_lock_irqsave+0xa2/0x110 [ 27.018300] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 27.019052] ? __kthread_parkme+0x82/0x160 [ 27.020252] ? preempt_count_sub+0x50/0x80 [ 27.020688] ? __pfx_kunit_try_run_case+0x10/0x10 [ 27.021751] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 27.022341] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 27.023505] kthread+0x257/0x310 [ 27.023807] ? __pfx_kthread+0x10/0x10 [ 27.024688] ret_from_fork+0x41/0x80 [ 27.025137] ? __pfx_kthread+0x10/0x10 [ 27.025756] ret_from_fork_asm+0x1a/0x30 [ 27.026250] </TASK> [ 27.027228] [ 27.027457] Allocated by task 265: [ 27.027758] kasan_save_stack+0x3d/0x60 [ 27.029029] kasan_save_track+0x18/0x40 [ 27.029584] kasan_save_alloc_info+0x3b/0x50 [ 27.031077] __kasan_kmalloc+0xb7/0xc0 [ 27.031701] __kmalloc_cache_noprof+0x184/0x410 [ 27.032024] kasan_memcmp+0xb8/0x390 [ 27.032507] kunit_try_run_case+0x1b3/0x490 [ 27.032999] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 27.034690] kthread+0x257/0x310 [ 27.034989] ret_from_fork+0x41/0x80 [ 27.035421] ret_from_fork_asm+0x1a/0x30 [ 27.037147] [ 27.037308] The buggy address belongs to the object at ffff88810292db80 [ 27.037308] which belongs to the cache kmalloc-32 of size 32 [ 27.039030] The buggy address is located 0 bytes to the right of [ 27.039030] allocated 24-byte region [ffff88810292db80, ffff88810292db98) [ 27.040212] [ 27.041402] The buggy address belongs to the physical page: [ 27.042278] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10292d [ 27.043255] flags: 0x200000000000000(node=0|zone=2) [ 27.043743] page_type: f5(slab) [ 27.044119] raw: 0200000000000000 ffff888100041780 dead000000000122 0000000000000000 [ 27.046357] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 27.047138] page dumped because: kasan: bad access detected [ 27.047541] [ 27.048327] Memory state around the buggy address: [ 27.049511] ffff88810292da80: 00 00 00 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 27.051353] ffff88810292db00: 00 00 00 04 fc fc fc fc 00 00 07 fc fc fc fc fc [ 27.051910] >ffff88810292db80: 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc [ 27.052825] ^ [ 27.053192] ffff88810292dc00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 27.054513] ffff88810292dc80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 27.056163] ==================================================================