mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: loop lopy <oferstu@yahoo.com>
To: linux-kernel@vger.kernel.org
Subject: A question about comm and verifing user memory address inside a system call
Date: Sun, 20 Nov 2005 07:06:57 -0800 (PST)	[thread overview]
Message-ID: <20051120150657.39568.qmail@web31013.mail.mud.yahoo.com> (raw)

Hello

I have a few question I would appreaciate if you help
me with.

I need to add my own system call to the kernel.
I know how to do it, but I have a few problems.
First, I need to pass a null terminated string address
to the system call by the wrapper, which calls
int0x80.
Related to that string there is something called
'comm', however I havent found what is comm that is
related to the NULL terminated string or system call.
So, what can comm be?
Secondly, when I need to verify that the memory
address of string, passed as paramter is valid.
I can use access_ok, but is it enough just to check if
copy_from_user is successful?
So, I actually don't need to use access_ok?

I am not subscribed with the list, so I need that the
replies will be personally CC'ed (not sure exactly
what that means).

Thanks for any help and reply.
Ofer.



	
		
__________________________________ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com

                 reply	other threads:[~2005-11-20 15:07 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20051120150657.39568.qmail@web31013.mail.mud.yahoo.com \
    --to=oferstu@yahoo.com \
    --cc=linux-kernel@vger.kernel.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®