Yama PR_SET_PTRACER_ANY fails on 32-bit user with 64-bit kernel
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Precise |
Fix Released
|
Medium
|
Unassigned |
Bug Description
This is an old bug that looks like the fix missed Precise since Yama was backported there. Yama was introduced in 3.4, but Precise is 3.2 with Yama backported. The upstream fix for this bug is missing, which can cause problems when a Yama-aware program is running in 32-bit userspace (e.g. chroot) on a 64-bit kernel.
Fixed upstream by 2e4930eb7c8fb20
SRU Justification:
- impact: Yama programs running in 32-bit chroots will fail to work correctly
- test case: prctl(PR_
- regression potential: nearly zero. this restores a missing function, and the patch is trivial and upstream for years.
Changed in linux (Ubuntu): | |
status: | New → Fix Released |
description: | updated |
Changed in linux (Ubuntu Precise): | |
importance: | Undecided → Medium |
Changed in linux (Ubuntu): | |
importance: | Undecided → Medium |
tags: | added: precise |
Test-case:
sudo apt-get install gcc-multilib
gcc -Wall yama-test.c -m32 -o yama-test
./yama-test
This should return 0 and report "ok", but on precise, it fails.