1. 21 Jul, 2020 1 commit
  2. 16 Jul, 2020 22 commits
  3. 08 Jul, 2020 6 commits
  4. 02 Jul, 2020 1 commit
  5. 25 Jun, 2020 3 commits
  6. 22 Jun, 2020 1 commit
    • Lichao Liu's avatar
      MIPS: Loongson-2EF: disable fix-loongson3-llsc in compiler · 2984b3f8
      Lichao Liu authored
      Firstly, Loongson-2EF support ll/sc instructions, but
      doesn't need fix-loongson3-llsc compile option.
      
      Secondly, fix-loongson3-llsc will cause kernel startup
      fail at futex_init, because compiler will add 'sync' before
      'll', which will affect __ex_table.
      futex_init will pass NULL uaddr parameter to
      futex_atomic_cmpxchg_inatomic.
      futex_atomic_cmpxchg_inatomic will access uaddr directly,
      which will cause page fault exception, the exception should be
      handled by __ex_table's nextinsn if the exception insn exsit in
      __ex_table. Because __ex_table is affected by compiler,
      the exception can not be handled, and
      futex_atomic_cmpxchg_inatomic will crash.
      
      Error code as below:
      __ex_table.insn = 1b, which is 'sync' compiled with
      fix-loongson3-llsc, but the actual exception instrction is ll.
      So, do_page_fault will not find the correct inst in __ex_table, and
      can not handle this exception.
      
              "1: "user_ll("%1", "%3")"               \n"
              "   bne %1, %z4, 3f             \n"
              "   .set    pop                 \n"
              "   move    $1, %z5                 \n"
              "   .set    "MIPS_ISA_ARCH_LEVEL"           \n"
              "2: "user_sc("$1", "%2")"               \n"
              "   beqz    $1, 1b                  \n"
              "3: " __SYNC_ELSE(full, loongson3_war, __WEAK_LLSC_MB) "\n"
              "   .insn                       \n"
              "   .set    pop                 \n"
              "   .section .fixup,\"ax\"              \n"
              "4: li  %0, %6                  \n"
              "   j   3b                  \n"
              "   .previous                   \n"
              "   .section __ex_table,\"a\"           \n"
              "   "__UA_ADDR "\t1b, 4b                \n"
              "   "__UA_ADDR "\t2b, 4b                \n"
              "   .previous
      Signed-off-by: default avatarLichao Liu <liulichao@loongson.cn>
      Reviewed-by: default avatarJiaxun Yang <jiaxun.yang@flygoat.com>
      Signed-off-by: default avatarThomas Bogendoerfer <tsbogend@alpha.franken.de>
      2984b3f8
  7. 15 Jun, 2020 2 commits
  8. 14 Jun, 2020 4 commits
    • Linus Torvalds's avatar
      Linux 5.8-rc1 · b3a9e3b9
      Linus Torvalds authored
      b3a9e3b9
    • Linus Torvalds's avatar
      Merge tag 'LSM-add-setgid-hook-5.8-author-fix' of git://github.com/micah-morton/linux · 4a87b197
      Linus Torvalds authored
      Pull SafeSetID update from Micah Morton:
       "Add additional LSM hooks for SafeSetID
      
        SafeSetID is capable of making allow/deny decisions for set*uid calls
        on a system, and we want to add similar functionality for set*gid
        calls.
      
        The work to do that is not yet complete, so probably won't make it in
        for v5.8, but we are looking to get this simple patch in for v5.8
        since we have it ready.
      
        We are planning on the rest of the work for extending the SafeSetID
        LSM being merged during the v5.9 merge window"
      
      * tag 'LSM-add-setgid-hook-5.8-author-fix' of git://github.com/micah-morton/linux:
        security: Add LSM hooks to set*gid syscalls
      4a87b197
    • Thomas Cedeno's avatar
      security: Add LSM hooks to set*gid syscalls · 39030e13
      Thomas Cedeno authored
      The SafeSetID LSM uses the security_task_fix_setuid hook to filter
      set*uid() syscalls according to its configured security policy. In
      preparation for adding analagous support in the LSM for set*gid()
      syscalls, we add the requisite hook here. Tested by putting print
      statements in the security_task_fix_setgid hook and seeing them get hit
      during kernel boot.
      Signed-off-by: default avatarThomas Cedeno <thomascedeno@google.com>
      Signed-off-by: default avatarMicah Morton <mortonm@chromium.org>
      39030e13
    • Linus Torvalds's avatar
      Merge tag 'for-5.8-part2-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux · 9d645db8
      Linus Torvalds authored
      Pull btrfs updates from David Sterba:
       "This reverts the direct io port to iomap infrastructure of btrfs
        merged in the first pull request. We found problems in invalidate page
        that don't seem to be fixable as regressions or without changing iomap
        code that would not affect other filesystems.
      
        There are four reverts in total, but three of them are followup
        cleanups needed to revert a43a67a2 cleanly. The result is the
        buffer head based implementation of direct io.
      
        Reverts are not great, but under current circumstances I don't see
        better options"
      
      * tag 'for-5.8-part2-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux:
        Revert "btrfs: switch to iomap_dio_rw() for dio"
        Revert "fs: remove dio_end_io()"
        Revert "btrfs: remove BTRFS_INODE_READDIO_NEED_LOCK"
        Revert "btrfs: split btrfs_direct_IO to read and write part"
      9d645db8