Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1493020

[PATCH v2 0/3] fix SELinux W^X bypass via ptrace

From Jann Horn <jann@thejh.net>
Newsgroups linux.kernel
Subject [PATCH v2 0/3] fix SELinux W^X bypass via ptrace
Date 2016-09-29 01:00 +0200
Message-ID <smvZv-4rb-9@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


This fixes a bypass of SELinux' W^X protection via ptrace.
For more details, see the commit messages of patches 2/3 and 3/3.

Jann Horn (3):
  fs/exec: don't force writing memory access
  mm: add LSM hook for writes to readonly memory
  selinux: require EXECMEM for forced ptrace poke

 drivers/gpu/drm/etnaviv/etnaviv_gem.c   |  3 +-
 drivers/gpu/drm/i915/i915_gem_userptr.c |  2 +-
 drivers/infiniband/core/umem_odp.c      |  4 +-
 fs/exec.c                               |  4 +-
 fs/proc/base.c                          | 68 +++++++++++++++++++++-------
 fs/proc/internal.h                      |  4 +-
 fs/proc/task_mmu.c                      |  4 +-
 fs/proc/task_nommu.c                    |  2 +-
 include/linux/lsm_hooks.h               |  9 ++++
 include/linux/mm.h                      | 12 ++++-
 include/linux/sched.h                   |  4 +-
 include/linux/security.h                | 10 +++++
 kernel/events/uprobes.c                 |  6 ++-
 kernel/fork.c                           |  6 ++-
 mm/gup.c                                | 80 +++++++++++++++++++++++++--------
 mm/memory.c                             | 22 ++++++---
 mm/nommu.c                              | 22 +++++----
 mm/process_vm_access.c                  |  8 ++--
 security/security.c                     |  8 ++++
 security/selinux/hooks.c                | 15 +++++++
 security/tomoyo/domain.c                |  2 +-
 virt/kvm/async_pf.c                     |  3 +-
 virt/kvm/kvm_main.c                     |  9 ++--
 23 files changed, 230 insertions(+), 77 deletions(-)

-- 
2.1.4

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[PATCH v2 0/3] fix SELinux W^X bypass via ptrace Jann Horn <jann@thejh.net> - 2016-09-29 01:00 +0200
  [PATCH v2 2/3] mm: add LSM hook for writes to readonly memory Jann Horn <jann@thejh.net> - 2016-09-29 01:00 +0200
    Re: [PATCH v2 2/3] mm: add LSM hook for writes to readonly memory Andy Lutomirski <luto@amacapital.net> - 2016-09-29 01:30 +0200
      Re: [PATCH v2 2/3] mm: add LSM hook for writes to readonly memory Jann Horn <jann@thejh.net> - 2016-09-29 01:40 +0200
        Re: [PATCH v2 2/3] mm: add LSM hook for writes to readonly memory Jann Horn <jann@thejh.net> - 2016-09-29 01:50 +0200
    Re: [PATCH v2 2/3] mm: add LSM hook for writes to readonly memory Ingo Molnar <mingo@kernel.org> - 2016-09-29 08:30 +0200
  [PATCH v2 1/3] fs/exec: don't force writing memory access Jann Horn <jann@thejh.net> - 2016-09-29 01:00 +0200
    Re: [PATCH v2 1/3] fs/exec: don't force writing memory access Oleg Nesterov <oleg@redhat.com> - 2016-09-29 18:20 +0200
  [PATCH v2 3/3] selinux: require EXECMEM for forced ptrace poke Jann Horn <jann@thejh.net> - 2016-09-29 01:00 +0200
    Re: [PATCH v2 3/3] selinux: require EXECMEM for forced ptrace poke Ingo Molnar <mingo@kernel.org> - 2016-09-29 08:20 +0200
    Re: [PATCH v2 3/3] selinux: require EXECMEM for forced ptrace poke Stephen Smalley <sds@tycho.nsa.gov> - 2016-09-29 18:50 +0200

csiph-web