Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1285022pxb; Thu, 24 Mar 2022 16:54:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxQU94WL0BFFQikgB3ivg7caEbiFQvcXhOxlCheUbBGxfN0pQqHuFDTZw1eyaYgTjNp1wsL X-Received: by 2002:a17:902:f54e:b0:154:8219:ce02 with SMTP id h14-20020a170902f54e00b001548219ce02mr8838006plf.62.1648166047640; Thu, 24 Mar 2022 16:54:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648166047; cv=none; d=google.com; s=arc-20160816; b=kdkXUHtofTfU4L8VOR1EGNdfl84yZXQcgB1HeYzQEQOKnFJ+r+UU0rFTP7F3euihS8 nGuP2gjUzZSiFbaxPlmYlSudbNYQTixCAs9sNWb8tqLmBryLPQRk9SX4yRrE+uRnQbru 8w1+GuBdq8H9I6irWri3YBH50tyt40hyWmxjyvoMtV9v0xz2K1D4LJqTCynRVvxWVDeH oEpcZoI5yjIWvUs2+gOgcXiAFETSx5U3Dvx/pjKKmjQD9rU7EuSmyTbDZTJ7NLL/1Gao +rayN+l7sTyjYvBjDejUKyQz8T4klFt4N4ZqpDnh2YTUGSyx6rNNpIpWB2BwOfVRmeoZ 6I9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=U0rTbwDMd/5uQMVxOHrK8h1z3AEXugxrJS5vU8Jbm2s=; b=s1KzYDG1RE9Y5qfP/CNmHn4PbwK+jHRDl/jYB9gzhqrEzqh/C8bQgWRGuj56UdtlrJ QkSy2GFDytM84TgHXVZXiGPW2EGIC/ECsvIHIzl5+mvZCKKQyu03k7sUmSHfNOXtgCDF joVra3T5fUnLv4yPHgwDwHB461P5QRa9G4/570XjhCZbywt5lb3Cxw6/oa2uSYZxeL09 ZQVzU5gz1c1BKNt77YmdzE0HRkMQ9UBeQQrOXXF8jBt1O+bTLp6clHxiCO/YDiNH00C+ 44xSvqZwOPMtzDyEjemnokbeVccOkjTObp2qtlgRCRWKZKT9U0F5jfA0+y9Py7jPlsF7 kp8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bytedance-com.20210112.gappssmtp.com header.s=20210112 header.b=kfqxIL1G; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=bytedance.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t13-20020aa7938d000000b004fa3a8dffe2si940064pfe.153.2022.03.24.16.53.53; Thu, 24 Mar 2022 16:54:07 -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=@bytedance-com.20210112.gappssmtp.com header.s=20210112 header.b=kfqxIL1G; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=bytedance.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349014AbiCXIqb (ORCPT + 99 others); Thu, 24 Mar 2022 04:46:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50556 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346126AbiCXIq1 (ORCPT ); Thu, 24 Mar 2022 04:46:27 -0400 Received: from mail-yw1-x1133.google.com (mail-yw1-x1133.google.com [IPv6:2607:f8b0:4864:20::1133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2B55A9BBAD for ; Thu, 24 Mar 2022 01:44:56 -0700 (PDT) Received: by mail-yw1-x1133.google.com with SMTP id 00721157ae682-2e5e31c34bfso43189757b3.10 for ; Thu, 24 Mar 2022 01:44:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance-com.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=U0rTbwDMd/5uQMVxOHrK8h1z3AEXugxrJS5vU8Jbm2s=; b=kfqxIL1GEmSLP50aI2SsObytHgtl329v2FWvuAW1mh0ud7q9P0uRYiVA994vHaIHJn gTJ5lkc4jQlBX7sKoXh2bB9jqrxu4B7xqCUcjI/SSWb706JjJNiMNswQbZsPia2vTyfz FxIXSMECfOlf7af27zy4L46FQkTtiaPH6chO9Ydli0JWJ35NX7GnUpteKQychaUSLJD3 LEywWp/+u1C9pRYp6dgeyNN2o7JX8QpZBmvUPun7PuNn21HlvqvBZHwkPQ0foRueZxEt rXBT7J1beSNed1J8Hv2kYmMXDPWp+z+8uJXGmCBlywtIJQforipYaVDmnFUxxRVQ1idx FWAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=U0rTbwDMd/5uQMVxOHrK8h1z3AEXugxrJS5vU8Jbm2s=; b=o75KkeQtbkI0yijH3Re2g56G6PV0oCd4dpey0zmRhwto0uaoWRPOfp8ZTtKyNZQqox dSQWJrL863A9XaAH13auWDwI1t6gwE/s3fUatQBqThQPZd5tceWtoF+nH8PCf4E08ciR DyZzXYPOdU1CBAI2zScU8B2hRf31+Q5BVgM/EWBywOauTwEz1ysM6aWh7IcUkaLq14Aa CZ/vvY3hRAxFeUZfTbWp85xM/Xe6e9Yd+4f03O8k8J1DYbVcFpPFbkw4Ti/OKEor/LGD tjcPz5CPyVAomHRV9VDq3i+tg8Rw9h9D368N8wcLl9WzvnAdPlBpFpYeSANIENRgvJMA m3Wg== X-Gm-Message-State: AOAM531+InNZIxHJSOKqTiGSXRykgvezH84U1LZ69dj1Ha8V3IJYcG+x 7KDzRCygyQpKpaOthuqijkh8CEzGZX1O91uLAfFOgQ== X-Received: by 2002:a05:690c:827:b0:2e5:a53b:cffc with SMTP id by7-20020a05690c082700b002e5a53bcffcmr3753085ywb.31.1648111495436; Thu, 24 Mar 2022 01:44:55 -0700 (PDT) MIME-Version: 1.0 References: <000000000000cabcb505dae9e577@google.com> In-Reply-To: From: Muchun Song Date: Thu, 24 Mar 2022 16:44:18 +0800 Message-ID: Subject: Re: [syzbot] general protection fault in list_lru_add To: Linus Torvalds Cc: syzbot , Andrew Morton , Linux Kernel Mailing List , Linux-MM , syzkaller-bugs Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE 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 On Thu, Mar 24, 2022 at 11:05 AM Linus Torvalds wrote: > > On Wed, Mar 23, 2022 at 7:19 PM Muchun Song wrote: > > > > After this commit, the rules of dentry allocations changed. > > The dentry should be allocated by kmem_cache_alloc_lru() > > Yeah, I looked at that, but I can't find any way there could be other > allocations - not only are there strict rules how to initialize > everything, but the dentries are free'd using > > kmem_cache_free(dentry_cache, dentry); > > and as a result if they were allocated any other way I would expect > things would go south very quickly. > > The only other thing I could come up with is some breakage in the > superblock lifetime so that &dentry->d_sb->s_dentry_lru would have > problems, but again, this is *such* core code and not some unusual > path, that I would be very very surprised if it wouldn't have > triggered other issues long long ago. > > That's why I'd be more inclined to worry about the list_lru code being > somehow broken. > I also have the same concern. I have been trying for a few hours to reproduce this issue, but it didn't oops on my test machine. And I'll continue reproducing this. Thanks.