From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-oo1-f70.google.com (mail-oo1-f70.google.com [209.85.161.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 8EE683815CB for ; Tue, 24 Feb 2026 14:44:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.161.70 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771944279; cv=none; b=mhLz3bjhAdb5JrO4RMVMrmf7jMCbZM+6ezi0aJ1J3EDuz0rwTg1vZ/Mav+zYLkv4j+BeOnMVNF/3m/LD7TcMw9fbp+5Jgeuna728OXduswA69DGuzQ5xSCkrQD+YC8xx2T3tST8gqfmDEkevr5RGJqejnKrJ61ePnIxEo8XBAF0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771944279; c=relaxed/simple; bh=j8e42ZA+vMQRv1fXruNqMZidrWENpCm4IjubvigK3ew=; h=MIME-Version:Date:In-Reply-To:Message-ID:Subject:From:To: Content-Type; b=XEUHT3ry2L/YqJeQ/FYgD/sVkaY+rR9PYQBf7ZAuD34mSnRSvNBz42mMoZu+wcSXUiJ6P+5rNS8ehnx9Dv3fn9BgHeLWZppdfmbqyU7wHjV+vBii1l1GfwGCoCx+bJA6716kKPZU64dSAGs6weDWjeF8b/XAE2kKP8YywNDj9+I= 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.161.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-oo1-f70.google.com with SMTP id 006d021491bc7-679dda090fbso11770889eaf.2 for ; Tue, 24 Feb 2026 06:44:38 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1771944277; x=1772549077; h=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=QalrCqZN/8TMrzx3eIczyBV1CSRXnuCaYmzfC93fdy4=; b=KdWZ0CQt0hYk0QotkS5YaUaBJO9txlHBJ4J2b3lNpOEMQl8wDKhqafujjDY3R8Cvb5 R8pbMIdx5oMKXXOLhllIZNBM4uNQ0T+PaQDEgpiHVwXS3geJzy2x6Kr64D3+MpXJK6Jy 0vRw79A5rtE/Pzk6luyE6otaDo/cCPS5itS7iUJg8hINfDHC4YMeb1qWo1pPP+7/F2IT 9cak3NRdn0BbY7zv+1UXBzsN9qEGHps8gzDEGFZdH8h5VjQx48kXjwmIc2jBLPSpUZl1 nnU2FUOcBdYdBqSBMhq1gx5tHr8sdsbSUzGVFmEA1Oic3gRuLsc/lAykfoJF1LTawS3f MIbw== X-Gm-Message-State: AOJu0YzhfGfIe/XxhJrUH4ijuMWULxcQcCjZiR9t4dU6eFqj/SNkJx3z afEw/I3BchuWmhhrOR73geXNi62H3lOddXSFgO04R1Yx5hebfhjW7rtKFAUSFNkVREJvFuF5Az8 ydmQK3lNWa/xmYxr07TyaxaGX2/kU7BoTCjVNTdaEX8hfO3xMvWqvlc0N+ok= 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:6820:2013:b0:663:40d:4893 with SMTP id 006d021491bc7-679c425a323mr6044030eaf.3.1771944277499; Tue, 24 Feb 2026 06:44:37 -0800 (PST) Date: Tue, 24 Feb 2026 06:44:37 -0800 In-Reply-To: <6982985a.a00a0220.37c87e.0017.GAE@google.com> X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <699db955.a00a0220.31e421.02eb.GAE@google.com> Subject: Forwarded: Re: [syzbot] [f2fs?] kernel BUG in clear_inode (5) From: syzbot To: linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" For archival purposes, forwarding an incoming command email to linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com. *** Subject: Re: [syzbot] [f2fs?] kernel BUG in clear_inode (5) Author: kth5965@gmail.com #syz test: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master diff --git a/fs/f2fs/inode.c b/fs/f2fs/inode.c index 38b8994bc1b2..914a0966a1c5 100644 --- a/fs/f2fs/inode.c +++ b/fs/f2fs/inode.c @@ -1001,6 +1001,13 @@ void f2fs_evict_inode(struct inode *inode) out_clear: fscrypt_put_encryption_info(inode); fsverity_cleanup_inode(inode); + /* + * Pages in inode's data mapping may have been re-added during + * eviction, e.g. by f2fs_convert_inline_inode() called from + * f2fs_truncate(). Truncate them again before clear_inode() + * which expects nrpages == 0. + */ + truncate_inode_pages_final(&inode->i_data); clear_inode(inode); }