Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp3379663img; Mon, 25 Mar 2019 09:07:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqwHGVRmtkfzdZY7KXD6RcJKDeACFl0Lfw6jhZlWEujw4gC5boWLpm+tCkOKnUcJT2bj986h X-Received: by 2002:a63:195:: with SMTP id 143mr24136649pgb.54.1553530034988; Mon, 25 Mar 2019 09:07:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553530034; cv=none; d=google.com; s=arc-20160816; b=wvWCV4aQ4ZwWKZpqer5uEWu489fz9X3B8mi/9xKY8Vj0CAAjuaei9Lxzuq3amrQrX6 YYYMIUxkWR5z9muhZaDCXKMErM2nLMJ4AqoBJi6WKsEVoiqIyN3UWRSsiBrTAZl68kir oPji9nZG0HrzEeoCZYmQ4I0rl4h2fwaz9hTbMhU7BcAdH0N/T/vUsb3L6T+D43MWcMay OpiP1gA2gifPZMexDm8OHtJly7CTbBhoW38OIznbdkS62ZcAJMOASlWwm+riq8dANXmx CMq6Wlok7lGS1MRQBSqcDNf/ekwy6ARfxTFW+R1t8brbRv+KQdwfUAbyNPXqyoqEnx4F IFBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=GUFOU35B7Gwb+O4xskamxpAhcSVh6PbVKYXgEQZRO+Q=; b=mIWEWOP3wmLdB10YYq/NGrlmbcrxUbfjOHP2Obhefs19wriZZcg4ABFSV1S6iDHj+Q BXwEcf6YVAT2bGWrgy1SD1kHICSFJxM7mt6B5qMIF+sDjpEiwluDflpFJrD2aYkePyJ2 EbYol8EUB+OQ5rgVs2U0Tk7/OJh3XfS3bVtqMcgPCOSTs42nhsvRJ4kSnZ+ipNAgHZ5a 4W2Ici0iN7lnueY1u96ZgJfpdM03qI6YWlZ9+VIeapkuDcvh/zJaPDsNKFGkToXrrBWy M2y4wIsB+Giww3x9oMcpPWmtJSdsXyJ1cGBT23xqsEIYWNXpT2QJzEHpQXR3LFDDXRZN OKFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b=kM1bDTqX; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f66si15293599plb.261.2019.03.25.09.07.00; Mon, 25 Mar 2019 09:07:14 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b=kM1bDTqX; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729518AbfCYQFw (ORCPT + 99 others); Mon, 25 Mar 2019 12:05:52 -0400 Received: from mail-it1-f196.google.com ([209.85.166.196]:55708 "EHLO mail-it1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728991AbfCYQFu (ORCPT ); Mon, 25 Mar 2019 12:05:50 -0400 Received: by mail-it1-f196.google.com with SMTP id z126so14750446itd.5 for ; Mon, 25 Mar 2019 09:05:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=GUFOU35B7Gwb+O4xskamxpAhcSVh6PbVKYXgEQZRO+Q=; b=kM1bDTqX+FdEgontXPPC6ql34nIFdD/piaDRq0c/Cs2rKWiCOhnFJW5Lm5ptAS8SyD 6Qs4XdfgxFfd3pxNTH/XqahXowd6jHWotlBI67CMaXhVwVl8UY6GFmxevIaCOzO+cjU9 20TOaUpKyKruMyZDdR6fdGeOkkRfkO2oL4nN0S++VXtUvgUxs4VXmgWb4VrT+QnneYyL mxziuRyJqgNr+hAP1/xfh1II/vuMILF8GCi/n0gKg1NW9kvez5xi3ZX3EF3aUdSKTUN/ 01WES8nwQ2jqrtcVhWbZRw9XKxylLbI9RQPyFWwFmuMuaJfeAVmEIPK7WsITLTH35GkM jvPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=GUFOU35B7Gwb+O4xskamxpAhcSVh6PbVKYXgEQZRO+Q=; b=kgSVYOlJjSV80vGOgk4DRt0EnT6n3q2fYS/bnQ/YEnmi4cljgEmgP+FrZDTC8n/mR5 x0N353wpTNkmm+yPNDnhw+mnTQIYydm4peQgvKi1sWjEIo6MqubDGtYBw1MM5+dHcsqJ FxCUHxXFrCnm16y3XGDM+Bks4iCCX+yz2x8R+mCotvqMw8TbbqhFSl7fyMrtWapb+GCh cf0RHb2HiybK27KSx18ZJvAuuiGByaERLfEByQORP79F/ORktV1e0wYGJgTmpiSr1BTn 5IjIcw1AcZ2BSp9eku7hHi8vEEXdb3SxRNLZodOkf5nq0JYNS64/jwLKLutAq5Bj4/U8 OfNQ== X-Gm-Message-State: APjAAAXhQdPmJTFQVlHau+S67bCIqD//P8nJFSwS/acx7GpKSj1iIBJ2 fzJqKwVUBjK/uO51Aa02hDMW1dnH8uTw3w== X-Received: by 2002:a02:b55d:: with SMTP id z29mr18751043jaj.49.1553529949326; Mon, 25 Mar 2019 09:05:49 -0700 (PDT) Received: from [192.168.1.158] ([216.160.245.98]) by smtp.gmail.com with ESMTPSA id s124sm5911042itb.42.2019.03.25.09.05.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 25 Mar 2019 09:05:48 -0700 (PDT) Subject: Re: [PATCH 1/2] io_uring: fix big-endian compat signal mask handling To: Arnd Bergmann , Andrew Morton Cc: Alexander Viro , Hannes Reinecke , Matthew Wilcox , David Hildenbrand , Nikolay Borisov , linux-block@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org References: <20190325143521.34928-1-arnd@arndb.de> From: Jens Axboe Message-ID: Date: Mon, 25 Mar 2019 10:05:47 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1 MIME-Version: 1.0 In-Reply-To: <20190325143521.34928-1-arnd@arndb.de> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 3/25/19 8:34 AM, Arnd Bergmann wrote: > On big-endian architectures, the signal masks are differnet > between 32-bit and 64-bit tasks, so we have to use a different > function for reading them from user space. > > io_cqring_wait() initially got this wrong, and always interprets > this as a native structure. This is ok on x86 and most arm64, > but not on s390, ppc64be, mips64be, sparc64 and parisc. Thanks Arnd, applied. Was there a 2/2 patch? I only received this one, 1/2. -- Jens Axboe