path: root/kernel
diff options
authorTycho Andersen <>2018-02-20 19:47:45 -0700
committerKees Cook <>2018-02-21 16:56:03 -0800
commit2a040f9f39d3b020c79e08dec26d12a7ce131c10 (patch)
treedac958d07074d0d3dcd5f31a415f576251c5f90e /kernel
parent26500475ac1b499d8636ff281311d633909f5d20 (diff)
seccomp, ptrace: switch get_metadata types to arch independent
Commit 26500475ac1b ("ptrace, seccomp: add support for retrieving seccomp metadata") introduced `struct seccomp_metadata`, which contained unsigned longs that should be arch independent. The type of the flags member was chosen to match the corresponding argument to seccomp(), and so we need something at least as big as unsigned long. My understanding is that __u64 should fit the bill, so let's switch both types to that. While this is userspace facing, it was only introduced in 4.16-rc2, and so should be safe assuming it goes in before then. Reported-by: "Dmitry V. Levin" <> Signed-off-by: Tycho Andersen <> CC: Kees Cook <> CC: Oleg Nesterov <> Reviewed-by: "Dmitry V. Levin" <> Signed-off-by: Kees Cook <>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions