Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754093AbbDMNcE (ORCPT ); Mon, 13 Apr 2015 09:32:04 -0400 Received: from aserp1040.oracle.com ([141.146.126.69]:33342 "EHLO aserp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752877AbbDMNcC (ORCPT ); Mon, 13 Apr 2015 09:32:02 -0400 Date: Mon, 13 Apr 2015 15:33:46 +0200 From: Quentin Casasnovas To: Rusty Russell Cc: Quentin Casasnovas , lkml , Oleg Nesterov , Borislav Petkov , Linus Torvalds Subject: Re: [PATCH 7/7] modpost: handle relocations mismatch in __ex_table. Message-ID: <20150413133346.GC12442@chrystal.uk.oracle.com> References: <1426596002-26128-1-git-send-email-quentin.casasnovas@oracle.com> <1426596002-26128-8-git-send-email-quentin.casasnovas@oracle.com> <87r3rotgwv.fsf@rustcorp.com.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87r3rotgwv.fsf@rustcorp.com.au> User-Agent: Mutt/1.5.22 (2013-10-16) X-Source-IP: userv0021.oracle.com [156.151.31.71] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 908 Lines: 23 On Mon, Apr 13, 2015 at 08:48:56PM +0930, Rusty Russell wrote: > Quentin Casasnovas writes: > > __ex_table is a simple table section where each entry is a pair of > > addresses - the first address is an address which can fault in kernel > > space, and the second address points to where the kernel should jump to > > when handling that fault. This is how copy_from_user() does not crash the > > kernel if userspace gives a borked pointer for example. > > Warnings on 32-bit: > > [snip/] > > Fixed like so: Thanks for the fixing, and nice catch on the "mistmatch" ;) ^ Quentin -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/