All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
* + kernel-sysc-fix-compat-uname-machine.patch added to -mm tree
@ 2010-04-20  0:10 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2010-04-20  0:10 UTC (permalink / raw
  To: mm-commits; +Cc: schwab, davem, hch


The patch titled
     kernel/sys.c: fix compat uname machine
has been added to the -mm tree.  Its filename is
     kernel-sysc-fix-compat-uname-machine.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

See http://userweb.kernel.org/~akpm/stuff/added-to-mm.txt to find
out what to do about this

The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/

------------------------------------------------------
Subject: kernel/sys.c: fix compat uname machine
From: Andreas Schwab <schwab@linux-m68k.org>

On ppc64 you get this error:

$ setarch ppc -R true
setarch: ppc: Unrecognized architecture

because uname still reports ppc64 as the machine.

So mask off the personality flags when checking for PER_LINUX32.

Signed-off-by: Andreas Schwab <schwab@linux-m68k.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 kernel/sys.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff -puN kernel/sys.c~kernel-sysc-fix-compat-uname-machine kernel/sys.c
--- a/kernel/sys.c~kernel-sysc-fix-compat-uname-machine
+++ a/kernel/sys.c
@@ -1118,7 +1118,7 @@ DECLARE_RWSEM(uts_sem);
 
 #ifdef COMPAT_UTS_MACHINE
 #define override_architecture(name) \
-	(current->personality == PER_LINUX32 && \
+	(personality(current->personality) == PER_LINUX32 && \
 	 copy_to_user(name->machine, COMPAT_UTS_MACHINE, \
 		      sizeof(COMPAT_UTS_MACHINE)))
 #else
_

Patches currently in -mm which might be from schwab@linux-m68k.org are

kernel-sysc-fix-compat-uname-machine.patch
vfs-o_-bit-numbers-uniqueness-check.patch
improve-sys_personality-for-compat-architectures.patch


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-04-20  3:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-20  0:10 + kernel-sysc-fix-compat-uname-machine.patch added to -mm tree akpm

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.