aboutsummaryrefslogtreecommitdiffstats
path: root/lib/raid6/algos.c
diff options
context:
space:
mode:
authorDmitry V. Levin <[email protected]>2017-08-05 20:00:50 +0000
committerLinus Torvalds <[email protected]>2017-08-06 18:48:27 +0000
commitfbb77611e95d3d5b2af86a59754a3130877cb667 (patch)
tree026bc121b112736776c5de03463ce52fa4424280 /lib/raid6/algos.c
parentMerge tag 'media/v4.13-2' of git://git.kernel.org/pub/scm/linux/kernel/git/mc... (diff)
downloadkernel-fbb77611e95d3d5b2af86a59754a3130877cb667.tar.gz
kernel-fbb77611e95d3d5b2af86a59754a3130877cb667.zip
Fix compat_sys_sigpending breakage
The latest change of compat_sys_sigpending in commit 8f13621abced ("sigpending(): move compat to native") has broken it in two ways. First, it tries to write 4 bytes more than userspace expects: sizeof(old_sigset_t) == sizeof(long) == 8 instead of sizeof(compat_old_sigset_t) == sizeof(u32) == 4. Second, on big endian architectures these bytes are being written in the wrong order. This bug was found by strace test suite. Reported-by: Anatoly Pugachev <[email protected]> Inspired-by: Eugene Syromyatnikov <[email protected]> Fixes: 8f13621abced ("sigpending(): move compat to native") Signed-off-by: Dmitry V. Levin <[email protected]> Acked-by: Al Viro <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/raid6/algos.c')
0 files changed, 0 insertions, 0 deletions