1. 04 10月, 2022 1 次提交
  2. 27 9月, 2022 2 次提交
  3. 12 9月, 2022 3 次提交
  4. 30 7月, 2022 1 次提交
  5. 25 7月, 2022 1 次提交
    • J
      mm: honor FGP_NOWAIT for page cache page allocation · 0dd316ba
      Jens Axboe 提交于
      If we're creating a page cache page with FGP_CREAT but FGP_NOWAIT is
      set, we should dial back the gfp flags to avoid frivolous blocking
      which is trivial to hit in low memory conditions:
      
      [   10.117661]  __schedule+0x8c/0x550
      [   10.118305]  schedule+0x58/0xa0
      [   10.118897]  schedule_timeout+0x30/0xdc
      [   10.119610]  __wait_for_common+0x88/0x114
      [   10.120348]  wait_for_completion+0x1c/0x24
      [   10.121103]  __flush_work.isra.0+0x16c/0x19c
      [   10.121896]  flush_work+0xc/0x14
      [   10.122496]  __drain_all_pages+0x144/0x218
      [   10.123267]  drain_all_pages+0x10/0x18
      [   10.123941]  __alloc_pages+0x464/0x9e4
      [   10.124633]  __folio_alloc+0x18/0x3c
      [   10.125294]  __filemap_get_folio+0x17c/0x204
      [   10.126084]  iomap_write_begin+0xf8/0x428
      [   10.126829]  iomap_file_buffered_write+0x144/0x24c
      [   10.127710]  xfs_file_buffered_write+0xe8/0x248
      [   10.128553]  xfs_file_write_iter+0xa8/0x120
      [   10.129324]  io_write+0x16c/0x38c
      [   10.129940]  io_issue_sqe+0x70/0x1cc
      [   10.130617]  io_queue_sqe+0x18/0xfc
      [   10.131277]  io_submit_sqes+0x5d4/0x600
      [   10.131946]  __arm64_sys_io_uring_enter+0x224/0x600
      [   10.132752]  invoke_syscall.constprop.0+0x70/0xc0
      [   10.133616]  do_el0_svc+0xd0/0x118
      [   10.134238]  el0_svc+0x78/0xa0
      
      Clear IO, FS, and reclaim flags and mark the allocation as GFP_NOWAIT and
      add __GFP_NOWARN to avoid polluting dmesg with pointless allocations
      failures. A caller with FGP_NOWAIT must be expected to handle the
      resulting -EAGAIN return and retry from a suitable context without NOWAIT
      set.
      Reviewed-by: NShakeel Butt <shakeelb@google.com>
      Signed-off-by: NJens Axboe <axboe@kernel.dk>
      0dd316ba
  6. 29 6月, 2022 6 次提交
  7. 21 6月, 2022 2 次提交
  8. 10 6月, 2022 1 次提交
    • M
      filemap: Cache the value of vm_flags · dcfa24ba
      Matthew Wilcox (Oracle) 提交于
      After we have unlocked the mmap_lock for I/O, the file is pinned, but
      the VMA is not.  Checking this flag after that can be a use-after-free.
      It's not a terribly interesting use-after-free as it can only read one
      bit, and it's used to decide whether to read 2MB or 4MB.  But it
      upsets the automated tools and it's generally bad practice anyway,
      so let's fix it.
      
      Reported-by: syzbot+5b96d55e5b54924c77ad@syzkaller.appspotmail.com
      Fixes: 4687fdbb ("mm/filemap: Support VM_HUGEPAGE for file mappings")
      Cc: stable@vger.kernel.org
      Signed-off-by: NMatthew Wilcox (Oracle) <willy@infradead.org>
      dcfa24ba
  9. 13 5月, 2022 1 次提交
    • P
      mm: teach core mm about pte markers · 5c041f5d
      Peter Xu 提交于
      This patch still does not use pte marker in any way, however it teaches
      the core mm about the pte marker idea.
      
      For example, handle_pte_marker() is introduced that will parse and handle
      all the pte marker faults.
      
      Many of the places are more about commenting it up - so that we know
      there's the possibility of pte marker showing up, and why we don't need
      special code for the cases.
      
      [peterx@redhat.com: userfaultfd.c needs swapops.h]
        Link: https://lkml.kernel.org/r/YmRlVj3cdizYJsr0@xz-m1.local
      Link: https://lkml.kernel.org/r/20220405014833.14015-1-peterx@redhat.comSigned-off-by: NPeter Xu <peterx@redhat.com>
      Cc: Alistair Popple <apopple@nvidia.com>
      Cc: Andrea Arcangeli <aarcange@redhat.com>
      Cc: Axel Rasmussen <axelrasmussen@google.com>
      Cc: David Hildenbrand <david@redhat.com>
      Cc: Hugh Dickins <hughd@google.com>
      Cc: Jerome Glisse <jglisse@redhat.com>
      Cc: "Kirill A . Shutemov" <kirill@shutemov.name>
      Cc: Matthew Wilcox <willy@infradead.org>
      Cc: Mike Kravetz <mike.kravetz@oracle.com>
      Cc: Mike Rapoport <rppt@linux.vnet.ibm.com>
      Cc: Nadav Amit <nadav.amit@gmail.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      5c041f5d
  10. 10 5月, 2022 9 次提交
  11. 09 5月, 2022 2 次提交
  12. 16 4月, 2022 1 次提交
  13. 02 4月, 2022 2 次提交
  14. 25 3月, 2022 4 次提交
  15. 23 3月, 2022 2 次提交
  16. 22 3月, 2022 2 次提交