All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alexander Viro <aviro@redhat.com>
To: Paul Moore <paul.moore@hp.com>
Cc: linux-audit@redhat.com
Subject: Re: [RFC PATCH] audit: Fix possible return value truncation in audit_get_context()
Date: Wed, 1 Apr 2009 17:19:41 -0400	[thread overview]
Message-ID: <20090401211941.GA19309@shell.devel.redhat.com> (raw)
In-Reply-To: <20090401194727.9583.7857.stgit@flek.lan>

On Wed, Apr 01, 2009 at 03:47:27PM -0400, Paul Moore wrote:
> The audit subsystem treats syscall return codes as type long, unfortunately
> the audit_get_context() function mistakenly converts the return code to an
> int type in the parameters which could cause problems on systems where the
> sizeof(int) != sizeof(long).
> 
> Signed-off-by: Paul Moore <paul.moore@hp.com>

Applied.  E.g. for mmap() it's actually easy to trigger on 64bit boxen.

      reply	other threads:[~2009-04-01 21:19 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-01 19:47 [RFC PATCH] audit: Fix possible return value truncation in audit_get_context() Paul Moore
2009-04-01 21:19 ` Alexander Viro [this message]

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=20090401211941.GA19309@shell.devel.redhat.com \
    --to=aviro@redhat.com \
    --cc=linux-audit@redhat.com \
    --cc=paul.moore@hp.com \
    /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.