Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

um: Fix pointer cast

Fix a pointer cast typo introduced in v4.4-rc5 especially visible for
the i386 subarchitecture where it results in a kernel crash.

[ Also removed pointless cast as per Al Viro - Linus ]

Fixes: 8090bfd2bb9a ("um: Fix fpstate handling")
Signed-off-by: Mickaël Salaün <mic@digikod.net>
Cc: Jeff Dike <jdike@addtoit.com>
Acked-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Mickaël Salaün and committed by
Linus Torvalds
de379379 4ef76753

+1 -1
+1 -1
arch/x86/um/signal.c
··· 470 470 struct sigcontext __user *sc = &frame->sc; 471 471 int sig_size = (_NSIG_WORDS - 1) * sizeof(unsigned long); 472 472 473 - if (copy_from_user(&set.sig[0], (void *)sc->oldmask, sizeof(set.sig[0])) || 473 + if (copy_from_user(&set.sig[0], &sc->oldmask, sizeof(set.sig[0])) || 474 474 copy_from_user(&set.sig[1], frame->extramask, sig_size)) 475 475 goto segfault; 476 476