Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3203062yba; Mon, 8 Apr 2019 13:24:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqyC497ig20gEaU8Ek+2IaKxo9JJJLz6eXQ+065DVVnY9SAvGfsB9kbDoJ2DP8y2lzbusfdK X-Received: by 2002:a65:6210:: with SMTP id d16mr29509877pgv.110.1554755079171; Mon, 08 Apr 2019 13:24:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554755079; cv=none; d=google.com; s=arc-20160816; b=vgNdrMxkWLkc+wsuclViVH4Dv/Gpy/SNTv4IwvhMVxnmCSLKUnxgVv975MFZiXCUBQ Y/8r9bBRy2I5FkbvrsXAs5ZGW1CNnft/tQow5BHRg5H+yx0azxRjCMGvAEUoFptgpCdW QKKU5xRyKbe6b4httDDJ9nSGIJ64oy1pf/4xdggGhr4FupikFmWCne0D3+IT8VqbMGL4 VSdKSU+Mi86DbLhy6JSTN4IJhY1BlP8U3zSHWQk8LXacZJP0J9VNkWWMY+QgaCc/h8lr /cy/MDANzbP0unsyDBPrvfqsFQMQP0L7GK1AcQpOrr2oDkzJNEkeIwJbFMyQgTUOH7Ke C7Ow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=ZsBF1e4ye+72e0h9XjoMNtKwU22e70P5rxIcCE7ygGs=; b=GJr3ZUtM5DQ9wVFLKxFdAznlUSpJrRIunISrFCqs6xk6ocPmEJ9K1HFoNNbeQ7vKQz eYBVCFtLZ/S6S5dzKe3BgLaDuqh0iPcrEaoAv/SyAkae3jDOxCY/tr7EQNwFyRGy5U6W ZQAuOpH7tKe2DalJ5mWBmFsv65sHI1w5nA2YWjqEk9evmiID/TB+PW1bVEHvlpVXQFgt O1SNG209mfBP0QtJzZsQCegye1r4LJKPam/lCyZgYv3Fc9PkxYxz89Nvzt90eNQgn8wP s17CYjP0BaWeJUYTQhWr1ihio+z1kPAHZtYVst+8Vo6LWZI7EeOe0njJe1Og2flI8vaG i6MA== 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 m72si29063533pfj.279.2019.04.08.13.24.23; Mon, 08 Apr 2019 13:24:39 -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 S1727529AbfDHSEI (ORCPT + 99 others); Mon, 8 Apr 2019 14:04:08 -0400 Received: from vmicros1.altlinux.org ([194.107.17.57]:54530 "EHLO vmicros1.altlinux.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726349AbfDHSEI (ORCPT ); Mon, 8 Apr 2019 14:04:08 -0400 Received: from mua.local.altlinux.org (mua.local.altlinux.org [192.168.1.14]) by vmicros1.altlinux.org (Postfix) with ESMTP id E2F1D72CCAC; Mon, 8 Apr 2019 21:04:04 +0300 (MSK) Received: by mua.local.altlinux.org (Postfix, from userid 508) id D4E917CCE4F; Mon, 8 Apr 2019 21:04:04 +0300 (MSK) Date: Mon, 8 Apr 2019 21:04:04 +0300 From: "Dmitry V. Levin" To: Shuah Khan Cc: Oleg Nesterov , Andy Lutomirski , Stephen Rothwell , Elvira Khabirova , Eugene Syromyatnikov , linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH linux-next v9 7/7] selftests/ptrace: add a test case for PTRACE_GET_SYSCALL_INFO Message-ID: <20190408180404.GB11964@altlinux.org> References: <20190408174036.GA11889@altlinux.org> <20190408174236.GH11889@altlinux.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="xgyAXRrhYN0wYx8y" Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --xgyAXRrhYN0wYx8y Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Apr 08, 2019 at 11:51:45AM -0600, shuah wrote: > On 4/8/19 11:42 AM, Dmitry V. Levin wrote: > > Check whether PTRACE_GET_SYSCALL_INFO semantics implemented in the kern= el > > matches userspace expectations. > >=20 > > Cc: Oleg Nesterov > > Cc: Andy Lutomirski > > Cc: Shuah Khan > > Cc: Elvira Khabirova > > Cc: Eugene Syromyatnikov > > Cc: linux-kselftest@vger.kernel.org > > Signed-off-by: Dmitry V. Levin > > --- > >=20 > > Notes: > > v9: unchanged > > v8: unchanged > > v7: unchanged > > v6: made PTRACE_GET_SYSCALL_INFO return value checks strict > > v5: initial revision > >=20 > > tools/testing/selftests/ptrace/.gitignore | 1 + > > tools/testing/selftests/ptrace/Makefile | 2 +- > > .../selftests/ptrace/get_syscall_info.c | 271 ++++++++++++++++++ > > 3 files changed, 273 insertions(+), 1 deletion(-) > > create mode 100644 tools/testing/selftests/ptrace/get_syscall_info.c > >=20 > > diff --git a/tools/testing/selftests/ptrace/.gitignore b/tools/testing/= selftests/ptrace/.gitignore > > index b3e59d41fd82..cfcc49a7def7 100644 > > --- a/tools/testing/selftests/ptrace/.gitignore > > +++ b/tools/testing/selftests/ptrace/.gitignore > > @@ -1 +1,2 @@ > > +get_syscall_info > > peeksiginfo > > diff --git a/tools/testing/selftests/ptrace/Makefile b/tools/testing/se= lftests/ptrace/Makefile > > index 8a2bc5562179..4bc550b6b845 100644 > > --- a/tools/testing/selftests/ptrace/Makefile > > +++ b/tools/testing/selftests/ptrace/Makefile > > @@ -1,5 +1,5 @@ > > CFLAGS +=3D -iquote../../../../include/uapi -Wall > > =20 > > -TEST_GEN_PROGS :=3D peeksiginfo > > +TEST_GEN_PROGS :=3D get_syscall_info peeksiginfo > > =20 > > include ../lib.mk > > diff --git a/tools/testing/selftests/ptrace/get_syscall_info.c b/tools/= testing/selftests/ptrace/get_syscall_info.c > > new file mode 100644 > > index 000000000000..28e972825b74 > > --- /dev/null > > +++ b/tools/testing/selftests/ptrace/get_syscall_info.c > > @@ -0,0 +1,271 @@ > > +/* SPDX-License-Identifier: GPL-2.0-or-later > > + * >=20 > This should be just GPL-2.0+ LICENSES/preferred/GPL-2.0 says these variants are equivalent: " [...] Valid-License-Identifier: GPL-2.0+ Valid-License-Identifier: GPL-2.0-or-later [...] For 'GNU General Public License (GPL) version 2 or any later version' use: SPDX-License-Identifier: GPL-2.0+ or SPDX-License-Identifier: GPL-2.0-or-later " The usage statistics shows that GPL-2.0+ is more popular in the kernel tree than GPL-2.0-or-later, though. > The rest looks good to me. Assuming this patch has dependency on the > rest of the patches in this series and once the above change is made: No problem, I'm fine with either variant of the license identifier. > Acked-by: Shuah Khan Thanks, --=20 ldv --xgyAXRrhYN0wYx8y Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIcBAEBCAAGBQJcq40UAAoJEAVFT+BVnCUIac8P/1dxAaP4oYBpBKLqT/ExVvSz qBkiXYEZNuovISrutWO4ryTHTmvi2LDBsVJjjC2eSsQn/NJpdTE/ORqmMnUdD1la yyOqHKMqBbzxz2uIRuDP0k1ctaAcoHnFUVrN8J84/mS1E5/9T2CTJ4TloYKaQb7k uHliqoleSpwg8VedCf/dFsmWWi60hK1rcRWUsqE9HxqUKNAGpRc9X+7UhsF1jfGn hfkIxATCcDp3TNJP5EyZ4FIgdKYDAUWZXH8u7zqVmZS5nVNUOli5DO0jg34EGBc4 PQ5aWoSOdt/mmsYoVWAPfJiTfTlx+4CgBtwxM1gNccv++YFI9N6vZ9lcgw0VDrVg tkCxpL8XCHsRqRq2rUUILAg31S8sMX/kM1YwIXrEphbPJ8Bft3eC2ioQ5bd85pgK tJeueeCnHjQgwq8MwwHcGuLWJlPjXQjsNIXjodHK7qEYATONfVhG5pwboQ+aU3+B QzK5d8F91/9ziPFAsYLyB8xq2Z5fo0nrvNBJ5+8EPxA+BgATkYvIt6OmAVmaMAez xHso5BBnw0RKeO4/enm6YaT2T2B3GC7/Kw6YCczogJDF0QVHs2RDDvRqIie3dGmu y24hP1+QJxDICv/6QA3/dSaYcz+eI2RnbWucy20eGacjPCxPJnY9XIa6Qvx+D1RP YyBHhT0O7bkQiH545OqX =5M+a -----END PGP SIGNATURE----- --xgyAXRrhYN0wYx8y--