Date
Nov. 27, 2024, 3:37 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 46.623327] ================================================================== [ 46.624670] BUG: KASAN: slab-out-of-bounds in kmalloc_node_oob_right+0x2f4/0x330 [ 46.625861] Read of size 1 at addr fff00000c642d000 by task kunit_try_catch/129 [ 46.627217] [ 46.628122] CPU: 1 UID: 0 PID: 129 Comm: kunit_try_catch Tainted: G B N 6.12.0-next-20241127 #1 [ 46.630235] Tainted: [B]=BAD_PAGE, [N]=TEST [ 46.631521] Hardware name: linux,dummy-virt (DT) [ 46.631824] Call trace: [ 46.632026] show_stack+0x20/0x38 (C) [ 46.632340] dump_stack_lvl+0x8c/0xd0 [ 46.632962] print_report+0x118/0x5e0 [ 46.633859] kasan_report+0xc8/0x118 [ 46.634690] __asan_report_load1_noabort+0x20/0x30 [ 46.635462] kmalloc_node_oob_right+0x2f4/0x330 [ 46.636200] kunit_try_run_case+0x14c/0x3d0 [ 46.636996] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 46.638052] kthread+0x24c/0x2d0 [ 46.638785] ret_from_fork+0x10/0x20 [ 46.639396] [ 46.639809] Allocated by task 129: [ 46.640345] kasan_save_stack+0x3c/0x68 [ 46.640897] kasan_save_track+0x20/0x40 [ 46.641880] kasan_save_alloc_info+0x40/0x58 [ 46.642429] __kasan_kmalloc+0xd4/0xd8 [ 46.642972] __kmalloc_cache_node_noprof+0x168/0x3d0 [ 46.643724] kmalloc_node_oob_right+0xbc/0x330 [ 46.644353] kunit_try_run_case+0x14c/0x3d0 [ 46.644919] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 46.645696] kthread+0x24c/0x2d0 [ 46.646233] ret_from_fork+0x10/0x20 [ 46.647246] [ 46.647605] The buggy address belongs to the object at fff00000c642c000 [ 46.647605] which belongs to the cache kmalloc-4k of size 4096 [ 46.649061] The buggy address is located 0 bytes to the right of [ 46.649061] allocated 4096-byte region [fff00000c642c000, fff00000c642d000) [ 46.650834] [ 46.651151] The buggy address belongs to the physical page: [ 46.651940] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106428 [ 46.653086] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 46.654273] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 46.655277] page_type: f5(slab) [ 46.655760] raw: 0bfffe0000000040 fff00000c0002140 dead000000000122 0000000000000000 [ 46.656739] raw: 0000000000000000 0000000080040004 00000001f5000000 0000000000000000 [ 46.658215] head: 0bfffe0000000040 fff00000c0002140 dead000000000122 0000000000000000 [ 46.659182] head: 0000000000000000 0000000080040004 00000001f5000000 0000000000000000 [ 46.660170] head: 0bfffe0000000003 ffffc1ffc3190a01 ffffffffffffffff 0000000000000000 [ 46.661332] head: 0000000000000008 0000000000000000 00000000ffffffff 0000000000000000 [ 46.662471] page dumped because: kasan: bad access detected [ 46.663356] [ 46.663710] Memory state around the buggy address: [ 46.664173] fff00000c642cf00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 46.664986] fff00000c642cf80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 46.665975] >fff00000c642d000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 46.666829] ^ [ 46.667311] fff00000c642d080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 46.668642] fff00000c642d100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 46.669696] ==================================================================
[ 23.696395] ================================================================== [ 23.697800] BUG: KASAN: slab-out-of-bounds in kmalloc_node_oob_right+0x36b/0x3d0 [ 23.698686] Read of size 1 at addr ffff8881028c5000 by task kunit_try_catch/148 [ 23.699401] [ 23.699888] CPU: 0 UID: 0 PID: 148 Comm: kunit_try_catch Tainted: G B N 6.12.0-next-20241127 #1 [ 23.701665] Tainted: [B]=BAD_PAGE, [N]=TEST [ 23.702217] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 23.703075] Call Trace: [ 23.703357] <TASK> [ 23.703611] dump_stack_lvl+0x73/0xb0 [ 23.704055] print_report+0xd1/0x640 [ 23.704341] ? __virt_addr_valid+0x1db/0x2d0 [ 23.704967] ? kasan_complete_mode_report_info+0x2a/0x200 [ 23.706739] kasan_report+0x102/0x140 [ 23.707464] ? kmalloc_node_oob_right+0x36b/0x3d0 [ 23.707883] ? kmalloc_node_oob_right+0x36b/0x3d0 [ 23.708584] __asan_report_load1_noabort+0x18/0x20 [ 23.709422] kmalloc_node_oob_right+0x36b/0x3d0 [ 23.710149] ? __pfx_kmalloc_node_oob_right+0x10/0x10 [ 23.710446] ? __pfx_kmalloc_node_oob_right+0x10/0x10 [ 23.710678] kunit_try_run_case+0x1b3/0x490 [ 23.710878] ? __pfx_kunit_try_run_case+0x10/0x10 [ 23.711211] ? _raw_spin_lock_irqsave+0xa2/0x110 [ 23.712105] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 23.712941] ? __kthread_parkme+0x82/0x160 [ 23.713784] ? preempt_count_sub+0x50/0x80 [ 23.714429] ? __pfx_kunit_try_run_case+0x10/0x10 [ 23.715470] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 23.716577] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 23.717142] kthread+0x257/0x310 [ 23.717589] ? __pfx_kthread+0x10/0x10 [ 23.717960] ret_from_fork+0x41/0x80 [ 23.718470] ? __pfx_kthread+0x10/0x10 [ 23.719312] ret_from_fork_asm+0x1a/0x30 [ 23.720196] </TASK> [ 23.720531] [ 23.720681] Allocated by task 148: [ 23.721162] kasan_save_stack+0x3d/0x60 [ 23.721737] kasan_save_track+0x18/0x40 [ 23.722496] kasan_save_alloc_info+0x3b/0x50 [ 23.722841] __kasan_kmalloc+0xb7/0xc0 [ 23.723401] __kmalloc_cache_node_noprof+0x183/0x410 [ 23.724484] kmalloc_node_oob_right+0xac/0x3d0 [ 23.724857] kunit_try_run_case+0x1b3/0x490 [ 23.725444] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 23.725890] kthread+0x257/0x310 [ 23.726235] ret_from_fork+0x41/0x80 [ 23.726636] ret_from_fork_asm+0x1a/0x30 [ 23.727368] [ 23.727625] The buggy address belongs to the object at ffff8881028c4000 [ 23.727625] which belongs to the cache kmalloc-4k of size 4096 [ 23.728555] The buggy address is located 0 bytes to the right of [ 23.728555] allocated 4096-byte region [ffff8881028c4000, ffff8881028c5000) [ 23.729712] [ 23.729871] The buggy address belongs to the physical page: [ 23.730712] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1028c0 [ 23.732140] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 23.732819] flags: 0x200000000000040(head|node=0|zone=2) [ 23.733736] page_type: f5(slab) [ 23.734235] raw: 0200000000000040 ffff888100042140 dead000000000122 0000000000000000 [ 23.734882] raw: 0000000000000000 0000000080040004 00000001f5000000 0000000000000000 [ 23.735806] head: 0200000000000040 ffff888100042140 dead000000000122 0000000000000000 [ 23.736723] head: 0000000000000000 0000000080040004 00000001f5000000 0000000000000000 [ 23.737611] head: 0200000000000003 ffffea00040a3001 ffffffffffffffff 0000000000000000 [ 23.738743] head: 0000000000000008 0000000000000000 00000000ffffffff 0000000000000000 [ 23.739494] page dumped because: kasan: bad access detected [ 23.740095] [ 23.740305] Memory state around the buggy address: [ 23.740846] ffff8881028c4f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 23.741587] ffff8881028c4f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 23.742414] >ffff8881028c5000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.743161] ^ [ 23.743625] ffff8881028c5080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.744393] ffff8881028c5100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.745106] ==================================================================