Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp4572056pxv; Tue, 27 Jul 2021 10:31:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw0HHvJoMYublGYTrnnGiF61jdWNxD+TXZQg4NG6ejXtSMRf6d4oPZOIy2x2pZb8Z+qMh2l X-Received: by 2002:a17:906:c831:: with SMTP id dd17mr17622082ejb.143.1627407066487; Tue, 27 Jul 2021 10:31:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627407066; cv=none; d=google.com; s=arc-20160816; b=YhIGI2Zaa8IX9vzz7F/eLSxaKTKm8meJI2Qn3sSOorOHL1csTQvHPiGWcGosp88Xqm cZGupmedZiJ7SA7Mn0HwsjjMNJ0TWT4pcwPAeQg81Q0+GtX2/VSIeqHDjydhYyBDHu0r kdpTGJyERpfRl2eXYdOxHd6XIL3ySkRl9mos5xHZajGgE9gKkVSeLMQpwk8m/ITewNUv WgsMkXwh/sED/OWLtIL6ilzUDFu2+wTLv7xo2K3C/SgoN5DmNoaq1afEwkT8G5V++6V+ oXoQP8ysI5Y/XwfsPAmS2raQmvHesrqoqOQ2zABnCLQH9ZXABp02sCPQxLLmV65rTPnt wSMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=6bEhk6CA8+q+IY9gEhnRgyDjoAcMWP97ymU6QSxJwgM=; b=f1rt7NghwelFv0e5mPgrnRa+eo/GYi4FJdd5EyI/zIGxO8keS6VMwMPEGB+DSJ6s0/ WqtaQZgudc80q9od5Ds8R8Os6g70VQKOYvkaTqxhlPiYr3zqGE/1I1iSl/3+0+BEYFUl B0A0hNrUG8qkrgtgMjFK1cZfY7tOYHkEdZ+6G3o9aB1vkKlEiJSQ8fBR3Emy8HdrcnZe gi4FFwlrzWxLDo3p2Uj39OTZCT4RA0PJYBui/vtiJ+oDDP+INV5blkI1NFjK+PAuBPYb dlSNr4MndM492WkiG9xcgkXDR/Cu42ALDJ17cWi7P5jbJD1IbcwtBRkvkzTRwj+4McF8 3c+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=Szegunf0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d13si3285044ejb.391.2021.07.27.10.30.43; Tue, 27 Jul 2021 10:31:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=Szegunf0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229848AbhG0R3Y (ORCPT + 99 others); Tue, 27 Jul 2021 13:29:24 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:10858 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229453AbhG0R3Y (ORCPT ); Tue, 27 Jul 2021 13:29:24 -0400 Received: from pps.filterd (m0098413.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 16RH8XT8135522; Tue, 27 Jul 2021 13:27:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=pp1; bh=6bEhk6CA8+q+IY9gEhnRgyDjoAcMWP97ymU6QSxJwgM=; b=Szegunf0HGyFNV2b8yLhhTiTbB2G11ULeAsSAs5IS8IBQ5XC2o9b4a/j9PiJsezf/SKf 0BOR+eMlWzlDOmqZ9ccsvpqu8Ay0wDblV5m9FD2Uz4WCiTsFvja7DFv+sRM4YLe7/fpg 9RfojCcPO1OiZi5uQZXTtvondsM0TMO2JY225Dsx1llsyv3lzbT6NiZgMtFn7h0MdwJn G0hkj7TK3W6/IYODaFXW6l1VkmrkAOkyGP/SI9NQ2FwZipFi2yxS4r9CQ+fXoVeiEnp8 F2sTEFx/5xGJlYijzakq3eLf+nz68ZpvM4fxXGg3kfBbMtGCtFJQGYj5F1rM0I0xyfBd tA== Received: from pps.reinject (localhost [127.0.0.1]) by mx0b-001b2d01.pphosted.com with ESMTP id 3a2p1xs0sr-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 27 Jul 2021 13:27:29 -0400 Received: from m0098413.ppops.net (m0098413.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.43/8.16.0.43) with SMTP id 16RHLP22195489; Tue, 27 Jul 2021 13:27:28 -0400 Received: from ppma05fra.de.ibm.com (6c.4a.5195.ip4.static.sl-reverse.com [149.81.74.108]) by mx0b-001b2d01.pphosted.com with ESMTP id 3a2p1xs0ru-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 27 Jul 2021 13:27:28 -0400 Received: from pps.filterd (ppma05fra.de.ibm.com [127.0.0.1]) by ppma05fra.de.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 16RHRQ0Z015888; Tue, 27 Jul 2021 17:27:26 GMT Received: from b06avi18878370.portsmouth.uk.ibm.com (b06avi18878370.portsmouth.uk.ibm.com [9.149.26.194]) by ppma05fra.de.ibm.com with ESMTP id 3a235prc4f-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 27 Jul 2021 17:27:26 +0000 Received: from d06av23.portsmouth.uk.ibm.com (d06av23.portsmouth.uk.ibm.com [9.149.105.59]) by b06avi18878370.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 16RHOgEM27001256 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 27 Jul 2021 17:24:42 GMT Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 666B1A4051; Tue, 27 Jul 2021 17:27:22 +0000 (GMT) Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 3EE6AA404D; Tue, 27 Jul 2021 17:27:21 +0000 (GMT) Received: from osiris (unknown [9.145.19.157]) by d06av23.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Tue, 27 Jul 2021 17:27:21 +0000 (GMT) Date: Tue, 27 Jul 2021 19:27:19 +0200 From: Heiko Carstens To: Arnd Bergmann Cc: Andrew Morton , Arnd Bergmann , Catalin Marinas , Will Deacon , Thomas Bogendoerfer , "James E.J. Bottomley" , Helge Deller , Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras , Vasily Gorbik , Christian Borntraeger , "David S. Miller" , Thomas Gleixner , Ingo Molnar , Borislav Petkov , x86@kernel.org, "H. Peter Anvin" , Al Viro , "Eric W. Biederman" , Christoph Hellwig , Feng Tang , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org, linux-parisc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-s390@vger.kernel.org, sparclinux@vger.kernel.org, linux-arch@vger.kernel.org, linux-api@vger.kernel.org, linux-mm@kvack.org, Christoph Hellwig Subject: Re: [PATCH v5 4/6] mm: simplify compat numa syscalls Message-ID: References: <20210727144859.4150043-1-arnd@kernel.org> <20210727144859.4150043-5-arnd@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210727144859.4150043-5-arnd@kernel.org> X-TM-AS-GCONF: 00 X-Proofpoint-GUID: Mscltp_EWBx0evJ9yR5nijJF9sLL6ZBk X-Proofpoint-ORIG-GUID: Zo0_7XKq5kYAI3uc1Uuw3gP06noaQbBO X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391,18.0.790 definitions=2021-07-27_10:2021-07-27,2021-07-27 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 suspectscore=0 impostorscore=0 clxscore=1011 adultscore=0 mlxscore=0 priorityscore=1501 spamscore=0 phishscore=0 malwarescore=0 mlxlogscore=911 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2107140000 definitions=main-2107270103 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 27, 2021 at 04:48:57PM +0200, Arnd Bergmann wrote: > --- > include/linux/compat.h | 17 ++-- > mm/mempolicy.c | 175 +++++++++++++---------------------------- > 2 files changed, 63 insertions(+), 129 deletions(-) ... > +static int get_bitmap(unsigned long *mask, const unsigned long __user *nmask, > + unsigned long maxnode) > +{ > + unsigned long nlongs = BITS_TO_LONGS(maxnode); > + int ret; > + > + if (in_compat_syscall()) > + ret = compat_get_bitmap(mask, > + (const compat_ulong_t __user *)nmask, > + maxnode); compat_ptr() conversion for e.g. nmask is missing with the next patch which removes the compat system calls. Is that intended or am I missing something?