* [merged] fs-prevent-out-of-bounds-array-speculation-when-closing-a-file-descriptor.patch removed from -mm tree
@ 2023-03-23 21:29 Andrew Morton
0 siblings, 0 replies; only message in thread
From: Andrew Morton @ 2023-03-23 21:29 UTC (permalink / raw)
To: mm-commits, tytso, akpm
The quilt patch titled
Subject: fs: prevent out-of-bounds array speculation when closing a file descriptor
has been removed from the -mm tree. Its filename was
fs-prevent-out-of-bounds-array-speculation-when-closing-a-file-descriptor.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: "Theodore Ts'o" <tytso@mit.edu>
Subject: fs: prevent out-of-bounds array speculation when closing a file descriptor
Date: Mon, 6 Mar 2023 13:54:50 -0500
Google-Bug-Id: 114199369
Link: https://lkml.kernel.org/r/20230306185450.1028235-1-tytso@mit.edu
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
--- a/fs/file.c~fs-prevent-out-of-bounds-array-speculation-when-closing-a-file-descriptor
+++ a/fs/file.c
@@ -642,6 +642,7 @@ static struct file *pick_file(struct fil
if (fd >= fdt->max_fds)
return NULL;
+ fd = array_index_nospec(fd, fdt->max_fds);
file = fdt->fd[fd];
if (file) {
rcu_assign_pointer(fdt->fd[fd], NULL);
_
Patches currently in -mm which might be from tytso@mit.edu are
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-03-23 21:29 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-23 21:29 [merged] fs-prevent-out-of-bounds-array-speculation-when-closing-a-file-descriptor.patch removed from -mm tree Andrew Morton
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).