Date
Dec. 3, 2024, 11:38 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 29.216488] ================================================================== [ 29.217683] BUG: KASAN: slab-out-of-bounds in kmalloc_track_caller_oob_right+0x414/0x490 [ 29.218472] Write of size 1 at addr fff00000c646c978 by task kunit_try_catch/131 [ 29.219667] [ 29.220148] CPU: 0 UID: 0 PID: 131 Comm: kunit_try_catch Tainted: G B N 6.13.0-rc1-next-20241203 #1 [ 29.221431] Tainted: [B]=BAD_PAGE, [N]=TEST [ 29.222506] Hardware name: linux,dummy-virt (DT) [ 29.222998] Call trace: [ 29.224157] show_stack+0x20/0x38 (C) [ 29.225001] dump_stack_lvl+0x8c/0xd0 [ 29.225730] print_report+0x118/0x5e0 [ 29.226411] kasan_report+0xc8/0x118 [ 29.227116] __asan_report_store1_noabort+0x20/0x30 [ 29.228034] kmalloc_track_caller_oob_right+0x414/0x490 [ 29.228760] kunit_try_run_case+0x14c/0x3d0 [ 29.229413] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 29.230151] kthread+0x24c/0x2d0 [ 29.230855] ret_from_fork+0x10/0x20 [ 29.231417] [ 29.231784] Allocated by task 131: [ 29.233023] kasan_save_stack+0x3c/0x68 [ 29.233944] kasan_save_track+0x20/0x40 [ 29.234773] kasan_save_alloc_info+0x40/0x58 [ 29.235805] __kasan_kmalloc+0xd4/0xd8 [ 29.236306] __kmalloc_node_track_caller_noprof+0x184/0x4b8 [ 29.237043] kmalloc_track_caller_oob_right+0xa8/0x490 [ 29.237734] kunit_try_run_case+0x14c/0x3d0 [ 29.238679] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 29.239550] kthread+0x24c/0x2d0 [ 29.239823] ret_from_fork+0x10/0x20 [ 29.240096] [ 29.240266] The buggy address belongs to the object at fff00000c646c900 [ 29.240266] which belongs to the cache kmalloc-128 of size 128 [ 29.243446] The buggy address is located 0 bytes to the right of [ 29.243446] allocated 120-byte region [fff00000c646c900, fff00000c646c978) [ 29.245533] [ 29.245879] The buggy address belongs to the physical page: [ 29.246558] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10646c [ 29.247888] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 29.248831] page_type: f5(slab) [ 29.249267] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 29.250637] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 29.252134] page dumped because: kasan: bad access detected [ 29.252615] [ 29.252788] Memory state around the buggy address: [ 29.253098] fff00000c646c800: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc fc [ 29.253540] fff00000c646c880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 29.253974] >fff00000c646c900: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 29.254456] ^ [ 29.255305] fff00000c646c980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 29.256251] fff00000c646ca00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 29.257641] ==================================================================
[ 24.830564] ================================================================== [ 24.831357] BUG: KASAN: slab-out-of-bounds in kmalloc_track_caller_oob_right+0x4ca/0x530 [ 24.832525] Write of size 1 at addr ffff888102981378 by task kunit_try_catch/151 [ 24.833342] [ 24.834113] CPU: 0 UID: 0 PID: 151 Comm: kunit_try_catch Tainted: G B N 6.13.0-rc1-next-20241203 #1 [ 24.835650] Tainted: [B]=BAD_PAGE, [N]=TEST [ 24.836196] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 24.836874] Call Trace: [ 24.837518] <TASK> [ 24.837717] dump_stack_lvl+0x73/0xb0 [ 24.839004] print_report+0xd1/0x640 [ 24.839405] ? __virt_addr_valid+0x1db/0x2d0 [ 24.840037] ? kasan_complete_mode_report_info+0x2a/0x200 [ 24.840778] kasan_report+0x102/0x140 [ 24.841173] ? kmalloc_track_caller_oob_right+0x4ca/0x530 [ 24.841674] ? kmalloc_track_caller_oob_right+0x4ca/0x530 [ 24.842417] __asan_report_store1_noabort+0x1b/0x30 [ 24.842964] kmalloc_track_caller_oob_right+0x4ca/0x530 [ 24.843393] ? __pfx_kmalloc_track_caller_oob_right+0x10/0x10 [ 24.843875] ? __schedule+0xc3e/0x2790 [ 24.844631] ? __pfx_read_tsc+0x10/0x10 [ 24.844910] ? ktime_get_ts64+0x86/0x230 [ 24.846164] kunit_try_run_case+0x1b3/0x490 [ 24.847109] ? __pfx_kunit_try_run_case+0x10/0x10 [ 24.847793] ? _raw_spin_lock_irqsave+0xa2/0x110 [ 24.848412] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 24.848887] ? __kthread_parkme+0x82/0x160 [ 24.849721] ? preempt_count_sub+0x50/0x80 [ 24.850194] ? __pfx_kunit_try_run_case+0x10/0x10 [ 24.850948] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 24.851268] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 24.851824] kthread+0x257/0x310 [ 24.852573] ? __pfx_kthread+0x10/0x10 [ 24.853212] ret_from_fork+0x41/0x80 [ 24.853427] ? __pfx_kthread+0x10/0x10 [ 24.853796] ret_from_fork_asm+0x1a/0x30 [ 24.855150] </TASK> [ 24.855444] [ 24.856009] Allocated by task 151: [ 24.856362] kasan_save_stack+0x3d/0x60 [ 24.856912] kasan_save_track+0x18/0x40 [ 24.857151] kasan_save_alloc_info+0x3b/0x50 [ 24.857368] __kasan_kmalloc+0xb7/0xc0 [ 24.857602] __kmalloc_node_track_caller_noprof+0x1c6/0x500 [ 24.858108] kmalloc_track_caller_oob_right+0x9a/0x530 [ 24.858620] kunit_try_run_case+0x1b3/0x490 [ 24.859188] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 24.859574] kthread+0x257/0x310 [ 24.860137] ret_from_fork+0x41/0x80 [ 24.860554] ret_from_fork_asm+0x1a/0x30 [ 24.861219] [ 24.861434] The buggy address belongs to the object at ffff888102981300 [ 24.861434] which belongs to the cache kmalloc-128 of size 128 [ 24.863472] The buggy address is located 0 bytes to the right of [ 24.863472] allocated 120-byte region [ffff888102981300, ffff888102981378) [ 24.864464] [ 24.865126] The buggy address belongs to the physical page: [ 24.866261] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102981 [ 24.866996] flags: 0x200000000000000(node=0|zone=2) [ 24.867479] page_type: f5(slab) [ 24.867951] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 24.868994] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 24.869387] page dumped because: kasan: bad access detected [ 24.870171] [ 24.870409] Memory state around the buggy address: [ 24.871257] ffff888102981200: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 24.872452] ffff888102981280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.873364] >ffff888102981300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 24.874104] ^ [ 24.874711] ffff888102981380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.875333] ffff888102981400: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.876321] ================================================================== [ 24.878505] ================================================================== [ 24.879416] BUG: KASAN: slab-out-of-bounds in kmalloc_track_caller_oob_right+0x4b3/0x530 [ 24.880295] Write of size 1 at addr ffff888102981478 by task kunit_try_catch/151 [ 24.881129] [ 24.881392] CPU: 0 UID: 0 PID: 151 Comm: kunit_try_catch Tainted: G B N 6.13.0-rc1-next-20241203 #1 [ 24.882250] Tainted: [B]=BAD_PAGE, [N]=TEST [ 24.883270] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 24.884453] Call Trace: [ 24.884949] <TASK> [ 24.885529] dump_stack_lvl+0x73/0xb0 [ 24.886121] print_report+0xd1/0x640 [ 24.886559] ? __virt_addr_valid+0x1db/0x2d0 [ 24.886782] ? kasan_complete_mode_report_info+0x2a/0x200 [ 24.886972] kasan_report+0x102/0x140 [ 24.887656] ? kmalloc_track_caller_oob_right+0x4b3/0x530 [ 24.888896] ? kmalloc_track_caller_oob_right+0x4b3/0x530 [ 24.889725] __asan_report_store1_noabort+0x1b/0x30 [ 24.890355] kmalloc_track_caller_oob_right+0x4b3/0x530 [ 24.890937] ? __pfx_kmalloc_track_caller_oob_right+0x10/0x10 [ 24.891560] ? __schedule+0xc3e/0x2790 [ 24.892434] ? __pfx_read_tsc+0x10/0x10 [ 24.893287] ? ktime_get_ts64+0x86/0x230 [ 24.893761] kunit_try_run_case+0x1b3/0x490 [ 24.894197] ? __pfx_kunit_try_run_case+0x10/0x10 [ 24.894698] ? _raw_spin_lock_irqsave+0xa2/0x110 [ 24.895233] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 24.895981] ? __kthread_parkme+0x82/0x160 [ 24.896521] ? preempt_count_sub+0x50/0x80 [ 24.897122] ? __pfx_kunit_try_run_case+0x10/0x10 [ 24.897540] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 24.898144] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 24.899363] kthread+0x257/0x310 [ 24.900210] ? __pfx_kthread+0x10/0x10 [ 24.900887] ret_from_fork+0x41/0x80 [ 24.901377] ? __pfx_kthread+0x10/0x10 [ 24.901960] ret_from_fork_asm+0x1a/0x30 [ 24.902411] </TASK> [ 24.903015] [ 24.903446] Allocated by task 151: [ 24.903821] kasan_save_stack+0x3d/0x60 [ 24.904997] kasan_save_track+0x18/0x40 [ 24.905290] kasan_save_alloc_info+0x3b/0x50 [ 24.905804] __kasan_kmalloc+0xb7/0xc0 [ 24.906127] __kmalloc_node_track_caller_noprof+0x1c6/0x500 [ 24.906578] kmalloc_track_caller_oob_right+0x19b/0x530 [ 24.907673] kunit_try_run_case+0x1b3/0x490 [ 24.908331] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 24.908750] kthread+0x257/0x310 [ 24.909220] ret_from_fork+0x41/0x80 [ 24.909776] ret_from_fork_asm+0x1a/0x30 [ 24.910139] [ 24.910291] The buggy address belongs to the object at ffff888102981400 [ 24.910291] which belongs to the cache kmalloc-128 of size 128 [ 24.911078] The buggy address is located 0 bytes to the right of [ 24.911078] allocated 120-byte region [ffff888102981400, ffff888102981478) [ 24.912249] [ 24.912374] The buggy address belongs to the physical page: [ 24.912720] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102981 [ 24.913550] flags: 0x200000000000000(node=0|zone=2) [ 24.914188] page_type: f5(slab) [ 24.915558] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 24.915958] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 24.916328] page dumped because: kasan: bad access detected [ 24.916574] [ 24.916681] Memory state around the buggy address: [ 24.916892] ffff888102981300: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 24.917403] ffff888102981380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.918240] >ffff888102981400: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 24.919366] ^ [ 24.919909] ffff888102981480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.920822] ffff888102981500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.921569] ==================================================================