Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp3103807rwe; Sun, 16 Apr 2023 11:47:06 -0700 (PDT) X-Google-Smtp-Source: AKy350bvRt2Qd9aNRKqbPopr03r+sXCZcr4mWfZSPVBV7Af1SCbFB+RDCXYR3ArDte4zJlET01SS X-Received: by 2002:a17:902:ce86:b0:19a:b427:230a with SMTP id f6-20020a170902ce8600b0019ab427230amr12233464plg.63.1681670825840; Sun, 16 Apr 2023 11:47:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681670825; cv=none; d=google.com; s=arc-20160816; b=J5+VLNet5ZVWCH44V0pH+jLA6dfmInaSELfzT/dRU2wuagEAgJtXTjwiUItHZf/JD1 U8X8IS4qSI7R7YXnvmlA/UqgkoDMP6d5FktKTDK1Q88ngGttVVXM8UGNO4pUPGEso4d5 ye4Je4C5TDqQMAU8VXEwvXKcuNl8sBYETk8IJqULkoDZscwk8R7LFi25vc0bpmQAA6pJ T09+9hcOl9VOmtvH3NehgilaBJrR4SbwOnLrdoz6Hh38h37QClfxuFtPxDiJS1T/SmZO lgB+hErfS6V+TrSSH3svMslDkXRpOkoMj5ki34LPL597HNC7of1/3IU9nxHSHq9xgJCg bGvQ== 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=rvo+aF11W6hh3iexmYRbcS5LJGG7JheU2Llrlh6viK0=; b=zxEpfjpUfGSH3Uj3SU5GdBUekORUn6hOk4b8uCU8wCn17pHorjqT0qNczvf+x8wfBr sPJyte/1j0nxWkPIm6hhSWJGif5J+j/eUQxCIPhFNIOpu0PVMaZ9g+MzkiY0VqJCkTFr xKW+8pRzm2Cl72z+KlkYuRhmX3Grnb8ceVsbSLzFG/2uDb7G41WZ2QUpYTWyW63Wx0js T1eVugkJDrchJn/9IYOMZrmOl9yGdLnFAYuN2U711xDVuMs3/2uRNplTo+nWF1+7ewYq r7zkhSCzWnf9Y3pc067Hnl11lfAq9h8VXM2A1sJbIf8X8KfXSM9sWry3nnT6yxqXGyDy bwYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=ZnRJwT8s; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l3-20020a170902f68300b001a1b776489dsi10834139plg.300.2023.04.16.11.46.51; Sun, 16 Apr 2023 11:47:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=ZnRJwT8s; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229794AbjDPSdk (ORCPT + 99 others); Sun, 16 Apr 2023 14:33:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43698 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229500AbjDPSdi (ORCPT ); Sun, 16 Apr 2023 14:33:38 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 97083106 for ; Sun, 16 Apr 2023 11:33:37 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 3207F60F5D for ; Sun, 16 Apr 2023 18:33:37 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2AE45C433D2; Sun, 16 Apr 2023 18:33:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1681670016; bh=YlCs2n5EALDS5s68UQrGs8UJMvIrgeYJRA21TLlnrN0=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=ZnRJwT8sgCw/ejrXUHDjYB/eP7lijyMB+3ylaEZ6+MWZuEiQu/DaC8FWk/mCvyeJL yO/JKjgmW0yLzhWN7of/mNXBxC5GE0wmsbOC8SYGrSf0tGHR6GE/KaAr3OfknHmazI 6odrOytFLnI5HVyI/cEFOPCy5bnBp+xm/9yY+hRk= Date: Sun, 16 Apr 2023 11:33:35 -0700 From: Andrew Morton To: "Zach O'Keefe" Cc: Yang Shi , Ivan Orlov , himadrispandya@gmail.com, linux-kernel@vger.kernel.org, linux-kernel-mentees@lists.linuxfoundation.org, linux-mm@kvack.org, skhan@linuxfoundation.org, syzbot+9578faa5475acb35fa50@syzkaller.appspotmail.com, Mike Kravetz , "Kirill A. Shutemov" , Matthew Wilcox Subject: Re: [PATCH v2] mm: khugepaged: Fix kernel BUG in hpage_collapse_scan_file Message-Id: <20230416113335.caeafda1328fdd4bfe2406e8@linux-foundation.org> In-Reply-To: References: <20230330155305.423051-1-ivan.orlov0322@gmail.com> <20230331013301.ecgkjymaf3ws6rfb@google.com> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham 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 Circling back to this fix... The BUG() is obviously real. We're unsure that Ivan's fix is the best one. We haven't identified a Fixes:, and as this report is against the 6.2 kernel, a cc:stable will be needed. According to the sysbot bisection (https://syzkaller.appspot.com/bug?id=7d6bb3760e026ece7524500fe44fb024a0e959fc), this is present in linux-5.19, so it might predate Zach's 58ac9a8993a13ebc changes. But that bisection claim might be misleading. And Zach is offline for a few months. So can people please take a look and see if we can get this wrapped up? Matthew, the assertion failure is in the VM_BUG_ON(index != xas.xa_index); which was added in 77da9389b9d5f, so perhaps you could take a look? Thanks.