login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
March
»
8
Re: [PATCH] waitid si_code regression
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From:
Oleg Nesterov <oleg@...>
To: Roland McGrath <roland@...>
Cc: Andrew Morton <akpm@...>, Linus Torvalds <torvalds@...>, <linux-kernel@...>
Subject:
Re: [PATCH] waitid si_code regression
Date: Saturday, March 8, 2008 - 4:19 pm
On 03/08, Roland McGrath wrote:
quoted text
> > In commit ee7c82da830ea860b1f9274f1f0cdf99f206e7c2, the magic (short) > cast when storing si_code was lost in wait_task_stopped. This leaks > the in-kernel CLD_* values that do not match what userland expects. > > diff --git a/kernel/exit.c b/kernel/exit.c > index cd20bf0..53872bf 100644 > --- a/kernel/exit.c > +++ b/kernel/exit.c > @@ -1378,7 +1378,7 @@ unlock_sig: > if (!retval && infop) > retval = put_user(0, &infop->si_errno); > if (!retval && infop) > - retval = put_user(why, &infop->si_code); > + retval = put_user((short)why, &infop->si_code);
Ugh, thanks. Oleg. --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
Messages in current thread:
[PATCH] waitid si_code regression
, Roland McGrath
, (Sat Mar 8, 3:41 pm)
Re: [PATCH] waitid si_code regression
, Oleg Nesterov
, (Sat Mar 8, 4:19 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Greg KH
[GIT PATCH] driver core patches against 2.6.24
Hiten Pandya
Re: up? (emacs docbook xml ide)
Jan Engelhardt
intel iommu (Re: -mm merge plans for 2.6.23)
Tarkan Erimer
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
git
:
linux-netdev
:
Jarek Poplawski
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
David Miller
[GIT]: Networking
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
Daniel Eischen
Re: error with thread
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
12 users
and
835 guests
online.
Online users
webdesignlouis
bananahou
acaipurereview
fapturboreview
itjobsqmzsrwtt
andy706
knoxvilleinvis
forexproductre
stopsmokingdgc
coachf12869khdp
gpscartracking
runyourcaronwa
Syndicate