1. 26 5月, 2021 2 次提交
  2. 21 5月, 2021 1 次提交
  3. 20 5月, 2021 3 次提交
  4. 19 5月, 2021 5 次提交
  5. 18 5月, 2021 5 次提交
  6. 17 5月, 2021 1 次提交
    • J
      quota: Disable quotactl_path syscall · 5b9fedb3
      Jan Kara 提交于
      In commit fa8b9007 ("quota: wire up quotactl_path") we have wired up
      new quotactl_path syscall. However some people in LWN discussion have
      objected that the path based syscall is missing dirfd and flags argument
      which is mostly standard for contemporary path based syscalls. Indeed
      they have a point and after a discussion with Christian Brauner and
      Sascha Hauer I've decided to disable the syscall for now and update its
      API. Since there is no userspace currently using that syscall and it
      hasn't been released in any major release, we should be fine.
      
      CC: Christian Brauner <christian.brauner@ubuntu.com>
      CC: Sascha Hauer <s.hauer@pengutronix.de>
      Link: https://lore.kernel.org/lkml/20210512153621.n5u43jsytbik4yze@wittgensteinSigned-off-by: NJan Kara <jack@suse.cz>
      5b9fedb3
  7. 15 5月, 2021 2 次提交
    • P
      openrisc: Define memory barrier mb · 8b549c18
      Peter Zijlstra 提交于
      This came up in the discussion of the requirements of qspinlock on an
      architecture.  OpenRISC uses qspinlock, but it was noticed that the
      memmory barrier was not defined.
      
      Peter defined it in the mail thread writing:
      
          As near as I can tell this should do. The arch spec only lists
          this one instruction and the text makes it sound like a completion
          barrier.
      
      This is correct so applying this patch.
      Signed-off-by: NPeter Zijlstra <peterz@infradead.org>
      [shorne@gmail.com:Turned the mail into a patch]
      Signed-off-by: NStafford Horne <shorne@gmail.com>
      8b549c18
    • C
      arm64: Fix race condition on PG_dcache_clean in __sync_icache_dcache() · 588a513d
      Catalin Marinas 提交于
      To ensure that instructions are observable in a new mapping, the arm64
      set_pte_at() implementation cleans the D-cache and invalidates the
      I-cache to the PoU. As an optimisation, this is only done on executable
      mappings and the PG_dcache_clean page flag is set to avoid future cache
      maintenance on the same page.
      
      When two different processes map the same page (e.g. private executable
      file or shared mapping) there's a potential race on checking and setting
      PG_dcache_clean via set_pte_at() -> __sync_icache_dcache(). While on the
      fault paths the page is locked (PG_locked), mprotect() does not take the
      page lock. The result is that one process may see the PG_dcache_clean
      flag set but the I/D cache maintenance not yet performed.
      
      Avoid test_and_set_bit(PG_dcache_clean) in favour of separate test_bit()
      and set_bit(). In the rare event of a race, the cache maintenance is
      done twice.
      Signed-off-by: NCatalin Marinas <catalin.marinas@arm.com>
      Cc: <stable@vger.kernel.org>
      Cc: Will Deacon <will@kernel.org>
      Cc: Steven Price <steven.price@arm.com>
      Reviewed-by: NSteven Price <steven.price@arm.com>
      Acked-by: NWill Deacon <will@kernel.org>
      Link: https://lore.kernel.org/r/20210514095001.13236-1-catalin.marinas@arm.comSigned-off-by: NCatalin Marinas <catalin.marinas@arm.com>
      588a513d
  8. 14 5月, 2021 11 次提交
  9. 13 5月, 2021 2 次提交
  10. 12 5月, 2021 8 次提交