Received: by 2002:a17:90b:8d0:0:0:0:0 with SMTP id ds16csp4876598pjb; Mon, 27 Jul 2020 07:23:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxFiyBcWnjeUx2N/QJIUZO7IOGE04OizTjdkCk++S0o20hn5/inDKaw7p24NKz1KE/pqzfs X-Received: by 2002:aa7:d848:: with SMTP id f8mr21384230eds.329.1595859814527; Mon, 27 Jul 2020 07:23:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595859814; cv=none; d=google.com; s=arc-20160816; b=ogEfFMHJNXH7XKbYk2OmnQKuS05I5zez0CtZlBHqhKX9BknaHQL/FZYddp45PXawnG SVNgSByDimhrtfDWzHlssDwj74+jJvZ0HGqhKF/Y3Fdw79kv+w3O9g/vQWV9C3UJhX+u 5iNV1/cfHb8Lc/EnL5IopvknxaEeidUWElI8DIcKXrFn3d9AaO1MY/9uwNUEeDuzhlrt oTFEoZcOPPqQQO+kJ3STkMKs53zgHVHRpAAjj+4Y47SDwz2Oi510I+kCdWQDRxWwYW+i q+clvgElfjZVk4y9f0w2FUsaV4hrVT/A68EUKwDUjXzlfpln7+6nyGSmEU0BKjX/JpFh JS8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=XcUd8eH6AP4jGYUIeNXo36jJNHUW4uVgaPCjo/fr+pg=; b=lnhIgvWskcs/uYHZen8G3Sl+cP3OhCToEJUW24QZbp59JdB+NDIvYCExh5fpiXrqz0 7Tvt+xaOjdsU0tbVSAegZZPS/d8C4QzrUDC+QXTlUFHCmsygsw6EMlhTTjNlFGqubZcC zZUtWQpp7Tgtok+5qcXEgTRS1vHVOIiOaFsDXKTsQujjp7cblNiuKc8EweXqcXjae8sZ ZsTj9uFrw/6CGqqlbyDAgFV5QMuPwuFeK6IXj1O5WAye98P4gnXbu09IbdwqvVIlQ0Wq yA1vwW5GWzZQpu0VUB35tK6RjGxcmoAF9dHXcEd65jFAlrEA/zIDtZi/2zu8Q5mnEgXk IgBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=j8H4A4CH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h21si5880200ejb.246.2020.07.27.07.23.11; Mon, 27 Jul 2020 07:23:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=j8H4A4CH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731442AbgG0OTt (ORCPT + 99 others); Mon, 27 Jul 2020 10:19:49 -0400 Received: from mail.kernel.org ([198.145.29.99]:47844 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731406AbgG0OTr (ORCPT ); Mon, 27 Jul 2020 10:19:47 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 0F8F020FC3; Mon, 27 Jul 2020 14:19:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1595859587; bh=iUh9dnBwToXwhWtzVBeJCBPtLhp603IQ6o4UTkg+7LU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=j8H4A4CHjrZbL7xjtZwXELLsozo3S5vXe2P/PcG7E1MuA7TizuRRV+8eYFhjtJHYJ q9QCnpyHJShu29UCr01roK2LAW8SouFAHYkRzY4BQWWfSFkIdgnY4hgAtd38I00+16 aC46uZbWTccDN5F/4hQMykndixBlXTB97iLD2x5Y= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Hyeongseok Kim , Namjae Jeon Subject: [PATCH 5.7 029/179] exfat: fix wrong size update of stream entry by typo Date: Mon, 27 Jul 2020 16:03:24 +0200 Message-Id: <20200727134934.084625370@linuxfoundation.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200727134932.659499757@linuxfoundation.org> References: <20200727134932.659499757@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Hyeongseok Kim commit 41e3928f8c58184fcf0bb22e822af39a436370c7 upstream. The stream.size field is updated to the value of create timestamp of the file entry. Fix this to use correct stream entry pointer. Fixes: 29bbb14bfc80 ("exfat: fix incorrect update of stream entry in __exfat_truncate()") Signed-off-by: Hyeongseok Kim Signed-off-by: Namjae Jeon Signed-off-by: Greg Kroah-Hartman --- fs/exfat/file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/fs/exfat/file.c +++ b/fs/exfat/file.c @@ -175,7 +175,7 @@ int __exfat_truncate(struct inode *inode ep2->dentry.stream.size = 0; } else { ep2->dentry.stream.valid_size = cpu_to_le64(new_size); - ep2->dentry.stream.size = ep->dentry.stream.valid_size; + ep2->dentry.stream.size = ep2->dentry.stream.valid_size; } if (new_size == 0) {