Date
Nov. 22, 2024, 6:35 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 32.233292] ================================================================== [ 32.234355] BUG: KASAN: slab-out-of-bounds in kmalloc_track_caller_oob_right+0x420/0x490 [ 32.235859] Write of size 1 at addr fff00000c63b6578 by task kunit_try_catch/131 [ 32.237394] [ 32.238007] CPU: 0 UID: 0 PID: 131 Comm: kunit_try_catch Tainted: G B N 6.12.0-next-20241122 #1 [ 32.239253] Tainted: [B]=BAD_PAGE, [N]=TEST [ 32.240054] Hardware name: linux,dummy-virt (DT) [ 32.240632] Call trace: [ 32.241127] show_stack+0x20/0x38 (C) [ 32.242262] dump_stack_lvl+0x8c/0xd0 [ 32.242863] print_report+0x118/0x5e0 [ 32.243538] kasan_report+0xc8/0x118 [ 32.244025] __asan_report_store1_noabort+0x20/0x30 [ 32.245301] kmalloc_track_caller_oob_right+0x420/0x490 [ 32.246057] kunit_try_run_case+0x14c/0x3d0 [ 32.246829] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 32.247591] kthread+0x24c/0x2d0 [ 32.248168] ret_from_fork+0x10/0x20 [ 32.249051] [ 32.249383] Allocated by task 131: [ 32.249894] kasan_save_stack+0x3c/0x68 [ 32.250996] kasan_save_track+0x20/0x40 [ 32.251575] kasan_save_alloc_info+0x40/0x58 [ 32.252148] __kasan_kmalloc+0xd4/0xd8 [ 32.253055] __kmalloc_node_track_caller_noprof+0x184/0x4b8 [ 32.254168] kmalloc_track_caller_oob_right+0x184/0x490 [ 32.255295] kunit_try_run_case+0x14c/0x3d0 [ 32.255819] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 32.257615] kthread+0x24c/0x2d0 [ 32.258072] ret_from_fork+0x10/0x20 [ 32.258680] [ 32.258996] The buggy address belongs to the object at fff00000c63b6500 [ 32.258996] which belongs to the cache kmalloc-128 of size 128 [ 32.261011] The buggy address is located 0 bytes to the right of [ 32.261011] allocated 120-byte region [fff00000c63b6500, fff00000c63b6578) [ 32.262792] [ 32.263101] The buggy address belongs to the physical page: [ 32.263817] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1063b6 [ 32.264551] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 32.267913] page_type: f5(slab) [ 32.268359] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 32.269042] raw: 0000000000000000 0000000080100010 00000001f5000000 0000000000000000 [ 32.270101] page dumped because: kasan: bad access detected [ 32.271184] [ 32.272180] Memory state around the buggy address: [ 32.272939] fff00000c63b6400: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 32.275196] fff00000c63b6480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 32.276116] >fff00000c63b6500: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 32.277086] ^ [ 32.279585] fff00000c63b6580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 32.281250] fff00000c63b6600: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 32.282054] ================================================================== [ 32.182868] ================================================================== [ 32.184206] BUG: KASAN: slab-out-of-bounds in kmalloc_track_caller_oob_right+0x414/0x490 [ 32.185314] Write of size 1 at addr fff00000c63b6478 by task kunit_try_catch/131 [ 32.186968] [ 32.187286] CPU: 0 UID: 0 PID: 131 Comm: kunit_try_catch Tainted: G B N 6.12.0-next-20241122 #1 [ 32.189312] Tainted: [B]=BAD_PAGE, [N]=TEST [ 32.189968] Hardware name: linux,dummy-virt (DT) [ 32.190566] Call trace: [ 32.190913] show_stack+0x20/0x38 (C) [ 32.191636] dump_stack_lvl+0x8c/0xd0 [ 32.192427] print_report+0x118/0x5e0 [ 32.193212] kasan_report+0xc8/0x118 [ 32.194172] __asan_report_store1_noabort+0x20/0x30 [ 32.195074] kmalloc_track_caller_oob_right+0x414/0x490 [ 32.195833] kunit_try_run_case+0x14c/0x3d0 [ 32.196752] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 32.197703] kthread+0x24c/0x2d0 [ 32.198304] ret_from_fork+0x10/0x20 [ 32.198978] [ 32.199385] Allocated by task 131: [ 32.199952] kasan_save_stack+0x3c/0x68 [ 32.200704] kasan_save_track+0x20/0x40 [ 32.201683] kasan_save_alloc_info+0x40/0x58 [ 32.202965] __kasan_kmalloc+0xd4/0xd8 [ 32.203413] __kmalloc_node_track_caller_noprof+0x184/0x4b8 [ 32.204251] kmalloc_track_caller_oob_right+0xa8/0x490 [ 32.205318] kunit_try_run_case+0x14c/0x3d0 [ 32.206406] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 32.207172] kthread+0x24c/0x2d0 [ 32.207676] ret_from_fork+0x10/0x20 [ 32.208210] [ 32.208924] The buggy address belongs to the object at fff00000c63b6400 [ 32.208924] which belongs to the cache kmalloc-128 of size 128 [ 32.210978] The buggy address is located 0 bytes to the right of [ 32.210978] allocated 120-byte region [fff00000c63b6400, fff00000c63b6478) [ 32.213979] [ 32.214567] The buggy address belongs to the physical page: [ 32.215946] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1063b6 [ 32.217846] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 32.219023] page_type: f5(slab) [ 32.219643] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 32.220100] raw: 0000000000000000 0000000080100010 00000001f5000000 0000000000000000 [ 32.220853] page dumped because: kasan: bad access detected [ 32.222104] [ 32.222374] Memory state around the buggy address: [ 32.223144] fff00000c63b6300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc fc [ 32.225399] fff00000c63b6380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 32.226311] >fff00000c63b6400: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 32.227377] ^ [ 32.228398] fff00000c63b6480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 32.229662] fff00000c63b6500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 32.230527] ==================================================================
[ 23.862591] ================================================================== [ 23.863624] BUG: KASAN: slab-out-of-bounds in kmalloc_track_caller_oob_right+0x4ca/0x530 [ 23.864268] Write of size 1 at addr ffff888102a04578 by task kunit_try_catch/150 [ 23.865132] [ 23.865559] CPU: 1 UID: 0 PID: 150 Comm: kunit_try_catch Tainted: G B N 6.12.0-next-20241122 #1 [ 23.866435] Tainted: [B]=BAD_PAGE, [N]=TEST [ 23.867542] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 23.868549] Call Trace: [ 23.869045] <TASK> [ 23.869332] dump_stack_lvl+0x73/0xb0 [ 23.869818] print_report+0xd1/0x640 [ 23.870325] ? __virt_addr_valid+0x1db/0x2d0 [ 23.871088] ? kasan_complete_mode_report_info+0x2a/0x200 [ 23.872401] kasan_report+0x102/0x140 [ 23.872877] ? kmalloc_track_caller_oob_right+0x4ca/0x530 [ 23.873365] ? kmalloc_track_caller_oob_right+0x4ca/0x530 [ 23.874183] __asan_report_store1_noabort+0x1b/0x30 [ 23.874501] kmalloc_track_caller_oob_right+0x4ca/0x530 [ 23.875176] ? __pfx_kmalloc_track_caller_oob_right+0x10/0x10 [ 23.875855] ? __pfx_kmalloc_track_caller_oob_right+0x10/0x10 [ 23.876273] kunit_try_run_case+0x1b3/0x490 [ 23.877521] ? __pfx_kunit_try_run_case+0x10/0x10 [ 23.878047] ? _raw_spin_lock_irqsave+0xa2/0x110 [ 23.878692] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 23.879150] ? __kthread_parkme+0x82/0x160 [ 23.880159] ? preempt_count_sub+0x50/0x80 [ 23.880951] ? __pfx_kunit_try_run_case+0x10/0x10 [ 23.881684] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 23.882385] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 23.883389] kthread+0x257/0x310 [ 23.884237] ? __pfx_kthread+0x10/0x10 [ 23.884632] ret_from_fork+0x41/0x80 [ 23.885069] ? __pfx_kthread+0x10/0x10 [ 23.885692] ret_from_fork_asm+0x1a/0x30 [ 23.886417] </TASK> [ 23.886679] [ 23.887113] Allocated by task 150: [ 23.887408] kasan_save_stack+0x3d/0x60 [ 23.888213] kasan_save_track+0x18/0x40 [ 23.888652] kasan_save_alloc_info+0x3b/0x50 [ 23.889266] __kasan_kmalloc+0xb7/0xc0 [ 23.889868] __kmalloc_node_track_caller_noprof+0x1c6/0x500 [ 23.890341] kmalloc_track_caller_oob_right+0x9a/0x530 [ 23.891807] kunit_try_run_case+0x1b3/0x490 [ 23.892418] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 23.892877] kthread+0x257/0x310 [ 23.893440] ret_from_fork+0x41/0x80 [ 23.893815] ret_from_fork_asm+0x1a/0x30 [ 23.894434] [ 23.894672] The buggy address belongs to the object at ffff888102a04500 [ 23.894672] which belongs to the cache kmalloc-128 of size 128 [ 23.895672] The buggy address is located 0 bytes to the right of [ 23.895672] allocated 120-byte region [ffff888102a04500, ffff888102a04578) [ 23.897049] [ 23.897513] The buggy address belongs to the physical page: [ 23.898214] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102a04 [ 23.898978] flags: 0x200000000000000(node=0|zone=2) [ 23.900328] page_type: f5(slab) [ 23.901031] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 23.902045] raw: 0000000000000000 0000000080100010 00000001f5000000 0000000000000000 [ 23.902766] page dumped because: kasan: bad access detected [ 23.903496] [ 23.903659] Memory state around the buggy address: [ 23.904853] ffff888102a04400: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc fc [ 23.905710] ffff888102a04480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.906402] >ffff888102a04500: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 23.907212] ^ [ 23.908149] ffff888102a04580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.908628] ffff888102a04600: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.909565] ================================================================== [ 23.912690] ================================================================== [ 23.913531] BUG: KASAN: slab-out-of-bounds in kmalloc_track_caller_oob_right+0x4b3/0x530 [ 23.914353] Write of size 1 at addr ffff888102a04678 by task kunit_try_catch/150 [ 23.915216] [ 23.915491] CPU: 1 UID: 0 PID: 150 Comm: kunit_try_catch Tainted: G B N 6.12.0-next-20241122 #1 [ 23.916416] Tainted: [B]=BAD_PAGE, [N]=TEST [ 23.916891] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 23.917713] Call Trace: [ 23.918649] <TASK> [ 23.919246] dump_stack_lvl+0x73/0xb0 [ 23.919700] print_report+0xd1/0x640 [ 23.920087] ? __virt_addr_valid+0x1db/0x2d0 [ 23.920768] ? kasan_complete_mode_report_info+0x2a/0x200 [ 23.921468] kasan_report+0x102/0x140 [ 23.922022] ? kmalloc_track_caller_oob_right+0x4b3/0x530 [ 23.922599] ? kmalloc_track_caller_oob_right+0x4b3/0x530 [ 23.923868] __asan_report_store1_noabort+0x1b/0x30 [ 23.924435] kmalloc_track_caller_oob_right+0x4b3/0x530 [ 23.925045] ? __pfx_kmalloc_track_caller_oob_right+0x10/0x10 [ 23.925501] ? __pfx_kmalloc_track_caller_oob_right+0x10/0x10 [ 23.926463] kunit_try_run_case+0x1b3/0x490 [ 23.927055] ? __pfx_kunit_try_run_case+0x10/0x10 [ 23.927778] ? _raw_spin_lock_irqsave+0xa2/0x110 [ 23.928157] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 23.928859] ? __kthread_parkme+0x82/0x160 [ 23.929422] ? preempt_count_sub+0x50/0x80 [ 23.931106] ? __pfx_kunit_try_run_case+0x10/0x10 [ 23.931898] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 23.932642] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 23.933336] kthread+0x257/0x310 [ 23.933775] ? __pfx_kthread+0x10/0x10 [ 23.934947] ret_from_fork+0x41/0x80 [ 23.935499] ? __pfx_kthread+0x10/0x10 [ 23.935800] ret_from_fork_asm+0x1a/0x30 [ 23.936227] </TASK> [ 23.936697] [ 23.936937] Allocated by task 150: [ 23.937494] kasan_save_stack+0x3d/0x60 [ 23.937842] kasan_save_track+0x18/0x40 [ 23.938299] kasan_save_alloc_info+0x3b/0x50 [ 23.938913] __kasan_kmalloc+0xb7/0xc0 [ 23.939422] __kmalloc_node_track_caller_noprof+0x1c6/0x500 [ 23.940233] kmalloc_track_caller_oob_right+0x19b/0x530 [ 23.940571] kunit_try_run_case+0x1b3/0x490 [ 23.942003] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 23.942701] kthread+0x257/0x310 [ 23.943066] ret_from_fork+0x41/0x80 [ 23.943697] ret_from_fork_asm+0x1a/0x30 [ 23.944045] [ 23.944199] The buggy address belongs to the object at ffff888102a04600 [ 23.944199] which belongs to the cache kmalloc-128 of size 128 [ 23.945289] The buggy address is located 0 bytes to the right of [ 23.945289] allocated 120-byte region [ffff888102a04600, ffff888102a04678) [ 23.946508] [ 23.946723] The buggy address belongs to the physical page: [ 23.947563] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102a04 [ 23.948216] flags: 0x200000000000000(node=0|zone=2) [ 23.948513] page_type: f5(slab) [ 23.948784] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 23.950052] raw: 0000000000000000 0000000080100010 00000001f5000000 0000000000000000 [ 23.951565] page dumped because: kasan: bad access detected [ 23.952373] [ 23.952651] Memory state around the buggy address: [ 23.953134] ffff888102a04500: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 23.953860] ffff888102a04580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.954339] >ffff888102a04600: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 23.955231] ^ [ 23.956314] ffff888102a04680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.956972] ffff888102a04700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.957357] ==================================================================