The upstream kernel now has one fix that covers the readahead, fadvise
and madvise bugs. Record what commit fixes the problem in the test in
case they need to be found for backporting later.

Signed-off-by: Mel Gorman <[email protected]>
--- 
 tests/fadvise_reserve.c   |    1 +
 tests/madvise_reserve.c   |    2 +-
 tests/readahead_reserve.c |    1 +
 3 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/tests/fadvise_reserve.c b/tests/fadvise_reserve.c
index 3ef45f2..9d72677 100644
--- a/tests/fadvise_reserve.c
+++ b/tests/fadvise_reserve.c
@@ -36,6 +36,7 @@
  * reservation but not faulted in at the time of allocation. The
  * counters do not get updated and effectively "leak". This test
  * identifies whether the kernel is vunerable to the problem or not.
+ * It's fixed in kernel by commit f2deae9d4e70793568ef9e85d227abb7bef5b622.
  */
 int main(int argc, char *argv[])
 {
diff --git a/tests/madvise_reserve.c b/tests/madvise_reserve.c
index 3509d40..2f7bd67 100644
--- a/tests/madvise_reserve.c
+++ b/tests/madvise_reserve.c
@@ -34,7 +34,7 @@
  * reservation but not faulted in at the time of allocation. The
  * counters do not get updated and effectively "leak". This test
  * identifies whether the kernel is vunerable to the problem or not.
- * It is fixed in kernel by commit a425a638c858fd10370b573bde81df3ba500e271
+ * It is fixed in kernel by commit f2deae9d4e70793568ef9e85d227abb7bef5b622
  */
 int main(int argc, char *argv[])
 {
diff --git a/tests/readahead_reserve.c b/tests/readahead_reserve.c
index 74547a1..d0a478b 100644
--- a/tests/readahead_reserve.c
+++ b/tests/readahead_reserve.c
@@ -36,6 +36,7 @@
  * reservation but not faulted in at the time of allocation. The
  * counters do not get updated and effectively "leak". This test
  * identifies whether the kernel is vunerable to the problem or not.
+ * It's fixed in kernel by commit f2deae9d4e70793568ef9e85d227abb7bef5b622.
  */
 int main(int argc, char *argv[])
 {

------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
Libhugetlbfs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libhugetlbfs-devel

Reply via email to