Date
Dec. 4, 2024, 3:07 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 35.139678] ================================================================== [ 35.140864] BUG: KASAN: slab-out-of-bounds in memcmp+0x198/0x1d8 [ 35.141748] Read of size 1 at addr fff00000c66439d8 by task kunit_try_catch/245 [ 35.142485] [ 35.143011] CPU: 0 UID: 0 PID: 245 Comm: kunit_try_catch Tainted: G B N 6.13.0-rc1-next-20241204 #1 [ 35.144428] Tainted: [B]=BAD_PAGE, [N]=TEST [ 35.145106] Hardware name: linux,dummy-virt (DT) [ 35.146557] Call trace: [ 35.147256] show_stack+0x20/0x38 (C) [ 35.148018] dump_stack_lvl+0x8c/0xd0 [ 35.148784] print_report+0x118/0x5e0 [ 35.149420] kasan_report+0xc8/0x118 [ 35.150038] __asan_report_load1_noabort+0x20/0x30 [ 35.150896] memcmp+0x198/0x1d8 [ 35.151433] kasan_memcmp+0x16c/0x300 [ 35.152462] kunit_try_run_case+0x14c/0x3d0 [ 35.153131] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 35.153966] kthread+0x24c/0x2d0 [ 35.154565] ret_from_fork+0x10/0x20 [ 35.155216] [ 35.155529] Allocated by task 245: [ 35.156377] kasan_save_stack+0x3c/0x68 [ 35.157025] kasan_save_track+0x20/0x40 [ 35.157970] kasan_save_alloc_info+0x40/0x58 [ 35.158734] __kasan_kmalloc+0xd4/0xd8 [ 35.159308] __kmalloc_cache_noprof+0x15c/0x3c0 [ 35.160090] kasan_memcmp+0xbc/0x300 [ 35.160653] kunit_try_run_case+0x14c/0x3d0 [ 35.161295] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 35.162729] kthread+0x24c/0x2d0 [ 35.164220] ret_from_fork+0x10/0x20 [ 35.164921] [ 35.165248] The buggy address belongs to the object at fff00000c66439c0 [ 35.165248] which belongs to the cache kmalloc-32 of size 32 [ 35.167045] The buggy address is located 0 bytes to the right of [ 35.167045] allocated 24-byte region [fff00000c66439c0, fff00000c66439d8) [ 35.168151] [ 35.168587] The buggy address belongs to the physical page: [ 35.169281] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106643 [ 35.170769] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 35.171686] page_type: f5(slab) [ 35.172184] raw: 0bfffe0000000000 fff00000c0001780 dead000000000122 0000000000000000 [ 35.173031] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 35.173948] page dumped because: kasan: bad access detected [ 35.175097] [ 35.175403] Memory state around the buggy address: [ 35.176338] fff00000c6643880: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 35.177557] fff00000c6643900: 00 00 00 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 35.179026] >fff00000c6643980: 00 00 00 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 35.180079] ^ [ 35.181116] fff00000c6643a00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 35.182258] fff00000c6643a80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 35.183156] ==================================================================
[ 25.945654] ================================================================== [ 25.947002] BUG: KASAN: slab-out-of-bounds in memcmp+0x1b4/0x1d0 [ 25.948526] Read of size 1 at addr ffff88810299dd98 by task kunit_try_catch/265 [ 25.950053] [ 25.950716] CPU: 1 UID: 0 PID: 265 Comm: kunit_try_catch Tainted: G B N 6.13.0-rc1-next-20241204 #1 [ 25.951799] Tainted: [B]=BAD_PAGE, [N]=TEST [ 25.952223] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 25.953945] Call Trace: [ 25.954196] <TASK> [ 25.954626] dump_stack_lvl+0x73/0xb0 [ 25.955041] print_report+0xd1/0x640 [ 25.955709] ? __virt_addr_valid+0x1db/0x2d0 [ 25.956151] ? kasan_complete_mode_report_info+0x2a/0x200 [ 25.956902] kasan_report+0x102/0x140 [ 25.957277] ? memcmp+0x1b4/0x1d0 [ 25.957803] ? memcmp+0x1b4/0x1d0 [ 25.958312] __asan_report_load1_noabort+0x18/0x20 [ 25.958936] memcmp+0x1b4/0x1d0 [ 25.959999] kasan_memcmp+0x190/0x390 [ 25.960617] ? __pfx_kasan_memcmp+0x10/0x10 [ 25.961410] ? sysvec_apic_timer_interrupt+0x50/0x90 [ 25.961925] ? __pfx_kasan_memcmp+0x10/0x10 [ 25.962655] kunit_try_run_case+0x1b3/0x490 [ 25.963453] ? __pfx_kunit_try_run_case+0x10/0x10 [ 25.964193] ? _raw_spin_lock_irqsave+0xa2/0x110 [ 25.964918] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 25.965694] ? __kthread_parkme+0x82/0x160 [ 25.966137] ? preempt_count_sub+0x50/0x80 [ 25.966547] ? __pfx_kunit_try_run_case+0x10/0x10 [ 25.967418] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 25.967833] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 25.968673] kthread+0x257/0x310 [ 25.969618] ? __pfx_kthread+0x10/0x10 [ 25.970093] ret_from_fork+0x41/0x80 [ 25.971014] ? __pfx_kthread+0x10/0x10 [ 25.971698] ret_from_fork_asm+0x1a/0x30 [ 25.972094] </TASK> [ 25.972368] [ 25.972688] Allocated by task 265: [ 25.973017] kasan_save_stack+0x3d/0x60 [ 25.974224] kasan_save_track+0x18/0x40 [ 25.974707] kasan_save_alloc_info+0x3b/0x50 [ 25.975102] __kasan_kmalloc+0xb7/0xc0 [ 25.975495] __kmalloc_cache_noprof+0x184/0x410 [ 25.976571] kasan_memcmp+0xb8/0x390 [ 25.976923] kunit_try_run_case+0x1b3/0x490 [ 25.977317] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 25.978220] kthread+0x257/0x310 [ 25.978869] ret_from_fork+0x41/0x80 [ 25.979258] ret_from_fork_asm+0x1a/0x30 [ 25.979859] [ 25.980603] The buggy address belongs to the object at ffff88810299dd80 [ 25.980603] which belongs to the cache kmalloc-32 of size 32 [ 25.982730] The buggy address is located 0 bytes to the right of [ 25.982730] allocated 24-byte region [ffff88810299dd80, ffff88810299dd98) [ 25.983956] [ 25.984263] The buggy address belongs to the physical page: [ 25.985063] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10299d [ 25.986274] flags: 0x200000000000000(node=0|zone=2) [ 25.987316] page_type: f5(slab) [ 25.987888] raw: 0200000000000000 ffff888100041780 dead000000000122 0000000000000000 [ 25.988819] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 25.989842] page dumped because: kasan: bad access detected [ 25.990280] [ 25.991199] Memory state around the buggy address: [ 25.991838] ffff88810299dc80: fa fb fb fb fc fc fc fc 00 00 00 fc fc fc fc fc [ 25.992739] ffff88810299dd00: 00 00 00 04 fc fc fc fc 00 00 07 fc fc fc fc fc [ 25.993999] >ffff88810299dd80: 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.994847] ^ [ 25.995802] ffff88810299de00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.996558] ffff88810299de80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.997854] ==================================================================