From patchwork Fri Jun 7 00:46:16 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shubhang Kaushik OS X-Patchwork-Id: 13689083 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 376ADC27C52 for ; Fri, 7 Jun 2024 00:46:40 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 902086B009C; Thu, 6 Jun 2024 20:46:39 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 8B1A36B009D; Thu, 6 Jun 2024 20:46:39 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 72AA46B009E; Thu, 6 Jun 2024 20:46:39 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id 51FCC6B009C for ; Thu, 6 Jun 2024 20:46:39 -0400 (EDT) Received: from smtpin06.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 2AD36141692 for ; Fri, 7 Jun 2024 00:46:26 +0000 (UTC) X-FDA: 82202251572.06.0567413 Received: from NAM04-DM6-obe.outbound.protection.outlook.com (mail-dm6nam04on2131.outbound.protection.outlook.com [40.107.102.131]) by imf04.hostedemail.com (Postfix) with ESMTP id 6C95040003 for ; Fri, 7 Jun 2024 00:46:23 +0000 (UTC) Authentication-Results: imf04.hostedemail.com; dkim=pass header.d=os.amperecomputing.com header.s=selector2 header.b=U6saFYOZ; arc=pass ("microsoft.com:s=arcselector9901:i=1"); spf=pass (imf04.hostedemail.com: domain of Shubhang@os.amperecomputing.com designates 40.107.102.131 as permitted sender) smtp.mailfrom=Shubhang@os.amperecomputing.com; dmarc=pass (policy=quarantine) header.from=amperecomputing.com ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1717721183; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding:in-reply-to: references:dkim-signature; bh=+c4NPeknrN2huAh8WNjJOicmesWq/xGWo+NXuaddLr0=; b=kd5KY5RqP0QLCSAvSTyeGwIQozsNUtCD7gr8SP5e/feCA9mBYonGIfJ8CdlAzYpAeAS8BY pGCXlNtAHFCezuBIPaZJ4/oFuD2X9j2pFSHImE0B57WKYbk8IhFP/XkwBtj5sxPQunsP6J yTw7FwqU86LiBSrSVx2Mgr3+QvhLWms= ARC-Authentication-Results: i=2; imf04.hostedemail.com; dkim=pass header.d=os.amperecomputing.com header.s=selector2 header.b=U6saFYOZ; arc=pass ("microsoft.com:s=arcselector9901:i=1"); spf=pass (imf04.hostedemail.com: domain of Shubhang@os.amperecomputing.com designates 40.107.102.131 as permitted sender) smtp.mailfrom=Shubhang@os.amperecomputing.com; dmarc=pass (policy=quarantine) header.from=amperecomputing.com ARC-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1717721183; a=rsa-sha256; cv=pass; b=eKDKA1Vroapd6thz/EavTFV96Kg9bbG6SaZN5nS3KHguOkCQsooX4ZUsvaChIs8+q5oWnI TaFiCHc007MJo2QoqvviRVowz6TtZ6H5aRQUrTPDgLZcL8Y92kEVObhvX9tQ0LxKDCJbUd Ueh9tEuNx+cC2zvSYaKg04g7BGG5LMo= ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GxUlKDQ21chwOMMtwAoCdqUDnCdlBvrIIF/95lMQSD5voSx8g8TcwiWU1FOW9uzu+Lhj2ID/HdxCv2x2660PR4bE5DfSaxP7vxpjtnY2Ir3O2EFPBWRa+hFyj0wrvniaZj+plXiV+YfCMsYJ0pR61q3VF8lDKTGk7KfsGFXo41zriYlsvsvfnJHmiyuwzgjQLzktBRkIeZpF4+bXTkOX1kJuVGZrL4Cxt8Z57Y05QFBJZ1waFkF7AiBaBjW3fxoCeriP55wNAdGc9N5sDKh7epPOfQQh2xsvz5UrYDTwEPPX0GgUbZ8pp0XdISS1afolzUDCHZhXEmGiwR0cQ7/99Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=+c4NPeknrN2huAh8WNjJOicmesWq/xGWo+NXuaddLr0=; b=OMlp+57Iy5F1w/WRfraim5A1IQnw+qENbJ76NLHM0fWoKaHgmMEmWfqJZMCpOgxdiPe2NdUsQ7UI5q0ATfvWMivl3mDSaA9P5sbWtG4M/+sFM17cvMBKXhuaPETW/VsWx9+VN3boOw8L9RP2L9qBMUssSYWwz8Tj6UB5VE1ZQUQsisJMNTMtv2heI7juHNHWv5ZWTlUTE4o92YPfxiScFT9cXtpSH/gKjaNXK8pZ1hYjzDSVZ8bVc8zEGa7E/7O+k+UnuYZhJGsx4jJy+nNK4GvpKwIAdJiTF7kN/IUTkmMFr0m/rG7SHCGb8KDk2Z9szEEZ6AOO1UjtGJFIzLGYZg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=os.amperecomputing.com; dmarc=pass action=none header.from=os.amperecomputing.com; dkim=pass header.d=os.amperecomputing.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=os.amperecomputing.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=+c4NPeknrN2huAh8WNjJOicmesWq/xGWo+NXuaddLr0=; b=U6saFYOZEh7baQKvXuie1Mnr8oAy6LHNbd3ztQYU5XSv1ZpGMGjCUaIRLC9YvT9kkZWJ0aFa/tWpbnS/uVtJVwz89zZq9gM42AmRFB9ZVKUbrvJpaXSsVg9I+4IoB6W9z7G+CDgJ2TPr0IEvil2QvgwP1vYcsz8MwiOSeFh3D+o= Received: from MN2PR01MB5902.prod.exchangelabs.com (2603:10b6:208:18e::20) by LV2PR01MB7791.prod.exchangelabs.com (2603:10b6:408:170::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.21; Fri, 7 Jun 2024 00:46:21 +0000 Received: from MN2PR01MB5902.prod.exchangelabs.com ([fe80::1a99:8110:f593:d3f5]) by MN2PR01MB5902.prod.exchangelabs.com ([fe80::1a99:8110:f593:d3f5%2]) with mapi id 15.20.7633.033; Fri, 7 Jun 2024 00:46:21 +0000 Date: Thu, 6 Jun 2024 17:46:16 -0700 (PDT) From: Shubhang Kaushik To: ampere-linux-kernel@lists.amperecomputing.com cc: linux-arm-kernel@lists.infradead.org, cl@linux.com, corbet@lwn.net, akpm@linux-foundation.org, urezki@gmail.com, linux-mm@kvack.org, guoren@kernel.org, linux-doc@vger.kernel.org, xiongwei.song@windriver.com, linux-riscv@lists.infradead.org, linux-csky@vger.kernel.org, linux-arm-kernel@lists.infradead.org, willy@infradead.org Subject: [PATCH v3] vmalloc: Modify the alloc_vmap_area() error message for better diagnostics Message-ID: <8a4c62ea-f0be-1644-5c33-18072c1c82de@os.amperecomputing.com> X-ClientProxiedBy: CH5PR02CA0013.namprd02.prod.outlook.com (2603:10b6:610:1ed::27) To MN2PR01MB5902.prod.exchangelabs.com (2603:10b6:208:18e::20) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MN2PR01MB5902:EE_|LV2PR01MB7791:EE_ X-MS-Office365-Filtering-Correlation-Id: 0d1a9c45-7ecd-4b0d-beef-08dc868b3fba X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Micros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UWPe4r0hIsir+69+8g7BqcEe2vQtJNdPp7KKVgN+4aXLAsYzgNjMPPD9c9X3td7TfLl9gNwjhQTCUH4eTDC+wnbUpuJJBEQMRuZ0CnxhNwHqnile0L5hhyLYdyM+Qgj+8kqAajGtDsykmN52u2h3fjzhRdao5rXBaXyZOjYZxN2ebsN/GLFJUQw8tvQ70gvPAaxUIyY4P5F9daOiX1eCSUgU6wpSCvYw0lLxJeqsZ7saZsjO35IiX9bbigop3DetpNdd0xacz8tWoYyuqg5SIZeJBkk177OXhi1SMvgIJtk92U2SYDL8uWhjykQD6j/7nTKzCEI2zftok X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MN2PR01MB5902.prod.exchangelabs.com;PTR:;CAT:NONE;SFS:(13230031)(1800799015)(7416005)(376005)(366007);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: izkao55Uf7BQofY/BCUlM+6N5BbSpnumao5nWpxv1qqAvq46sdBmoZH06cSa5eQzxTm6Cg2ege9vMYPzJZOQKoy75hNK/HZ+Nw3zXeQ47C1AnWRZiKwxOY7OXijgXStc+I6BTA/FSx+1ZoPDMalRhgplbEnX3EdxaiOfr+6OZcACavDq+auHPXpzB5UIFh/k44itQJfI4Q+nOcBHDpgQ5NLEGp42q9m4Fzm7X1RA6o7EWNDpmegI8YzFRt2r8ZtkIbS1JSrtU+WkvjQ79ahQfex4PXgqIIg5va7REWxnmkN8MipjWeuuohNYSxjweI8xsNBJ22L7OlQXzMLd5fqYBRskunE/FHp3ChgEnWBO6gDqBdZaKxHskxf/DH6r1DqLDTS13B0a8CyYbSPdMKKlEnXg5lvIUMnbd5MiJDw9Z4c4vsAZCAK2E/Am0OaMSbaDxlOmVT2zjqkQ0OGMk4Grd84gaixSZL59tB4csqH2NoR6DXWvdvo45yGcKi3xo0LxOTqgJvnxRXl3FjSNbcO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++bDZDp+18q4AopEJdzXtzc= X-OriginatorOrg: os.amperecomputing.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0d1a9c45-7ecd-4b0d-beef-08dc868b3fba X-MS-Exchange-CrossTenant-AuthSource: MN2PR01MB5902.prod.exchangelabs.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Jun 2024 00:46:20.8981 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3bc2b170-fd94-476d-b0ce-4229bdc904a7 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: Lj/cIcvztlQFZ3YVCAJMVR8nClPhNA4r7cFYIpjvjvldwsNSweIE+sKvIr0oI5TZltgx+PRw/MI2jxxeFEX1AJDBRaED6+PUzNj2Sydy9CFsAKb1wqqN5HOb3WIesEQK X-MS-Exchange-Transport-CrossTenantHeadersStamped: LV2PR01MB7791 X-Rspamd-Server: rspam05 X-Rspamd-Queue-Id: 6C95040003 X-Stat-Signature: zsfgur9gphmqsjqfxescsiwsig985iip X-Rspam-User: X-HE-Tag: 1717721183-373267 X-HE-Meta: U2FsdGVkX187heVa9x9Wb7o9mbITkdsFqeoT0ZBieG2021cg0MJTLzOPoEQ1Q1ee5xSppcMAEZJrLR9E293otAJoKhnWOzl+0AZezYuKHlGcMy3gsq6r5FtdeUhC1t0HYjaO1Hjaycr7t5TYAgCmpSqK1fRZpC+LERrVBEcVeJwZbWzFBUmw5kcTPW05ZRk0MUSQ9cAzJfQqhaAW+Y/k6b/aVBDRJv/7B70V8gqLZBoDiR9W3iITUatBTIWGHeagXUB5YzPLYxfMY2XHUEhwyi937BIrhzBShvMziKcEAhlq6rMDT7oI771vvHf0fIOqQBJOlDStChpr3zZwlvr2bBQkmbfcGkzgE6tcAB/SlHl2b2MrLyM8Lc0SGhdIvWOZ1sGlRR/PM0qNdZ9NsoES+4xNtPJx3WXKR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1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: 'vmap allocation for size %lu failed: use vmalloc= to increase size' The above warning is seen in the kernel functionality for allocation of the restricted virtual memory range till exhaustion. This message is misleading because 'vmalloc=' is supported on arm32, x86 platforms and is not a valid kernel parameter on a number of other platforms (in particular its not supported on arm64,alpha,loongarch,arc, csky,hexagon,microblaze,mips,nios2,openrisc,parisc,m64k,powerpc,riscv,sh, um,xtensa,s390,sparc). With the update, the output gets modified to include the function parameters along with the start and end of the virtual memory range allowed. The warning message after fix on kernel version 6.10.0-rc1+: vmalloc_node_range for size 33619968 failed: Address range restricted between 0xffff800082640000 - 0xffff800084650000 Backtrace with the misleading error message: vmap allocation for size 33619968 failed: use vmalloc= to increase size insmod: vmalloc error: size 33554432, vm_struct allocation failed, mode:0xcc0(GFP_KERNEL), nodemask=(null),cpuset=/,mems_allowed=0 CPU: 46 PID: 1977 Comm: insmod Tainted: G E 6.10.0-rc1+ #79 Hardware name: INGRASYS Yushan Server iSystem TEMP-S000141176+10/Yushan Motherboard, BIOS 2.10.20230517 (SCP: xxx) yyyy/mm/dd Call trace: dump_backtrace+0xa0/0x128 show_stack+0x20/0x38 dump_stack_lvl+0x78/0x90 dump_stack+0x18/0x28 warn_alloc+0x12c/0x1b8 __vmalloc_node_range_noprof+0x28c/0x7e0 custom_init+0xb4/0xfff8 [test_driver] do_one_initcall+0x60/0x290 do_init_module+0x68/0x250 load_module+0x236c/0x2428 init_module_from_file+0x8c/0xd8 __arm64_sys_finit_module+0x1b4/0x388 invoke_syscall+0x78/0x108 el0_svc_common.constprop.0+0x48/0xf0 do_el0_svc+0x24/0x38 el0_svc+0x3c/0x130 el0t_64_sync_handler+0x100/0x130 el0t_64_sync+0x190/0x198 Reviewed-by: Christoph Lameter (Ampere) Signed-off-by: Shubhang Kaushik --- Documentation/admin-guide/kernel-parameters.txt | 9 ++++++--- mm/vmalloc.c | 4 ++-- 2 files changed, 8 insertions(+), 5 deletions(-) kmem_cache_free(vmap_area_cachep, va); return ERR_PTR(-EBUSY); diff --git a/Documentation/admin-guide/kernel-parameters.txt b/Documentation/admin-guide/kernel-parameters.txt index b600df82669d..d98df8f5c448 100644 --- a/Documentation/admin-guide/kernel-parameters.txt +++ b/Documentation/admin-guide/kernel-parameters.txt @@ -7245,9 +7245,12 @@ vmalloc=nn[KMG] [KNL,BOOT,EARLY] Forces the vmalloc area to have an exact size of . This can be used to increase - the minimum size (128MB on x86). It can also be - used to decrease the size and leave more room - for directly mapped kernel RAM. + the minimum size (128MB on x86,arm32 platforms). + It can also be used to decrease the size and leave more room + for directly mapped kernel RAM. Note that this parameter does + not exist on many other platforms (including arm64,alpha, + loongarch,arc,csky,hexagon,microblaze,mips,nios2,openrisc, + parisc,m64k,powerpc,riscv,sh,um,xtensa,s390,sparc). vmcp_cma=nn[MG] [KNL,S390,EARLY] Sets the memory size reserved for contiguous memory diff --git a/mm/vmalloc.c b/mm/vmalloc.c index 5d3aa2dc88a8..75ad551e90ba 100644 --- a/mm/vmalloc.c +++ b/mm/vmalloc.c @@ -2055,8 +2055,8 @@ static struct vmap_area *alloc_vmap_area(unsigned long size, } if (!(gfp_mask & __GFP_NOWARN) && printk_ratelimit()) - pr_warn("vmap allocation for size %lu failed: use vmalloc= to increase size\n", - size); + pr_warn("vmalloc_node_range for size %lu failed: Address range restricted to %#lx - %#lx\n", + size, addr, addr+size);