From nobody Fri Apr 17 01:39:39 2026 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 08FA539E198 for ; Tue, 24 Feb 2026 14:52:56 +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=1771944778; cv=none; b=DRKrU+B8/Grq+e8L7+dSeNyZPfBzxecTdxofs6hZcc8auHTBKtlwBtD4aYVbKc/KudbvDLEL6+fGlzx/6jZ63LWBnZnjXtaPdpO5Kmkh63Lz6itNqb7BiZNFyzo6nlRFecZHE4iIrPUu9vuBhMcS9dPEfUGa2VfYKDEgsQdx1p8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771944778; c=relaxed/simple; bh=evx9vFFHsSfcDwsWJXKDgNLe0n/B32jtPsQKW8g0A88=; h=MIME-Version:Date:In-Reply-To:Message-ID:Subject:From:To: Content-Type; b=NvwmESPEhgrcjMtuDDoHvQ/e1o+NsBz5vLvmohgiegIVtK4FGmxVW0Gk90Vcob9JtItWWfO9ZsP6j5jY0QPLuOqGiFxq69NZ0INs7NVKpCjk7oRZd2uilrxaILLhALZXPjhxcwqWm2RikT/fQLNvWwLLc/wOZO16IOretQpQ45I= 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-679c978c609so13093671eaf.0 for ; Tue, 24 Feb 2026 06:52:56 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1771944776; x=1772549576; 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=t+kswAXKjeeeNNPOQrGPJX6R5OuOVllUbLCgPKpWSwk=; b=pXr9UtLZbGgQSxwcW9Gi+hU9JX3N6jXx1+9UAkW2pnfXjzDTwgGcCUTleJ0Ct2cwei WTH7Yq7GvSZjcORma+EKb1t96KpgShuIZf232QDF6aBvvbL67GcoZmG52nAt/1Uu5kpV RIIIJeLHQjdmF+5hG9bH/0QpqFdKtM7xU8dmhDk/QWYhtRrKXwLDzjDJ4CIGW8+6O87r wpknAkwMR4DYK5s63AT54xq1qZcCocGAETLwsLqvZtLVoYMGKCQ092Yw4MNxGGW0WlB7 CYM1q5lzBnyhJB2sQhA+bc2xXJbQmhzHOz9cPnoumQ0drUHduiwTeKzc8RlM+dDp7waR eUGQ== X-Gm-Message-State: AOJu0Yzb9dCUrFkgtRxpVkPETiCyfuOoJOjDi70PnsszHzEiMlzF5FQB 3ObVDJvrdp80uDszwvx54NRmh/pcpfxGAZ508M6gsB4LvPu+ZmsA2pxDwy7fiJBT0E38XQf7mGc a0R0u3dvETIIYOfNCFIk8Ha9213NjwTaTAVOF7KdMCMOS4kKOSciX59OaSCQ= 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:228c:b0:662:f9a8:16e6 with SMTP id 006d021491bc7-679c46ea7femr5857358eaf.47.1771944776072; Tue, 24 Feb 2026 06:52:56 -0800 (PST) Date: Tue, 24 Feb 2026 06:52:56 -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: <699dbb48.050a0220.1bf179.02a7.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-Transfer-Encoding: quoted-printable 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.g= it master diff --git a/fs/f2fs/inode.c b/fs/f2fs/inode.c --- a/fs/f2fs/inode.c +++ b/fs/f2fs/inode.c @@ -1007,6 +1007,13 @@ void f2fs_evict_inode(struct inode *inode) out_clear: fscrypt_put_encryption_info(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 =3D=3D 0. + */ + truncate_inode_pages_final(&inode->i_data); clear_inode(inode); }