Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge tag 'pull-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs

Pull vfs fix from Al Viro:
"do_dup2() out-of-bounds array speculation fix"

* tag 'pull-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs:
protect the fetch of ->fd[fd] in do_dup2() from mispredictions

+1
+1
fs/file.c
··· 1248 1248 * tables and this condition does not arise without those. 1249 1249 */ 1250 1250 fdt = files_fdtable(files); 1251 + fd = array_index_nospec(fd, fdt->max_fds); 1251 1252 tofree = fdt->fd[fd]; 1252 1253 if (!tofree && fd_is_open(fd, fdt)) 1253 1254 goto Ebusy;