All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@linux-foundation.org>
To: mm-commits@vger.kernel.org, tytso@mit.edu, akpm@linux-foundation.org
Subject: [merged] fs-prevent-out-of-bounds-array-speculation-when-closing-a-file-descriptor.patch removed from -mm tree
Date: Thu, 23 Mar 2023 14:29:29 -0700	[thread overview]
Message-ID: <20230323212929.EE4CDC433EF@smtp.kernel.org> (raw)


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



                 reply	other threads:[~2023-03-23 21:29 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230323212929.EE4CDC433EF@smtp.kernel.org \
    --to=akpm@linux-foundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mm-commits@vger.kernel.org \
    --cc=tytso@mit.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.