Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp2037995lqz; Tue, 2 Apr 2024 05:44:13 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVgTl3NSjpx8REHW0oz8zzS62y7GwC4sNVlqM8lrYg1GwJRlaSBj7IZOskatuoKZcknUdSmp+gHLqMZ+Xr7Ft7d3pjgGI2wyHvEiuNZyw== X-Google-Smtp-Source: AGHT+IHMERg6nm8c5UelEATPYC5JXk+z9oV9zWq4IqCSzTsdUz/JGqD+rIRhlUlIYBjuoIEp6hoM X-Received: by 2002:ac8:5988:0:b0:431:442b:244e with SMTP id e8-20020ac85988000000b00431442b244emr23301430qte.23.1712061853492; Tue, 02 Apr 2024 05:44:13 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712061853; cv=pass; d=google.com; s=arc-20160816; b=G1v2M+ABp6azzQWAcgtXJn5O1ySJNY1Y+OVM32oXHv4J0o0znzON9RJ0leX+cqQ4Ih WrVOOc1NdJeFyD0wK0K1V+gykU4W6tIVWbDvLpKCcMCNcxM0+u5uiEqT4no31rO74zMS BYtGqH5+m65a+1iSoGBBuFKfRjhMeqjyDyQt1NShyG8NhiYqeJDobYtZj4v1BBWzyB9C quYuS9blDRWa7SnQVdYpbX4zXw/8eAe0HXgHuLFN/WxgEXsvIlesDgNw8kSqTETHrNRK ceAd0XRzchBwBwL+zWn7f75HvEMPS+UB+38NbdRmMWkWtkBUVqfZ1BarlkAZIvVZ6/vt R/RQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=JG8OlfkiM/82pPKQvl5RNdoa+aZbT05Y5kKD3vV3B5k=; fh=TstQZwUPgCD3d/j+cGnfzjUZdc9aGKUOsucUkjkp1Pk=; b=C6UbW6gpIB5Ta176FWYrWWlAfmgVpGilhAAATN/HamIUxSXTHhE/oIFU+bhbui4N9C HlRj4b1qi8Qug8ZL7kLI+zdpLDMV2TD3FPbGpq4oLDbF+TBp4qEqIr1P0MZ7korryhX2 DyUYfeJf81nSZo0J+Bugxig5iYSzKJxQgQ+JBhWDonrxHMoTZnhFJlT6PF91GIBZpF4S pghfS/MgQXeafMTsaJgdyd8I1IH6IsHSbNdSJbrE3EHZx37Q1av3JMzbgZQsUifTQtfd 5wDcjUfzeKjsS4HoUDewOams4JyC2oeRb4IPlM+aF/19l8WbL32hDE8AGkF6MtvzS9Wj U5mg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=E9ALvRv3; arc=pass (i=1 spf=pass spfdomain=linux.ibm.com dkim=pass dkdomain=ibm.com dmarc=pass fromdomain=linux.ibm.com); spf=pass (google.com: domain of linux-kernel+bounces-127961-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-127961-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id g13-20020ac87f4d000000b00432df2c900fsi5891623qtk.785.2024.04.02.05.44.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Apr 2024 05:44:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-127961-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=E9ALvRv3; arc=pass (i=1 spf=pass spfdomain=linux.ibm.com dkim=pass dkdomain=ibm.com dmarc=pass fromdomain=linux.ibm.com); spf=pass (google.com: domain of linux-kernel+bounces-127961-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-127961-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 39CF01C2302D for ; Tue, 2 Apr 2024 12:44:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0C8057EF08; Tue, 2 Apr 2024 12:41:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b="E9ALvRv3" Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3D7FF1DFD0; Tue, 2 Apr 2024 12:41:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=148.163.158.5 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712061710; cv=none; b=jifyGj8thYJWjDKbbnWsZBA1hJ34rFtRo3FJZqSwKVyrxr+YuJ4IGplE+ixAkwLSsu4SipXmoW5O3V9mPJjMdYjHmPB6qKt4fFbC5YWxv9UkoWOFMQbKXwoMI2Nqw82qOdJ8yyBb8y419SxHqq5KUaE2ifL0xzg4bC9SgxbmvaY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712061710; c=relaxed/simple; bh=1sK+VypOcmid7qwbW8cHSt6aTLQKQQ5uOqH4Z2IWETA=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=cJYOzgzjy6NPb4zNyNkGSwnMB/i3joRZcvqyBPwjaTylnaC9N34x3AMehdsB8okKFa8LjhK2s7P7lepmTjDe/6Rqx99xjq/zxZKSJgrYNzF2EXiDxCOxVk38UZrzQll3vd/TJcKzTy8xTksLCHQCOv5e66l760N5tzPk1ENXFu4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.ibm.com; spf=pass smtp.mailfrom=linux.ibm.com; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b=E9ALvRv3; arc=none smtp.client-ip=148.163.158.5 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.ibm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.ibm.com Received: from pps.filterd (m0353722.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 432CY4mL002252; Tue, 2 Apr 2024 12:41:30 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=pp1; bh=JG8OlfkiM/82pPKQvl5RNdoa+aZbT05Y5kKD3vV3B5k=; b=E9ALvRv3/Pm23UJiv2p82vy4yN9qoVA0b2zs0D6X0PBBjlb44RiEk2qIy1D8fYnL49ju hdY2fnVuwYIAKPGqVdC2xJuo7xbn3WmxSbkZN9WzAB7Z7HyCIp15V1k/zYZw7fshFz+V D32X8oa5eD0UJPlbBjwaj9EI8Ez//pF7XEHXwY8zBxSNpSuucF9852YhnTOdjwEuN77a rUZVaSIg5YVc0AXfGRDdmflsGUrwXxYLieV5SeLGlmY+xxSRBSV0sOxjag4v44U7tbbL jY1lbxaERvCv81xPS40iYGmP6PFAMPIwGbRbmbDYz8BiqobQBS3Zd2/nxvctPU8xBBtF WQ== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3x8j4gr0tv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 02 Apr 2024 12:41:30 +0000 Received: from m0353722.ppops.net (m0353722.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 432CeUKH012188; Tue, 2 Apr 2024 12:41:29 GMT Received: from ppma12.dal12v.mail.ibm.com (dc.9e.1632.ip4.static.sl-reverse.com [50.22.158.220]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3x8j4gr0ts-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 02 Apr 2024 12:41:29 +0000 Received: from pps.filterd (ppma12.dal12v.mail.ibm.com [127.0.0.1]) by ppma12.dal12v.mail.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 4329nZbw008463; Tue, 2 Apr 2024 12:41:28 GMT Received: from smtprelay02.fra02v.mail.ibm.com ([9.218.2.226]) by ppma12.dal12v.mail.ibm.com (PPS) with ESMTPS id 3x6w2txrf2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 02 Apr 2024 12:41:28 +0000 Received: from smtpav04.fra02v.mail.ibm.com (smtpav04.fra02v.mail.ibm.com [10.20.54.103]) by smtprelay02.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 432CfPLn39453118 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 2 Apr 2024 12:41:27 GMT Received: from smtpav04.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id EEC7A2004F; Tue, 2 Apr 2024 12:41:24 +0000 (GMT) Received: from smtpav04.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id A9FFF2004E; Tue, 2 Apr 2024 12:41:24 +0000 (GMT) Received: from [9.152.224.141] (unknown [9.152.224.141]) by smtpav04.fra02v.mail.ibm.com (Postfix) with ESMTP; Tue, 2 Apr 2024 12:41:24 +0000 (GMT) Message-ID: <4110b0fb-0005-45b6-9996-978b9bab8beb@linux.ibm.com> Date: Tue, 2 Apr 2024 14:41:24 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH net-next v2 1/2] net/iucv: Avoid explicit cpumask var allocation on stack To: Dawei Li , davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, ioana.ciornei@nxp.com, twinkler@linux.ibm.com Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org References: <20240331053441.1276826-1-dawei.li@shingroup.cn> <20240331053441.1276826-2-dawei.li@shingroup.cn> Content-Language: en-US From: Alexandra Winter In-Reply-To: <20240331053441.1276826-2-dawei.li@shingroup.cn> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 X-Proofpoint-GUID: 3KCg2rCe30HM0RqJDpyETp1Dlk6yxmTC X-Proofpoint-ORIG-GUID: 5wGrZzyAyOzRZBC_xPLjVLgE2LCnLnX- X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-04-02_06,2024-04-01_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 phishscore=0 bulkscore=0 impostorscore=0 suspectscore=0 clxscore=1011 malwarescore=0 priorityscore=1501 mlxlogscore=991 lowpriorityscore=0 spamscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2403210000 definitions=main-2404020092 On 31.03.24 07:34, Dawei Li wrote: > For CONFIG_CPUMASK_OFFSTACK=y kernel, explicit allocation of cpumask > variable on stack is not recommended since it can cause potential stack > overflow. > > Instead, kernel code should always use *cpumask_var API(s) to allocate > cpumask var in config-neutral way, leaving allocation strategy to > CONFIG_CPUMASK_OFFSTACK. > > Use *cpumask_var API(s) to address it. > > Signed-off-by: Dawei Li > --- LGTM; Thank you Eric for the comment and solution with the 'static' keyword. Reviewed-by: Alexandra Winter