3 ms·
>>because unprivileged user-space code is able to force >>the kernel to waste a lot of time printing messages, >>slowing the whole system down >User
by dezgeg 11y ago
>>because unprivileged user-space code is able to force
>>the kernel to waste a lot of time printing messages,
>>slowing the whole system down
>User code can do that already[...]
I'm pretty sure that'd be considered a kernel bug. After all, there already is a a function (printk_ratelimited) which is supposed to be used in situations where userspace can trigger a kernel print.
- userbinator 11y agoI meant that you can already do these if you want to consume a lot of CPU time: for(;;) printf("Hello world!"); for(;;) ;
- seba_dos1 11y agoConsuming a lot of CPU time and forcing kernel to do that are separate things.
- madez 11y agoBut that won't slow down the whole system, if you didn't mess with the process priorities.
- lultimouomo 11y agosync() will most definitely do.