* invalid fadvise parameter
@ 2004-02-13 6:35 Ulrich Drepper
0 siblings, 0 replies; only message in thread
From: Ulrich Drepper @ 2004-02-13 6:35 UTC (permalink / raw)
To: Andrew Morton, Linux Kernel
[-- Attachment #1: Type: text/plain, Size: 450 bytes --]
-----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-----
[-- Attachment #2: d-fadvise --]
[-- Type: text/plain, Size: 259 bytes --]
--- 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;
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-02-13 6:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-13 6:35 invalid fadvise parameter Ulrich Drepper
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox