Re: [opensuse-factory] Re: [opensuse-kernel] libsigsegv build fail with kernel 3.18.3

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Jan 27, 2015 at 12:57:20PM -0800, Linus Torvalds wrote:
> [ Adding 'linux-arch' to the recipients, since this touches pretty
> much all architectures ]
[...]
> Can people take a look?
> 
> diff --git a/arch/s390/mm/fault.c b/arch/s390/mm/fault.c
> index 811937bb90be..9065d5aa3932 100644
> --- a/arch/s390/mm/fault.c
> +++ b/arch/s390/mm/fault.c
> @@ -374,6 +374,12 @@ static noinline void do_fault_error(struct pt_regs *regs, int fault)
>  				do_no_context(regs);
>  			else
>  				pagefault_out_of_memory();
> +		} else if (fault & VM_FAULT_SIGSEGV) {
> +			/* Kernel mode? Handle exceptions or die */
> +			if (!user_mode(regs))
> +				do_no_context(regs);
> +			else
> +				do_sigsegv(regs, SEGV_MAPERR);

s390 still compiles and boots with this patch applied.

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




[Index of Archives]     [Linux Kernel]     [Kernel Newbies]     [x86 Platform Driver]     [Netdev]     [Linux Wireless]     [Netfilter]     [Bugtraq]     [Linux Filesystems]     [Yosemite Discussion]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]

  Powered by Linux