Red Hat Bugzilla – Bug 139698
current->personality is not being set to PER_LINUX32
Last modified: 2007-11-30 17:07:14 EST
Description of problem:
The new version of ia32-el does not set "current->personality" to
PER_LINUX32. Our 64-bit kernel modules rely on this to determine
whether the calling process is 32-bit or 64-bit. This was getting
set in earlier RHEL4 drops.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. build a 32-bit app that calls an ioctl into a 64-bit kernel module.
2. run the 32-bit app on IA64 using the ia32EL.
3. check inside the kernel that current->personality is not set to
current->personality is not set.
current->personality = PER_LINUX32 for 32-bit calling processes.
Is this a bug, or an intended change. If intended, what will be the
new method for determining whether the calling process is 32-bit or
64-bit? Ideally, we'd like this to be the same across all 64-bit
platforms (ie: on x86_64 we also check current->personality).
*** This bug has been marked as a duplicate of 139701 ***