Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp769930lqj; Sun, 2 Jun 2024 23:08:49 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXqHJsuPcDY5FSBcB0fUFRkgXXhVHRyRyVyNMRJ14TVIYxY2gKRyBWoztTZ2aNvT/3L4+3xoQbz+PAHipfAoTvfOA1hKFVx+shLI8cjiQ== X-Google-Smtp-Source: AGHT+IHsz/zTSc3/BkAvXZuVRNmSQyoel20n6FGqA93nLAaDsPyRAPYZ8I34rDU4mIWtUuOKuHrF X-Received: by 2002:a17:902:d2ce:b0:1f6:7ff5:a416 with SMTP id d9443c01a7336-1f67ff5a4e5mr14252495ad.23.1717394929112; Sun, 02 Jun 2024 23:08:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717394929; cv=pass; d=google.com; s=arc-20160816; b=L+DoqxJNTwBhzzzVj/OMjvqbh8c/wmT4ph2MOfHBXFhbXI+R+fmZvzevRH2L6rgCwK d4dmUYQtgJH1shGRJf+GCWCJg/7hc9pJwlIUF4wMWPUaS4/k0WMmVSSAR+xSw6JRQV5h OWgSXP5dku6V9x6F7wON5taJg4EOh5PWJyq7TrCuAm3T6CWOO7fOyEWMdRqyMH+ZMVqy M6r57cvkmxAVo+8mBORl+2kZduNpKMQj3rGnA6jkyKMhF1YbiCoskf1qga747Lw2pfLi OjJnFteoqZWXNFM1G/E5wnQzJ0pLTi94EHE1IjEWmVU5tl1oVoVz/T3InNh408DQ4IPF VOdg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:from:subject:message-id:in-reply-to:date:mime-version :list-unsubscribe:list-subscribe:list-id:precedence; bh=SLRG3RNn6axHhDL6EHJam2Pw75GmrrXwNjgsAijTp38=; fh=1GIBpePXibrXRPo8D768wtFChOnnylA7emafQ1kC3EY=; b=bb1M3b8jw9UjAW9NHkEZFS4yEn2zPW70Smlf+UpnL+p7rJ+YzWezbN82kci0IoTD/K MJj/XKfrs0Bu/TUnDlKsOCNXsFlCIZn/h9omlgFjHbXpkh0bmxEoqRQwX5YBGOHicw+Z h8yqcYYQo2r1UMo7zLa6d+aN/2B0290lVEtpWo9P5BwESllhqbgCvleqAVKtnUtUnHEg HHL2uAYV7jwwLboI5Sz6FNh+mkoXk1rxH/1HU1uSDacgBif0uCgLoKYFAVtTeBkJ+NOX bR9wT1pyilTxHbyEl9GU+S/dLoT8GG0D8DPWQh3GW6pO9bGWIGBus/nkIrHZncVp3/qa z7cg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=m3kw2wvrgufz5godrsrytgd7.apphosting.bounces.google.com); spf=pass (google.com: domain of linux-kernel+bounces-198625-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-198625-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d9443c01a7336-1f632401597si58916745ad.449.2024.06.02.23.08.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Jun 2024 23:08:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-198625-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=m3kw2wvrgufz5godrsrytgd7.apphosting.bounces.google.com); spf=pass (google.com: domain of linux-kernel+bounces-198625-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-198625-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id B4B592816DF for ; Mon, 3 Jun 2024 06:08:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C306023769; Mon, 3 Jun 2024 06:08:43 +0000 (UTC) Received: from mail-io1-f70.google.com (mail-io1-f70.google.com [209.85.166.70]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 00D8B20DF7 for ; Mon, 3 Jun 2024 06:08:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.70 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717394923; cv=none; b=aB64t/aCy7QHLfzp/lMs6J3uyNvSmuggPJpP0wiyTZqwC3ys4kyB4BBfeRujtJrJClmKpgLqOjLHPrCIb6+2WKtlRsw3uIMxqQlp6p9iD6w+CgiVF+YjvGJ8loUKdd27diuR2V5XAgR2Qj9Nd1ghPb5rj7mKLN0gcY2Ggs9d2LY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717394923; c=relaxed/simple; bh=zHlh4bKRq2LBijEFUhBwYnGRQpZxs3DyZQZn9+zx2l4=; h=MIME-Version:Date:In-Reply-To:Message-ID:Subject:From:To:Cc: Content-Type; b=suBTC5qfkyTxa4+MKTjxKmj2qohqfOi9tOhJzlDdGXgCl2ZqYbIXqSR129kvSAq/2P2kN3sGNG+Wvxepcr6YRZT6M/Aodb4PPAH+rKVMZaC9b2koB3wCKskHzVnBqAVwHvThbu5wSxKX1/zXGALZiPPCK0ehKvlgAjLEqSAOr54= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=syzkaller.appspotmail.com; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com; arc=none smtp.client-ip=209.85.166.70 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=syzkaller.appspotmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com Received: by mail-io1-f70.google.com with SMTP id ca18e2360f4ac-7e92491e750so372665839f.1 for ; Sun, 02 Jun 2024 23:08:41 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717394921; x=1717999721; h=cc:to:from:subject:message-id:in-reply-to:date:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=SLRG3RNn6axHhDL6EHJam2Pw75GmrrXwNjgsAijTp38=; b=R1rbgJhOAR2QNmujQm/jD/qSz4Vuy4+YnGdRVvBFiCHh1JxWwMTg75SnLq/fDjrR7G elqF7Vp6stBr+Z+dc8xA9jtSZXBQLtfForq2qCin8DuYAxcFj+3YCxYPgo+h7Jd4H4sJ sw8he68EVx9dhpQV17rqXDWaioDFbowhYyLLafXI8t/P5eUFMCt2naazMSnPdOlk1l0W B+/y2ozd90xfG0+QClP8VqUPawsXJ4G/XF/zQ0E11Na72hWSk0rxMw6XiwxdftUr2XBP Pw8d1yNZC0X1lACCyJfAKgj1vLfcBSWWKqnKcW9LNYcVK8HpskauvH5Kks9pI2JlgkTl upsw== X-Forwarded-Encrypted: i=1; AJvYcCXXrrKq4MoMewyNRiEJA8QmOh9T88/UTAoF5FsRHUlRHubOYnhGKGQyjZOALI0XFvLlA/JdvhgRdxUuZcG6iPVW7rHh7W0XcZjAK6E7 X-Gm-Message-State: AOJu0Yxy9WQVB4BN5A5awixX9+//vaodTEeKRLIMMLUGbdcAPaAgRufi lM0Ao4/QuLVmtyxXgs42Infe0yb5FanEAQ9l8hQ0B5StD30ySeiMyCOZQuCL9UTPwnz84ea1z+u /YlS40v8FdCb60qLeAkG+p7JHg7O921/Bv1TOS9LRYczc0suahAf9OKU= Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Received: by 2002:a05:6638:9804:b0:4b5:a983:16bc with SMTP id 8926c6da1cb9f-4b5a983182cmr327938173.1.1717394921145; Sun, 02 Jun 2024 23:08:41 -0700 (PDT) Date: Sun, 02 Jun 2024 23:08:41 -0700 In-Reply-To: X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <00000000000036d5100619f62aba@google.com> Subject: Re: [syzbot] [squashfs?] VFS: Close: file count is zero (use-after-free) From: syzbot To: nightu.pwn@gmail.com Cc: nightu.pwn@gmail.com, linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" > please test file uaf in udmabuf_create > > #syz test https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git want either no args or 2 args (repo, branch), got 1 > 0e1980c40b6e > > > --- > drivers/dma-buf/udmabuf.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/dma-buf/udmabuf.c b/drivers/dma-buf/udmabuf.c > index afa8bfd2a2a9..53035c601e92 100644 > --- a/drivers/dma-buf/udmabuf.c > +++ b/drivers/dma-buf/udmabuf.c > @@ -382,6 +382,7 @@ static long udmabuf_create(struct miscdevice *device, > > kfree(folios); > fput(memfd); > + memfd = NULL; > } > > flags = head->flags & UDMABUF_FLAGS_CLOEXEC ? O_CLOEXEC : 0; > --