Re: [PATCH] i386: convert mm_context_t semaphore to a mutex

Luiz Fernando N. Capitulino
2007-08-06T20:37:45Z

Em 06 Aug 2007 21:32:29 +0200
Andi Kleen <andi@firstfloor.org> escreveu:

| "Luiz Fernando N. Capitulino" <lcapitulino@mandriva.com.br> writes:
| >
| > I'll manage to test it then. Do you have a test-case or has any
| > suggestion?
|
| LTP has some simple test cases for modify_ldt

I've just ran them from a LTP suite from 2007/04/30:

"""
/usr/lib/ltp/testcases/kernel/syscalls/modify_ldt/ ./modify_ldt01
modify_ldt01 0 INFO : Enter block 1
modify_ldt01 0 INFO : block 1 PASSED
modify_ldt01 0 INFO : Exit block 1
modify_ldt01 0 INFO : Enter block 2
modify_ldt01 0 INFO : block 2 PASSED
modify_ldt01 0 INFO : Exit block 2
modify_ldt01 0 INFO : block 3 PASSED
modify_ldt01 0 INFO : Exit block 3
"""

"""
/usr/lib/ltp/testcases/kernel/syscalls/modify_ldt/ ./modify_ldt02
modify_ldt02 0 INFO : Enter block 1
modify_ldt02 0 INFO : block 1 PASSED
modify_ldt02 0 INFO : Exit block 1
modify_ldt02 0 INFO : Enter block 2
modify_ldt02 0 INFO : received signal: 11
modify_ldt02 0 INFO : block 2 PASSED
/usr/lib/ltp/testcases/kernel/syscalls/modify_ldt/
"""

All passed it seems.

Btw, I've send the same patch for x86_64 to you too.