Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp411262pxv; Wed, 14 Jul 2021 06:53:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzy368g8+0sHX04z45n/i7wEblnbQcEYcr5M6qOUljMwvHycxAYoSzqc4MYAF1Fk9uDv/mM X-Received: by 2002:a50:8e19:: with SMTP id 25mr13991995edw.11.1626270814069; Wed, 14 Jul 2021 06:53:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626270814; cv=none; d=google.com; s=arc-20160816; b=aAOwF0owD76cOqt8PEuTyF2oLnOR6AhIPmqPGSEH6CaUhCDlGU92q86GUA57GcpQE8 Pl82IknAh8rMsst3UJA0u2Y9HEZ8Nd4S0eqYyyBf2BPBhWFns0m8ZQc9eg+jCtkMTRib wS9A9hj/Ixx05yxj2u9F8Xg6oP8HI9K9zqGf4EDaLOyV+1bCfF4Yx4x/u5y7DVHyj87h i+0ghBSTi1L2NQwyWp0QE++ltTC/C6mTrnU/cIxRN296A5uJjjMzxjMfK9n0M+4fmv85 cNNyoyhAzp0oDaxZ2fBOlxhf1um4g/l3yOWdcPPb0fxfH1lsIL/q/OxijVxfuytt0M3q 4DTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=nrC+eTQ/f8cYDvQHdayG6DqOf5v1vX09q/JZ2wKI5+4=; b=ab8uVLKe5WWJ24r/jiJWbsO9KqKyKxTqIxFa3Y3h5jzzSa6CHnxG9nsAP593et8oVN AZykNk7z2BzvbyzMhS8FzFLNaEcXogtgOe6YBGljH+6BPG3HAgW8YpPSiTwMqWrbYdg9 h2qF9rgozCaT1FkR0bPXXwWOVHYeXxo9lwhueE+jOhoUBZVHKb68K2aSxpBnNnWc/s0D +NmqXeaIOjqYZoYpD7/FG6gxZT/d9wEHVLQY6/TNLxv8p8TFPj4Gh1dlnM7dIuGT16Qa Z34QCgS+v7OOqw7F5ELLTOiQEOadsI4M2fAmaHgYGf5HXouYPQrrDnZGwQ0RzYmVHfop wFxw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bz6si2868038ejc.610.2021.07.14.06.53.09; Wed, 14 Jul 2021 06:53:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232029AbhGNNyz (ORCPT + 99 others); Wed, 14 Jul 2021 09:54:55 -0400 Received: from mail.kernel.org ([198.145.29.99]:43832 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231478AbhGNNyy (ORCPT ); Wed, 14 Jul 2021 09:54:54 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id D36C7613BE; Wed, 14 Jul 2021 13:51:59 +0000 (UTC) Date: Wed, 14 Jul 2021 15:51:57 +0200 From: Christian Brauner To: syzbot Cc: brauner@kernel.org, dvyukov@google.com, gregkh@linuxfoundation.org, gscrivan@redhat.com, hch@lst.de, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, stable-commits@vger.kernel.org, stable@vger.kernel.org, syzkaller-bugs@googlegroups.com, torvalds@linux-foundation.org, viro@zeniv.linux.org.uk Subject: Re: [syzbot] KASAN: null-ptr-deref Read in filp_close (2) Message-ID: <20210714135157.mz7utfhctbja4ilo@wittgenstein> References: <00000000000069c40405be6bdad4@google.com> <000000000000b00c1105c6f971b2@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <000000000000b00c1105c6f971b2@google.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 12, 2021 at 09:12:20PM -0700, syzbot wrote: > syzbot has found a reproducer for the following issue on: > > HEAD commit: 7fef2edf sd: don't mess with SD_MINORS for CONFIG_DEBUG_BL.. > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=178919b0300000 > kernel config: https://syzkaller.appspot.com/x/.config?x=20276914ec6ad813 > dashboard link: https://syzkaller.appspot.com/bug?extid=283ce5a46486d6acdbaf > syz repro: https://syzkaller.appspot.com/x/repro.syz?x=120220f2300000 > C reproducer: https://syzkaller.appspot.com/x/repro.c?x=115f37b4300000 > > IMPORTANT: if you fix the issue, please add the following tag to the commit: > Reported-by: syzbot+283ce5a46486d6acdbaf@syzkaller.appspotmail.com > > ================================================================== > BUG: KASAN: use-after-free in instrument_atomic_read include/linux/instrumented.h:71 [inline] > BUG: KASAN: use-after-free in atomic64_read include/asm-generic/atomic-instrumented.h:605 [inline] > BUG: KASAN: use-after-free in atomic_long_read include/asm-generic/atomic-long.h:29 [inline] > BUG: KASAN: use-after-free in filp_close+0x22/0x170 fs/open.c:1306 > Read of size 8 at addr ffff888025a40a78 by task syz-executor493/8445 #syz test: https://git.kernel.org/pub/scm/linux/kernel/git/brauner/linux.git/ 595fac5cecba71935450ec431eb8dfa963cf45fe