From patchwork Fri Nov 1 20:16:21 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dave Kleikamp X-Patchwork-Id: 13859741 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 28EB2E6F088 for ; Fri, 1 Nov 2024 20:18:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version: Content-Transfer-Encoding:Content-Type:In-Reply-To:From:References:Cc:To: Subject:Date:Message-ID:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=WDolfkZiwLAd+5hUIkncw5f9xUBKqqgBuqZw0vmMuvw=; b=uxGEJYj2ywPpoghrqepYn1wEQF jr1FrrAu/vHecVn4+MnurbJJIRq17eUBDuJ6xjNDgfyM1WJeigDtoGsq/MLVUYUaQl8CaDagMS7Qv BAH1wUTO9swNdLzfP5oR2/Nd59gj4az8lCEMQocO7rIYUnSD4d6lec/9vz/TpbOCR4fy+rwt5t6Aq NePWcIY/I/yKD3+e/6y0zNtB+3FkTY1oVDakuHqJK3mqfZxvd06D3nOomR1zoOex3p0jRhBSoonTe dX+o0zJdv7LkS0wDXdmx3iW6TIs6sG+FJA6HCQvstpvgmDhTOOAhztyFyU311wEOKp24FYZhKRLnL lWcx3OlQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t6y6E-00000008ENs-3RDi; Fri, 01 Nov 2024 20:18:26 +0000 Received: from mx0b-00069f02.pphosted.com ([205.220.177.32]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t6y4Z-00000008E7o-0PBM for linux-arm-kernel@lists.infradead.org; Fri, 01 Nov 2024 20:16:44 +0000 Received: from pps.filterd (m0246630.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 4A1GBlOE013029; Fri, 1 Nov 2024 20:16:33 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=cc :content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s= corp-2023-11-20; bh=WDolfkZiwLAd+5hUIkncw5f9xUBKqqgBuqZw0vmMuvw=; b= FB8iuG/YDMiACxqASqLHSFlT+w7WMa+hnYfrOPIpagjLfwHTMCIftryUYm3s9ntW s1eroJS7GqpSQkyFPJox6+78sKiQTCp8IXE2hTeQSuqZmnsCTrwUiCh6kIZpY7Zt aadiTwAPUZGJmMotQ8v1wm2KbgoItimygeC6sNcTkqUvbFOhqmqKXodgD56i2Q/Y MnZEpGmrMq+kwQk4Uy6iYSXdj+TZhJgh+ekOK4/PQ71BfKvwcO8VApnHg9MB2PHD FOj8GOrWd5f8ga3sdYHzqCxQiRyoShFtT3CN5dSDODqASUIO4ap2wo1rOKxcSxhz B5wETtO1rXLsRB45YiUFMA== Received: from iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta03.appoci.oracle.com [130.35.103.27]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 42grdqmwpy-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 01 Nov 2024 20:16:32 +0000 (GMT) Received: from pps.filterd (iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (8.18.1.2/8.18.1.2) with ESMTP id 4A1K7PAL008486; Fri, 1 Nov 2024 20:16:27 GMT Received: from nam10-mw2-obe.outbound.protection.outlook.com (mail-mw2nam10lp2043.outbound.protection.outlook.com [104.47.55.43]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 42hnedwab2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 01 Nov 2024 20:16:26 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=x6tlRO9UHnR5i7itppr3iRCZXKAzujcrUpfN4CIEXaa/Ufs+yY9TGSmjTaId5INCsLO+DJlRSoxl54OQa/upmuKSklPnaCtGA+MBXkw7STFneqMi+9onp2fnp5PQHd7/tgNwJqOuzdTHbGq9DzrWUTocWkD9ybWOt+IV5WvyRFjqZzmGrscsqFMDDkC8wmZ2ezqpr45Mx1cXGAjfx3o9bWWwL9laTeL5cPmRgiAVrTfUP+oD51Zc//EqJvSIjK1kbYISDm27Ohg5sHwbFeTV27EZWAgqh7m0kDVwJZXPldQcw9CfLsBwij3m3gBrW8NJJM6td/S5ZrRKzb3uHEjh0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=WDolfkZiwLAd+5hUIkncw5f9xUBKqqgBuqZw0vmMuvw=; b=RGvblq6rWyB+I4uhPQXM61QzrLn6oZsLBT4y067iW4xWp6P1GznP2gdrt7h0MIOSI8zk+jNRXm4FJgY4pQzXkHZsM+T6FuPYH/ynXAJ1HPN+pBH9WnQUvJt6+uT1MTKG6G4rWJhbFlNk0LvcmImGBHpEWipJiMLUyyvitgnFWyZDI71rsa+8X3vTbRCaO3HJQEbWL3e45UB61lJ7v+A5VDGxMCFgBmRZW+e7ldnX0rc7ndBms/HqW0XSCSpd+eb/pN+S61EONiBoZkFttB6Bd+MI8z+3C30wc5UvsOXbLQCM2cD7/RV8BhPjl249OtLnrJUg+1cRDMe0MTnXz3pNMw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=WDolfkZiwLAd+5hUIkncw5f9xUBKqqgBuqZw0vmMuvw=; b=vxMbyIz5HieNvPwuKxZXD8i24qxegrVTzCsn+3aTTNQps3A9IsmyDGnfXdgE6Q0xvtiAq71Diib/bUfmsM6L/PRSGXMcBnWeEkqD70VMHN+RcxDpWb7y8xyrEy6Lp0o7kemcALEVO1Pzg5uSQwtJACO9dA7lzvSPPG+dpJ3CQZ8= Received: from MW5PR10MB5738.namprd10.prod.outlook.com (2603:10b6:303:19b::14) by BN0PR10MB5078.namprd10.prod.outlook.com (2603:10b6:408:129::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8114.25; Fri, 1 Nov 2024 20:16:24 +0000 Received: from MW5PR10MB5738.namprd10.prod.outlook.com ([fe80::187b:b241:398b:50eb]) by MW5PR10MB5738.namprd10.prod.outlook.com ([fe80::187b:b241:398b:50eb%5]) with mapi id 15.20.8114.015; Fri, 1 Nov 2024 20:16:24 +0000 Message-ID: <44312f4a-8b9c-49ce-9277-5873a94ca1bb@oracle.com> Date: Fri, 1 Nov 2024 15:16:21 -0500 User-Agent: Mozilla Thunderbird Subject: [RFC PATCH] mm/slab: Avoid build bug for calls to kmalloc with a large constant To: Ryan Roberts , Andrew Morton Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org References: <20241014105514.3206191-1-ryan.roberts@arm.com> <20241014105912.3207374-1-ryan.roberts@arm.com> <20241014105912.3207374-6-ryan.roberts@arm.com> From: Dave Kleikamp Content-Language: en-US In-Reply-To: <20241014105912.3207374-6-ryan.roberts@arm.com> X-ClientProxiedBy: CH2PR10CA0015.namprd10.prod.outlook.com (2603:10b6:610:4c::25) To MW5PR10MB5738.namprd10.prod.outlook.com (2603:10b6:303:19b::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MW5PR10MB5738:EE_|BN0PR10MB5078:EE_ X-MS-Office365-Filtering-Correlation-Id: 39116157-c71b-4906-828f-08dcfab20e7a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|1800799024|366016; X-Microsoft-Antispam-Message-Info: =?utf-8?q?Yik1gg3ih56HFI1HDImB8Fi6CujN7JL?= =?utf-8?q?+ccO7X5MJkVzDCMgICWi2JwIRM0XpZBifWOSZB0HDM8jB5fv8P74lWWBmHE6pclRW?= =?utf-8?q?RGaC3WzF3YcpgUPFGa1dTG7e96dtD/f1KJHJGsirIQnUbtScoRL1Yw8MTxKdkTr4z?= =?utf-8?q?Z51T+X6uyH2COeXr0ZAAali/yQ1MVygdJfkAk3HDEqy9Q5VJjyK7VDog/0uh6yJtc?= =?utf-8?q?M6/tr5ZYv4NeEZOFEJMSoKKUG0LuCTOFdMrJGDHULS1DtoBPgHPirM0HwX02UD2DH?= =?utf-8?q?lK/TFCc7K//IHx7FNCZzXRn/E14vF1wfO75jIjkKixz9lTNsoPVaVrn/Hn95Sq8Xw?= =?utf-8?q?69LAiwZhUGJ5V6nzQg0YdPf3sIypqxzpODd1NHkrGHv4luYFg3JYZWMNyELkGCN0l?= =?utf-8?q?yimIwMmUE3a1AlccmbtxgzFCDH2Mmth293lcF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.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MW5PR10MB5738.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(376014)(1800799024)(366016);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?0A0FJa2zrN3cxG7tWqTw/mNwYrNJ?= =?utf-8?q?B6pDu5jkSCulEeAk6txegMxQFWCa5DYW22+IRp+c2ThJliAVWnYVhk4Sm1I3V6kpY?= =?utf-8?q?qYSDpec/tm8yuZiPJcYaB/XRxYpH9CYxQn/JFj4tE2e2z09xxIfZX1DzTWFgNdonn?= =?utf-8?q?4aEPfRZEohl7CjAGMq63p5I/Smbk1SOV/WAzTiSDafl4ZzIVMXSvmne9zjfy8eRAV?= =?utf-8?q?rb+FredzMJDSGFPnNYfyO7FGPsSJzoA55+rDVCSuXxK9+fr81zr8QCOA14tQ4QdqB?= =?utf-8?q?zHnX1um4CgP//3yMo0uS7cJ3tlSqiqEBhYNGqXu2riyoaVAfWPpSDDBQzKyr5CzQL?= =?utf-8?q?PsBQTwm/REB3drl94EfMKEOqrHfbmTF2VtMmxvgum7ZRa+iU4+dAhX1Dl3WT13V6f?= =?utf-8?q?cNBZYlQ0n33djBB1LlPlnmE8o8AiKamNwEHd/TULro/nJslzmzTI/savDJ7llOQpG?= =?utf-8?q?DLcfYS9PZ4abejVJEV9jVQpzyWY6RS1iZIhR9aeToLHCJJiuADXqQA8KIHynpLZik?= =?utf-8?q?2DBZIWuFYNNwAwuISePpb59aw2NwOKXL7QiDBp+i5KpEDxiLV4Y7sJKuWtLDeD8re?= =?utf-8?q?IAMk1dwmQqb/sUheH+1G6QOn6flYqpT4yndHLV8oBULGiLwX8H5tP9gLIPwbcvdbO?= =?utf-8?q?cc61sYjq/+V2peVn9mb6x/SxXi/zXR9uIoXE5g1V4ZUk4oymM/0LQ8IrpnqmwdVq4?= =?utf-8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kCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: x2WL1VQfSD6vya1LEyWAjqsvICyDhNovCPadc0oFJE3E/JE4hb9ZIh22/X8/tNKNM/PMSCOJeg7fFYeHD7Kiy0RUeqfGF5Af1KGBLa7Jp5yNhGCZn0R5bMFUb8YOi7q457l1ld+X0rj8KErg3LnJ9cD9UM1n/r8n1rIG33yFv8746Fb4qAmpSfEad+5Ps9wpa2OkmZWQUFczy2rOu9V3YNohamp3lWiKUKDbQ3wfqcG9VFWjJZekMzYPcicR3UtT6sxjW9anJthJZK/T2M8LSb2U52LAU/TqbmxoVvKiMnWeZJjfaXIKyBk59bGoeVEcdzGolJMdvVlMp3fAWaLivxuQIzPMgfMoDnf+tdXucvOcuFlLkDH5MDwa+On69CCsaEvK8rjEZJ7YzqRLiRNTNEMPove4g0tFTgBy4ybp4Yx94sOcWBZSijckPv0WLDXXi2aFf7DLltxHmHiVBWHXnG2H9ODutbtxh6beRB2GwMd+CByQ845ZjghN9gBz4CAnFrRcOg2BNq9wTAgLMKUWybKiYOLvDT+jVCtkkoZHwwqgwNsPmzcXl+qHFsMHgfVuFdro0xUDdpsmz/BJf8KxY6cqRLI4ASRCxK1lB6YFdRQ= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 39116157-c71b-4906-828f-08dcfab20e7a X-MS-Exchange-CrossTenant-AuthSource: MW5PR10MB5738.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Nov 2024 20:16:24.1114 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: a1ZJmRqo0mL5cfT3uGhlxNyRmGZbKNanJbEhp2M5+2fz/nrIzm+wgKJTtT3BkWB3gQ/UzSeyRWh3wsN7mSb2AW0z8HnQ6xtuD7aGw+ZFoJ4= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN0PR10MB5078 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1051,Hydra:6.0.680,FMLib:17.12.62.30 definitions=2024-11-01_14,2024-11-01_01,2024-09-30_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxscore=0 bulkscore=0 spamscore=0 mlxlogscore=999 malwarescore=0 adultscore=0 phishscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2409260000 definitions=main-2411010144 X-Proofpoint-GUID: QpWxRYv46KESwOO_otYXXTfIXtTT57oO X-Proofpoint-ORIG-GUID: QpWxRYv46KESwOO_otYXXTfIXtTT57oO X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241101_131643_281175_645A639B X-CRM114-Status: GOOD ( 14.24 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org When boot-time page size is enabled, the test against KMALLOC_MAX_CACHE_SIZE is no longer optimized out with a constant size, so a build bug may occur on a path that won't be reached. Found compiling drivers/net/ethernet/qlogic/qed/qed_sriov.c Signed-off-by: Dave Kleikamp --- Ryan, Please consider incorporating this fix or something similar into your mm patch in the boot-time pages size patches. include/linux/slab.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/linux/slab.h b/include/linux/slab.h index 9848296ca6ba..a4c7507ab8ec 100644 --- a/include/linux/slab.h +++ b/include/linux/slab.h @@ -685,7 +685,8 @@ static __always_inline unsigned int __kmalloc_index(size_t size, if (size <= 1024 * 1024) return 20; if (size <= 2 * 1024 * 1024) return 21; - if (!IS_ENABLED(CONFIG_PROFILE_ALL_BRANCHES) && size_is_constant) + if (!IS_ENABLED(CONFIG_ARM64_BOOT_TIME_PAGE_SIZE) && + !IS_ENABLED(CONFIG_PROFILE_ALL_BRANCHES) && size_is_constant) BUILD_BUG_ON_MSG(1, "unexpected size in kmalloc_index()"); else BUG();