]> git.baikalelectronics.ru Git - kernel.git/commit
[PARISC] fix personality flag check in copy_thread()
authorJiri Kosina <jkosina@suse.cz>
Thu, 2 Aug 2012 13:33:59 +0000 (15:33 +0200)
committerJames Bottomley <JBottomley@Parallels.com>
Fri, 3 Aug 2012 10:25:12 +0000 (11:25 +0100)
commita5fc4bd453c41813162b21f4db88f9c38c1cf50a
treebc89e67b20c47a8bacde1b82d087054e941aee24
parent7925d71b0330395722432d96f8abcf26edd5e49e
[PARISC] fix personality flag check in copy_thread()

Directly comparing task_struct->personality against PER_* is not fully
correct, as it doesn't take flags potentially stored in top three bytes
into account.

Analogically, directly forcefully setting personality to PER_LINUX32 or
PER_LINUX discards any flags stored in the top three bytes.

Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
arch/parisc/kernel/process.c
arch/parisc/kernel/sys_parisc.c