)]}'
{
  "commit": "99f7d39384d6f1967f3dddf27aca47280f63d8d7",
  "tree": "b4abc877d09db63f52991fdf0f478e558ab312ed",
  "parents": [
    "172658cf600904ff6121e240f69a0ccb36e65d6b",
    "a290a9e5cf5fbba05d6c59b94b36d00f4fc15ef2"
  ],
  "author": {
    "name": "Christian Brauner",
    "email": "brauner@kernel.org",
    "time": "Fri Oct 30 13:40:47 2026 +0100"
  },
  "committer": {
    "name": "Christian Brauner",
    "email": "brauner@kernel.org",
    "time": "Fri Oct 30 13:40:47 2026 +0100"
  },
  "message": "Merge patch series \"fs: fixes for aio rings, backing files and iov_iter_alignment()\"\n\nChristian Brauner \u003cbrauner@kernel.org\u003e says:\n\nThe aio bug fixed here is the third way this year to fault on an aio\nring after its file was truncated. The ring file has no -\u003eread_folio\nbecause all of its folios are supposed to be in the page cache so we\njump to NULL. This time vm_munmap() gets interrupted by a fatal signal\nin io_destroy() and leaves the ring mapped. I didn\u0027t want to plug yet\nanother route so the ring now gets a -\u003eread_folio that fails and the\nfault gets SIGBUS. Making the munmap unkillable would only cover this\none route.\n\nI rewrote the backing-file one. FUSE passthrough opens the backing file\nwith the flags of the user\u0027s open but never runs the may_open() checks\nagainst the backing inode. So a passthrough file backed by an\nappend-only file can be overwritten anywhere and one backed by an\nimmutable file can be written to. Chris\u0027 version only checked the write\npaths. That left shared mappings and S_IMMUTABLE open and it failed\nwrites on file descriptors opened before chattr +a which can keep\nwriting on any other filesystem. So the checks are now done at open and\nmmap time like may_open() and do_mmap() do and writes only fail if\nappend mode was taken away from the user file.\n\nFUSE reports EIO instead of EPERM for a refused open because it turns\nevery error from opening the backing file into EIO. I left that alone.\nMiklos, if you\u0027d rather pass the error through I can do that on top.\nAmir, for overlayfs this only changes something if the upper inode is\nchanged behind its back.\n\nThe iov_iter one is a NULL deref that any user can trigger on btrfs with\na single zero-length IORING_OP_READ_FIXED on an O_DIRECT file.\nio_import_fixed() hands out an empty bvec iterator without an array for\nthat and iov_iter_alignment() looks at the first segment before it\nchecks the count. Other places build such iterators as well so I fixed\niov_iter_alignment() instead of io_uring.\n\nAll three are tested in a KASAN VM. Without the patches the aio and\niov_iter reproducers oops and the backing-file one overwrites both an\nappend-only and an immutable file through FUSE passthrough. With them\nnone of that happens.\n\n* patches from https://patch.msgid.link/20261029-work-fs-ai-fixes-v1-0-88f22792f6f7@kernel.org:\n  iov_iter: fix NULL deref in iov_iter_alignment()\n  backing-file: enforce append-only and immutable backing inodes\n  aio: fix NULL deref when a fault races ring truncation\n\nLink: https://patch.msgid.link/20261029-work-fs-ai-fixes-v1-0-88f22792f6f7@kernel.org\nSigned-off-by: Christian Brauner (Amutable) \u003cbrauner@kernel.org\u003e\n",
  "tree_diff": []
}
