Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp2166836pxb; Fri, 25 Mar 2022 12:16:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwznEIWI/69d7m/G8YNLPqxdS0/iVjAR1zpZBhp6nC2EOrkPYcSbFurPqB+kmcpaeMmNii3 X-Received: by 2002:a17:90a:7e8b:b0:1be:ef6c:9797 with SMTP id j11-20020a17090a7e8b00b001beef6c9797mr26417310pjl.183.1648235805574; Fri, 25 Mar 2022 12:16:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648235805; cv=none; d=google.com; s=arc-20160816; b=H/GpOWwY8T0wVAw8EM9P8g0aj7qDZOemq1RsGtrIgCCnxPJRBbukoFT4tb0AoICBWS a7Zq94jI2SC7kOYhKMyGDiWg+3MKC18hBc6UmLFfdJYVCKsTQCF/BLLAifkGUt2DrGyO LBuOA7EASLSxkywOjKsuym7Iu6Rerr/oOlVY6JK5zaK5Xz5EdgOXqFAi3tiiDejF2hkq UObrzbeMOlEHncd/hNkbi8ZdVWfrxz9RySF08mqr/hRVhM+WljQHUkNH+UDIbG0g0V+Q Ohazo7SvOKNfMYBC1ARfrgDnk7kXw2fcZquiG8U81NUzWd2fGR14AR6j9J5LDbESA1Nj VvtQ== 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=9fBzBNoKgFxLGcdpmnlK+MOCq0r40QxmLlPK5Ug935A=; b=gBVj9u+Wpx3OyIFPLuOiBcAmzvOaRzOPTYrv6KCm8Leui/KVMPEOV9NizfFxDhvMo3 mlAVVsCsT7BflRLQ5EMSSDK095G4upvYgAwWH4lQHW+NJOLpJcPoFiav13X/PZ1f0ZxI ahVqrtBMjPvPL2ijy+EA18Uyuo7p7xpNxnfAyVKOHK+kIlbBte3WhtVVp0ARxEmvbEfr M8wN1OmHimnP7sfeMwo9KgJIHm7r5VPXaBjlga2oF3s5degv2SLl5huCdxagJibmLj5U KCcztqbmixrBeV6gvQVWH9W8jPl/Y6zNfhSNkxoht3DfuvEp6M5jcXwYjWmXH7Sa6yJ/ BUWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=ad3BgfB5; 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 Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id bh3-20020a056a02020300b003816043f15asi3370658pgb.847.2022.03.25.12.16.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Mar 2022 12:16:45 -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=@linux-foundation.org header.s=google header.b=ad3BgfB5; 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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A45C522D64A; Fri, 25 Mar 2022 11:21:15 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241863AbiCXDHI (ORCPT + 99 others); Wed, 23 Mar 2022 23:07:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35558 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232209AbiCXDHD (ORCPT ); Wed, 23 Mar 2022 23:07:03 -0400 Received: from mail-lf1-x129.google.com (mail-lf1-x129.google.com [IPv6:2a00:1450:4864:20::129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D7E879548F for ; Wed, 23 Mar 2022 20:05:31 -0700 (PDT) Received: by mail-lf1-x129.google.com with SMTP id a26so5805228lfg.10 for ; Wed, 23 Mar 2022 20:05:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=9fBzBNoKgFxLGcdpmnlK+MOCq0r40QxmLlPK5Ug935A=; b=ad3BgfB5qwNLDlYwYozBzXijd7DTY4dACXftQmRIKeYQVWoX0P864C4A4BNhxDvrxZ zkQHQRTpmBxLZKFNhqbsWe8ygl/ECRV61HlHbVNtH3tSg4g+zzvULbxFfCpVYljKn7Bu C4WisUApGmIms75xiP1cRui/IJTTj/TsDZhaU= 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=9fBzBNoKgFxLGcdpmnlK+MOCq0r40QxmLlPK5Ug935A=; b=yzdQteS7lqJWZsjCsxLU5d60Sj4oLaYlylKP9t6ZtJA6JKUoqO52jGCEvwxDybm33n tbw6p09Gcu9Yu+y8Lp6pkNfOrV7R931lCXL4aKiKQd8Zv6OWK5IEOMpjVWuB7zI38jBy 35XFXD278Bz2SxywMXdBUNu9btbBolvAYLLZWeFXrXjE63YZ4Te6AT/Xdn3xOW2q/Rjy ZeH5FLOZVvuHoBabTUC62pSkhsHc7o9pDvmncrGqMguANVrI2lKR+w8UfmLoASPtiVYM T9gbyMfDT22ajhnVpQF0y+h6lfMbI2YlxWPpkDMEoEHbffwhVsZLnrWtQDrWy4tD5k0o yokQ== X-Gm-Message-State: AOAM532uZjnB/+Xl70o6OdnGj6q9HbACHrKTAXgocQSdWEqk9rGSo2WV 3GnrR0DogtZt2IO9MtYLpk4603awohUToeGJNHA= X-Received: by 2002:a05:6512:68d:b0:44a:cc2:78b5 with SMTP id t13-20020a056512068d00b0044a0cc278b5mr2106247lfe.43.1648091129503; Wed, 23 Mar 2022 20:05:29 -0700 (PDT) Received: from mail-lj1-f178.google.com (mail-lj1-f178.google.com. [209.85.208.178]) by smtp.gmail.com with ESMTPSA id bu20-20020a056512169400b0043eaf37af75sm166248lfb.199.2022.03.23.20.05.28 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 23 Mar 2022 20:05:28 -0700 (PDT) Received: by mail-lj1-f178.google.com with SMTP id q5so4416289ljb.11 for ; Wed, 23 Mar 2022 20:05:28 -0700 (PDT) X-Received: by 2002:a05:651c:1213:b0:247:e2d9:cdda with SMTP id i19-20020a05651c121300b00247e2d9cddamr2578934lja.443.1648091127827; Wed, 23 Mar 2022 20:05:27 -0700 (PDT) MIME-Version: 1.0 References: <000000000000cabcb505dae9e577@google.com> In-Reply-To: From: Linus Torvalds Date: Wed, 23 Mar 2022 20:05:11 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [syzbot] general protection fault in list_lru_add To: Muchun Song Cc: syzbot , Andrew Morton , Linux Kernel Mailing List , Linux-MM , syzkaller-bugs Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, 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 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. Linus