Hi,

> I complete agree with you to take over the two patches.
> Since you ported these testcases  from Crackerjack, it's better you improve
> the cases in a large scale. I just tested some of them and returned my
> feedback.
> 
> Best regards!

Thank you.

I've found I need much more time to improve as I wanted.
This is a short report. If someone know about this issue. Please, let me know.



When I run the test on x86_64, errno is not set even if
the callilng of the modify_ldt got failed.

    [EMAIL PROTECTED] modify_ldt]$  ./modify_ldt01
    modify_ldt01    0  INFO  :  Enter block 1
    modify_ldt01    1  FAIL  :  modify_ldt() set invalid errno, expected 
ENOSYS, got: 42
    modify_ldt01    0  INFO  :  block 1 FAILED

I'm guessing this is something to do with glibc.

Further more there is inconsistency between man page and kernel code.


man page says:

    ENOSYS func is neither 0 nor 1.

However, 2 and 0x11 may be acceptable.

/usr/share/srpmix/sources/k/kernel/2.6.18-8.el5/pre-build/kernel-2.6.18/linux-2.6.18.i386/arch/x86_64/kernel/ldt.c
    asmlinkage int sys_modify_ldt(int func, void __user *ptr, unsigned long 
bytecount)
    {
            int ret = -ENOSYS;

            switch (func) {
            case 0:
                    ret = read_ldt(ptr, bytecount);
                    break;
            case 1:
                    ret = write_ldt(ptr, bytecount, 1);
                    break;
            case 2:
                    ret = read_default_ldt(ptr, bytecount);
                    break;
            case 0x11:
                    ret = write_ldt(ptr, bytecount, 0);
                    break;
            }
            return ret;
    }

Before working on Makefile related thing, I have to fix ...somehwere glibc, man
page, and modify_ldt0[12].c.

Masatake YAMATO

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to