The mystery of the fifteen-millisecond breakpoint instruction
blog.jwhitham.org
The mystery of the fifteen-millisecond breakpoint instruction
1–10 of 50 posts
Re: The mystery of the fifteen-millisecond breakpoint instruction
#2Re: The mystery of the fifteen-millisecond breakpoint instruction
#3Re: The mystery of the fifteen-millisecond breakpoint instruction
#4I'm surprised the author didn't submit this patch back to the Linux ARM architecture maintainers - it seems entirely apropos.
Re: The mystery of the fifteen-millisecond breakpoint instruction
#5because 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, or even just run in an infinite loop.
Re: The mystery of the fifteen-millisecond breakpoint instruction
#6What exactly is the purpose of logging all unhandled breakpoint instructions encountered in user-mode code to the syslog, and then continuing...? On Windows, a breakpoint instruction encountered outside of a debugger causes the standard error dialog to appear, and if you choose not to attach a debugger, the process terminates. IMHO that's more reasonable behaviour, as breakpoint instructions shouldn't appear in code…
>>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.Re: The mystery of the fifteen-millisecond breakpoint instruction
#7What exactly is the purpose of logging all unhandled breakpoint instructions encountered in user-mode code to the syslog, and then continuing...? On Windows, a breakpoint instruction encountered outside of a debugger causes the standard error dialog to appear, and if you choose not to attach a debugger, the process terminates. IMHO that's more reasonable behaviour, as breakpoint instructions shouldn't appear in code…
>>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.
for(;;) printf("Hello world!");
for(;;) ;Re: The mystery of the fifteen-millisecond breakpoint instruction
#8Earlier quoted context omitted.
>>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.
I meant that you can already do these if you want to consume a lot of CPU time: for(;;) printf("Hello world!"); for(;;) ;
Re: The mystery of the fifteen-millisecond breakpoint instruction
#9Earlier quoted context omitted.
>>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.
I meant that you can already do these if you want to consume a lot of CPU time: for(;;) printf("Hello world!"); for(;;) ;
Re: The mystery of the fifteen-millisecond breakpoint instruction
#10What exactly is the purpose of logging all unhandled breakpoint instructions encountered in user-mode code to the syslog, and then continuing...? On Windows, a breakpoint instruction encountered outside of a debugger causes the standard error dialog to appear, and if you choose not to attach a debugger, the process terminates. IMHO that's more reasonable behaviour, as breakpoint instructions shouldn't appear in code…