mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Christoph Hellwig <hch@infradead.org>
To: Meelis Roos <mroos@linux.ee>
Cc: Linux Kernel list <linux-kernel@vger.kernel.org>,
	linux-alpha@vger.kernel.org,
	Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>,
	Kentaro Takeda <takedakn@nttdata.co.jp>
Subject: Re: Tomoyo compile failure on alpha: sys_get[p]pid undefined
Date: Fri, 24 Sep 2010 03:51:17 -0400	[thread overview]
Message-ID: <20100924075116.GA2303@infradead.org> (raw)
In-Reply-To: <alpine.SOC.1.00.1009240906200.9058@math.ut.ee>

On Fri, Sep 24, 2010 at 09:10:37AM +0300, Meelis Roos wrote:
> 2.6.36-rc5+git as of yesterday:
> 
>   LD      .tmp_vmlinux1
> security/built-in.o: In function `tomoyo_supervisor':(.text+0xea98): undefined reference to `sys_getpid'
> security/built-in.o: In function `tomoyo_supervisor':(.text+0xeab0): undefined reference to `sys_getpid'
> security/built-in.o: In function `tomoyo_supervisor':(.text+0xeac0): undefined reference to `sys_getppid'
> security/built-in.o: In function `tomoyo_supervisor':(.text+0xeac4): undefined reference to `sys_getppid'
> 
> Seems alpha has different mechanisms for using these syscalls from 
> inside the kernel?

The real problem is that kernel code should never call system calls.
The correct fix is to get rid of this abuse.


  parent reply	other threads:[~2010-09-24  7:51 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-24  6:10 Meelis Roos
2010-09-24  6:21 ` Tetsuo Handa
2010-09-24  7:51 ` Christoph Hellwig [this message]
2010-09-24 10:23   ` Tetsuo Handa
2010-09-27  3:16   ` KOSAKI Motohiro

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=20100924075116.GA2303@infradead.org \
    --to=hch@infradead.org \
    --cc=linux-alpha@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mroos@linux.ee \
    --cc=penguin-kernel@I-love.SAKURA.ne.jp \
    --cc=takedakn@nttdata.co.jp \
    /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®