Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp14594372ybl; Mon, 30 Dec 2019 13:10:31 -0800 (PST) X-Google-Smtp-Source: APXvYqzEit4TI3/+MHAMyQLLb93fnLQuFB2tqDLCLLKZg82gRQHVbqEeklkjHud4hEuX/ALapRfy X-Received: by 2002:aca:c494:: with SMTP id u142mr414163oif.86.1577740231199; Mon, 30 Dec 2019 13:10:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577740231; cv=none; d=google.com; s=arc-20160816; b=VBxyYaQQVISxxAYcM0lnLP0uqFGuH+xX1ZQzQNBmDjz1J+DaUYd9Q6J9HztcMLpJtT AE7q8GnsDRJJBj8uaydxAsojku/HFVGIyUt4LPNPWwC6+8iNfPoiHzK+gQ5mRrYdVkzi t2i/pf5/0uwrzOvt1v9ErdwtfVtKYFBICeEfoGZbriQQMFfIKm3uPVapoKTTHNEt/Q8c +Gvu/GdvkcW9/Zg1EKwk5gt8eO9A/jB/fN6jw6EzEHmvy1RtvdPAPSa9XCLqber2VOHy iAWnXVg8uNr/QXEBJMwPWGf7kA8w0sXhC9NUb2dTfgBtLiGZo8bR3p8YXnq11r80nHAC jDzA== 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=IH7FxiNNsfeLktKVR9ZY1WEszhxE6IbdHdMPtl1/ooU=; b=dQlpzjyOqrjZXf1ZR60JGaecbo52TJxFhkkjyTxo66w1GwpftwQcmI8PPLJ3QFpkZ5 j2vruBZslhoPcEEOgF8Swl8mO8pKjNK7xwO7RpZ0lzM3DrRHlMtxPsmvbQUkGDi1Z/PC kpH8YL6SsOmA/kh33fPStJIx8Vog+Jqffnp5HmdAia0IRa8LO6huMfy3IGnMq2ClG1h2 6WMDQir+7z/iLOhfua0EG7C3viRvHZ42wM9/VYp8zIOd/Exsdsno1JEsF2/3vRNahPSC 9jhPkS9eKD47dgTVGiyCkNynUV66oKVfiM107lMNHZyAhg3c536i4AtV1pQ5IhSJjmAq Rr0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zx2c4.com header.s=mail header.b=HqCV+yaq; 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 a9si14318207oid.132.2019.12.30.13.10.18; Mon, 30 Dec 2019 13:10:31 -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=HqCV+yaq; 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 S1727744AbfL3VJf (ORCPT + 99 others); Mon, 30 Dec 2019 16:09:35 -0500 Received: from frisell.zx2c4.com ([192.95.5.64]:41445 "EHLO frisell.zx2c4.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727691AbfL3VJe (ORCPT ); Mon, 30 Dec 2019 16:09:34 -0500 Received: by frisell.zx2c4.com (ZX2C4 Mail Server) with ESMTP id cc421e35; Mon, 30 Dec 2019 20:11: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=6bUp3Unh4J5ntgEcnJwDilbtlDo=; b=HqCV+y aqge5F+06cKgztdUwKCaXLUh3/yblDQ4rDD3q3hZFy43Nw2+moMQGc5bLj1SkGgi frZecd04k7WC5zWIpOPYTz7LwnMirenNoImVd4pgnY+1ZqClE5TYDIPTms//4EJ9 Qr2QYRh2w5e23TB2+AX6yvB+uIhHxYPld5NTC/kfyh1iX1GPqcEhWMtJSay9/TlQ TRxAN24gygo5dRZPREc5R07+3xcoPDW9s1Km3CRZFyIBiJutNpK1Kiru5I7C74+I G9nQCIVfdmzMgl87jVYNa/cSnP3LGUhQYorZsC7sdXL1UoDhuJy4KA7Rd/FF+rhA uD+YZIoQJA+IfaIg== Received: by frisell.zx2c4.com (ZX2C4 Mail Server) with ESMTPSA id fa0f9c9b (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Mon, 30 Dec 2019 20:11:23 +0000 (UTC) Received: by mail-oi1-f170.google.com with SMTP id i1so11478210oie.8; Mon, 30 Dec 2019 13:09:32 -0800 (PST) X-Gm-Message-State: APjAAAXV5b60Nw33JcRVh4nggeMk6YkAwguQndY3vvlrQf8uwZkuvNTq C58EAPFFFnriJ1sSRUXJYPrXgR1lnBz7/glcr0s= X-Received: by 2002:aca:2109:: with SMTP id 9mr351507oiz.119.1577740171616; Mon, 30 Dec 2019 13:09:31 -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 22:09:20 +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 6:33 PM Arnd Bergmann wrote > Is this immediately before/after the syscall instruction or the > indirect function call? It's immediately after/before the call to the VDSO function itself. Next I'll try to instrument the VDSO to get closer to that syscall. I produced those reg dumps by hooking the page fault handler in the kernel to print them and then disabling aslr and sticking a `*(volatile int *)0 = 0;` in the code. Pretty gnarly.