mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@linux-foundation.org>
To: Davide Libenzi <davidel@xmailserver.org>
Cc: linux-kernel@vger.kernel.org, mtk.manpages@googlemail.com,
	stable@kernel.org
Subject: Re: [patch] signalfd fix for incorrect SI_QUEUE user data reporting
Date: Thu, 10 Apr 2008 12:08:45 -0700	[thread overview]
Message-ID: <20080410120845.8e7132d8.akpm@linux-foundation.org> (raw)
In-Reply-To: <Pine.LNX.4.64.0804101152090.9668@alien.or.mcafeemobile.com>

On Thu, 10 Apr 2008 11:57:44 -0700 (PDT)
Davide Libenzi <davidel@xmailserver.org> wrote:

> Michael Kerrisk found out that signalfd was not reporting back user data 
> pushed using sigqueue:
> 
> http://groups.google.com/group/linux.kernel/msg/9397cab8551e3123
> 
> The following patch makes signalfd to report back the ssi_ptr and ssi_int 
> members of the signalfd_siginfo structure.
> 
> 
> 
> Signed-off-by: Davide Libenzi <davidel@xmailserver.org>
> 
> 
> - Davide
> 
> 
> ---
>  fs/signalfd.c |    7 ++++++-
>  1 file changed, 6 insertions(+), 1 deletion(-)
> 
> Index: linux-2.6.mod/fs/signalfd.c
> ===================================================================
> --- linux-2.6.mod.orig/fs/signalfd.c	2008-04-09 11:53:37.000000000 -0700
> +++ linux-2.6.mod/fs/signalfd.c	2008-04-09 12:05:46.000000000 -0700
> @@ -111,9 +111,14 @@
>  		err |= __put_user(kinfo->si_uid, &uinfo->ssi_uid);
>  		err |= __put_user((long) kinfo->si_ptr, &uinfo->ssi_ptr);
>  		break;
> -	default: /* this is just in case for now ... */
> +	default:
> +		/*
> +		 * This case catches also the signals queued by sigqueue().
> +		 */
>  		err |= __put_user(kinfo->si_pid, &uinfo->ssi_pid);
>  		err |= __put_user(kinfo->si_uid, &uinfo->ssi_uid);
> +		err |= __put_user((long) kinfo->si_ptr, &uinfo->ssi_ptr);
> +		err |= __put_user(kinfo->si_int, &uinfo->ssi_int);
>  		break;
>  	}
>  

I queued this for both 2.6.25 and 2.6.24.x.  Agree?

  reply	other threads:[~2008-04-10 19:09 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-10 18:57 Davide Libenzi
2008-04-10 19:08 ` Andrew Morton [this message]
2008-04-10 19:13   ` Davide Libenzi
2008-04-10 19:17 ` Michael Kerrisk

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=20080410120845.8e7132d8.akpm@linux-foundation.org \
    --to=akpm@linux-foundation.org \
    --cc=davidel@xmailserver.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mtk.manpages@googlemail.com \
    --cc=stable@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®