summaryrefslogtreecommitdiffstats
path: root/arch/alpha
diff options
context:
space:
mode:
authorColin Ian King <colin.i.king@gmail.com>2021-12-13 19:56:25 +0100
committerMatt Turner <mattst88@gmail.com>2023-02-14 18:36:10 +0100
commit019f48dc8eba723d2201679b804f4600e816604a (patch)
tree6a8f6c0118002f056ceb785cbfd8dabb3977226a /arch/alpha
parentMerge tag 'mm-hotfixes-stable-2023-02-13-13-50' of git://git.kernel.org/pub/s... (diff)
downloadlinux-019f48dc8eba723d2201679b804f4600e816604a.tar.xz
linux-019f48dc8eba723d2201679b804f4600e816604a.zip
alpha: osf_sys: reduce kernel log spamming on invalid osf_mount call typenr
Calling the osf_mount system call with an invalid typenr value will spam the kernel log with error messages. Reduce the spamming by making it a ratelimited printk. Issue found when exercising with the stress-ng enosys system call stressor. Signed-off-by: Colin Ian King <colin.i.king@gmail.com> Signed-off-by: Matt Turner <mattst88@gmail.com>
Diffstat (limited to 'arch/alpha')
-rw-r--r--arch/alpha/kernel/osf_sys.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/alpha/kernel/osf_sys.c b/arch/alpha/kernel/osf_sys.c
index c54469b369cb..2a9a877a0508 100644
--- a/arch/alpha/kernel/osf_sys.c
+++ b/arch/alpha/kernel/osf_sys.c
@@ -522,7 +522,7 @@ SYSCALL_DEFINE4(osf_mount, unsigned long, typenr, const char __user *, path,
break;
default:
retval = -EINVAL;
- printk("osf_mount(%ld, %x)\n", typenr, flag);
+ printk_ratelimited("osf_mount(%ld, %x)\n", typenr, flag);
}
return retval;