From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754317AbaIKO7U (ORCPT ); Thu, 11 Sep 2014 10:59:20 -0400 Received: from mga02.intel.com ([134.134.136.20]:15759 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753296AbaIKO7R (ORCPT ); Thu, 11 Sep 2014 10:59:17 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.04,506,1406617200"; d="scan'208";a="601493498" Message-ID: <5411B8C3.7080205@intel.com> Date: Thu, 11 Sep 2014 07:59:15 -0700 From: Dave Hansen User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: Qiaowei Ren , "H. Peter Anvin" , Thomas Gleixner , Ingo Molnar CC: x86@kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v8 09/10] x86, mpx: cleanup unused bound tables References: <1410425210-24789-1-git-send-email-qiaowei.ren@intel.com> <1410425210-24789-10-git-send-email-qiaowei.ren@intel.com> In-Reply-To: <1410425210-24789-10-git-send-email-qiaowei.ren@intel.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 09/11/2014 01:46 AM, Qiaowei Ren wrote: > + * This function will be called by do_munmap(), and the VMAs covering > + * the virtual address region start...end have already been split if > + * necessary and remvoed from the VMA list. "remvoed" -> "removed" > +void mpx_unmap(struct mm_struct *mm, > + unsigned long start, unsigned long end) > +{ > + int ret; > + > + ret = mpx_try_unmap(mm, start, end); > + if (ret == -EINVAL) > + force_sig(SIGSEGV, current); > +} In the case of a fault during an unmap, this just ignores the situation and returns silently. Where is the code to retry the freeing operation outside of mmap_sem?