Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp14274796ybl; Mon, 30 Dec 2019 07:12:04 -0800 (PST) X-Google-Smtp-Source: APXvYqxUXWbxhBhdERjr1tl8qsgF5At/0PzqqxF9oPG/AcJ0bacupQu6JUH0Ej3L63NqTw2ZzFn7 X-Received: by 2002:aca:f505:: with SMTP id t5mr5577430oih.136.1577718724025; Mon, 30 Dec 2019 07:12:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577718724; cv=none; d=google.com; s=arc-20160816; b=QxC3rX98FJsZzg7DeAJDcB8pUaFWLmD+bkjU4APm2YvZHS9hq6rj/SDgx7XG7az5gy 0T6G4O7egzthIHzAZVLCvkMqTPtQPv0ItS6qARP+AAtTLGt+Hv5w1m4OqNybLk+sCFK5 AmBKBN0QuKGbjbZ/w0+hRJh/w6NiMgjDqZUWrWiFcxuDd2vrL2oMssquLRtzIq9Qa9pQ yhoo4XcQVTFQFn85fxSfxYBb11fhSO2i4ocGIcTvVObRLR7kWyGF+S5Od9VZFBL6G6vN 3gb6BbS7Cj1wS4cCTd3I/0v04wUjDLqf6QAfVeVuWGgUVee1lJMYMK8pQrvI11Lyepdd Rcow== 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=T8EvELvDwVuA/WO5KEwqqjTccDr8hdNOU3E+yBGEjOY=; b=MjC9HlCP2EPpu/sICKyu9ykUIxrrMdSaKgSrHgyUwZidBmcJ3V8jEHLGozaRQzQ5LM bnlGdMm7+haTsoMMDT8sX/tmlOESj9OyM7vnD8/Fw4NcW3CP6I+y3G9+Q2rWUETwlNND QVXDGadwZWMAdJa7yYhH5qRa46HPgQdAiSYnB2nl2P2nILYOz7ONCNKe4+YohsSMqUwx Ub9XtZTjSr9mZr/M8hU7w6/InEzm0ZQ1gMlHYl4VrpOKaSeLW0kSiSwDFBQSeYfxGMKj 65h6AKc7pOz6+2N5cWVjRM3cYsFPtrHxIqv4mMXfYFeShGAxunsiasvu9SKee+b9KUhz 23oA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zx2c4.com header.s=mail header.b=BwTGOdaU; 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 m8si19914534oim.180.2019.12.30.07.11.51; Mon, 30 Dec 2019 07:12:04 -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=BwTGOdaU; 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 S1727543AbfL3PKQ (ORCPT + 99 others); Mon, 30 Dec 2019 10:10:16 -0500 Received: from frisell.zx2c4.com ([192.95.5.64]:45103 "EHLO frisell.zx2c4.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727513AbfL3PKQ (ORCPT ); Mon, 30 Dec 2019 10:10:16 -0500 Received: by frisell.zx2c4.com (ZX2C4 Mail Server) with ESMTP id a11596d6; Mon, 30 Dec 2019 14:12:07 +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=LEOHCAqGMYtyfoC88TiUUIaxdBc=; b=BwTGOd aUp8aF1h/4gIeTpE38AUfjzhvqxoqLYrFFlgzHe/G6UILZbOiJjHoDVdos2Uaj9R 0zF+ueKqPyCmIZEPADjw4yVy8iZS4/MyQAOIsOovUnh7RHx7cVkKn3yirt9cfA1s 4zKpyjm6epbqX74yRoL2vHAY4w/Cf8lUbMVQ+rjb8elwPG0SuX7qxPKcsQ8CJTcU xNMrQkCFyFwlDCPXKGUyAVT04qZTUCBMuUap6/I/9inm2UbPjxu4NzjQk0urJYCv /ofEP3RgVIpIM22OgeEhr17SNSVY0cdvpFF1EeUYICxGXRdRTI5lOp05VQIlF64P I8cBF3EHm345r7zA== Received: by frisell.zx2c4.com (ZX2C4 Mail Server) with ESMTPSA id 3a4084c2 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Mon, 30 Dec 2019 14:12:07 +0000 (UTC) Received: by mail-oi1-f177.google.com with SMTP id l136so10999015oig.1; Mon, 30 Dec 2019 07:10:14 -0800 (PST) X-Gm-Message-State: APjAAAVmkcGQVghNlXI2xsujYC6/6xFL8Bfl7oAOk6BrtUPuKaAkvvtL CQ1thrNswJpnuHBvjB0PV29jXhe2KGuL112lpaA= X-Received: by 2002:a05:6808:a8a:: with SMTP id q10mr5074270oij.66.1577718613559; Mon, 30 Dec 2019 07:10:13 -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 16:10:02 +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 3:37 PM Jason A. Donenfeld wrote: > > 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). The following will provoke the crash: __attribute__((noinline)) void somefunc(void) { } int __clock_gettime(clockid_t clk, struct timespec *ts) { ((int (*)(clockid_t, struct timespec *))vdso_func)(clk, ts); somefunc(); return 88; } It seems like the VDSO is doing something to the stack.