Received: by 10.213.65.68 with SMTP id h4csp3053746imn; Mon, 9 Apr 2018 13:31:17 -0700 (PDT) X-Google-Smtp-Source: AIpwx48meBWu+qDPmI68j1uRSZshFWpfh+wTI5BH/w4hJMQA6Uhj6ygq2omCXD2f1HmkMt8N5uMj X-Received: by 2002:a17:902:784c:: with SMTP id e12-v6mr10424051pln.60.1523305877875; Mon, 09 Apr 2018 13:31:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523305877; cv=none; d=google.com; s=arc-20160816; b=yU8PZjNsAT5h3rDj+Y7l+B9xxIldXaARNa84YHR+wBvirta/xE0ElP2yZbmJ7HVnmH e9CfaEJ1GNrxKBIjm6kqoE6O7rTSalfYb6iw67tOo1ob4wwS3jxyojn+hUh6GSur+9hM FmtNFjAAoKBR6ECz6E87bZibCRqapHFV1DIx7UPa1xKmTUnevqMvQg5xxE6jcpm88udr NTqZDShxpx8pR4j8cqSfti+94o/UvwB5IyuJWQvRmTomp5DfnsatIgtJAB5ctR74g44J p4CtPa5Ewmt/IeiFR7sK4FcY93artBrS95Zz6jjs30c2d/3C8IDZken87BBjrPn3JsaU Y2XQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dmarc-filter:arc-authentication-results; bh=uuzBIstw5tGJ+WgoNcqruxBD50YrgkK3zNTLDeZST/c=; b=GpRSwo3RkZLXvlvFhM2x9evxiyhnu5tJBaUeH+/i3yQArEgFfFXpA9ApmhSyYu8mpp 0HssfUfg4ZH92Vr7tEM8XcCBKlUafsM+JaGWQp4YLv86ClVqq8wi8shqadWmXwdVFB8j xps1juCR3QPG6EP1B7bhiH5K1T8ArLaeJXnIRbXLBjmrFz7hc0o1TvQdg/EkdPM6NQgz H/15hs+LASQ/GKJZQGUzf6hNzBb29wrHHqie63rw3Ca4awuy59oY3IWRWSTyxSXubzwh 7bCUbpvZzfZAVGxZBS6wQO5wWDL4CfflMo/37mBCYDUJCuayx2Lx1gGuaaIDAm6v/yKg MuAA== 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 q12-v6si1025594pll.419.2018.04.09.13.30.41; Mon, 09 Apr 2018 13:31:17 -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 S1754617AbeDIU0v (ORCPT + 99 others); Mon, 9 Apr 2018 16:26:51 -0400 Received: from mail.kernel.org ([198.145.29.99]:40954 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753480AbeDIU0t (ORCPT ); Mon, 9 Apr 2018 16:26:49 -0400 Received: from saruman (jahogan.plus.com [212.159.75.221]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id BE9C420838; Mon, 9 Apr 2018 20:26:46 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org BE9C420838 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=jhogan@kernel.org Date: Mon, 9 Apr 2018 21:26:43 +0100 From: James Hogan To: Sasha Levin Cc: "stable@vger.kernel.org" , "linux-kernel@vger.kernel.org" , David Daney , Alexei Starovoitov , Daniel Borkmann , Matt Redfearn , "netdev@vger.kernel.org" , "linux-mips@linux-mips.org" , Ralf Baechle Subject: Re: [PATCH AUTOSEL for 4.9 160/293] MIPS: Give __secure_computing() access to syscall arguments. Message-ID: <20180409202642.GD17347@saruman> References: <20180409002239.163177-1-alexander.levin@microsoft.com> <20180409002239.163177-160-alexander.levin@microsoft.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="FFoLq8A0u+X9iRU8" Content-Disposition: inline In-Reply-To: <20180409002239.163177-160-alexander.levin@microsoft.com> User-Agent: Mutt/1.7.2 (2016-11-26) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --FFoLq8A0u+X9iRU8 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Apr 09, 2018 at 12:24:58AM +0000, Sasha Levin wrote: > From: David Daney >=20 > [ Upstream commit 669c4092225f0ed5df12ebee654581b558a5e3ed ] >=20 > KProbes of __seccomp_filter() are not very useful without access to > the syscall arguments. >=20 > Do what x86 does, and populate a struct seccomp_data to be passed to > __secure_computing(). This allows samples/bpf/tracex5 to extract a > sensible trace. This broke o32 indirect syscalls, and was fixed by commit 3d729deaf287 ("MIPS: seccomp: Fix indirect syscall args"). Cheers James --FFoLq8A0u+X9iRU8 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEd80NauSabkiESfLYbAtpk944dnoFAlrLzIIACgkQbAtpk944 dnp/EA//SDhwZXbydTT8VuWsDZylcxmerobSmLfJ5EQPDcXUXH423Ae7UsznJ/k5 2d1ag8rbdB1VOTue43G8KJq6q7fXIp8MhO8KkcNvgBJrojbCoUCAoSKyeptCB2EP AELPmibm2j+TPGc3JgnzHzB+GMKTjcpmEv0hSG4u+PEqWQOAMHJhcHGEc9eSaOry ELGeogq44tITbjTEKKDenEv8OJ2gfb037e5deBNGcAWDbi0g9jF8O0wi4FK50G3v Lj6Gnf/DC2HCJ8KxemOFNWzkgJ+/xu3flP96uR85hq3UnjMGK9qrTml2mg4VsIeH lwmHoTRlpsgxYJrXI1KSTytKw725OhLHp+5GIYsyTrjOdUo5UZt0YmIW8y7Nt01q gxjx5nYbTvVPzabUAH0l1RL6skEgSB6QvP/JnohMtDJ3ex7KJM/QVi07KuIvIVJ/ qSFXbhui8r4ALY0IOvLb5+YT88hzVBLxa1/ujdRr3WSjvvShHPcTtXUqwOAXVu2V XvWJyaZOGzCo3UqZbxOPAY0nuB5NrO1wlbhuWlBfOi13+bD24f2nPUDgIvMH8bP8 znv1WRoytoIjBJqqeQWHLxU7BNmnR4f1s7ApVK9PBrDwhRNUnBaSH5D72clPUK/H /Fpe2lJ7Z7zs9SgNW7plUu9wmbbY5x76jDHtHlKoD4kzW5RpE2Y= =8wTE -----END PGP SIGNATURE----- --FFoLq8A0u+X9iRU8--