lkml.org 
[lkml]   [2004]   [Feb]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subjectinvalid fadvise parameter
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

The len parameter for fadvise has a signed type and negative values
passed must be rejected. The attached patch does the job.

- --
➧ Ulrich Drepper ➧ Red Hat, Inc. ➧ 444 Castro St ➧ Mountain View, CA ❖
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQFALHBE2ijCOnn/RHQRAlFAAJ99cQ5raRpz2OuSRSi3Xf4WdYuPvwCgycGi
0QZLMcHfqOcxjEzDl2tGDuA=
=igyM
-----END PGP SIGNATURE-----
--- mm/fadvise.c 2004-01-19 20:09:03.000000000 -0800
+++ mm/fadvise.c-new 2004-02-12 22:33:32.000000000 -0800
@@ -33,7 +33,7 @@
return -EBADF;

mapping = file->f_mapping;
- if (!mapping) {
+ if (!mapping || len < 0) {
ret = -EINVAL;
goto out;
}
\
 
 \ /
  Last update: 2005-03-22 14:00    [W:0.031 / U:0.336 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site