History

Merge tag 'mm-hotfixes-stable-2025-06-13-21-56' of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

Pull misc fixes from Andrew Morton: "9 hotfixes. 3 are cc:stable and the remainder address post-6.15 issues or aren't considered necessary for -stable kernels. Only 4 are for MM" * tag 'mm-hotfixes-stable-2025-06-13-21-56' of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm: mm: add mmap_prepare() compatibility layer for nested file systems init: fix build warnings about export.h MAINTAINERS: add Barry as a THP reviewer drivers/rapidio/rio_cm.c: prevent possible heap overwrite mm: close theoretical race where stale TLB entries could linger mm/vma: reset VMA iterator on commit_merge() OOM failure docs: proc: update VmFlags documentation in smaps scatterlist: fix extraneous '@'-sign kernel-doc notation selftests/mm: skip failed memfd setups in gup_longterm

Linus Torvalds committed 1 year ago

Commit 27b99892 parents 4774cfe bb666b714 files · +134 −29Browse files

Showing the changes to include/linux (2 of 14 files). Show all

Unified · Split

2 files
  1. include/linux/fs.h +4 −2
  2. include/linux/scatterlist.h +2 −2
include/linux/fs.h+4−2
@@ -2274,10 +2274,12 @@ static inline bool file_has_valid_mmap_hooks(struct file *file) · 2273 unmodified lines
22742274 return true;
22752275 }
22762276
2277+int compat_vma_mmap_prepare(struct file *file, struct vm_area_struct *vma);
2278+
22772279 static inline int call_mmap(struct file *file, struct vm_area_struct *vma)
22782280 {
2279− if (WARN_ON_ONCE(file->f_op->mmap_prepare))
2280− return -EINVAL;
2281+ if (file->f_op->mmap_prepare)
2282+ return compat_vma_mmap_prepare(file, vma);
22812283
22822284 return file->f_op->mmap(file, vma);
22832285 }
include/linux/scatterlist.h+2−2
@@ -99,7 +99,7 @@ static inline bool sg_is_last(struct scatterlist *sg) · 98 unmodified lines
9999 * @sg: The current sg entry
100100 *
101101 * Description:
102− * Usually the next entry will be @sg@ + 1, but if this sg element is part
102+ * Usually the next entry will be @sg + 1, but if this sg element is part
103103 * of a chained scatterlist, it could jump to the start of a new
104104 * scatterlist array.
105105 *
@@ -254,7 +254,7 @@ static inline void __sg_chain(struct scatterlist *chain_sg, · 148 unmodified lines
254254 * @sgl: Second scatterlist
255255 *
256256 * Description:
257− * Links @prv@ and @sgl@ together, to form a longer scatterlist.
257+ * Links @prv and @sgl together, to form a longer scatterlist.
258258 *
259259 **/
260260 static inline void sg_chain(struct scatterlist *prv, unsigned int prv_nents,

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t