1. 08 3月, 2017 1 次提交
  2. 15 10月, 2016 1 次提交
  3. 28 7月, 2016 1 次提交
  4. 13 5月, 2016 1 次提交
    • M
      MIPS: scall: Handle seccomp filters which redirect syscalls · a400bed6
      Matt Redfearn 提交于
      Commit d218af78 ("MIPS: scall: Always run the seccomp syscall
      filters") modified the syscall code to always call the seccomp filters,
      but missed the case where a filter may redirect the syscall, as
      revealed by the seccomp_bpf self test.
      
      The syscall path now restores the syscall from the stack after the
      filter rather than saving it locally. Syscall number checking and
      syscall function table lookup is done after the filter may have run such
      that redirected syscalls are also checked, and executed.
      
      The regular path of syscall number checking and pointer lookup is also
      made more consistent between ABIs with scall64-64.S being the reference.
      
      With this patch in place, the seccomp_bpf self test now passes
      TRACE_syscall.syscall_redirected and TRACE_syscall.syscall_dropped on
      all MIPS ABIs.
      
      Fixes: d218af78 ("MIPS: scall: Always run the seccomp syscall filters")
      Signed-off-by: NMatt Redfearn <matt.redfearn@imgtec.com>
      Acked-by: NKees Cook <keescook@chromium.org>
      Cc: Eric B Munson <emunson@akamai.com>
      Cc: James Hogan <james.hogan@imgtec.com>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Cc: linux-mips@linux-mips.org
      Cc: IMG-MIPSLinuxKerneldevelopers@imgtec.com
      Cc: linux-kernel@vger.kernel.org
      Patchwork: https://patchwork.linux-mips.org/patch/12916/Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      a400bed6
  5. 03 4月, 2016 1 次提交
  6. 06 2月, 2016 1 次提交
  7. 10 11月, 2015 1 次提交
  8. 04 10月, 2015 1 次提交
  9. 30 9月, 2015 1 次提交
  10. 16 8月, 2015 1 次提交
  11. 13 1月, 2015 1 次提交
  12. 27 10月, 2014 1 次提交
  13. 26 8月, 2014 1 次提交
  14. 01 8月, 2014 1 次提交
  15. 31 7月, 2014 1 次提交
  16. 19 7月, 2014 1 次提交
  17. 13 5月, 2014 1 次提交
  18. 27 3月, 2014 2 次提交
  19. 04 2月, 2014 1 次提交
  20. 30 10月, 2013 1 次提交
  21. 11 6月, 2013 1 次提交
  22. 04 3月, 2013 2 次提交
  23. 04 2月, 2013 9 次提交
  24. 01 2月, 2013 1 次提交
  25. 29 12月, 2012 1 次提交
  26. 06 12月, 2012 1 次提交
  27. 05 12月, 2012 1 次提交
    • R
      MIPS: N32: Fix preadv(2) and pwritev(2) entry points. · d5563715
      Ralf Baechle 提交于
      By using the native syscall entry point the kernel was also expecting
      64-bit iovec structures.
      
      This is broken since ddd9e91b [preadv/
      pwritev: MIPS: Add preadv(2) and pwritev(2) syscalls.] which originally
      added these two syscalls.  I walked through piles of code, including
      libc and couldn't find anything that would have worked around the issue
      so this change the API to what it should always have been.
      
      Noticed and patch suggested by Al Viro.
      Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      d5563715
  28. 26 11月, 2012 1 次提交
  29. 15 10月, 2012 1 次提交
  30. 01 10月, 2012 1 次提交