Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp417528lqj; Sun, 2 Jun 2024 04:49:37 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUyEX87H8F2HlUOb+1oV5tADtkWMM74qwwwWUznNHyJADDPNFEqBEqCYYjBjT5RnLq2UI5XCFwBFaKyLV2/NyaUC8TPrwab1K4KvW406Q== X-Google-Smtp-Source: AGHT+IFXm51YPQA4xE2/9kfJNfQ6YrWfyvWXe8af0qY8QgX0CnzKoOz2O6hiKDjdvjHzMTPq68y1 X-Received: by 2002:a50:935d:0:b0:57a:4ea8:458 with SMTP id 4fb4d7f45d1cf-57a4ea8065cmr2230414a12.24.1717328977790; Sun, 02 Jun 2024 04:49:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717328977; cv=pass; d=google.com; s=arc-20160816; b=pwLeHU+YOiWaqKsVnP6gV07dwgYKJc3D15mRTqESMqVndq/Jrr+H7N1Bp07vEUK4/c zRrz+fxYfRmuW1cdu2akPpBgfb9KOoi4pqkIlqW5I0bCw4LNGgzU1pFaJQ3i8nOn7QgQ Mg0h1RFXUocVWBPr5ie0wKV1q1n23eOM04dMIpFrDs571JvsC8FBIOpgz5YglU/b5u7U WnOlEu45VITQ63XeVzpuHdGKGnUyLYnVe7HMGA5UzzGXWk72bOr0KmQbsBngAo6SA9MN SGnOr/Gzk57RvyojcDV/wx0u86TYB/FB6+isXryi5yW9fw74jDl4h8q1l8GZrbzXzQmv RQ6g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from; bh=djqbPX1W+oX336Gig/9p4/EZev06u+QPJUVgTCCA4Os=; fh=1GUg7B4UQcBzIvoC3mlllEDY9icRVlx7tLkoBqB3lVk=; b=jZZfxHriXgTkL+hs7it3CT4uLwR3/+4IilGfAebPHS4KiIQBRoHbLc3+nexsXzCynd H2D2b6dIfDHr33g5gnjnYVcZgd5u1HTljUp2ectB0w/WJVvCHmsRTPtwjIOt5SWszjrj hR9Rl9GWqRqxqcNkBOU9PkC+woW1YIe/HVQHJpppRRgfLU7Er7jYY8s8C2DVA9162aYi teUDUMud5TrQ61qzeBYQnaygLOIaKJxcNrFVjCyu9NnbxXAPZnXE+Ju27Wa5uQUAEAEz V6idc1OVCm4pKe105gbd9cWWPiilPp8jwN+SXc3oQPFzKgSz7jSlAReifoWCVjDyPL2C J9TA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=sina.com); spf=pass (google.com: domain of linux-kernel+bounces-198222-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-198222-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-57a5ce7464csi510691a12.566.2024.06.02.04.49.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Jun 2024 04:49:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-198222-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=sina.com); spf=pass (google.com: domain of linux-kernel+bounces-198222-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-198222-linux.lists.archive=gmail.com@vger.kernel.org" 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 85EBA1F21582 for ; Sun, 2 Jun 2024 11:49:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BDC6838DE5; Sun, 2 Jun 2024 11:49:31 +0000 (UTC) Received: from mail115-24.sinamail.sina.com.cn (mail115-24.sinamail.sina.com.cn [218.30.115.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 36C103B1A3 for ; Sun, 2 Jun 2024 11:49:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=218.30.115.24 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717328971; cv=none; b=rGRURZFfEHglQ76vIiA1QotjBDEhO1kX0EJ9MQQwivyyH6AcAg09lWOoMnG+UJ0IAt6G96aY5y0kdhT9oTJExRVTMJ4VeZNjf8LlnOC3NPjk+z7769aQNIWzesCF/JNLwDEOBoN+hRbL1MOBWsAIWLyK8+zHJ8lXBArTFpDSjcw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717328971; c=relaxed/simple; bh=5wV+SZF4zUDLsPfsXwsjRqYxuqAIQr5q9I7OT7Ws3bw=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=fVKRHDS0JB/UtScosubNyyaw9nckLdAvd9aGDmueAum0rHLx8mda54L2kaxslZebaI5JBgL9PUN1+Hmi8BhQ+28cLZNO4sflZ/FTLB4VudHOskLy1CQaoE2w5VxWt1po/B0+9kN0uvsipmvaIm/DilWdptYcXmxR8sQ5MlvC8NQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sina.com; spf=pass smtp.mailfrom=sina.com; arc=none smtp.client-ip=218.30.115.24 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sina.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sina.com X-SMAIL-HELO: localhost.localdomain Received: from unknown (HELO localhost.localdomain)([113.88.51.183]) by sina.com (10.75.12.45) with ESMTP id 665C5C3A0000101F; Sun, 2 Jun 2024 19:49:17 +0800 (CST) X-Sender: hdanton@sina.com X-Auth-ID: hdanton@sina.com Authentication-Results: sina.com; spf=none smtp.mailfrom=hdanton@sina.com; dkim=none header.i=none; dmarc=none action=none header.from=hdanton@sina.com X-SMAIL-MID: 15494031457841 X-SMAIL-UIID: D5F0DDFA5C2245809ED9AA14FC51F86B-20240602-194917-1 From: Hillf Danton To: syzbot Cc: linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com Subject: Re: [syzbot] [f2fs?] kernel BUG in f2fs_write_inline_data Date: Sun, 2 Jun 2024 19:49:05 +0800 Message-Id: <20240602114905.1462-1-hdanton@sina.com> In-Reply-To: <000000000000d0d5e20619d2b486@google.com> References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit On Sat, 01 Jun 2024 04:50:27 -0700 > syzbot has found a reproducer for the following issue on: > > HEAD commit: 0e1980c40b6e Add linux-next specific files for 20240531 > git tree: linux-next > C reproducer: https://syzkaller.appspot.com/x/repro.c?x=14d86426980000 #syz test https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master --- x/fs/f2fs/data.c +++ y/fs/f2fs/data.c @@ -2854,7 +2854,7 @@ write: set_inode_flag(inode, FI_HOT_DATA); err = -EAGAIN; - if (f2fs_has_inline_data(inode)) { + if (f2fs_has_inline_data(inode) && !page->index) { err = f2fs_write_inline_data(inode, page); if (!err) goto out; --