Date
Nov. 27, 2024, 3:37 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 50.851899] ================================================================== [ 50.853002] BUG: KASAN: slab-out-of-bounds in memcmp+0x198/0x1d8 [ 50.853697] Read of size 1 at addr fff00000c616c018 by task kunit_try_catch/246 [ 50.855462] [ 50.855904] CPU: 0 UID: 0 PID: 246 Comm: kunit_try_catch Tainted: G B N 6.12.0-next-20241127 #1 [ 50.857235] Tainted: [B]=BAD_PAGE, [N]=TEST [ 50.857785] Hardware name: linux,dummy-virt (DT) [ 50.858668] Call trace: [ 50.859058] show_stack+0x20/0x38 (C) [ 50.859580] dump_stack_lvl+0x8c/0xd0 [ 50.860121] print_report+0x118/0x5e0 [ 50.860743] kasan_report+0xc8/0x118 [ 50.861691] __asan_report_load1_noabort+0x20/0x30 [ 50.862433] memcmp+0x198/0x1d8 [ 50.862988] kasan_memcmp+0x16c/0x300 [ 50.863791] kunit_try_run_case+0x14c/0x3d0 [ 50.864457] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 50.865287] kthread+0x24c/0x2d0 [ 50.865833] ret_from_fork+0x10/0x20 [ 50.866425] [ 50.866798] Allocated by task 246: [ 50.867584] kasan_save_stack+0x3c/0x68 [ 50.868173] kasan_save_track+0x20/0x40 [ 50.868732] kasan_save_alloc_info+0x40/0x58 [ 50.869699] __kasan_kmalloc+0xd4/0xd8 [ 50.870248] __kmalloc_cache_noprof+0x15c/0x3c0 [ 50.870873] kasan_memcmp+0xbc/0x300 [ 50.871452] kunit_try_run_case+0x14c/0x3d0 [ 50.872071] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 50.872628] kthread+0x24c/0x2d0 [ 50.873115] ret_from_fork+0x10/0x20 [ 50.873744] [ 50.874100] The buggy address belongs to the object at fff00000c616c000 [ 50.874100] which belongs to the cache kmalloc-32 of size 32 [ 50.875896] The buggy address is located 0 bytes to the right of [ 50.875896] allocated 24-byte region [fff00000c616c000, fff00000c616c018) [ 50.877729] [ 50.878057] The buggy address belongs to the physical page: [ 50.878752] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10616c [ 50.879732] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 50.880623] page_type: f5(slab) [ 50.881410] raw: 0bfffe0000000000 fff00000c0001780 dead000000000122 0000000000000000 [ 50.882352] raw: 0000000000000000 0000000080400040 00000001f5000000 0000000000000000 [ 50.883212] page dumped because: kasan: bad access detected [ 50.883940] [ 50.884225] Memory state around the buggy address: [ 50.884959] fff00000c616bf00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 50.886153] fff00000c616bf80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 50.887123] >fff00000c616c000: 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc [ 50.887984] ^ [ 50.888527] fff00000c616c080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 50.889696] fff00000c616c100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 50.890562] ==================================================================
[ 28.235640] ================================================================== [ 28.236918] BUG: KASAN: slab-out-of-bounds in memcmp+0x1b4/0x1d0 [ 28.237773] Read of size 1 at addr ffff888101ab8758 by task kunit_try_catch/265 [ 28.239394] [ 28.239594] CPU: 0 UID: 0 PID: 265 Comm: kunit_try_catch Tainted: G B N 6.12.0-next-20241127 #1 [ 28.240477] Tainted: [B]=BAD_PAGE, [N]=TEST [ 28.240665] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 28.241123] Call Trace: [ 28.241545] <TASK> [ 28.242305] dump_stack_lvl+0x73/0xb0 [ 28.243204] print_report+0xd1/0x640 [ 28.243522] ? __virt_addr_valid+0x1db/0x2d0 [ 28.244329] ? kasan_complete_mode_report_info+0x2a/0x200 [ 28.244853] kasan_report+0x102/0x140 [ 28.245281] ? memcmp+0x1b4/0x1d0 [ 28.245646] ? memcmp+0x1b4/0x1d0 [ 28.246070] __asan_report_load1_noabort+0x18/0x20 [ 28.246486] memcmp+0x1b4/0x1d0 [ 28.247693] kasan_memcmp+0x190/0x390 [ 28.248102] ? trace_hardirqs_on+0x37/0xe0 [ 28.248533] ? __pfx_kasan_memcmp+0x10/0x10 [ 28.248968] ? finish_task_switch.isra.0+0x153/0x700 [ 28.249966] ? __switch_to+0x5d9/0xf60 [ 28.250293] ? __pfx_read_tsc+0x10/0x10 [ 28.251646] ? ktime_get_ts64+0x84/0x230 [ 28.252617] kunit_try_run_case+0x1b3/0x490 [ 28.253089] ? __pfx_kunit_try_run_case+0x10/0x10 [ 28.253553] ? _raw_spin_lock_irqsave+0xa2/0x110 [ 28.254044] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 28.254560] ? __kthread_parkme+0x82/0x160 [ 28.255024] ? preempt_count_sub+0x50/0x80 [ 28.256135] ? __pfx_kunit_try_run_case+0x10/0x10 [ 28.256507] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 28.257774] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 28.258645] kthread+0x257/0x310 [ 28.259504] ? __pfx_kthread+0x10/0x10 [ 28.260322] ret_from_fork+0x41/0x80 [ 28.261125] ? __pfx_kthread+0x10/0x10 [ 28.261809] ret_from_fork_asm+0x1a/0x30 [ 28.262478] </TASK> [ 28.262666] [ 28.263657] Allocated by task 265: [ 28.264086] kasan_save_stack+0x3d/0x60 [ 28.264964] kasan_save_track+0x18/0x40 [ 28.265530] kasan_save_alloc_info+0x3b/0x50 [ 28.266156] __kasan_kmalloc+0xb7/0xc0 [ 28.266629] __kmalloc_cache_noprof+0x184/0x410 [ 28.267732] kasan_memcmp+0xb8/0x390 [ 28.268107] kunit_try_run_case+0x1b3/0x490 [ 28.269424] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 28.270393] kthread+0x257/0x310 [ 28.270577] ret_from_fork+0x41/0x80 [ 28.270750] ret_from_fork_asm+0x1a/0x30 [ 28.270967] [ 28.271404] The buggy address belongs to the object at ffff888101ab8740 [ 28.271404] which belongs to the cache kmalloc-32 of size 32 [ 28.274280] The buggy address is located 0 bytes to the right of [ 28.274280] allocated 24-byte region [ffff888101ab8740, ffff888101ab8758) [ 28.276189] [ 28.276336] The buggy address belongs to the physical page: [ 28.277447] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x101ab8 [ 28.278699] flags: 0x200000000000000(node=0|zone=2) [ 28.279580] page_type: f5(slab) [ 28.279859] raw: 0200000000000000 ffff888100041780 dead000000000122 0000000000000000 [ 28.281056] raw: 0000000000000000 0000000080400040 00000001f5000000 0000000000000000 [ 28.281768] page dumped because: kasan: bad access detected [ 28.282296] [ 28.282498] Memory state around the buggy address: [ 28.282953] ffff888101ab8600: 00 00 07 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 28.283763] ffff888101ab8680: 00 00 00 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 28.285340] >ffff888101ab8700: 00 00 07 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 28.286033] ^ [ 28.286403] ffff888101ab8780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 28.287240] ffff888101ab8800: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 28.288330] ==================================================================