Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp14120388ybl; Mon, 30 Dec 2019 04:29:26 -0800 (PST) X-Google-Smtp-Source: APXvYqxfuzcxvpDGNXRI+otcoG3SlSkIZxJ7/igzl9O4rbW1JttyuKwRYi8yjBs2HLwMBq+WTMKu X-Received: by 2002:a05:6830:1715:: with SMTP id 21mr29339212otk.145.1577708966698; Mon, 30 Dec 2019 04:29:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577708966; cv=none; d=google.com; s=arc-20160816; b=garsk7IJUbUxc4Sir3w8RgJDR3pRPBZbrUTArKdqM+rSpJdLP58fiZzOTeabR+wqJ6 4yIObqCZqCrSJJFnrC7PwIuzKIFQ4v2qzLVaUTUeEtOvl+wZhQigOv21Jautd6qNlGVW CBG/PZVisxr+GgbaLLlgWJR6FvAjwq5mLceOMNQLC3p3UdfQ/Y4bQhRcbzKVbLg6XU1E aJts7SCK1gxKdXp8iydjri6YTuPoxBlsCvlrp5w0tE6QUktpnj9LkZkU7YzytwDsbHdC Md36wdMJqC8yiyR+ovIlkwAobHSOp9WkNQE4s+aLVJ19GqDQiYIZylBmNBQYEjrYol0+ BSzQ== 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=zgnxfK78G61CIyZYDgHppYwT8kQfBTs09a4kE2hmbto=; b=T4QOsilaZza9ZVF/5N9UTE3M+L2JTy8Az4SGLEUVLDKaGK3Y4/lCqP6VZRoxcH46PJ qLX+RMlJMizcrJIjKaLhuYzXU4KpOj7iTFOcZzsro6fJUvS+QAeeGdxR06vSpy8l8Z4r 9UQgiA3QIFapSPeai9a9ZdN7wlVZbTT2o1+OCi2P1Q8+xXDz2PeIo9Xf4l2K4CaZVdOI A5kaFPAFVI2KoAbZkhxglg1+WfBxIsZGWW9KNT6irzadkPIpTXGgl28ok5x0e+6Vt7h3 rlFsWGvSY960qleNr6NlYDyl/Tds/62CUs/OMmibqMBVmpZmfnbu56CSWc+eKAmJ0QIK JnFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zx2c4.com header.s=mail header.b=T8+n9J1e; 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=NONE dis=NONE) header.from=zx2c4.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n203si20582265oia.112.2019.12.30.04.29.02; Mon, 30 Dec 2019 04:29:26 -0800 (PST) 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=@zx2c4.com header.s=mail header.b=T8+n9J1e; 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=NONE dis=NONE) header.from=zx2c4.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727445AbfL3M1E (ORCPT + 99 others); Mon, 30 Dec 2019 07:27:04 -0500 Received: from frisell.zx2c4.com ([192.95.5.64]:43711 "EHLO frisell.zx2c4.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727376AbfL3M1E (ORCPT ); Mon, 30 Dec 2019 07:27:04 -0500 Received: by frisell.zx2c4.com (ZX2C4 Mail Server) with ESMTP id 3275af36; Mon, 30 Dec 2019 11:28:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=zx2c4.com; h=mime-version :references:in-reply-to:from:date:message-id:subject:to:cc :content-type; s=mail; bh=djyQlJomKtz8hsUKZjZcwqxWC2Y=; b=T8+n9J 1ewE5Sx5TgkA8tcacSDu3WghMugRaT2fqS4EuMrxb+OQJSc4sS29/VvhH4TdGG2R up3k77N342yV9FFpmJvMTadwInlk6jBZiE3Adrj5r4NFr0QqC2GYsGOFrXJjIcB7 +VHkOeqmS2yoQkBw7X4UptzwCegiI0mPCwyqoOmjYV4R+W1BpQh+TbEmmHg3Z06c /vJH7voncbiu2wlHZBFCy5qqsVla3Dsb9vz/LPZA8TzzWtFiO8Z/D91nhDemFpyX cWRwSykVUg6vd98FMX84N+J6dAOQ7ohGTwC4kuuzWV0YW6b8wm6Dj6NBYk3THMue V4NN0p2q4e5c8T+w== Received: by frisell.zx2c4.com (ZX2C4 Mail Server) with ESMTPSA id 1396dfe4 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Mon, 30 Dec 2019 11:28:54 +0000 (UTC) Received: by mail-ot1-f43.google.com with SMTP id k14so46117389otn.4; Mon, 30 Dec 2019 04:27:01 -0800 (PST) X-Gm-Message-State: APjAAAUyFSjwCKlmkOh6NgoXYX2f9xfLyOWl2pUPASj1gMJWs5A1V0Ed I1QKlY2zdLbHUUB61rmihxfIywAcw0xmG2pvXCc= X-Received: by 2002:a05:6830:1141:: with SMTP id x1mr75280853otq.120.1577708820676; Mon, 30 Dec 2019 04:27:00 -0800 (PST) MIME-Version: 1.0 References: <20191223130834.GA102399@zx2c4.com> <20191224135404.389039-1-Jason@zx2c4.com> In-Reply-To: From: "Jason A. Donenfeld" Date: Mon, 30 Dec 2019 13:26:49 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] mips: vdso: conditionalize 32-bit time functions on COMPAT_32BIT_TIME To: Arnd Bergmann Cc: "linux-kernel@vger.kernel.org" , "open list:BROADCOM NVRAM DRIVER" , Paul Burton , Vincenzo Frascino , Christian Brauner 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 Mon, Dec 30, 2019 at 12:58 PM Arnd Bergmann wrote: > Thanks for the bug report! I'm not completely sure why this fails in > this particular > way though. I assume you are using musl-1.1.20, not a musl-1.2.0 snapshot Yes, that's the one, sorry. > diff --git a/arch/mips/vdso/vdso.lds.S b/arch/mips/vdso/vdso.lds.S > index da4627430aba..0bdc6a026be8 100644 > --- a/arch/mips/vdso/vdso.lds.S > +++ b/arch/mips/vdso/vdso.lds.S > @@ -93,9 +93,11 @@ VERSION > LINUX_2.6 { > #ifndef DISABLE_MIPS_VDSO > global: > +#if (_MIPS_SIM == _MIPS_SIM_ABI64) || defined(CONFIG_COMPAT_32BIT_TIME) > __vdso_clock_gettime; > __vdso_gettimeofday; > __vdso_clock_getres; > +#endif > #if _MIPS_SIM != _MIPS_SIM_ABI64 > __vdso_clock_gettime64; > #endif > > That should ensure that no user space can call the old vdso > functions on a kernel that intentionally breaks the actual > syscalls. I can confirm that patch fixes things. Thanks. Jason