linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [GIT PULL] seccomp update for v5.18-rc1
@ 2022-03-21 15:06 Kees Cook
  2022-03-22  2:45 ` Linus Torvalds
  0 siblings, 1 reply; 3+ messages in thread
From: Kees Cook @ 2022-03-21 15:06 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: linux-kernel, Kees Cook

Hi Linus,

Please pull this tiny seccomp update for v5.18-rc1.

Thanks!

-Kees

The following changes since commit eed09ad261822a7bdc441ed192c6f444375e5527:

  samples/seccomp: Adjust sample to also provide kill option (2022-02-10 19:09:12 -0800)

are available in the Git repository at:

  https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git tags/seccomp-v5.18-rc1

for you to fetch changes up to b5caa8dd9cc8ad5126f06e9266c326d38a1fc6d2:

  samples/seccomp: Improve arch hints (2022-02-13 10:16:25 -0800)

----------------------------------------------------------------
seccomp update for v5.18-rc1

- Improve architecture hints in sample (Kees Cook)

----------------------------------------------------------------
Kees Cook (1):
      samples/seccomp: Improve arch hints

 samples/seccomp/dropper.c | 84 ++++++++++++++++++++++++++++++++++++++++-------
 1 file changed, 73 insertions(+), 11 deletions(-)

-- 
Kees Cook

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [GIT PULL] seccomp update for v5.18-rc1
  2022-03-21 15:06 [GIT PULL] seccomp update for v5.18-rc1 Kees Cook
@ 2022-03-22  2:45 ` Linus Torvalds
  2022-03-22  4:54   ` Kees Cook
  0 siblings, 1 reply; 3+ messages in thread
From: Linus Torvalds @ 2022-03-22  2:45 UTC (permalink / raw)
  To: Kees Cook; +Cc: Linux Kernel Mailing List

On Mon, Mar 21, 2022 at 8:07 AM Kees Cook <keescook@chromium.org> wrote:
>
> Please pull this tiny seccomp update for v5.18-rc1.

Well, that *really* didn't work at all.

  In file included from samples/seccomp/dropper.c:29:
  usr/include/linux/ptrace.h:50: warning: "PTRACE_GETREGSET" redefined
     50 | #define PTRACE_GETREGSET        0x4204
        |
   In file included from samples/seccomp/dropper.c:24:
  /usr/include/sys/ptrace.h:153: note: this is the location of the
previous definition
    153 | #define PTRACE_GETREGSET PTRACE_GETREGSET
        |
  [...]

.. and a lot of similar warnings.

Yeah, that sample code is horrible, and mixes kernel headers with
regular user-space headers.

It did that before too, it just does it much more now, and simply
doesn't work. I'm sure this probably only happens on some distros, but
that's what you get when you play those kinds of broken games.

Pulled and immediately unpulled. That sample probably needs to just be removed.

                     Linus

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [GIT PULL] seccomp update for v5.18-rc1
  2022-03-22  2:45 ` Linus Torvalds
@ 2022-03-22  4:54   ` Kees Cook
  0 siblings, 0 replies; 3+ messages in thread
From: Kees Cook @ 2022-03-22  4:54 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: Linux Kernel Mailing List



On March 21, 2022 7:45:51 PM PDT, Linus Torvalds <torvalds@linux-foundation.org> wrote:
>On Mon, Mar 21, 2022 at 8:07 AM Kees Cook <keescook@chromium.org> wrote:
>>
>> Please pull this tiny seccomp update for v5.18-rc1.
>
>Well, that *really* didn't work at all.
>
>  In file included from samples/seccomp/dropper.c:29:
>  usr/include/linux/ptrace.h:50: warning: "PTRACE_GETREGSET" redefined
>     50 | #define PTRACE_GETREGSET        0x4204
>        |
>   In file included from samples/seccomp/dropper.c:24:
>  /usr/include/sys/ptrace.h:153: note: this is the location of the
>previous definition
>    153 | #define PTRACE_GETREGSET PTRACE_GETREGSET
>        |
>  [...]
>
>.. and a lot of similar warnings.

Oh, eww. Apologies! That didn't happen for my builders, but yeah, that code is super fragile anyway, so this just confirms my suspicion that the changes weren't useful. I'll drop it from my tree.

-- 
Kees Cook

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-03-22  4:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-21 15:06 [GIT PULL] seccomp update for v5.18-rc1 Kees Cook
2022-03-22  2:45 ` Linus Torvalds
2022-03-22  4:54   ` Kees Cook

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).