lkml.org 
[lkml]   [1999]   [Aug]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] kernel/itimer.c verify_area
diff -urNp --exclude-from /usr/src/lkdontdiff /img/linux-2.3.12/kernel/itimer.c linux-2.3.12as/kernel/itimer.c
--- /img/linux-2.3.12/kernel/itimer.c Tue Nov 24 21:51:44 1998
+++ linux-2.3.12as/kernel/itimer.c Fri Jul 30 16:10:53 1999
@@ -34,7 +34,7 @@ static unsigned long tvtojiffies(struct
return HZ*sec+usec;
}

-static void jiffiestotv(unsigned long jiffies, struct timeval *value)
+static inline void jiffiestotv(unsigned long jiffies, struct timeval *value)
{
value->tv_usec = (jiffies % HZ) * (1000000 / HZ);
value->tv_sec = jiffies / HZ;
@@ -156,8 +156,6 @@ asmlinkage int sys_setitimer(int which,
int error;

if (value) {
- if(verify_area(VERIFY_READ, value, sizeof(*value)))
- return -EFAULT;
if(copy_from_user(&set_buffer, value, sizeof(set_buffer)))
return -EFAULT;
} else


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:53    [W:0.021 / U:1.784 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site