Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp2022697lqg; Mon, 4 Mar 2024 10:21:45 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVv0YBBK3f64YdlL06W0Wpt59j9VW9UCdpnSzEQ95f7s333eFgwUbYeKz73aGYrLYLukKpFGJeLIwXjoK1NFgpqeYdqfzraWiNsZLHCdQ== X-Google-Smtp-Source: AGHT+IFPg+qGKp7+1+RDN69r8wAG5YK3onTc44tfp4oSitxTN+E+dWJ9Fu4e+XN5LAVi4GiBWSXM X-Received: by 2002:a05:6830:1b79:b0:6e4:f1da:8832 with SMTP id d25-20020a0568301b7900b006e4f1da8832mr1426184ote.12.1709576505710; Mon, 04 Mar 2024 10:21:45 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709576505; cv=pass; d=google.com; s=arc-20160816; b=utf7jvVdTPnPnsXxX23lrwY7KDCOiiGrHA93PKl/YjunjtpMPyIJg3ZL5MuMzF1vl/ SG+kv67O2bnmQw26lbygnGohC164JLnWO6W4fTK7lmEzGm44Z2oZsHcaHXRe5h7OREL2 XDaH2cRE2ZO5Dus3yygJwpGsP29rZJJV3Fgoqk1eh+ohW2v0qGbQRhlT3w9Nk9mlotJI TvXTEC/+p1Ri3RlipcLydKJuZ0/GQ5F8OodYMw+eMT3wBr1rmW7mCwRTbzj8wG3C4tqV ah+/zelSv+rmjqBqwfyAxqKWfaP58+jkc8+9kyahJNOVyKUcjbV5D+NReE2GWMsegUeH Xviw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:date:message-id:from:subject :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=jhvPXHGwWR6vF0uyUSjVSMN72OSa0LiZgCG4a14mAI8=; fh=30OA2Wj2xJ339WWFk3ceqxqY9O/esHGP5VH7ExGOIUU=; b=yHa8ygX/ogV2HcN7XZv/dyNqeUGhZmTkMrfG1F1y6XtolSXVAxGszXIVMLr2cKqZIX fL72+hH95mfVHYL4aRyHM/yuyYkZKboUyJKo5EevKdla4blfOyHrQ+5F0uR4bDqq5V43 VdbNo6Npx4ecx9Ftk78/i1JpSTdqNBAZoTrepwkx6JAE2FCjEL7JSIxSbXHDn2bhm2sR 0usK+T7KyzNUx16Nkb8nFm/ld/v1SIRlen4wTvQNc6N8jT0tvG3xecTyw5I0G8PZPBob Kt3K+9CIFQNAGF/GUmZMIPSlpaw6ArqNqmZVpb1mPwPgcPbThmKbuFHQFykP/XyAZsTo az/g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=fgr+72qo; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-91090-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-91090-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id n1-20020a634001000000b005dc734294f4si8670959pga.244.2024.03.04.10.21.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 10:21:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-91090-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=fgr+72qo; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-91090-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-91090-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 5321E282C49 for ; Mon, 4 Mar 2024 18:21:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 71D0E629E0; Mon, 4 Mar 2024 18:20:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="fgr+72qo" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 92A37626A4 for ; Mon, 4 Mar 2024 18:20:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709576429; cv=none; b=VoDaPYyKfsiTw5B+t1/+clbH+lJSmwkQB8hre1sXk2smY6fmS0Tuz0srH0RV4s0sZz5Y7XXcPvJafhUTU+m5BP19Lo/NYuqmZwFucDogZYvcN349ps2C7Y7oe7k2Znh25uiHo7LlbOFuUPL408J91GEGs4yPV6XwmDL06tPH+W8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709576429; c=relaxed/simple; bh=47i4aSHcYknJkYX0Y81klwd89NWLRQui2X+yMo/YfRw=; h=Content-Type:MIME-Version:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; b=T9UO1Ye0DQvylFVWgcQzBZZDP0WvjAWCeBOuPyWzBsdPwggugSJqAzhhaUit+oE78Ia1ixWGZFjD6IeXwmcUVNBA1NpR80c8GRUde1V7wkI5TZ+gNv6cGv0C01egnuptFOccHMq0vSMqPN2IOTMtVWa+HgkamnLSeQShV+SQFXA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=fgr+72qo; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id 1EC95C43141; Mon, 4 Mar 2024 18:20:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709576429; bh=47i4aSHcYknJkYX0Y81klwd89NWLRQui2X+yMo/YfRw=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=fgr+72qorvkWFihJFUq5HNnufjMJUan51KutZDP3MRCQZ8tg3YCN0wujp5JEAVj6R KG/hdpKSoHY3Z4fE+WgX+u8+6/GzOadBamxKeVUwfLEwHNMppmfq7fZHWS4Lkaiq3l gdlwMOeO5pjWLtAkt+AoaF8sgo3xjnP0W3Z7t7vyuRavEn5hfBgCgcSGzkQZqu61bR yuOPjf4N2hRccMQnT18dGxy4m4or/Q0oLZXiEaQhLqDEYOBzLHu5e2C5kJIJi73pg0 wxAD5AeEuRdSslI9U0ugPPmfVga8pkWB4rbLbw139sT6MR0l35g1bhEkon2iOFzuj5 CDp7r/XlP/ejQ== Received: from aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (localhost.localdomain [127.0.0.1]) by aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (Postfix) with ESMTP id 041D8D9A4B9; Mon, 4 Mar 2024 18:20:29 +0000 (UTC) Content-Type: text/plain; charset="utf-8" Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [f2fs-dev] [PATCH] f2fs: fix to do sanity check in update_sit_entry From: patchwork-bot+f2fs@kernel.org Message-Id: <170957642901.16816.14170425948750995798.git-patchwork-notify@kernel.org> Date: Mon, 04 Mar 2024 18:20:29 +0000 References: <1709121594-22314-1-git-send-email-zhiguo.niu@unisoc.com> In-Reply-To: <1709121594-22314-1-git-send-email-zhiguo.niu@unisoc.com> To: Zhiguo Niu Cc: jaegeuk@kernel.org, chao@kernel.org, ke.wang@unisoc.com, linux-kernel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, hongyu.jin@unisoc.com, niuzhiguo84@gmail.com Hello: This patch was applied to jaegeuk/f2fs.git (dev) by Jaegeuk Kim : On Wed, 28 Feb 2024 19:59:54 +0800 you wrote: > If GET_SEGNO return NULL_SEGNO for some unecpected case, > update_sit_entry will access invalid memory address, > cause system crash. It is better to do sanity check about > GET_SEGNO just like update_segment_mtime & locate_dirty_segment. > > Also remove some redundant judgment code. > > [...] Here is the summary with links: - [f2fs-dev] f2fs: fix to do sanity check in update_sit_entry https://git.kernel.org/jaegeuk/f2fs/c/36959d18c3cf You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html