lkml.org 
[lkml]   [2009]   [Aug]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] posix-timers: fix oops in clock_nanosleep() with CLOCK_MONOTONIC_RAW
On Tue, 04 Aug 2009 16:41:33 +0900 Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com> wrote:

> Userspace program is like this;
>
> #include <time.h>
>
> int main(void)
> {
> struct timespec ts;
>
> ts.tv_sec = 1;
> ts.tv_nsec = 0;
>
> return clock_nanosleep(4, 0, &ts, NULL);
> }
>
> and it will cause oops;
>
> BUG: unable to handle kernel NULL pointer dereference at 0000000000000001

Well that's not very good.

How far back does this go? posix-timers.c hasn't changed in several
kernel versions.



\
 
 \ /
  Last update: 2009-08-04 10:01    [W:0.048 / U:0.028 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site