Skip to contentSkip to conversation

fs-prevent-out-of-bounds-array-speculation-when-closing-a-file-descriptor.patch removed from -mm tree

merged Andrew Morton 1 participant 1 message Mar 23, 2023

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore 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" <[email protected]>
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

---

fs/file.c renamed from fs/file.c~fs-prevent-out-of-bounds-array-speculation-when-closing-a-file-descriptor +1 -0
@@ -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 [email protected] are