Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3770723pxu; Sun, 20 Dec 2020 15:21:41 -0800 (PST) X-Google-Smtp-Source: ABdhPJwqxeMwK7C1qsN1SffytXd1J5JlwezicyPuF4cwjJ1jV/3RHHx3yPp37QcThccP+pqxFmvG X-Received: by 2002:a17:906:edb2:: with SMTP id sa18mr12575768ejb.264.1608506501131; Sun, 20 Dec 2020 15:21:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608506501; cv=none; d=google.com; s=arc-20160816; b=sHUKURao8pg4f40csL2lYjdXiTBK9XcVGmx3JRz3K7TY8ZwFWW17O82xhNJQdRmgKX 4JMv6F5LLwc1plsB/VJ/YCgZLixUNQojOYt7Bm9els7vtkGEPEvSUcUV+mSzrBi2s0oz ZcWPZseupFt8QDMYjcarEKaOLaPQTAK1T75eb1mQgLdkPoeue2ThjG0OFIHQXeJUaXAj LvrZcUXXq5wZYsBx4VdSj/D18kKa26ELkhS/QHQP1zLS/jWk8ui7owTF4iDrcrFrdOf0 fXn8Ymyd9kHV737Q+5EhYSVSvu82UAwc5scs/kAnHZ4cHAcGSmJK9Xstyq1mrV1Rq0Dg UGTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=J6gH0r2xqqWAXJND5LQ/bDGIV04PvboVYHJsJkJeSko=; b=D8dd1rZ/hnCU3QWGIy/aDSvGa+xp+sOa4H3jeyXqi01W7zo4RsxTad3h3F58hzVF+x wk5LW8bdy8sH//bnVLK4UOH6kXMR+YinZPdLScLHL6GvhMI6oqOqvTQty6Hd8Bsud+RQ ll0j87z5+amNpP1k78VUHG4lVKrVLthi1cUIiLYL6VJfvbrYjNAB0gLpO6rt80PsDm3Y +nfmCw4a/I8rm0dRW6pgC2r+L4kaCmi64lxR60oWBxVTWUjsVwPDRncfV6BmnogCHjSO 7COMSMl5Y/jwqOTRMNIBtd+vItAV8jOwWZFVJVUgpPmmqq/I9ZVuAyzAFUcu/nAcKwZz 50mQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="kGXUP/II"; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ss22si6390020ejb.110.2020.12.20.15.21.03; Sun, 20 Dec 2020 15:21:41 -0800 (PST) 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=@kernel.org header.s=k20201202 header.b="kGXUP/II"; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728323AbgLTXTb (ORCPT + 99 others); Sun, 20 Dec 2020 18:19:31 -0500 Received: from mail.kernel.org ([198.145.29.99]:33288 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726683AbgLTXTa (ORCPT ); Sun, 20 Dec 2020 18:19:30 -0500 X-Gm-Message-State: AOAM530rwWaL85QnKljusGNgcSvyoaqLEMZgsrpofqicuWZ5TCZek5uf Jw4tQjpP+fxHRumvKgd+sElgTv39JhTr+ye8re0= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1608506329; bh=g56HYtAMLl4N1b6QWGPO7nQfhmnIazVA7XRhb0T6evw=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=kGXUP/IIJnkRe34EB05absXZsOywr7iYfZRTsmDL47+aFeoGs6uIS786jj4w/dzOL i2hATrjqbAEjWbzlCaZ1or+FLI/WuPPln9+QH7mQNBrZbVpun04lXesEOa4WFCR8np 2g5N1szLa2HbfCwG2/i0wZeiFhrEsQdSEwQlioqs03U5nuTZ9qdxXLdO5Gmv0394UD PRG3OABqbXzNUy4AVK/EgfvV3bA8y20YqVaktJLeYOV6zp7QSY10JGzhEr0Ym6oia4 W4537fVfLyEFZHugX48iSExPjhqlI6Ko5XCDH/hJXuJG5MFG0zDeBxiukl+i6jdzdE EO07Vvr38hAXw== X-Received: by 2002:aca:44d:: with SMTP id 74mr9628726oie.4.1608506328757; Sun, 20 Dec 2020 15:18:48 -0800 (PST) MIME-Version: 1.0 References: <20201220095830.17843-1-hca@linux.ibm.com> In-Reply-To: From: Arnd Bergmann Date: Mon, 21 Dec 2020 00:18:32 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] epoll: fix compat syscall wire up of epoll_pwait2 To: Linus Torvalds Cc: Willem de Bruijn , Andy Lutomirski , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Peter Anvin , Heiko Carstens , Andrew Morton , "linux-kernel@vger.kernel.org" , Al Viro , Arnd Bergmann , Matthew Wilcox , Catalin Marinas , Will Deacon , Thomas Bogendoerfer , Vasily Gorbik , Christian Borntraeger , "David S. Miller" , "the arch/x86 maintainers" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Dec 20, 2020 at 10:06 PM Linus Torvalds wrote: > > On Sun, Dec 20, 2020 at 12:14 PM Arnd Bergmann wrote: > > > > The sigset_t argument is actually compatible between x86-32 and x86-64 > > Well, random high bits in size_t or the pointer value aren't. So it > still looks a bit iffy to me. > > But it might end up working almost by accident. The direct syscall arguments all get the correct zero-extension with asm/syscall_wrapper.h, just like they do with any other syscall that is used in both native and compat mode, like epoll_wait(). It probably makes sense to change it just for consistency with the other architectures, but I would assume that it was intentional when this was added originally, as the compat handling for epoll_pwait() went through several iterations before it first worked correctly. Arnd