Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp415312pxv; Wed, 14 Jul 2021 06:59:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzrwXODDYdz7uyrFO5RKHPrD43BBSAY49lFFBmyZDzulqFivlxn4EfDyA4On5b65kpnS9xd X-Received: by 2002:a05:6402:1bc6:: with SMTP id ch6mr13695752edb.267.1626271165290; Wed, 14 Jul 2021 06:59:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626271165; cv=none; d=google.com; s=arc-20160816; b=Xn1j91SZUsqgNcipdOl50W9pzH+RDMAHSrXmIhJvMcMGVmka9jDogHYKl1oPRXOLZa NqQ0nmMbZwnmy0EFS+Nm1cMQxN443kK92Rz5iqReaAYxUQoKWa361uou37oay9H0ozSt G64w0IR9IC/FYVy4bUEzicKqY4ByiN09f6OYDkgPVq+kfb8nJaO3GswJhzfRuwSqy19I RozUqTOww0EXVNbl/Seow9jVV4ChLLDJIkCfl7NpEZAqUxqDcVELTtCY8NOcErSJubnI cUDRj6EXlgXcG+OloR+jjxXtpVhWUBEI2dDSmseXpLBLRN7SlHioirq0r6xwITA2fB0b oBeg== 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=xFTKPPQdntG39syDIA1PMf2K8U0Fb3tqX7UBImk5mU4=; b=GmlhRiBjCU+XxsBcdY3H0xGV+z3wO4O/mUBA29N6GIEKKyJJoC7+Yrb5WPdqwVrP1d Dovnjymf7mKsMWYXLHEplPoNdXmYr+regeui3UvrL4t2Xu8qWhETiUYPbZyfWmI4Ez+U 79NAyBFqHLvbwQ36YmVX1sru+SRcxzJ4FJnyH0seIU2RyrTramd8+ZJOIdSQsbE4j7oj WTGTCqBveQw9SMVkgSS5Ys+ZQ3VvBsuRcmuNn3ro6mK9ZpfGHpGQGRJ87M0vK8W+xnLE SgdWY6JwKDaoBD4cmxqTCaD1/UCyOksNDfRustCdTmHQkHZgdXgDR5/TPpdwOtC0SDUv IKuw== 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 x22si2689216edr.450.2021.07.14.06.59.01; Wed, 14 Jul 2021 06:59:25 -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 S232003AbhGNOAy (ORCPT + 99 others); Wed, 14 Jul 2021 10:00:54 -0400 Received: from mail.kernel.org ([198.145.29.99]:46702 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231478AbhGNOAx (ORCPT ); Wed, 14 Jul 2021 10:00:53 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id B2F1B61374; Wed, 14 Jul 2021 13:57:58 +0000 (UTC) Date: Wed, 14 Jul 2021 15:57:56 +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: <20210714135756.ammzl2vfiepzg3ve@wittgenstein> References: <00000000000069c40405be6bdad4@google.com> <000000000000b00c1105c6f971b2@google.com> <20210714135157.mz7utfhctbja4ilo@wittgenstein> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20210714135157.mz7utfhctbja4ilo@wittgenstein> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 14, 2021 at 03:51:57PM +0200, Christian Brauner wrote: > 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 Hm, git.kernel.org doesn't seem to have caught up. Let's try: #syz test: https://gitlab.com/brauner/linux.git 595fac5cecba71935450ec431eb8dfa963cf45fe