From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0519AC07E9C for ; Wed, 14 Jul 2021 13:52:06 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E6CB161374 for ; Wed, 14 Jul 2021 13:52:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232058AbhGNNy4 (ORCPT ); Wed, 14 Jul 2021 09:54:56 -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