Date
Dec. 5, 2024, 2:07 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 33.033104] ================================================================== [ 33.034546] BUG: KASAN: slab-out-of-bounds in memcmp+0x198/0x1d8 [ 33.035896] Read of size 1 at addr fff00000c63d1d98 by task kunit_try_catch/246 [ 33.037013] [ 33.037475] CPU: 0 UID: 0 PID: 246 Comm: kunit_try_catch Tainted: G B N 6.13.0-rc1-next-20241205 #1 [ 33.038797] Tainted: [B]=BAD_PAGE, [N]=TEST [ 33.039657] Hardware name: linux,dummy-virt (DT) [ 33.040277] Call trace: [ 33.040732] show_stack+0x20/0x38 (C) [ 33.041378] dump_stack_lvl+0x8c/0xd0 [ 33.041936] print_report+0x118/0x5e0 [ 33.042614] kasan_report+0xc8/0x118 [ 33.043242] __asan_report_load1_noabort+0x20/0x30 [ 33.043917] memcmp+0x198/0x1d8 [ 33.044447] kasan_memcmp+0x16c/0x300 [ 33.045353] kunit_try_run_case+0x14c/0x3d0 [ 33.045953] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 33.046746] kthread+0x24c/0x2d0 [ 33.047535] ret_from_fork+0x10/0x20 [ 33.048142] [ 33.048511] Allocated by task 246: [ 33.049044] kasan_save_stack+0x3c/0x68 [ 33.049621] kasan_save_track+0x20/0x40 [ 33.050222] kasan_save_alloc_info+0x40/0x58 [ 33.050786] __kasan_kmalloc+0xd4/0xd8 [ 33.051630] __kmalloc_cache_noprof+0x15c/0x3c0 [ 33.052219] kasan_memcmp+0xbc/0x300 [ 33.052828] kunit_try_run_case+0x14c/0x3d0 [ 33.053497] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 33.054311] kthread+0x24c/0x2d0 [ 33.054827] ret_from_fork+0x10/0x20 [ 33.056177] [ 33.056537] The buggy address belongs to the object at fff00000c63d1d80 [ 33.056537] which belongs to the cache kmalloc-32 of size 32 [ 33.057960] The buggy address is located 0 bytes to the right of [ 33.057960] allocated 24-byte region [fff00000c63d1d80, fff00000c63d1d98) [ 33.059774] [ 33.060123] The buggy address belongs to the physical page: [ 33.060894] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1063d1 [ 33.061773] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 33.062748] page_type: f5(slab) [ 33.063484] raw: 0bfffe0000000000 fff00000c0001780 dead000000000122 0000000000000000 [ 33.064463] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 33.065403] page dumped because: kasan: bad access detected [ 33.066216] [ 33.066586] Memory state around the buggy address: [ 33.067436] fff00000c63d1c80: fa fb fb fb fc fc fc fc 00 00 00 fc fc fc fc fc [ 33.068418] fff00000c63d1d00: 00 00 00 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 33.069303] >fff00000c63d1d80: 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc [ 33.070182] ^ [ 33.070655] fff00000c63d1e00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 33.071864] fff00000c63d1e80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 33.072739] ==================================================================
[ 30.856471] ================================================================== [ 30.857870] BUG: KASAN: slab-out-of-bounds in memcmp+0x1b4/0x1d0 [ 30.858725] Read of size 1 at addr ffff888101ac6158 by task kunit_try_catch/264 [ 30.859965] [ 30.860470] CPU: 0 UID: 0 PID: 264 Comm: kunit_try_catch Tainted: G B N 6.13.0-rc1-next-20241205 #1 [ 30.861421] Tainted: [B]=BAD_PAGE, [N]=TEST [ 30.861970] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 30.863342] Call Trace: [ 30.863586] <TASK> [ 30.863980] dump_stack_lvl+0x73/0xb0 [ 30.865188] print_report+0xd1/0x640 [ 30.865543] ? __virt_addr_valid+0x1db/0x2d0 [ 30.866348] ? kasan_complete_mode_report_info+0x2a/0x200 [ 30.867491] kasan_report+0x102/0x140 [ 30.868202] ? memcmp+0x1b4/0x1d0 [ 30.868555] ? memcmp+0x1b4/0x1d0 [ 30.869478] __asan_report_load1_noabort+0x18/0x20 [ 30.870290] memcmp+0x1b4/0x1d0 [ 30.870614] kasan_memcmp+0x190/0x390 [ 30.871105] ? trace_hardirqs_on+0x37/0xe0 [ 30.871872] ? __pfx_kasan_memcmp+0x10/0x10 [ 30.872646] ? finish_task_switch.isra.0+0x153/0x700 [ 30.873662] ? __switch_to+0x5d9/0xf60 [ 30.874221] ? __pfx_read_tsc+0x10/0x10 [ 30.874629] ? ktime_get_ts64+0x86/0x230 [ 30.876087] kunit_try_run_case+0x1b3/0x490 [ 30.876448] ? __pfx_kunit_try_run_case+0x10/0x10 [ 30.876866] ? _raw_spin_lock_irqsave+0xa2/0x110 [ 30.877355] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 30.878037] ? __kthread_parkme+0x82/0x160 [ 30.878713] ? preempt_count_sub+0x50/0x80 [ 30.879409] ? __pfx_kunit_try_run_case+0x10/0x10 [ 30.879757] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 30.880618] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 30.881780] kthread+0x257/0x310 [ 30.882630] ? __pfx_kthread+0x10/0x10 [ 30.882906] ret_from_fork+0x41/0x80 [ 30.883727] ? __pfx_kthread+0x10/0x10 [ 30.884499] ret_from_fork_asm+0x1a/0x30 [ 30.885370] </TASK> [ 30.885881] [ 30.886040] Allocated by task 264: [ 30.886543] kasan_save_stack+0x3d/0x60 [ 30.887503] kasan_save_track+0x18/0x40 [ 30.887835] kasan_save_alloc_info+0x3b/0x50 [ 30.888609] __kasan_kmalloc+0xb7/0xc0 [ 30.889258] __kmalloc_cache_noprof+0x184/0x410 [ 30.889791] kasan_memcmp+0xb8/0x390 [ 30.890545] kunit_try_run_case+0x1b3/0x490 [ 30.891282] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 30.892097] kthread+0x257/0x310 [ 30.892461] ret_from_fork+0x41/0x80 [ 30.893461] ret_from_fork_asm+0x1a/0x30 [ 30.894270] [ 30.894442] The buggy address belongs to the object at ffff888101ac6140 [ 30.894442] which belongs to the cache kmalloc-32 of size 32 [ 30.895549] The buggy address is located 0 bytes to the right of [ 30.895549] allocated 24-byte region [ffff888101ac6140, ffff888101ac6158) [ 30.897219] [ 30.897455] The buggy address belongs to the physical page: [ 30.898314] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x101ac6 [ 30.899295] flags: 0x200000000000000(node=0|zone=2) [ 30.899753] page_type: f5(slab) [ 30.900205] raw: 0200000000000000 ffff888100041780 dead000000000122 0000000000000000 [ 30.900858] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 30.901902] page dumped because: kasan: bad access detected [ 30.902505] [ 30.902913] Memory state around the buggy address: [ 30.903485] ffff888101ac6000: 00 00 00 fc fc fc fc fc fa fb fb fb fc fc fc fc [ 30.904580] ffff888101ac6080: 00 00 00 fc fc fc fc fc 00 00 00 04 fc fc fc fc [ 30.905134] >ffff888101ac6100: 00 00 07 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 30.905926] ^ [ 30.906732] ffff888101ac6180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 30.907717] ffff888101ac6200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 30.908724] ==================================================================