From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Dmitry V. Levin" Subject: Re: [PATCH v2 00/13] Prepare syscall_get_arch for PTRACE_GET_SYSCALL_INFO Date: Mon, 18 Mar 2019 22:02:39 +0300 Message-ID: <20190318190238.GB30986@altlinux.org> References: <20190317232827.GA16301@altlinux.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="3lcZGd9BuhuYXNfi" Return-path: Content-Disposition: inline In-Reply-To: <20190317232827.GA16301@altlinux.org> Sender: linux-kernel-owner@vger.kernel.org To: Paul Moore Cc: Elvira Khabirova , Eugene Syromyatnikov , Andy Lutomirski , Oleg Nesterov , linux-audit@redhat.com, linux-kernel@vger.kernel.org List-Id: linux-audit@redhat.com --3lcZGd9BuhuYXNfi Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Mar 18, 2019 at 02:28:27AM +0300, Dmitry V. Levin wrote: > syscall_get_arch() is required to be implemented on all architectures in = order > to extend the generic ptrace API with PTRACE_GET_SYSCALL_INFO request: > syscall_get_arch() is going to be called from ptrace_request() along with > syscall_get_nr(), syscall_get_arguments(), syscall_get_error(), and > syscall_get_return_value() functions with a tracee as their argument. >=20 > The primary intent is that the triple (audit_arch, syscall_nr, arg1..arg6) > should describe what system call is being called and what its arguments a= re. >=20 > This patchset began as a series called "Prepare for PTRACE_GET_SYSCALL_IN= FO", > then I merged it into a series called "ptrace: add PTRACE_GET_SYSCALL_INF= O request" > that also contains ptrace-specific changes. >=20 > The ptrace-specific part, however, needs more attention to workaround pro= blems > on niche architectures like alpha, while the syscall_get_arch() part is > straightforward, so I decided to split it out into a separate patchset th= at > just prepares syscall_get_arch() for PTRACE_GET_SYSCALL_INFO: it adds > syscall_get_arch() to those architectures that haven't implemented it yet, > and then adds "struct task_struct *" argument to syscall_get_arch() > on all architectures. >=20 > All patches from this patchset have been already reviewed, so it's ready > to be merged without waiting for the ptrace-specific part. As it's all > about syscall_get_arch(), it should probably go via audit tree. >=20 > Notes: > v2: rebased to v5.1-rc1, added Acked-by Apparently, I failed to process the ACK given by Richard Guy Briggs on January 17th, please also add Acked-by: Richard Guy Briggs when applying. Thanks, --=20 ldv --3lcZGd9BuhuYXNfi Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIcBAEBCAAGBQJcj+tOAAoJEAVFT+BVnCUI4XgQANm0aCspcceM8M/LJPMymiyT r6amv9IxTIFY8J32TMhTcQDjgbq8qufISs4TR9/oBrLciBsA9MR3gMWtuR3BkdHt BQoqWFl5Bvnk7ZCoj5bc/hcSKerauIUL5A61yB9KGq7qRgaaAodK7/iZka9yLQHS cJsyDQQr+SjDp++g10G86gd8ggwRPWbaxJKMsY6R/pj7Pp77N0ngfFUDLYzG2Pgl t8Sbp/KjqnqshN7xrovn2pdOVKydfT+8chOjCb5YfTgXqJpAEtto8jJWMqflfXgI 9jkIkQb/RBysUMPg/Y/5+y/h4x5fLB3XehEASyR2iYLwGzDYK9gSZZAPPPOC8vai B3U6CEiXelGLAVzDmFEkz8slmXuJ5JYhdJk5urEs3cjKk4Ythja9qJk1Hd49kiYi 4eIQnupbZhHfIOByAzY/1IvTvasHCiC6Nnpc5b45VHEV5qEbFy5oXS1tu1UJNjog fTVmTur0aRoNgnXiB7AZeXp0LwqLwOa9uMchrsX2WtJr64FK9nk8vIgottiztGqw 3SOxSwzAZPxGHwiEhWFj+HaMx00eeoi3YR7XL5nEJYjMTa7iwHpBHP7nfyW4zRMS zSS9AzNSlnObmRyBoB4TVZ17RYjHdw7OHXcsWart6QuKbPXy6L/dh+ZVo14I0OUL /EBkcDN0vykM+GdApqwc =CYWQ -----END PGP SIGNATURE----- --3lcZGd9BuhuYXNfi--