From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932540AbaDBQjK (ORCPT ); Wed, 2 Apr 2014 12:39:10 -0400 Received: from terminus.zytor.com ([198.137.202.10]:50631 "EHLO mail.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932331AbaDBQjI (ORCPT ); Wed, 2 Apr 2014 12:39:08 -0400 Message-ID: <533C3CDD.9090400@zytor.com> Date: Wed, 02 Apr 2014 09:37:49 -0700 From: "H. Peter Anvin" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 To: Johannes Weiner , John Stultz CC: LKML , Andrew Morton , Android Kernel Team , Robert Love , Mel Gorman , Hugh Dickins , Dave Hansen , Rik van Riel , Dmitry Adamushko , Neil Brown , Andrea Arcangeli , Mike Hommey , Taras Glek , Jan Kara , KOSAKI Motohiro , Michel Lespinasse , Minchan Kim , "linux-mm@kvack.org" Subject: Re: [PATCH 0/5] Volatile Ranges (v12) & LSF-MM discussion fodder References: <1395436655-21670-1-git-send-email-john.stultz@linaro.org> <20140401212102.GM4407@cmpxchg.org> <533B8C2D.9010108@linaro.org> <20140402163013.GP14688@cmpxchg.org> <533C3BB4.8020904@zytor.com> In-Reply-To: <533C3BB4.8020904@zytor.com> X-Enigmail-Version: 1.6 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 04/02/2014 09:32 AM, H. Peter Anvin wrote: > On 04/02/2014 09:30 AM, Johannes Weiner wrote: >> >> So between zero-fill and SIGBUS, I'd prefer the one which results in >> the simpler user interface / fewer system calls. >> > > The use cases are different; I believe this should be a user space option. > Case in point, for example: imagine a JIT. You *really* don't want to zero-fill memory behind the back of your JIT, as all zero memory may not be a trapping instruction (it isn't on x86, for example, and if you are unlucky you may be modifying *part* of an instruction.) Thus, SIGBUS is the only safe option. -hpa