Re: [PATCH] Harden autofs ioctl table

2020-08-19 Thread Ian Kent
On Tue, 2020-08-18 at 13:22 +0100, Matthew Wilcox wrote: > The table of ioctl functions should be marked const in order to put > them > in read-only memory, and we should use array_index_nospec() to avoid > speculation disclosing the contents of kernel memory to userspace. > > Signed-off-by:

[PATCH] Harden autofs ioctl table

2020-08-18 Thread Matthew Wilcox
The table of ioctl functions should be marked const in order to put them in read-only memory, and we should use array_index_nospec() to avoid speculation disclosing the contents of kernel memory to userspace. Signed-off-by: Matthew Wilcox (Oracle) diff --git a/fs/autofs/dev-ioctl.c