Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1057085iob; Fri, 13 May 2022 21:25:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz501HLDtKF2EALKa1Dp9HwvnOSyrtGFRu3Anqa/w93qGt4wF6M1wIQ6Z64sRS2ZmDBv0RW X-Received: by 2002:a05:600c:4f8d:b0:394:939f:bd2f with SMTP id n13-20020a05600c4f8d00b00394939fbd2fmr17381299wmq.16.1652502322689; Fri, 13 May 2022 21:25:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652502322; cv=none; d=google.com; s=arc-20160816; b=NgagnSesuPeafVg3e08xZnE5gUgLHoRipYycs/gghbz+j2PtI2iP0T4EnT9DNsdTIq P7QdjDtd409Kt5I2xO2SXkUFBSi1bmzitsXaxzEBMMBcO2SAi+jV1VZsDBsxPAH8DTac iH9xfP+U/jAE7+NLpO0qB4w8t3VXjygmhcrXec66DkAXn0NG5wJSiSOU3uZ2gpfVor1j 1GNNV2gMt6NUbuRh4IVGBOJLnyilCTvVGg+ztSJIMppDhkdxZxbkZbQirsF6kVKaUlrA KxdZJ74852dC76V7NgxMJ7B7BKz7S7lP9LSQbFUkKjlkN2ZkdcET8tZqevZsBSI0ev9J Airg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=ZloPgmcBW7rDccqP9vM6y3wEoZ73sfW7R4vgGkgOM50=; b=cmuKclqvolc7FTqdrV9nsoTrGB2ICqRqChRG4j742In0Z2NjRdOSIlz7/mBkB4r6Ol Tq4yBb9HmH+qVVWXEYzNUkvS9GcAlgr3b3fF7upVJJvi2m4rWFYT+aVHtAiHP5fgfX8z pnURsE6jCLdud4BY/49TM7QdFztyFa9hXMw0dW9AkUcck9cY1cuHaIcyVjpWRoZh62d1 q1jrUK9nLkdO4pO9xA4pDL2nNGC7iukeJN4f2n76DT3yS5l4+HtRDtde52iWMPfUanZ/ Ajaq0+WbGeMf77hEr9nmQ04gPUg/dInku2DoIDgFdE+xEcIAqMsStQV7Ggf8v/SKnp15 2bjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=pYJQJ1zM; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id v27-20020a5d591b000000b0020c7286760esi3602744wrd.792.2022.05.13.21.25.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 May 2022 21:25:22 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=pYJQJ1zM; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A6D7536C9F6; Fri, 13 May 2022 18:04:28 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229518AbiENBER (ORCPT + 99 others); Fri, 13 May 2022 21:04:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57640 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229490AbiENBEP (ORCPT ); Fri, 13 May 2022 21:04:15 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A2281349108 for ; Fri, 13 May 2022 17:39:18 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id BDB65B8324B for ; Sat, 14 May 2022 00:18:14 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id F2731C385AA; Sat, 14 May 2022 00:18:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1652487493; bh=kw3CRHi4r3zW24bJ9aMXizk9Hol6hDRCL5ptaAt/ldM=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=pYJQJ1zMoJadGRgSmqDeHSNHpimlTYl8VVS+moIM1ed2Y2BVr7ddCBr/x6nJPh1WF gnNRVqVi0H63lD3X6rthMOfaygHE2kk37joJ20Ti3ySjfeRQ/c6UcQPnHSPxwlEcjQ VZWoBVPghrfFIfz7lTuaElxlzaLLFzeXMKe5/djQ= Date: Fri, 13 May 2022 17:18:11 -0700 From: Andrew Morton To: Minchan Kim Cc: 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 , John Hubbard , David Hildenbrand Subject: Re: [syzbot] WARNING in follow_hugetlb_page Message-Id: <20220513171811.3604fb2da04615100c5ed160@linux-foundation.org> In-Reply-To: References: <000000000000ef451a05dee0f2b1@google.com> <00000000000077377c05dee75f63@google.com> <20220513102617.c464c4f566052838e911a3ec@linux-foundation.org> <75f09063-d184-7d44-17a1-ed04be5eb953@oracle.com> <20220513161910.d1b73583cdb2e33562aa86e5@linux-foundation.org> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE autolearn=unavailable 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, 13 May 2022 16:54:06 -0700 Minchan Kim wrote: > > > >> has been there over a month so I guess it's something else. Does > > > >> someone have the time to bisect? > > > > > > > > I can recreate in my 'easy to debug' environment, so I can bisect in > > > > parallel with other things I need to do today. > > > > > > > > > > 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) > argh, I meant to check that change but the grey cell died. I'll bring it back, with --- a/include/linux/mm.h~mm-fix-is_pinnable_page-against-on-cma-page-fix +++ a/include/linux/mm.h @@ -1635,7 +1635,7 @@ static inline bool is_pinnable_page(stru int __mt = get_pageblock_migratetype(page); int mt = __READ_ONCE(__mt); - if (mt & (MIGRATE_CMA | MIGRATE_ISOLATE)) + if (mt == MIGRATE_CMA || mt == MIGRATE_ISOLATE) return false; #endif _