Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp601588lqb; Wed, 17 Apr 2024 06:06:54 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWWY8ujP//JksWExm6Bqo3ulUD5huZUhOjYG/pZfq3ZWhPMTeHWEzTv3wmUmiFfdEzQCnGixjRTqixOyRJ9zCJ8sOLIgTQ6xDjIjZ+NlA== X-Google-Smtp-Source: AGHT+IHGM5TGMbCfCCea4qk/XBoeaeIK7CUf3KC6zbW1otHCUptu3VEn1xHdZ6jWccgVx74gmBlt X-Received: by 2002:a17:90b:4f91:b0:2a7:329c:7976 with SMTP id qe17-20020a17090b4f9100b002a7329c7976mr7152139pjb.8.1713359214394; Wed, 17 Apr 2024 06:06:54 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713359214; cv=pass; d=google.com; s=arc-20160816; b=U91L9Wkm2Du6oqqRh7mKHF0aa7h5NWptGP2UBa61u/jkP3MDzkETftk5oTKCu/EBW1 qzGrjuCqIgAIN5JFXeRibVuKdyQcGu9JqapFBnb2qmmrwE9waCHaACNm7jjBx7CnFncF ZJ13V4hti7pxt7RrqOWytrZrUsxFdX8t+haYY9+X6bVZ46qp7A8lFhGWVjHR7/8xIHpq 1DeUnnbl7GLkMlLp2kq7NJ8Td7v3JyInt+Itgvgglv/8pJljPJj6uW/ZSuUP1AG8pgWp AdxS1fq5m0e0uelt5tliZ/58ofHlgB3p6aHL+8fyXu+/kTFnArFQpa93bm2+yKyYsCbT pzVw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:content-language:references :to:from:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=ztdNdcA2+6+PqSRE5LqvWFbFaw0Bru7dBXFKo7QG3k4=; fh=zpYi+jzbV23oc4qopJmiA3iay75E2bBh64Re5HvBJvQ=; b=zMI09dOEVtWEjJBliWQPlPPJFcRbzlT3Sj6nmucoR9TgwOebFDdvfQ3uY6EA+gWdzr vDOfhVv7SR08N4pWUWhQVWDqSnWMsmLt0eHuaJQMMPNQWVYXHdN7StYvY9ugE8wQs5vi PaRid0r15f2GziNcFyvut9v4sqty0n3Y8LHgcJaS6QTafBV/Ey71wHzrUreOW7dn/SA+ fWpyvgkNGOUMS1JlYkPJdzmh2DxaWoUUGFUc1pOMKwzLOc7W0sQLKEmza1el7rHGxlrx AIUol1408q/0IcMCIYTjOs46lIdmS58zCP5RfmtUv23hJGhj1MvhA12loreOIC7GF2z5 omEg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@paragon-software.com header.s=mail header.b=MOUjvk3f; arc=pass (i=1 spf=pass spfdomain=paragon-software.com dkim=pass dkdomain=paragon-software.com dmarc=pass fromdomain=paragon-software.com); spf=pass (google.com: domain of linux-kernel+bounces-148511-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-148511-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=paragon-software.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d19-20020a17090ab31300b002a004d25ad2si1222994pjr.89.2024.04.17.06.06.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Apr 2024 06:06:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-148511-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=@paragon-software.com header.s=mail header.b=MOUjvk3f; arc=pass (i=1 spf=pass spfdomain=paragon-software.com dkim=pass dkdomain=paragon-software.com dmarc=pass fromdomain=paragon-software.com); spf=pass (google.com: domain of linux-kernel+bounces-148511-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-148511-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=paragon-software.com 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 14538285129 for ; Wed, 17 Apr 2024 13:06:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A7B2E132803; Wed, 17 Apr 2024 13:06:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=paragon-software.com header.i=@paragon-software.com header.b="MOUjvk3f" Received: from relayaws-01.paragon-software.com (relayaws-01.paragon-software.com [35.157.23.187]) (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 39B8213D535; Wed, 17 Apr 2024 13:06:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=35.157.23.187 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713359207; cv=none; b=W8Lk39MPaxY5rx7n11w40zJgEWezSjrHvKg0ZyYN6F9IKZOj5npP86JSUyRm9Eu5BDF8DnlxFgi36YRihgHDH4c8Y0/wewq/+vazsT3eI3S36VXowpuVwf6dTJTjlnHrh5bDhPCxCCpW0+7/YvyolozfhqREEDkWqRRzkS4pc9g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713359207; c=relaxed/simple; bh=moeDjildggmPtbyTfn+Q7Du1kw3N5TGihlzFDNAJ9g0=; h=Message-ID:Date:MIME-Version:Subject:From:To:References: In-Reply-To:Content-Type; b=TdDxKDbHhSewM+IxTgQSH1Ove9k3JS9ksJJpqr46CWiFHXNH4Vp+4IQYFDV8wKHaM+6VbKl1QaksfYMOydQJk4LDs2FCyhKxGJD3SO8IjrCEYVTHDEJGy+7WxzIruQBkoUAdyzJR0RXv/nAEpAAFXyAxMW1DG9k7QS7P8JKCq4I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=paragon-software.com; spf=pass smtp.mailfrom=paragon-software.com; dkim=pass (1024-bit key) header.d=paragon-software.com header.i=@paragon-software.com header.b=MOUjvk3f; arc=none smtp.client-ip=35.157.23.187 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=paragon-software.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=paragon-software.com Received: from dlg2.mail.paragon-software.com (vdlg-exch-02.paragon-software.com [172.30.1.105]) by relayaws-01.paragon-software.com (Postfix) with ESMTPS id 4D9D92126; Wed, 17 Apr 2024 12:59:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paragon-software.com; s=mail; t=1713358752; bh=ztdNdcA2+6+PqSRE5LqvWFbFaw0Bru7dBXFKo7QG3k4=; h=Date:Subject:From:To:References:In-Reply-To; b=MOUjvk3fwEdepmtANtqrXePrW6As6j09nx3ChkKCcs/Cgx3a+7hDqCMd6Lm9KQENj UlToG/RMWmlMnvgEEh0S6xn0RzLSCl1U1bXa24jc/spzy5zkmwUq1hj4EpXoroJzPq s9dyDFhZP5VFsoGDchI91Qmg9tp9V+6xQsUgeHQM= Received: from [192.168.211.39] (192.168.211.39) by vdlg-exch-02.paragon-software.com (172.30.1.105) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.7; Wed, 17 Apr 2024 16:06:40 +0300 Message-ID: <4e9cb4a5-202d-45db-846f-17ef74bd2a5b@paragon-software.com> Date: Wed, 17 Apr 2024 16:06:40 +0300 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: [PATCH 05/11] fs/ntfs3: Use 64 bit variable to avoid 32 bit overflow From: Konstantin Komarov To: , LKML , Linux-fsdevel References: <6c99c1bd-448d-4301-8404-50df34e8df8e@paragon-software.com> Content-Language: en-US In-Reply-To: <6c99c1bd-448d-4301-8404-50df34e8df8e@paragon-software.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-ClientProxiedBy: vdlg-exch-02.paragon-software.com (172.30.1.105) To vdlg-exch-02.paragon-software.com (172.30.1.105) Signed-off-by: Konstantin Komarov ---  fs/ntfs3/fslog.c | 3 ++-  1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fs/ntfs3/fslog.c b/fs/ntfs3/fslog.c index d9d08823de62..d7807d255dfe 100644 --- a/fs/ntfs3/fslog.c +++ b/fs/ntfs3/fslog.c @@ -1184,7 +1184,8 @@ static int read_log_page(struct ntfs_log *log, u32 vbo,  static int log_read_rst(struct ntfs_log *log, bool first,              struct restart_info *info)  { -    u32 skip, vbo; +    u32 skip; +    u64 vbo;      struct RESTART_HDR *r_page = NULL;      /* Determine which restart area we are looking for. */ -- 2.34.1