Re: [PATCH 09/24] C6X: signal management

From: Matt Fleming
Date: Thu Sep 01 2011 - 05:50:15 EST


On Wed, 2011-08-31 at 17:26 -0400, Mark Salter wrote:
> +static int setup_rt_frame(int signr, struct k_sigaction *ka, siginfo_t *info,
> + sigset_t *set, struct pt_regs *regs)
> +{
> + struct rt_sigframe __user *frame;
> + unsigned long __user *retcode;
> + int err = 0;
> +
> + frame = get_sigframe(ka, regs, sizeof(*frame));
> +
> + if (!access_ok(VERIFY_WRITE, frame, sizeof(*frame)))
> + goto segv_and_exit;

[...]

> +segv_and_exit:
> + force_sig(SIGSEGV, current);
> + return -EFAULT;
> +}

Shouldn't that really be a call to force_sigsegv(signr, current) ?


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/