Received: by 2002:a19:651b:0:0:0:0:0 with SMTP id z27csp839775lfb; Fri, 13 May 2022 21:26:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzXFjfxerUUJhQjyrKLZH+QuA9dweiY8AsuVlqdZtRM/qyFcr92Wi/6oz/mO+3obKPL6L0b X-Received: by 2002:a05:6000:15c5:b0:20c:565e:fd64 with SMTP id y5-20020a05600015c500b0020c565efd64mr6521958wry.499.1652502383106; Fri, 13 May 2022 21:26:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652502383; cv=none; d=google.com; s=arc-20160816; b=Ir18NhYX+w1n2V9YalVQinKJkTA4USb2nDwgd2fYIXa88pz6KrvkQGM8U89cVXaBWQ Y3RmrusZgFKUDREelpgGwxpNcioiHcglNCFv9mBTPTv68uaZLKhRB816kPblA4PD+OPd T25Y1rIfDFCl2f6r+fz+ueMYsGNPB0D84Dcq/QOxL+YhUltEVWbHAol3r1I02ccZlQMn 6oDkT2cAXwq517pDd9128QeT6xvAJtJMFnsTOXzqHQsOb7t0BbIhHpZkyLXZ3KkQxeeq xVBIv+wDOwE0yLrAkASp2Z906sFMFk0R2XqD++0R+Y9xNahbf7dNo30JbZKlyM6sKAwK fP6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:sender:dkim-signature; bh=y+n1fPZT1zdS+lAHwbtnaHu3tkmXjTbbjBa7vPYlABo=; b=tiwFpmhR9JViFJJ+IcXWaPh0xhlNsyMfYf6QG0xc9xrWaRv13gylt1Hp/5vNW/XV+I io5mE2LxRbyYx7oVicrqCqR35fDrTqnrodPdTNujNISJ6NLGULvFJO0UEEPkmPHYORox MmyILcJ0dAYxXoSwRBRifDerw2LSOKh63N61Yhcv1lO59OqWp35IsajtS67wzz0jq8Js +jgpPGOsCNEstXnnsTV1lbe96kvmRSb5ZGeK2RpNdFXUrxgEv7nD3da3yyxd758G5LWL Lobc60Jbsr+UUjJvzlKG2B0t6yXKsu7WMDBZFXqTN7tqCqx6QDvT8rAVP/xFulKWFhmH dd5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=O6V92x54; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id u9-20020a05600c19c900b00393ec32d888si8087163wmq.197.2022.05.13.21.26.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 May 2022 21:26:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=O6V92x54; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 31EC6337558; Fri, 13 May 2022 19:37:57 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229798AbiENChy (ORCPT + 99 others); Fri, 13 May 2022 22:37:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57194 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229481AbiENChw (ORCPT ); Fri, 13 May 2022 22:37:52 -0400 Received: from mail-oa1-x29.google.com (mail-oa1-x29.google.com [IPv6:2001:4860:4864:20::29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3FB2B34ACB5 for ; Fri, 13 May 2022 17:39:24 -0700 (PDT) Received: by mail-oa1-x29.google.com with SMTP id 586e51a60fabf-d39f741ba0so12427536fac.13 for ; Fri, 13 May 2022 17:39:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=y+n1fPZT1zdS+lAHwbtnaHu3tkmXjTbbjBa7vPYlABo=; b=O6V92x54nhsbw+iIsi5VHLqlpU/25LrFdzgZySWoN2Jrfjv/G3KftonhcTmUy8+al1 WFE6Q+tE0l2iBl25sRgpQbo9qhWdx+7LQtZft6V5k/h/7WOZNGlG35S3sPrBgkgQs9hp 3tvilCQ/lgFTZeOe6BIxP5p34eS2/nfLcGGBAlSpH5WKPoPzQueO4EBtjraJShnZ0Puj JNLJIYxMRvMTsSMvBtIVlwZO5+dGqyE0RJY+fJ51cHSBbBgakP4QrXQDkjvt2Ofq5IbP 6iFY+2AcNfxSZg9S+opPYsWSgCUOx9dixE2DVScTOtJ1u5b9h9LKzZ0w8nUmMAEI9TQQ QhnA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to; bh=y+n1fPZT1zdS+lAHwbtnaHu3tkmXjTbbjBa7vPYlABo=; b=xfkaIIHc8bVbl/JDsKscJ/cLfqWY5ysvBFhWCqr9MG6k1OAYLWPI82t1hrlGORASnp ZAdxS8WnhZryCE4Lh9vKHsl88qfolrFCkqws360qOKsT9/wbm2Al5LKec7ODFURXnUEm /M6r/1U5jI0qclW25cHKTBrz+4l2UCGg9bFJu/TVGkR4LN5t9PRxuMmL3OJnuFQ0f3wH NS5DOaXhHNNdnFt9GDb4GTXObBbP8Zf8QCBj5aYs5c/zdIJLmL3TF86rHjr0RwGmhM9H Zuf1cRfd0R1w+jB9h3aZtr+gcR4cTrEPZAQ12S6ND7IsmcMT1BonnsNfOXxvJvBuLlD4 xp/Q== X-Gm-Message-State: AOAM5327V/WhxLl7uNaWFs5gIIhjPvE3lagJfpvutNRDaWxRqIE1cuIy AmyhqmIHG+uhHcD1mFCmhbY6aPAu7nw= X-Received: by 2002:a17:90b:3e8a:b0:1dc:9d7e:1e12 with SMTP id rj10-20020a17090b3e8a00b001dc9d7e1e12mr7400387pjb.58.1652487969532; Fri, 13 May 2022 17:26:09 -0700 (PDT) Received: from google.com ([2620:15c:211:201:1969:9b8a:5056:897b]) by smtp.gmail.com with ESMTPSA id n16-20020a6563d0000000b003c14af50607sm2160677pgv.31.2022.05.13.17.26.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 May 2022 17:26:09 -0700 (PDT) Sender: Minchan Kim Date: Fri, 13 May 2022 17:26:07 -0700 From: Minchan Kim To: John Hubbard Cc: Andrew Morton , Mike Kravetz , syzbot , linux-kernel@vger.kernel.org, linux-mm@kvack.org, llvm@lists.linux.dev, nathan@kernel.org, ndesaulniers@google.com, syzkaller-bugs@googlegroups.com, trix@redhat.com, Matthew Wilcox , Stephen Rothwell , David Hildenbrand Subject: Re: [syzbot] WARNING in follow_hugetlb_page Message-ID: References: <000000000000ef451a05dee0f2b1@google.com> <00000000000077377c05dee75f63@google.com> <20220513102617.c464c4f566052838e911a3ec@linux-foundation.org> <75f09063-d184-7d44-17a1-ed04be5eb953@oracle.com> <20220513161910.d1b73583cdb2e33562aa86e5@linux-foundation.org> <4809b134-a37a-50b8-4c25-44548bc1048f@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4809b134-a37a-50b8-4c25-44548bc1048f@nvidia.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 13, 2022 at 05:09:11PM -0700, John Hubbard wrote: > On 5/13/22 16:54, Minchan Kim wrote: > > > > I isolated this to Minchan Kim's "mm: fix is_pinnable_page against on cma > > > > page". Yes, the fat finger fix is in next-20220513. > > > > > > > > I don't have time to analyze right now, but can confirm that in the > > > > reproducer is_pinnable_page is returning false after this change when it > > > > previously returned true. > > > > > > OK, thanks, I dropped mm-fix-is_pinnable_page-against-on-cma-page.patch > > > > Seems like bug of the patch v5 due to change of this > > > > if (mt & (MIGRATE_CMA | MIGRATE_ISOLATE)) > > > > The migration type is not bit type so it shold be > > > > if (mt == MIGRATE_CMA || mt == MIGRATE_ISOLATE) > > > > Sorry for leading you astray by recommending the bitwise OR, Minchan. > I overlooked that point even though it was right in front of me. No worry, John. Anything else further can we get insight from the warning? For example, pin_user_pages going on against a hugetlb page which are concurrently running alloc_contig_range(it's exported function so anyone can call randomly) so alloc_contig_range changes pageblock type as MIGRATE_ISOLATE under us so the hit at the warning?