Received: by 2002:a05:6a10:c7c6:0:0:0:0 with SMTP id h6csp2494021pxy; Tue, 3 Aug 2021 07:48:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxrQ+8z5JxnJHa4Nupm5KguLjXvlvy+R7rstMriWAdleEvYJn5Ms1OehHcSl2XWKU8j+5Lo X-Received: by 2002:a05:6e02:96a:: with SMTP id q10mr172620ilt.235.1628002109755; Tue, 03 Aug 2021 07:48:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628002109; cv=none; d=google.com; s=arc-20160816; b=zIIR98ugqs8I03nx33l84li+x2P+7apsS98MJPBwGdSDaJs96pqDMoHHZM+jtOIG7q WO4xCUAe21f+ZViMaqZXZiPNs3L1UGGtuIdkGKXyfmmNXo7PIFh13y1GjAisNSib+aB/ hmJnF5Dy/wSTtDJ7ABXcjeIjwpw9vU8AnZfUtUquCm6u/iSm4/A+fU9p9mXx8xwVd6KI da5Cg86EuHAONlo1twBBf1Shmh9AySTSik/eH5ilq3GOXM1NAatX0UVzFC0ksc8ZAH1a TlttQpPDXBrS0uCGCws0U1mxAhRPZ8NUyj8u0M82Tmp2hfus4LnIZ94rfSqZfZsVFTSz cFuQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=NbwcmcnPyy3f9xjv7VzdmHoM6wm0mkbFrSpw+MT6UoI=; b=X6NsXQEXYEhgi3fPzXgMMdUVXeGnxft4+s6wsneBfDVpzwkTmM+cYWqojrXNDmkrhy 4cF07a0xSm2aED9o/oRF1MyFMdI0lUiKtUWr5nfq80IQ02aHkpMowh2oYGC5Qobz3c7Z 5paru0P1nBMuzt3yV4AacnybGyytLQ0oUC0NRpkq5kn1LaoqGrtR1wX85mVK7qjs/279 lmuDjjxIOLwxQvXseJqfYdRiGA3ugNSyCL4njfQvBNMgSuyTYLQ7Db/9EoGdprpxF5UV r9n5f2RQOtJeO5yBkNpTCvyKS7LjONW+9FqLbv1xBL0Yu2J9T7fQFDA7XOKISm+xvwci omxQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w17si17987998jad.27.2021.08.03.07.48.16; Tue, 03 Aug 2021 07:48:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236493AbhHCOpO (ORCPT + 99 others); Tue, 3 Aug 2021 10:45:14 -0400 Received: from szxga03-in.huawei.com ([45.249.212.189]:13272 "EHLO szxga03-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236234AbhHCOpM (ORCPT ); Tue, 3 Aug 2021 10:45:12 -0400 Received: from dggemv711-chm.china.huawei.com (unknown [172.30.72.53]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4GfHbD2QVmz81hq; Tue, 3 Aug 2021 22:40:08 +0800 (CST) Received: from dggpemm500001.china.huawei.com (7.185.36.107) by dggemv711-chm.china.huawei.com (10.1.198.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Tue, 3 Aug 2021 22:44:58 +0800 Received: from [10.174.177.243] (10.174.177.243) by dggpemm500001.china.huawei.com (7.185.36.107) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Tue, 3 Aug 2021 22:44:56 +0800 Subject: Re: [PATCH] slub: fix unreclaimable slab stat for bulk free To: Vlastimil Babka , Shakeel Butt CC: Christoph Lameter , Pekka Enberg , "David Rientjes" , Michal Hocko , "Roman Gushchin" , Wang Hai , Muchun Song , Andrew Morton , "Linux MM" , LKML References: <20210728155354.3440560-1-shakeelb@google.com> <8c14efe2-69dc-6eab-3cd5-c042576770e7@huawei.com> <35a0b75a-f348-d21c-4ff4-fadba0c4db02@huawei.com> <43cf4e71-4dd4-dc37-a70f-553fe5cba126@suse.cz> From: Kefeng Wang Message-ID: Date: Tue, 3 Aug 2021 22:44:56 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: <43cf4e71-4dd4-dc37-a70f-553fe5cba126@suse.cz> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Originating-IP: [10.174.177.243] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To dggpemm500001.china.huawei.com (7.185.36.107) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2021/8/3 22:29, Vlastimil Babka wrote: > On 8/3/21 4:24 PM, Kefeng Wang wrote: >> On 2021/7/29 22:03, Shakeel Butt wrote: >>> On Wed, Jul 28, 2021 at 11:52 PM Kefeng Wang wrote: >>>> On 2021/7/28 23:53, Shakeel Butt wrote: >>> I don't have a strong opinion on this. Please send a patch with >>> reasoning if you want WARN_ON_ONCE here. >> Ok, we met a BUG_ON(!PageCompound(page)) in kfree() twice in lts4.4, we are >> still debugging it. >> >> It's different to analyses due to no vmcore, and can't be reproduced. >> >> WARN_ON() here could help us to notice the issue. >> >> Also is there any experience or known fix/way to debug this kinds of issue? >> memory corruption? > This would typically be a use-after-free/double-free - a problem of the slab > user, not slab itself. We enable KASAN to find whether or not there are some UAF/double free, no related log for now. > >> Any suggestion will be appreciated, thanks. > debug_pagealloc could help to catch a use-after-free earlier OK, will try this, thanks. > >>> . >>> > . >