* Re: [PATCH] binfmt_elf force_sig arguments fix
2004-12-21 12:37 [PATCH] binfmt_elf force_sig arguments fix Horms
@ 2004-12-21 10:37 ` Marcelo Tosatti
0 siblings, 0 replies; 2+ messages in thread
From: Marcelo Tosatti @ 2004-12-21 10:37 UTC (permalink / raw)
To: Horms; +Cc: lkml - Kernel Mailing List, solar
On Tue, Dec 21, 2004 at 09:37:47PM +0900, Horms wrote:
> Hi,
>
> There appears to be a small error in the change that was recently
> applied to fs/binfmt_elf.c to fix error codes and eraly corrupt
> binary detection.
>
> The patch includes changing a send_sig() call to a force_sig() call in
> load_elf_binary(). However force_sig() only accepts 2 arguments, and
> thus the patch causes the build to fail.
>
> I propose the following patch to simply remove the extra argument to
> force_sig(), which I beleive will give a sensible result. That or
> change the call back to send_sig(), though I assume it was changed to
> force_sig() for a reason.
Applied, thanks.
> --
> Horms
>
> ===== fs/binfmt_elf.c 1.36 vs edited =====
> --- 1.36/fs/binfmt_elf.c 2004-12-18 03:17:46 +09:00
> +++ edited/fs/binfmt_elf.c 2004-12-21 21:21:25 +09:00
> @@ -806,7 +806,7 @@
> if (BAD_ADDR(elf_entry)) {
> printk(KERN_ERR "Unable to load interpreter %.128s\n",
> elf_interpreter);
> - force_sig(SIGSEGV, current, 0);
> + force_sig(SIGSEGV, current);
> retval = -ENOEXEC; /* Nobody gets to see this, but.. */
> goto out_free_dentry;
> }
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH] binfmt_elf force_sig arguments fix
@ 2004-12-21 12:37 Horms
2004-12-21 10:37 ` Marcelo Tosatti
0 siblings, 1 reply; 2+ messages in thread
From: Horms @ 2004-12-21 12:37 UTC (permalink / raw)
To: lkml - Kernel Mailing List; +Cc: solar, Marcelo Tosatti
Hi,
There appears to be a small error in the change that was recently
applied to fs/binfmt_elf.c to fix error codes and eraly corrupt
binary detection.
The patch includes changing a send_sig() call to a force_sig() call in
load_elf_binary(). However force_sig() only accepts 2 arguments, and
thus the patch causes the build to fail.
I propose the following patch to simply remove the extra argument to
force_sig(), which I beleive will give a sensible result. That or
change the call back to send_sig(), though I assume it was changed to
force_sig() for a reason.
--
Horms
===== fs/binfmt_elf.c 1.36 vs edited =====
--- 1.36/fs/binfmt_elf.c 2004-12-18 03:17:46 +09:00
+++ edited/fs/binfmt_elf.c 2004-12-21 21:21:25 +09:00
@@ -806,7 +806,7 @@
if (BAD_ADDR(elf_entry)) {
printk(KERN_ERR "Unable to load interpreter %.128s\n",
elf_interpreter);
- force_sig(SIGSEGV, current, 0);
+ force_sig(SIGSEGV, current);
retval = -ENOEXEC; /* Nobody gets to see this, but.. */
goto out_free_dentry;
}
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-12-21 18:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-12-21 12:37 [PATCH] binfmt_elf force_sig arguments fix Horms
2004-12-21 10:37 ` Marcelo Tosatti
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox