Date
Nov. 26, 2024, 6:09 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 31.551926] ================================================================== [ 31.553141] BUG: KASAN: slab-out-of-bounds in kmalloc_memmove_invalid_size+0x154/0x2e8 [ 31.554573] Read of size 64 at addr fff00000c6499484 by task kunit_try_catch/171 [ 31.555380] [ 31.556164] CPU: 1 UID: 0 PID: 171 Comm: kunit_try_catch Tainted: G B N 6.12.0-next-20241126 #1 [ 31.558462] Tainted: [B]=BAD_PAGE, [N]=TEST [ 31.559148] Hardware name: linux,dummy-virt (DT) [ 31.559895] Call trace: [ 31.560578] show_stack+0x20/0x38 (C) [ 31.561806] dump_stack_lvl+0x8c/0xd0 [ 31.562651] print_report+0x118/0x5e0 [ 31.563434] kasan_report+0xc8/0x118 [ 31.564195] kasan_check_range+0x100/0x1a8 [ 31.565137] __asan_memmove+0x3c/0x98 [ 31.565886] kmalloc_memmove_invalid_size+0x154/0x2e8 [ 31.566753] kunit_try_run_case+0x14c/0x3d0 [ 31.567552] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 31.568520] kthread+0x24c/0x2d0 [ 31.569047] ret_from_fork+0x10/0x20 [ 31.569426] [ 31.570050] Allocated by task 171: [ 31.570619] kasan_save_stack+0x3c/0x68 [ 31.571502] kasan_save_track+0x20/0x40 [ 31.572298] kasan_save_alloc_info+0x40/0x58 [ 31.573453] __kasan_kmalloc+0xd4/0xd8 [ 31.573943] __kmalloc_cache_noprof+0x15c/0x3c8 [ 31.574859] kmalloc_memmove_invalid_size+0xb0/0x2e8 [ 31.575698] kunit_try_run_case+0x14c/0x3d0 [ 31.576191] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 31.577310] kthread+0x24c/0x2d0 [ 31.578036] ret_from_fork+0x10/0x20 [ 31.578546] [ 31.578866] The buggy address belongs to the object at fff00000c6499480 [ 31.578866] which belongs to the cache kmalloc-64 of size 64 [ 31.580673] The buggy address is located 4 bytes inside of [ 31.580673] allocated 64-byte region [fff00000c6499480, fff00000c64994c0) [ 31.582355] [ 31.582937] The buggy address belongs to the physical page: [ 31.583762] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106499 [ 31.584847] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 31.585616] page_type: f5(slab) [ 31.586524] raw: 0bfffe0000000000 fff00000c00018c0 dead000000000122 0000000000000000 [ 31.587439] raw: 0000000000000000 0000000080200020 00000001f5000000 0000000000000000 [ 31.588309] page dumped because: kasan: bad access detected [ 31.588978] [ 31.589392] Memory state around the buggy address: [ 31.589966] fff00000c6499380: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 31.590932] fff00000c6499400: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 31.591690] >fff00000c6499480: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc [ 31.593153] ^ [ 31.593980] fff00000c6499500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 31.594974] fff00000c6499580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 31.596136] ==================================================================
[ 31.536362] ================================================================== [ 31.538091] BUG: KASAN: slab-out-of-bounds in kmalloc_memmove_invalid_size+0x154/0x2e8 [ 31.539069] Read of size 64 at addr fff00000c5e5ec84 by task kunit_try_catch/171 [ 31.539895] [ 31.540313] CPU: 1 UID: 0 PID: 171 Comm: kunit_try_catch Tainted: G B N 6.12.0-next-20241126 #1 [ 31.541625] Tainted: [B]=BAD_PAGE, [N]=TEST [ 31.542115] Hardware name: linux,dummy-virt (DT) [ 31.542678] Call trace: [ 31.543139] show_stack+0x20/0x38 (C) [ 31.543787] dump_stack_lvl+0x8c/0xd0 [ 31.544316] print_report+0x118/0x5e0 [ 31.544960] kasan_report+0xc8/0x118 [ 31.545573] kasan_check_range+0x100/0x1a8 [ 31.546101] __asan_memmove+0x3c/0x98 [ 31.546759] kmalloc_memmove_invalid_size+0x154/0x2e8 [ 31.547479] kunit_try_run_case+0x14c/0x3d0 [ 31.548101] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 31.548976] kthread+0x24c/0x2d0 [ 31.549602] ret_from_fork+0x10/0x20 [ 31.550199] [ 31.550573] Allocated by task 171: [ 31.551125] kasan_save_stack+0x3c/0x68 [ 31.551771] kasan_save_track+0x20/0x40 [ 31.552289] kasan_save_alloc_info+0x40/0x58 [ 31.552976] __kasan_kmalloc+0xd4/0xd8 [ 31.553602] __kmalloc_cache_noprof+0x15c/0x3c8 [ 31.554174] kmalloc_memmove_invalid_size+0xb0/0x2e8 [ 31.554923] kunit_try_run_case+0x14c/0x3d0 [ 31.555560] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 31.556277] kthread+0x24c/0x2d0 [ 31.556866] ret_from_fork+0x10/0x20 [ 31.557426] [ 31.557784] The buggy address belongs to the object at fff00000c5e5ec80 [ 31.557784] which belongs to the cache kmalloc-64 of size 64 [ 31.559090] The buggy address is located 4 bytes inside of [ 31.559090] allocated 64-byte region [fff00000c5e5ec80, fff00000c5e5ecc0) [ 31.560270] [ 31.560653] The buggy address belongs to the physical page: [ 31.561396] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105e5e [ 31.562412] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 31.563181] page_type: f5(slab) [ 31.563703] raw: 0bfffe0000000000 fff00000c00018c0 dead000000000122 0000000000000000 [ 31.564353] raw: 0000000000000000 0000000080200020 00000001f5000000 0000000000000000 [ 31.564999] page dumped because: kasan: bad access detected [ 31.565518] [ 31.565895] Memory state around the buggy address: [ 31.566622] fff00000c5e5eb80: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc [ 31.567439] fff00000c5e5ec00: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 31.568322] >fff00000c5e5ec80: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc [ 31.569179] ^ [ 31.569818] fff00000c5e5ed00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 31.570499] fff00000c5e5ed80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 31.571467] ==================================================================
[ 25.689985] ================================================================== [ 25.690406] BUG: KASAN: slab-out-of-bounds in kmalloc_memmove_invalid_size+0x170/0x330 [ 25.690406] Read of size 64 at addr ffff888102936f04 by task kunit_try_catch/191 [ 25.690406] [ 25.690406] CPU: 1 UID: 0 PID: 191 Comm: kunit_try_catch Tainted: G B N 6.12.0-next-20241126 #1 [ 25.690406] Tainted: [B]=BAD_PAGE, [N]=TEST [ 25.690406] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 25.690406] Call Trace: [ 25.690406] <TASK> [ 25.690406] dump_stack_lvl+0x73/0xb0 [ 25.690406] print_report+0xd1/0x640 [ 25.690406] ? __virt_addr_valid+0x1db/0x2d0 [ 25.690406] ? kasan_complete_mode_report_info+0x2a/0x200 [ 25.690406] kasan_report+0x102/0x140 [ 25.690406] ? kmalloc_memmove_invalid_size+0x170/0x330 [ 25.690406] ? kmalloc_memmove_invalid_size+0x170/0x330 [ 25.690406] kasan_check_range+0x10c/0x1c0 [ 25.690406] __asan_memmove+0x27/0x70 [ 25.690406] kmalloc_memmove_invalid_size+0x170/0x330 [ 25.690406] ? __pfx_kmalloc_memmove_invalid_size+0x10/0x10 [ 25.690406] ? __schedule+0xc3e/0x2790 [ 25.690406] ? ktime_get_ts64+0x84/0x230 [ 25.690406] kunit_try_run_case+0x1b3/0x490 [ 25.690406] ? __pfx_kunit_try_run_case+0x10/0x10 [ 25.690406] ? _raw_spin_lock_irqsave+0xa2/0x110 [ 25.690406] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 25.690406] ? __kthread_parkme+0x82/0x160 [ 25.690406] ? preempt_count_sub+0x50/0x80 [ 25.690406] ? __pfx_kunit_try_run_case+0x10/0x10 [ 25.690406] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 25.690406] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 25.690406] kthread+0x257/0x310 [ 25.690406] ? __pfx_kthread+0x10/0x10 [ 25.690406] ret_from_fork+0x41/0x80 [ 25.690406] ? __pfx_kthread+0x10/0x10 [ 25.690406] ret_from_fork_asm+0x1a/0x30 [ 25.690406] </TASK> [ 25.690406] [ 25.690406] Allocated by task 191: [ 25.690406] kasan_save_stack+0x3d/0x60 [ 25.690406] kasan_save_track+0x18/0x40 [ 25.690406] kasan_save_alloc_info+0x3b/0x50 [ 25.690406] __kasan_kmalloc+0xb7/0xc0 [ 25.690406] __kmalloc_cache_noprof+0x184/0x410 [ 25.690406] kmalloc_memmove_invalid_size+0xad/0x330 [ 25.690406] kunit_try_run_case+0x1b3/0x490 [ 25.690406] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 25.690406] kthread+0x257/0x310 [ 25.690406] ret_from_fork+0x41/0x80 [ 25.690406] ret_from_fork_asm+0x1a/0x30 [ 25.690406] [ 25.690406] The buggy address belongs to the object at ffff888102936f00 [ 25.690406] which belongs to the cache kmalloc-64 of size 64 [ 25.690406] The buggy address is located 4 bytes inside of [ 25.690406] allocated 64-byte region [ffff888102936f00, ffff888102936f40) [ 25.690406] [ 25.690406] The buggy address belongs to the physical page: [ 25.690406] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102936 [ 25.690406] flags: 0x200000000000000(node=0|zone=2) [ 25.690406] page_type: f5(slab) [ 25.690406] raw: 0200000000000000 ffff8881000418c0 dead000000000122 0000000000000000 [ 25.690406] raw: 0000000000000000 0000000080200020 00000001f5000000 0000000000000000 [ 25.690406] page dumped because: kasan: bad access detected [ 25.690406] [ 25.690406] Memory state around the buggy address: [ 25.690406] ffff888102936e00: 00 00 00 00 01 fc fc fc fc fc fc fc fc fc fc fc [ 25.690406] ffff888102936e80: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 25.690406] >ffff888102936f00: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc [ 25.690406] ^ [ 25.690406] ffff888102936f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.690406] ffff888102937000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.690406] ==================================================================
[ 20.724871] ================================================================== [ 20.725698] BUG: KASAN: slab-out-of-bounds in kmalloc_memmove_invalid_size+0x170/0x330 [ 20.727078] Read of size 64 at addr ffff88810295ce84 by task kunit_try_catch/189 [ 20.728012] [ 20.728446] CPU: 1 UID: 0 PID: 189 Comm: kunit_try_catch Tainted: G B N 6.12.0-next-20241126 #1 [ 20.729837] Tainted: [B]=BAD_PAGE, [N]=TEST [ 20.730366] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 20.731100] Call Trace: [ 20.731414] <TASK> [ 20.731772] dump_stack_lvl+0x73/0xb0 [ 20.732385] print_report+0xd1/0x640 [ 20.732753] ? __virt_addr_valid+0x1db/0x2d0 [ 20.733731] ? kasan_complete_mode_report_info+0x2a/0x200 [ 20.734257] kasan_report+0x102/0x140 [ 20.734709] ? kmalloc_memmove_invalid_size+0x170/0x330 [ 20.735082] ? kmalloc_memmove_invalid_size+0x170/0x330 [ 20.735816] kasan_check_range+0x10c/0x1c0 [ 20.736337] __asan_memmove+0x27/0x70 [ 20.736823] kmalloc_memmove_invalid_size+0x170/0x330 [ 20.737742] ? __pfx_kmalloc_memmove_invalid_size+0x10/0x10 [ 20.738334] ? __schedule+0xc3e/0x2790 [ 20.738826] ? __pfx_read_tsc+0x10/0x10 [ 20.739409] ? ktime_get_ts64+0x84/0x230 [ 20.739897] kunit_try_run_case+0x1b3/0x490 [ 20.740559] ? __pfx_kunit_try_run_case+0x10/0x10 [ 20.741796] ? _raw_spin_lock_irqsave+0xa2/0x110 [ 20.742139] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 20.742813] ? __kthread_parkme+0x82/0x160 [ 20.743190] ? preempt_count_sub+0x50/0x80 [ 20.743600] ? __pfx_kunit_try_run_case+0x10/0x10 [ 20.744036] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 20.744773] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 20.745773] kthread+0x257/0x310 [ 20.746305] ? __pfx_kthread+0x10/0x10 [ 20.746786] ret_from_fork+0x41/0x80 [ 20.747362] ? __pfx_kthread+0x10/0x10 [ 20.747754] ret_from_fork_asm+0x1a/0x30 [ 20.748389] </TASK> [ 20.748729] [ 20.749391] Allocated by task 189: [ 20.749701] kasan_save_stack+0x3d/0x60 [ 20.750265] kasan_save_track+0x18/0x40 [ 20.750564] kasan_save_alloc_info+0x3b/0x50 [ 20.751214] __kasan_kmalloc+0xb7/0xc0 [ 20.751647] __kmalloc_cache_noprof+0x184/0x410 [ 20.752318] kmalloc_memmove_invalid_size+0xad/0x330 [ 20.752798] kunit_try_run_case+0x1b3/0x490 [ 20.753689] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 20.754191] kthread+0x257/0x310 [ 20.754569] ret_from_fork+0x41/0x80 [ 20.754887] ret_from_fork_asm+0x1a/0x30 [ 20.755253] [ 20.755477] The buggy address belongs to the object at ffff88810295ce80 [ 20.755477] which belongs to the cache kmalloc-64 of size 64 [ 20.756567] The buggy address is located 4 bytes inside of [ 20.756567] allocated 64-byte region [ffff88810295ce80, ffff88810295cec0) [ 20.757906] [ 20.758353] The buggy address belongs to the physical page: [ 20.758928] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10295c [ 20.759604] flags: 0x200000000000000(node=0|zone=2) [ 20.760103] page_type: f5(slab) [ 20.760413] raw: 0200000000000000 ffff8881000418c0 dead000000000122 0000000000000000 [ 20.762265] raw: 0000000000000000 0000000080200020 00000001f5000000 0000000000000000 [ 20.762787] page dumped because: kasan: bad access detected [ 20.763276] [ 20.763475] Memory state around the buggy address: [ 20.764481] ffff88810295cd80: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 20.765384] ffff88810295ce00: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 20.766287] >ffff88810295ce80: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc [ 20.766843] ^ [ 20.768137] ffff88810295cf00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 20.768863] ffff88810295cf80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 20.769611] ==================================================================