Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp14242369ybl; Mon, 30 Dec 2019 06:38:47 -0800 (PST) X-Google-Smtp-Source: APXvYqyXImDkmxu70EOYqEfBsPuTdYq6kX3GZhO4GgRWJ4L0BSurdeY3Ts7QnT4mZCmgz4e80s+W X-Received: by 2002:a05:6830:1481:: with SMTP id s1mr57736312otq.66.1577716727054; Mon, 30 Dec 2019 06:38:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577716727; cv=none; d=google.com; s=arc-20160816; b=MwxOsv/c3vK+4pTXJlld1X6JkjzUXi1UUT4eHuyuBHBPyz1HmS6a6+xlnYoXrCgEmD IGj0OPmcJQpkIeJcRlnSg/cJ0+WwFld3vENPwoI3+7xSyF3sbTILSenbeCDAGPru+w9Q IBp/5roZmpyWerK8tAplS/k40l7xmDs75iJWcILDVaatG/CmmbqqhuBZ5Nfen2CFslT2 P6aL/GMcrT/CefE/+3GCgbw/OK/krj2NpTxO3rNmHpjJReHl7f6O6DCmQv1jE/HKi88N 4IWgYzCG6sm9hSewLw7ASMmdcXg5vxqdxg2oeg+G71OQaOGcX7GYRRD92cCBGPw6eh4w 8S8A== 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=Ofi6YqJje8d5/p+gs2CjAqi5Uk/j+ve80MHe4EGKrJU=; b=KRK5joBPbDh7J64HfprzrZcvDFsbckxBkiO+0A+LpW5YszypcJ/DmmECz7AwFKcvyL +rLsTad4n48b/fIcDMH5ZTUXO0ROBwtbzQIoQ38GqngGOUPZ5QpOhKRi9+76e3OarzZ+ pgPpP43x0NFwLr1UvK44e4/sosUC/wS+oWz1+ppmId6wcs9NteqFgGZCbwm59dKQsNqf km7oTwBCbmPYOTOJ4lbuze19W8pvSpSYMh4mJqqx7ehUsiPuCICsP7adSw2q7aUtXT6U pCZW4u/o6dfVnH7k1D898jnKwiNTqsClw6/y/VfqBrU2lnhIrzazX/cWfRubmqpIrBgl 3pRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zx2c4.com header.s=mail header.b=kFXRtfBf; 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 b10si21512374oic.153.2019.12.30.06.38.35; Mon, 30 Dec 2019 06:38:47 -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=kFXRtfBf; 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 S1727576AbfL3Ohd (ORCPT + 99 others); Mon, 30 Dec 2019 09:37:33 -0500 Received: from frisell.zx2c4.com ([192.95.5.64]:41067 "EHLO frisell.zx2c4.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727445AbfL3Ohd (ORCPT ); Mon, 30 Dec 2019 09:37:33 -0500 Received: by frisell.zx2c4.com (ZX2C4 Mail Server) with ESMTP id 68ac53d3; Mon, 30 Dec 2019 13:39:23 +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=7aEjW/TsXgUR/0HTMYxt13eFkHc=; b=kFXRtf BfiEqmjri0y3PshcHLuAZ/aW4UQrCX7AYD3/cbLACA2HthDm7tcbO9E1n9witAxx VQpvpaJdRs9BWpdiAZQFTkGmQHK8Rs1K3LcMfFfOrNKW5fM3hoMG+4/NzFy++TSt xH5IcjOMnUrV3EyNKupV2X92h1jYfJs21D+pR3aZJDdwmg1Q1QiDUNeYo8TYE/wv fCh1wtolDJPbftWos3BAwP1/LHhnlO3OlqNJGWcmbLWwc1cJ5L9qKMw8RxL9UBOH nPB3iF/tHbPnoNIng8aUvfz95ps2bTxkTtVoxCGtawoI75LQaEnbf6bZiqomGbnP jMRMCoIAN8Qg4FIw== Received: by frisell.zx2c4.com (ZX2C4 Mail Server) with ESMTPSA id ae90a694 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Mon, 30 Dec 2019 13:39:22 +0000 (UTC) Received: by mail-ot1-f54.google.com with SMTP id 66so46453276otd.9; Mon, 30 Dec 2019 06:37:29 -0800 (PST) X-Gm-Message-State: APjAAAVfb16z4i5fR4cGD92vvOVfrbF5bzOmTyXBEVjNCX6y96gXMul9 sUyKYeZPlVVkv/mT50DQTx9Bw058MFcLR88G3qE= X-Received: by 2002:a05:6830:1141:: with SMTP id x1mr401529otq.120.1577716648710; Mon, 30 Dec 2019 06:37:28 -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 15:37:17 +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 1:34 PM Arnd Bergmann wrote: > > - Why does it crash in the first place rather than returning -ENOSYS? There's a bit of speculation about this in the original thread that prompted this patch (you're CC'd). > > - How does it actually work if you run an application built against > an old musl version on a kernel that tries to make this not work? > Do you just get a random time (uninitialized user space stack) and > work with that without checking the error code? Actually, your patch fails here. The ts struct remains as it was before, filled with garbage. No good. My original patch in this thread, though, does result in the correct value being written to ts. Jason