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.

[PATCH] nfsservctl(): remove user-triggerable printk

A user can use nfsservctl() to spam the logs.

This can happen because the arguments to the nfsservctl() system call are
versioned. This is a good thing. However, when a bad version is detected,
the kernel prints a message and then returns an error.

Signed-off-by: Peter Staubach <staubach@redhat.com>
Cc: Trond Myklebust <trond.myklebust@fys.uio.no>
Cc: Neil Brown <neilb@cse.unsw.edu.au>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by

Peter Staubach and committed by
Linus Torvalds
85c6932e 5b40dc78

+1 -3
+1 -3
fs/nfsctl.c
··· 98 98 if (copy_from_user(&version, &arg->ca_version, sizeof(int))) 99 99 return -EFAULT; 100 100 101 - if (version != NFSCTL_VERSION) { 102 - printk(KERN_WARNING "nfsd: incompatible version in syscall.\n"); 101 + if (version != NFSCTL_VERSION) 103 102 return -EINVAL; 104 - } 105 103 106 104 if (cmd < 0 || cmd >= sizeof(map)/sizeof(map[0]) || !map[cmd].name) 107 105 return -EINVAL;