alpha: osf_sys: reduce kernel log spamming on invalid osf_mount call typenr
authorColin Ian King <colin.i.king@gmail.com>
Mon, 13 Dec 2021 18:56:25 +0000 (18:56 +0000)
committerMatt Turner <mattst88@gmail.com>
Tue, 14 Feb 2023 17:36:10 +0000 (12:36 -0500)
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>
arch/alpha/kernel/osf_sys.c

index c54469b369cb67a2fe8d7e94417107c7a658668d..2a9a877a0508371fdfd167c256c66ca16104916e 100644 (file)
@@ -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;