Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp109615ybe; Thu, 5 Sep 2019 18:25:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqxcwSXTyQwOHqS/mzHTEfxU74t/ETU5YAF80U56a5y+NUC86RGN7PhtAiK3nQBdZTA8ZDZu X-Received: by 2002:a17:90a:c38d:: with SMTP id h13mr7316450pjt.115.1567733141869; Thu, 05 Sep 2019 18:25:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567733141; cv=none; d=google.com; s=arc-20160816; b=UJsLo0jn2i3TDWU3eGyb2pY4Yqf5qkeSjxbjYFDCYoMLeBBDGxlZRJPZOseuQIRVMB 2v0ARgnVuqrsVCZn6+FZGt0bVjCRPo6QDsNbK/+QP+c9hdAl27HpAW7C43IRrhRgC51e O1VolZJdo/4lDIRYVxvgLrULZgiczf8JLrtvcll5oXzdlgei/oRERZhxvdYB3TMwE9+S owIjd3KPFKjYOQN5Kdr7qYhqcGQVbpf72QlcrkzaL+qgS3J+eDdgQzxSS/qu7G482MF+ wdTUCgXxCB9ADE1nw/7R1J0u8/VCJ0WzjF46LQSY2rzZ0yfKCWqWzUA91jAVSGFQmkGl ivzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=h6XoJHJRp5DArbWmdsadcBh6z83BVCBg1lEJgWUn+MU=; b=IM0Qnf9Wr75EK0rZoKecdPJb4GnZoSA31fcGewuk33NaCGXnY+HLfv9ZwnHus7L9AL oUc+zB/BH07yVbxSEbP064S9/c7JxV0gAQCig0f91Wj7rT/c8vyBpVwMplPe4KP5mQ3s EZdFifHly6/3IKd9cb4SCzcwaRUXz9B6eIa84T6JKcpbjc1CTBdPfbYtcNRitIi6IYSM E8Ml1qdf4ybp+hlkSlWDQHYvLqPR18ZeFGcTcs4wexAtLToFh5TJlvDDbwAyhL6/+rCF up/pAdFdEv7I7g9dCnpEVOTOdIqT1Qaw0nl3cGKmuNOrHRPlEaBkPAyo+soYfzLnY+XE uPvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=qtt0GUuu; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r13si3116526pgn.420.2019.09.05.18.25.22; Thu, 05 Sep 2019 18:25:41 -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=@gmail.com header.s=20161025 header.b=qtt0GUuu; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389663AbfIERWu (ORCPT + 99 others); Thu, 5 Sep 2019 13:22:50 -0400 Received: from mail-io1-f66.google.com ([209.85.166.66]:37904 "EHLO mail-io1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387700AbfIERWu (ORCPT ); Thu, 5 Sep 2019 13:22:50 -0400 Received: by mail-io1-f66.google.com with SMTP id p12so6572282iog.5; Thu, 05 Sep 2019 10:22:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=h6XoJHJRp5DArbWmdsadcBh6z83BVCBg1lEJgWUn+MU=; b=qtt0GUuuzbT+VVZKgagf+GRHgGI0fW1B4GMj/VCLED/LaUQtC3Doa6lDQZmwnyIvkV 9psItuNC8ixEYfpe0kkcXATOMiVrDlbNR3wVgMnjNbZ56FIzek+nJpUq0PkvjVd2Piuk 3p9T409z7ubUuFeyV52eRAj4mu0pAcHM7GJ7KwHH6ZmBk7yTAHIlZt0zdaqhiml2jHTg zd89V+AFtTv5neOc3WUAJIJ/sKDy7Evom/9L+XLF66QJdSrTWr5S8ZbEGuIfbY7X6HEv m57Q/8YcJE2ZRvsH6OYv6HCXOHjRsVnVkwyWjDDp5+1kii6M9kxBNSirWw0CjEsJLlN0 VOvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=h6XoJHJRp5DArbWmdsadcBh6z83BVCBg1lEJgWUn+MU=; b=Z53e4uNx0Ju+YgQ/ROJ3wNB8EiujsUVWaOGwKzNkDUcFUUQHJDyhONyWegWkKNS/0L bfPuoRCuBz7OORuneanxaUAJ9DoFXgngE9A1WyCwoGoz1Ep8+wsiEEhJbrDn36IoVqEE c/+lz4SrK97nClkM0+PSkF8Vb/xDoSmV6bNEUYRo2IjRbJCwMMEYLbkrwAQIzop4qm7t czYxSzETwTFfNiGAsUpzZaOdjIeMUBxL6sDyPVnMGuHwcqn2LoZRgqstsyeJJkQyfrX9 LAgNpTNylkdYJcs/x3Z87oAUi3LXQk1U9D7G9/wxCLEm38fGND9CRW8T3q+nuIaNbYu2 P+LQ== X-Gm-Message-State: APjAAAVt54JaVM2UrhYudXImmcDiWSKFR5Tpr957jtD/trq5sRYMAI81 x1gZLz7qrCIdwWwjG2w2Ar5LxOUvG8YlsAVF7RU= X-Received: by 2002:a6b:cac2:: with SMTP id a185mr5529429iog.142.1567704168865; Thu, 05 Sep 2019 10:22:48 -0700 (PDT) MIME-Version: 1.0 References: <20190905152155.1392871-1-arnd@arndb.de> <20190905152155.1392871-2-arnd@arndb.de> In-Reply-To: <20190905152155.1392871-2-arnd@arndb.de> From: Matt Turner Date: Thu, 5 Sep 2019 10:22:36 -0700 Message-ID: Subject: Re: [PATCH 2/2] ipc: fix sparc64 ipc() wrapper To: Arnd Bergmann Cc: LKML , Andrew Morton , "David S. Miller" , "Eric W. Biederman" , Deepa Dinamani , Christian Brauner , Manfred Spraul , Davidlohr Bueso , Linux-Arch , y2038 Mailman List , Dominik Brodowski , stable@vger.kernel.org, sparclinux@vger.kernel.org, Linux API Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 5, 2019 at 8:23 AM Arnd Bergmann wrote: > > Matt bisected a sparc64 specific issue with semctl, shmctl and msgctl > to a commit from my y2038 series in linux-5.1, as I missed the custom > sys_ipc() wrapper that sparc64 uses in place of the generic version that > I patched. > > The problem is that the sys_{sem,shm,msg}ctl() functions in the kernel > now do not allow being called with the IPC_64 flag any more, resulting > in a -EINVAL error when they don't recognize the command. > > Instead, the correct way to do this now is to call the internal > ksys_old_{sem,shm,msg}ctl() functions to select the API version. > > As we generally move towards these functions anyway, change all of > sparc_ipc() to consistently use those in place of the sys_*() versions, > and move the required ksys_*() declarations into linux/syscalls.h > > Reported-by: Matt Turner > Fixes: 275f22148e87 ("ipc: rename old-style shmctl/semctl/msgctl syscalls") > Cc: stable@vger.kernel.org > Signed-off-by: Arnd Bergmann > --- > Hi Matt, > > Can you check that this solves your problem? Works great. Thank you Arnd! Tested-by: Matt Turner