All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: + uml-make-execvp-safe-for-our-usage.patch added to -mm tree
       [not found] <200610180014.k9I0EZ1J012332@shell0.pdx.osdl.net>
@ 2006-11-24 19:50 ` Jeff Dike
  2006-11-24 21:46   ` Andrew Morton
  0 siblings, 1 reply; 3+ messages in thread
From: Jeff Dike @ 2006-11-24 19:50 UTC (permalink / raw)
  To: akpm; +Cc: linux-kernel, blaisorblade

On Tue, Oct 17, 2006 at 05:14:35PM -0700, akpm@osdl.org wrote:
> The patch titled
> 
>      uml: make execvp safe for our usage
> 
> has been added to the -mm tree.  Its filename is
> 
>      uml-make-execvp-safe-for-our-usage.patch
> 

I had previously objected to this patch on grounds of taste.  Since
this fixes a number of problems, and I don't have any solutions which
are huge improvements, I withdraw those objections.

Feel free to send to Linus.

				Jeff

-- 
Work email - jdike at linux dot intel dot com

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: + uml-make-execvp-safe-for-our-usage.patch added to -mm tree
  2006-11-24 19:50 ` + uml-make-execvp-safe-for-our-usage.patch added to -mm tree Jeff Dike
@ 2006-11-24 21:46   ` Andrew Morton
  2006-11-24 23:11     ` Jeff Dike
  0 siblings, 1 reply; 3+ messages in thread
From: Andrew Morton @ 2006-11-24 21:46 UTC (permalink / raw)
  To: Jeff Dike; +Cc: linux-kernel, blaisorblade

On Fri, 24 Nov 2006 14:50:11 -0500
Jeff Dike <jdike@addtoit.com> wrote:

> On Tue, Oct 17, 2006 at 05:14:35PM -0700, akpm@osdl.org wrote:
> > The patch titled
> > 
> >      uml: make execvp safe for our usage
> > 
> > has been added to the -mm tree.  Its filename is
> > 
> >      uml-make-execvp-safe-for-our-usage.patch
> > 
> 
> I had previously objected to this patch on grounds of taste.  Since
> this fixes a number of problems, and I don't have any solutions which
> are huge improvements, I withdraw those objections.
> 
> Feel free to send to Linus.

OK.  Is it needed for 2.6.19?

Also, I'm still sitting on the below.  I have a note that you nacked it,
but I forget why.


From: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>

Fix prototypes in user.h - was needed when including user.h in kernelspace, as
we did in previous patch.

Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Cc: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
---

 arch/um/include/user.h |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diff -puN arch/um/include/user.h~uml-fix-prototypes arch/um/include/user.h
--- a/arch/um/include/user.h~uml-fix-prototypes
+++ a/arch/um/include/user.h
@@ -6,6 +6,10 @@
 #ifndef __USER_H__
 #define __USER_H__
 
+/* Both on kernelspace and userspace this will provide the size_t definition. It should, at
+ * least. But on userspace it won't hurt surely. */
+#include <linux/types.h>
+
 extern void panic(const char *fmt, ...)
 	__attribute__ ((format (printf, 1, 2)));
 extern int printk(const char *fmt, ...)
@@ -13,9 +17,8 @@ extern int printk(const char *fmt, ...)
 extern void schedule(void);
 extern int in_aton(char *str);
 extern int open_gdb_chan(void);
-/* These use size_t, however unsigned long is correct on both i386 and x86_64. */
-extern unsigned long strlcpy(char *, const char *, unsigned long);
-extern unsigned long strlcat(char *, const char *, unsigned long);
+extern size_t strlcpy(char *, const char *, size_t);
+extern size_t strlcat(char *, const char *, size_t);
 
 #endif
 
_


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: + uml-make-execvp-safe-for-our-usage.patch added to -mm tree
  2006-11-24 21:46   ` Andrew Morton
@ 2006-11-24 23:11     ` Jeff Dike
  0 siblings, 0 replies; 3+ messages in thread
From: Jeff Dike @ 2006-11-24 23:11 UTC (permalink / raw)
  To: Andrew Morton; +Cc: linux-kernel, blaisorblade

On Fri, Nov 24, 2006 at 01:46:21PM -0800, Andrew Morton wrote:
> OK.  Is it needed for 2.6.19?

It fixes bugs, so I would say yes.

> Also, I'm still sitting on the below.  I have a note that you nacked it,
> but I forget why.

I nacked it mostly based on the changelog, which turned out to be
incorrect.  The substance of the change I think is OK, except that it
looks like stddef (according to the C standard - 4.1.5) , not
linux/types is the official way to get size_t.   I'll send a follow-up
patch to fix that.

I would hold this patch until after 2.6.19.

				Jeff
-- 
Work email - jdike at linux dot intel dot com

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-11-24 23:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <200610180014.k9I0EZ1J012332@shell0.pdx.osdl.net>
2006-11-24 19:50 ` + uml-make-execvp-safe-for-our-usage.patch added to -mm tree Jeff Dike
2006-11-24 21:46   ` Andrew Morton
2006-11-24 23:11     ` Jeff Dike

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.