From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752302AbcAVHNS (ORCPT ); Fri, 22 Jan 2016 02:13:18 -0500 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:46860 "EHLO out3-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751126AbcAVHNG (ORCPT ); Fri, 22 Jan 2016 02:13:06 -0500 X-Sasl-enc: pur10P3ozS3tUr7qtsy1cJ1KVkB8hysJxwX0BFqbh9+2 1453446782 Subject: Re: [PATCH, REGRESSION v3] mm: make apply_to_page_range more robust To: David Rientjes , =?UTF-8?Q?Mika_Penttil=c3=a4?= References: <56A06EC7.9060106@nextfour.com> Cc: LKML , linux-mm@kvack.org, Pekka Enberg , Rusty Russell From: Pekka Enberg Message-ID: <56A1D67C.9080301@iki.fi> Date: Fri, 22 Jan 2016 09:13:00 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 01/22/2016 01:12 AM, David Rientjes wrote: > NACK to your patch as it is just covering up buggy code silently. The > problem needs to be addressed in change_memory_common() to return if > there is no size to change (numpages == 0). It's a two line fix to > that function. So add a WARN_ON there to *warn* about the situations. There's really no need to BUG_ON here. - Pekka