Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp8992065ybi; Tue, 23 Jul 2019 19:37:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqxxgteDQXwOusobI9IvI+4cLzY7mZ3dG2DRbThPj0IYgP89FZvLKWBe221tZHwNbewBU6t7 X-Received: by 2002:a17:902:2aea:: with SMTP id j97mr71298078plb.153.1563935828988; Tue, 23 Jul 2019 19:37:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563935828; cv=none; d=google.com; s=arc-20160816; b=N0OkzXa0JcIRbB/DP01y3edr5vuHn9Puwt6pYq396ndIAlDwt+Zt/axOubVw7Jp8bw s29b5GL4VKxGmihf39d79zSow0uFNUwjm8mJmlxZbyexTD4HTw14+5gidMPAnEmhj6ea tE7yA/M29lOnWEfEvikVBM5tu4xMHRRITsJzXXlTO4YRjluuwbTzuiyTQgTtWjnJlYcZ BsVYpBWE1pDA+AUQgeTZhZ8ZO8fKbwn5SxAWX8vbbOBGb1WgEaqFFQQuQPMpB/fLJRyM 0x8o6BTS6r2seMo66FL18Yc39p4hsxfZ8DIUiykQsXo6iSxIlGMaABSYlQJK1QqlIE9q Cb7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=5M6EYC1lgi7lUIVWoKuOTbNJmMxdrWsKpcBmND25FEA=; b=iUE3qxWj+OoXieXSYA+Yf+e2rUbBEzcXvJLciEJ6dHTCwK5aYJQF/RwOFKwyyrtgdm ciJsjXzqVKicB5BfIM+T3brh898QRp/GoGOmTnrNaaTAtw2/DMt1BeuaqFrp4q7p3yhA Zgyi+jKHfr4LGaFIZG3Q44nvrV+k9wujd6BCHKbLZ/1RxDYq+LNlGeGEALPkDH8q6dSu Ubqi57O7vGt2QXViPuJqyMtbzYIXunHf/vVtFo+vYPZiWW8qglhHq2jc6XVgCwIpfrES Xo+GWEKqWRv/SyeCLTE0XC9ZZrlozC9BYsZvFFNJFtkMVtSamqkRiyX7QnYZ+Bv0fv4E rlqw== ARC-Authentication-Results: i=1; mx.google.com; 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 188si14487090pgd.404.2019.07.23.19.36.55; Tue, 23 Jul 2019 19:37:08 -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; 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 S1727348AbfGWX4n (ORCPT + 99 others); Tue, 23 Jul 2019 19:56:43 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:42310 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726593AbfGWX4n (ORCPT ); Tue, 23 Jul 2019 19:56:43 -0400 Received: from pd9ef1cb8.dip0.t-ipconnect.de ([217.239.28.184] helo=nanos) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1hq4e2-000089-TA; Wed, 24 Jul 2019 01:56:35 +0200 Date: Wed, 24 Jul 2019 01:56:34 +0200 (CEST) From: Thomas Gleixner To: Kees Cook cc: Andy Lutomirski , Sean Christopherson , Vincenzo Frascino , X86 ML , LKML Subject: Re: [5.2 REGRESSION] Generic vDSO breaks seccomp-enabled userspace on i386 In-Reply-To: <201907231636.AD3ED717D@keescook> Message-ID: References: <20190719170343.GA13680@linux.intel.com> <19EF7AC8-609A-4E86-B45E-98DFE965DAAB@amacapital.net> <201907221012.41504DCD@keescook> <201907221135.2C2D262D8@keescook> <201907221620.F31B9A082@keescook> <201907231437.DB20BEBD3@keescook> <201907231636.AD3ED717D@keescook> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 23 Jul 2019, Kees Cook wrote: > On Wed, Jul 24, 2019 at 12:59:03AM +0200, Thomas Gleixner wrote: > > And as we have sys_clock_gettime64() exposed for 32bit anyway you need to > > deal with that in seccomp independently of the VDSO. It does not make sense > > to treat sys_clock_gettime() differently than sys_clock_gettime64(). They > > both expose the same information, but the latter is y2038 safe. > > Okay, so combining Andy's ideas on aliasing and "more seccomp flags", > we could declare that clock_gettime64() is not filterable on 32-bit at > all without the magic SECCOMP_IGNORE_ALIASES flag or something. Then we > would alias clock_gettime64 to clock_gettime _before_ the first evaluation > (unless SECCOMP_IGNORE_ALIASES is set)? > > (When was clock_gettime64() introduced? Is it too long ago to do this > "you can't filter it without a special flag" change?) clock_gettime64() and the other sys_*time64() syscalls which address the y2038 issue were added in 5.1 Thanks, tglx