From patchwork Thu Sep 5 15:21:24 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 173150 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:ce:0:0:0:0 with SMTP id r14csp866404ilq; Thu, 5 Sep 2019 08:23:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqwDbIg2KFmX7HrXZLHGZVlKFEaKzM+/5BV5nRBc/Kellvuu7OCNAaJMjOucB5wNAXT95W1C X-Received: by 2002:a63:fc19:: with SMTP id j25mr3609994pgi.175.1567697026246; Thu, 05 Sep 2019 08:23:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567697026; cv=none; d=google.com; s=arc-20160816; b=Rt5Hba2fPF9/5t0BW8ZrtbZkUbBem2zBcph1KSX+nOPQaKuD2kJWMP/9j5Vo/821Uh opVV+e+hEy2+o3Edyc1et+LbiEsRDFjHytFxWRqBlQpHWWde8IuU2Gbc2xubMSUqKGgx 6kf0VZkyf/z5hoKjomP8T1dImeaIYp97O919DwT6hW4hynjBjtZq+F1te3GWb5ZwZO/0 WsDqjzvrwo5FpMWFZyUsLGbyFT5rQDHluLTf4UFV9urYXh2SwkiN+JVJBA0Q3t0o0lav Qp2V8NOCs7kNiN5DJs4bFUG2hU+aiIxxXrkCUjvLwonP5Srew1fGY/jowYxtUR8cwQt6 PxKw== 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:mime-version :message-id:date:subject:cc:to:from; bh=Ip8460X2oP3SczNQOCOMoM70GyOGbFaesj8G6WBin38=; b=Oz7x25riE8/xLRIlR6wuZ+KrtVQ0v3t8yXtdKtFcHgQBtm2O1pWZTwwS9Dv2rRinQz CpBsWNs4DZgf0+VO3PuMVdNlabcBzbEXJ4d8BwRex6hZESi02WBsbYRmEZ0rV6OYgwXz OYrFNBqLFj31gd2XhNTxT2DwP66IajgzkpyMTpFEg5GUmd/Mg3fqQflhxytnrbZ8e0wU 5qEifs8PSylQczQGFCKSbDEEjhweQv/NCA1jkhtF5uLEU7RpUM9dwD27x21mXXnL6TyU ttviqnC7ufb79HfVooS68OnI0oksDtUgKJYaIeX3dZJ4FDhGcBMIa68o7bV4XL1ByiGn gxcQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=stable-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 s13si2537860pfh.70.2019.09.05.08.23.45; Thu, 05 Sep 2019 08:23:46 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732238AbfIEPXo (ORCPT + 14 others); Thu, 5 Sep 2019 11:23:44 -0400 Received: from mout.kundenserver.de ([212.227.126.187]:44019 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731609AbfIEPXo (ORCPT ); Thu, 5 Sep 2019 11:23:44 -0400 Received: from threadripper.lan ([149.172.19.189]) by mrelayeu.kundenserver.de (mreue012 [212.227.15.129]) with ESMTPA (Nemesis) id 1M7ehh-1i4XD309vh-0084hW; Thu, 05 Sep 2019 17:22:24 +0200 From: Arnd Bergmann To: linux-kernel@vger.kernel.org, Andrew Morton Cc: linux-arch@vger.kernel.org, y2038@lists.linaro.org, Manfred Spraul , Davidlohr Bueso , Dominik Brodowski , "Eric W . Biederman" , Arnd Bergmann , Vincent Chen , stable@vger.kernel.org, Greentime Hu , Yoshinori Sato , Guan Xuetao , Stafford Horne , Jonas Bonn , Stefan Kristiansson , Ley Foon Tan , Richard Kuo , Mark Salter , Aurelien Jacquiot , Guo Ren , Christian Brauner Subject: [PATCH 1/2] ipc: fix semtimedop for generic 32-bit architectures Date: Thu, 5 Sep 2019 17:21:24 +0200 Message-Id: <20190905152155.1392871-1-arnd@arndb.de> X-Mailer: git-send-email 2.20.0 MIME-Version: 1.0 X-Provags-ID: V03:K1:XxUJwrw3CMdgDWeLKiHcQFwqG5kArJ+fThzxITIBUQnV8GTJRWt 5s/+x2+IS6LxshP4ageYlrALYSVCMMbn4PLCj6JVtmn07dladMa73O7CfYJKZfYPGAzhpaE Pg5AORkHt/hlQHTDkRhl39XOdHBkuqe1JAub8P59iFIHmEoaBgT/xQhHoIlyBmADQH9/9rg aSIYL4xMi85ktbTYty2bw== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1; V03:K0:BqtXUM4orE8=:z5RarZPHyTyTUSIZCnz00G BafFSMNtWu5vOpkk7WY2l+3hQiUGyMuMcQiP4S3Mq7sfX3GIG+wzlTy+40cDK6a+U96qePVSI dZBfwCA4/hoIVwenR+mHi0Na31lTyJzpRkcXpwiGI4CdKYz2biMZCsQMTrj/EfFt0q/k2nrqe AnzO7KWgvVlA1GFvDAN2ufVxcA4bmiSh0uAcIRvU8Uo65fOih3pvc4syPcXuzgUrIRaaMb7zo y0ViwslBnFMIDYwCSOBZkLrq+2xyh1tYBNuwjUNjrjSs+ibojKIfXdqg3rPvZSQ+wqvqucKig 32juvrsEVHPzMVuwzNgP/oF4pVjZvC7UdHWFosZh+5YM969U8OT6Qd+JoN2lfq09JYm8CluZl 6fjxAdwNfdWUQ0HsQhtXuYcCIq760Cbb1aq293gV3H9Fp81WIUuC3RdL+AA7GZs0AGFz0lyfT bmnOLsfnWJThKRD/iFyoZklx2qHHjT/n+f+2Nr9XZMCTrSRIBy7Q1OECrqqey0m9KG8MH8Wlg zKjA2K74yZqlPQwMrVYaxDvn00bUo1Y4Lnn9HD5CHTOMR47ME3MZuZiXzh6QvWgRmtFyPsYg0 +tqba4W0T196wcnCz+EC8FAP4cObPa8KWCrM6xjtnVTPEbmmamuNne73GDf+dLQhFzZWOxv0P G1AiXW23hUDg4deXhFfV1Vb2+9Hi+679hl+lRQEK4FDRl35UHAqTuzrRaGNwSWhiwqr2Apjih W/lUMDExLP1uhmqmeuMoU4rWD0x5wgkL3jBHgczvJQX2TwotmtJUOPxqgb1ccMRWEwxtr65oM qW98ig3lwLo7Q2dIZtrFLGt1Mz3xkqvyw7GX5hDY/opDRGiM0s= Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org As Vincent noticed, the y2038 conversion of semtimedop in linux-5.1 broke when commit 00bf25d693e7 ("y2038: use time32 syscall names on 32-bit") changed all system calls on all architectures that take a 32-bit time_t to point to the _time32 implementation, but left out semtimedop in the asm-generic header. This affects all 32-bit architectures using asm-generic/unistd.h: h8300, unicore32, openrisc, nios2, hexagon, c6x, arc, nds32 and csky. The notable exception is riscv32, which has dropped support for the time32 system calls entirely. Reported-by: Vincent Chen Cc: stable@vger.kernel.org Cc: Vincent Chen Cc: Greentime Hu Cc: Yoshinori Sato Cc: Guan Xuetao Cc: Stafford Horne Cc: Jonas Bonn Cc: Stefan Kristiansson Cc: Ley Foon Tan Cc: Richard Kuo Cc: Mark Salter Cc: Aurelien Jacquiot Cc: Guo Ren Fixes: 00bf25d693e7 ("y2038: use time32 syscall names on 32-bit") Signed-off-by: Arnd Bergmann --- Hi Vincent, Sorry for the delay since your report. Does this address your problem? Anyone else, please note that this patch is required since 5.1 to make sysvipc work on the listed architectures. --- include/uapi/asm-generic/unistd.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.20.0 Tested-by: Matt Turner diff --git a/include/uapi/asm-generic/unistd.h b/include/uapi/asm-generic/unistd.h index 1be0e798e362..1fc8faa6e973 100644 --- a/include/uapi/asm-generic/unistd.h +++ b/include/uapi/asm-generic/unistd.h @@ -569,7 +569,7 @@ __SYSCALL(__NR_semget, sys_semget) __SC_COMP(__NR_semctl, sys_semctl, compat_sys_semctl) #if defined(__ARCH_WANT_TIME32_SYSCALLS) || __BITS_PER_LONG != 32 #define __NR_semtimedop 192 -__SC_COMP(__NR_semtimedop, sys_semtimedop, sys_semtimedop_time32) +__SC_3264(__NR_semtimedop, sys_semtimedop_time32, sys_semtimedop) #endif #define __NR_semop 193 __SYSCALL(__NR_semop, sys_semop)