All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stas Sergeev <stsp@aknet.ru>
To: Denis Vlasenko <vda@port.imtp.ilyichevsk.odessa.ua>
Cc: linux-kernel@vger.kernel.org
Subject: Re: X does not start. vm86old returns ENOSYS??
Date: Wed, 20 Oct 2004 21:23:14 +0400	[thread overview]
Message-ID: <41769F02.9020003@aknet.ru> (raw)
In-Reply-To: <200410201653.33233.vda@port.imtp.ilyichevsk.odessa.ua>

Hi.

Denis Vlasenko wrote:
> How can vm86old from X return ENOSYS??
I think you can't trust what vm86()/vm86old()
returns, concerning strace. These 2 syscalls
returns different non-zero values on *success*,
which, I think, strace just doesn't get right.
Of course it can also return the reasonable
errors, like EFAULT as in your test program -
its just that copy_from_user() failed when
you specified NULL.
I am not sure where exactly the ENOSYS comes
from. My wild guess is that strace expects
0 on success and the negative value on error,
but any positive value is an indication that
the syscall is not implemented.
At least I've always seen ENOSYS in an strace
logs for vm86() - this is normal.

> I have no more ideas how to proceed from here.
Sorry for not being able to help much.


  parent reply	other threads:[~2004-10-20 17:28 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-20 16:53 X does not start. vm86old returns ENOSYS?? Denis Vlasenko
2004-10-20 14:14 ` Brian Gerst
2004-10-20 14:56   ` Denis Vlasenko
2004-10-20 15:22     ` Brian Gerst
2004-10-20 17:23 ` Stas Sergeev [this message]
2004-10-21 15:15 ` X does not start. vm86old returns ENOSYS?? -- solved Denis Vlasenko
2004-10-21 16:16   ` Stas Sergeev

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=41769F02.9020003@aknet.ru \
    --to=stsp@aknet.ru \
    --cc=linux-kernel@vger.kernel.org \
    --cc=vda@port.imtp.ilyichevsk.odessa.ua \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.