Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp6519922rwb; Mon, 14 Nov 2022 22:50:38 -0800 (PST) X-Google-Smtp-Source: AA0mqf67zwkCYXsFPiNmnvB2AYxtoEeo/RF9tQMz4j0Jee4RqRYWJ06eU8Iymd96xOdm1GbH4QbA X-Received: by 2002:a17:906:1dd7:b0:7ac:a335:203f with SMTP id v23-20020a1709061dd700b007aca335203fmr12725433ejh.460.1668495038608; Mon, 14 Nov 2022 22:50:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668495038; cv=none; d=google.com; s=arc-20160816; b=al+4FHvCzL4qkiVFYvNZ6x83w/9z4yTl5tf2b4IdLn3VktlnMZ4oI/bv+AOFjWSTTN CLkcoXSHSz0IH6HsPfRVqbXhKuQqLaxdIM1zAgIULiz/CIb5t224vSRsWKGCZSzsNZmF r4Mzr/BjznpFkEHSmSLPXDSoP4acT9rh4drq37mpeltQioG6Po2v3aI0Z8KaP3R2MASg 6NKHGH3La63xCzgx+Avsh1ToRgl4n8FiGBDkmLROqd2KNzUNUHYxJNtZXwB4V6M9OyAN p6CJL68zysI2+hTYABCodWP/jmIN5hSx7KU3suhYIlxcH5dIE1AUUNDaxXdiHH32eGY5 I0SQ== 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=ZdzdAEDTp4IXZ6o8IRPqc08B1bs5p5D2LmF4e0f0f/0=; b=E5T7Wcfk/OTqcISEg1XMthY4Y6wuQZz9TLwg5Z+LDgeX3LWDerOG5svaNeK2t2ZvOZ wQ3F44U97abUdCkUw7jazQcGr3x9Q15Y60oBu0RwVxBkw38EqPyxxwJAMM/Aov5zEECf CeGPIo86cOmGhfl+EltmwH3fJM6DOX43W4vYowh6x58fPOyCoZmvs5FE6e5EGtEdDKdR 6z6qRrY6EqshA0ckYl79aDZouRp3RkjDlxuPiGFMrHKF6pn+n/uzsRKShWuaY5ciboAu +HpsNYTz3hFT6MOgE0BZyzpcwfN1+3uGxS4T8fxQbEOf5Wh4M+UPff29VjWbHNvvut5u M6cA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=lSFfp1cV; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y22-20020a17090614d600b007ae24f7774bsi8260947ejc.168.2022.11.14.22.50.16; Mon, 14 Nov 2022 22:50:38 -0800 (PST) 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=@google.com header.s=20210112 header.b=lSFfp1cV; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230250AbiKOGMi (ORCPT + 89 others); Tue, 15 Nov 2022 01:12:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46478 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229455AbiKOGMh (ORCPT ); Tue, 15 Nov 2022 01:12:37 -0500 Received: from mail-oa1-x35.google.com (mail-oa1-x35.google.com [IPv6:2001:4860:4864:20::35]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7AFFF2AEE for ; Mon, 14 Nov 2022 22:12:36 -0800 (PST) Received: by mail-oa1-x35.google.com with SMTP id 586e51a60fabf-13bef14ea06so15162439fac.3 for ; Mon, 14 Nov 2022 22:12:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=ZdzdAEDTp4IXZ6o8IRPqc08B1bs5p5D2LmF4e0f0f/0=; b=lSFfp1cVhVvY0nPB8cFYSrRGxuwWsgf4A6qX3A9M1F5GPPoqEHlnBLwHftVSWUUqtN LmuqXbiwxJx5W4uBFpY4exoM0rI5kDOnNc4azCxHTtB0RiYGH1luul0jkgZVpLbTLI3C 9A1tc22pWK62q9gf1yRjfljtohlCzsAGcdQflzs276hu25IwlbOCkZxYrq7jQPT1GQQx OX3GZ8nDrSFudb4jZ9189Xk4NZjW6xRWfUinLgxpCuqeaUVXoY4gGiXSwyAWfHXD0Om4 ABr46wvFsxN1bgvy2EJMgRdKt8X9K1NfWHfNbXJF928e8TEpuY+l9jr3/FalfGsyT4bX T6bw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ZdzdAEDTp4IXZ6o8IRPqc08B1bs5p5D2LmF4e0f0f/0=; b=nFILsi1EOj6yrXXy+9237Mlu6NX2qGY4cT7eJkDvm2ekfq3+dMAfPrG2mETMpkqk8N /SMjuCWgybNap2CcGlAd0Kq72FnY5uIN+ur1Ipu4j8fl5QaZuDMCQrvYqJl+rpEJRqi1 HgaytqWgK3Cv7rfVo07X0bNdfqwcsYcJJQh3vUs1c+x22/hflcgcX2q09VM7VMwV8uK9 V3BBRESm06gKk5dHG/VA2zs8yx9oPpla7ZN6s+trTpDbUdAu+oKN+1aPQHcxuloSUlQD B9IYyTNEp69IE4DlgWR9Qp1qRrUJbrlTemAfu183OoekMTLe7RWkX9w+V+RXXEONUDs+ pWeg== X-Gm-Message-State: ANoB5pk1hpVm/lnAN74duQ7d14HLDW61e2FjrQcgCGbLrRiqyu3J3DgW uoSPuABXCnu4AROMH4gWkIU2NmxAtCwqrSocHZHA1g== X-Received: by 2002:a05:6871:4605:b0:13d:a22b:3503 with SMTP id nf5-20020a056871460500b0013da22b3503mr45269oab.233.1668492755625; Mon, 14 Nov 2022 22:12:35 -0800 (PST) MIME-Version: 1.0 References: <000000000000e4e4fe05ed5bf2b0@google.com> In-Reply-To: From: Dmitry Vyukov Date: Tue, 15 Nov 2022 07:12:24 +0100 Message-ID: Subject: Re: [syzbot] KASAN: use-after-free Read in kernfs_activate (2) To: Tejun Heo Cc: syzbot , gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL 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 Mon, 14 Nov 2022 at 22:42, Tejun Heo wrote: > > On Sun, Nov 13, 2022 at 07:40:56AM -0800, syzbot wrote: > > Hello, > > > > syzbot found the following issue on: > > > > HEAD commit: 59f2f4b8a757 fs/userfaultfd: Fix maple tree iterator in us.. > > git tree: upstream > > console output: https://syzkaller.appspot.com/x/log.txt?x=14e836fa880000 > > kernel config: https://syzkaller.appspot.com/x/.config?x=480ba0fb2fd243ac > > dashboard link: https://syzkaller.appspot.com/bug?extid=782984d6f1701b526edb > > compiler: Debian clang version 13.0.1-++20220126092033+75e33f71c2da-1~exp1~20220126212112.63, GNU ld (GNU Binutils for Debian) 2.35.2 > > > > Unfortunately, I don't have any reproducer for this issue yet. > > > > Downloadable assets: > > disk image: https://storage.googleapis.com/syzbot-assets/619de907b82c/disk-59f2f4b8.raw.xz > > vmlinux: https://storage.googleapis.com/syzbot-assets/bcd0dc7d69ef/vmlinux-59f2f4b8.xz > > kernel image: https://storage.googleapis.com/syzbot-assets/a8dbe0bc7228/bzImage-59f2f4b8.xz > > > > IMPORTANT: if you fix the issue, please add the following tag to the commit: > > Reported-by: syzbot+782984d6f1701b526edb@syzkaller.appspotmail.com > > > > usb 4-1: Direct firmware load for ueagle-atm/eagleII.fw failed with error -2 > > usb 4-1: Falling back to sysfs fallback for: ueagle-atm/eagleII.fw > > ================================================================== > > BUG: KASAN: use-after-free in kernfs_root fs/kernfs/kernfs-internal.h:66 [inline] > > BUG: KASAN: use-after-free in kernfs_next_descendant_post fs/kernfs/dir.c:1289 [inline] > > BUG: KASAN: use-after-free in kernfs_activate+0xd0/0x3a0 fs/kernfs/dir.c:1344 > > Read of size 8 at addr ffff888079194b10 by task kworker/1:12/5383 > > Likely the same one as: > > http://lkml.kernel.org/r/0000000000003a95ce05cd867417@google.com > > This is a bug on the firmware loader side. #syz dup: KASAN: use-after-free Read in kernfs_next_descendant_post (2)