From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754551AbdC2Hy6 (ORCPT ); Wed, 29 Mar 2017 03:54:58 -0400 Received: from szxga02-in.huawei.com ([45.249.212.188]:4845 "EHLO dggrg02-dlp.huawei.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1753932AbdC2Hy5 (ORCPT ); Wed, 29 Mar 2017 03:54:57 -0400 Subject: Re: [RFC]mm/zsmalloc,: trigger BUG_ON in function zs_map_object. To: Sergey Senozhatsky , Minchan Kim References: <20170329002029.GA18979@bbox> <20170329064206.GA512@tigerII.localdomain> CC: , , , Linux Kernel Mailing List , Xishi Qiu , Hanjun Guo From: Yisheng Xie Message-ID: Date: Wed, 29 Mar 2017 15:53:21 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.1.0 MIME-Version: 1.0 In-Reply-To: <20170329064206.GA512@tigerII.localdomain> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.177.29.40] X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A0B0201.58DB6844.021D,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0, ip=0.0.0.0, so=2014-11-16 11:51:01, dmn=2013-03-21 17:37:32 X-Mirapoint-Loop-Id: b8c4ccf6664ea8bf7c03e0529a362986 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Sergey, Thanks for your comment! On 2017/3/29 14:42, Sergey Senozhatsky wrote: > On (03/29/17 09:20), Minchan Kim wrote: >> Hello, >> >> On Tue, Mar 28, 2017 at 03:20:22PM +0800, Yisheng Xie wrote: >>> Hi, all, >>> >>> We had backport the no-lru migration to linux-4.1, meanwhile change the >>> ZS_MAX_ZSPAGE_ORDER to 3. Then we met a BUG_ON(!page[1]). >> >> Hmm, I don't know how you backported. >> >> There isn't any problem with default ZS_MAX_ZSPAGE_ORDER. Right? >> So, it happens only if you changed it to 3? > > I agree with Minchan. too much things could have gone wrong during the backport. > >> Could you tell me what is your base kernel? and what zram/zsmalloc >> version(ie, from what kernel version) you backported to your >> base kernel? > > agree again. > > > > Yisheng, do you have this commit applied? No, we missed this patch, I will try it. Really thanks for that. Thanks Yisheng Xie > > commit c102f07ca0b04f2cb49cfc161c83f6239d17f491 > Author: Junil Lee > Date: Wed Jan 20 14:58:18 2016 -0800 > > zsmalloc: fix migrate_zspage-zs_free race condition > > > -ss > > . >