Skip to contentSkip to conversation

move_pages08: E2BIG was removed in 2.6.29

PATCH In review Jan Stancek 3 participants 3 messages May 9, 2012

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 move_pages08: E2BIG was removed in 2.6.29

Following commit reworked do_pages_move() to work by page-sized chunks and also removed E2BIG:

commit 3140a2273009c01c27d316f35ab76a37e105fdd8

Author: Brice Goglin <[email protected]>
Date:   Tue Jan 6 14:38:57 2009 -0800

mm: rework do_pages_move() to work on page_sized chunks

So, move_pages08 makes sense only for kernels < 2.6.29.

---
 .../kernel/syscalls/move_pages/move_pages08.c      |   15 +++++++++++++--
 1 files changed, 13 insertions(+), 2 deletions(-)
testcases/kernel/syscalls/move_pages/move_pages08.c +13 -2
index a7ce6e4..e6902f4 100644
@@ -46,7 +46,7 @@
  *		Initial Version.
  *
  * Restrictions
- *	None
+ *	kernel < 2.6.29
  */
 
 #include <sys/mman.h>
@@ -129,6 +129,17 @@ int main(int argc, char **argv)
  */
 void setup(void)
 {
+	/*
+	 * commit 3140a2273009c01c27d316f35ab76a37e105fdd8
+	 * Author: Brice Goglin <[email protected]>
+	 * Date:   Tue Jan 6 14:38:57 2009 -0800
+	 *     mm: rework do_pages_move() to work on page_sized chunks
+	 *
+	 * reworked do_pages_move() to work by page-sized chunks and removed E2BIG
+	 */
+	if ((tst_kvercmp(2, 6, 29)) >= 0)
+		tst_brkm(TCONF, NULL, "move_pages: E2BIG was removed in "
+		    "commit 3140a2273009c01c27d316f35ab76a37e105fdd8");
 
 	tst_sig(FORK, DEF_HANDLER, cleanup);
 
@@ -151,4 +162,4 @@ void cleanup(void)
 	 */
 	TEST_CLEANUP;
 
- }
\ No newline at end of file
+ }

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/

_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Acked-by on v2 1/1
#1 lore raw
Quoted 4 lines · Jan Stancek

Following commit reworked do_pages_move() to work by page-sized chunks and also removed E2BIG:

Quoted 8 lines

commit 3140a2273009c01c27d316f35ab76a37e105fdd8

Author: Brice Goglin <[email protected]>
Date:   Tue Jan 6 14:38:57 2009 -0800

mm: rework do_pages_move() to work on page_sized chunks

So, move_pages08 makes sense only for kernels < 2.6.29.

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

#2 lore raw
In reply to Jan Stancek
Quoted 10 lines · Jan Stancek

Following commit reworked do_pages_move() to work by page-sized chunks and also removed E2BIG:

commit 3140a2273009c01c27d316f35ab76a37e105fdd8

Author: Brice Goglin <[email protected]>
Date:   Tue Jan 6 14:38:57 2009 -0800

mm: rework do_pages_move() to work on page_sized chunks

So, move_pages08 makes sense only for kernels < 2.6.29.

pushed, thanks all,

Wanlong Gao

Quoted 19 lines
---
 .../kernel/syscalls/move_pages/move_pages08.c      |   15 +++++++++++++--
 1 files changed, 13 insertions(+), 2 deletions(-)

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/

Quoted 4 lines

_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list