Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp1926391ybg; Thu, 24 Oct 2019 02:13:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqyQ1kFBw/8qdoijD3aOTLCz7fv/EnVDKja4k3kExP/jep3RQ7YDnXV0djmy7ASZwJ4yJ3mp X-Received: by 2002:a17:906:4488:: with SMTP id y8mr25239166ejo.322.1571908399035; Thu, 24 Oct 2019 02:13:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571908399; cv=none; d=google.com; s=arc-20160816; b=rnh5LTF/Q25getDPfDVvzVWdgAVW+lMtmXlYMNL1k6KpetEDEkB48nCR67mgIHDMEb RLBr2bwLUjTHQP0hfHSJcpdANnZG2S+YyCuY2jSPfUgl/HOx0wj6K4LMvcsw7RZ3N3g6 fe5s3RWrcYIlOq2fPl8SHhchJ93UtVs0aFx2URHk+BD0whnzv6te/oSYJa5sQwiSSWwM VUsGDPHQzGfy+q4gKgbnqlc3ALSPKCVN8ERrA6xRrZMhn2ESz8HG3eTYKdGzfihmqvEp bgUBLzwdi1qBaE9qVz6z9j7CYHmIrrZRvCqjnnUwbION5Y6slRYJ0BdIXS45r3VcAbKb j68Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=e5Mx/311e6jYJ/QBfCz0tQidN/GIX6XKdH5ir9uoe3I=; b=TXyLxwIDdNCVbCYr83JHc8skMMj/tpvtFPuk7SPsKmynOFSrbSAEZeZI/O0jtdK0FJ lpryi9ACQe+y2jZNGlz4iKVjgK4dGzQqIbD2hbAXyFfj157j3b6emM8kxDnzX1o7A6Af apiOwQ3aiGm6KSMu6pum011aKyR4HmTPwbpxAw9I19+L73lauLESGx+K0jXfAhZoW8k4 5b+0MmmVhvRNxbc8EE4lu0FbUvYTYUU/Al5BvcEYNpjCZadgCtXIoATnhZwpLA0x5euL aBjkSwqG0UBo7Mrt2wi49uBDA6rtpSOdke9xO2+tNciDgLsTgWykgmVw2+XAyukyfJh+ aPjw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n9si2754067ejz.3.2019.10.24.02.12.41; Thu, 24 Oct 2019 02:13:19 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733296AbfJWSnd (ORCPT + 99 others); Wed, 23 Oct 2019 14:43:33 -0400 Received: from mga12.intel.com ([192.55.52.136]:60804 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727309AbfJWSnd (ORCPT ); Wed, 23 Oct 2019 14:43:33 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 23 Oct 2019 11:43:33 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.68,221,1569308400"; d="scan'208";a="228226724" Received: from iweiny-desk2.sc.intel.com ([10.3.52.157]) by fmsmga002.fm.intel.com with ESMTP; 23 Oct 2019 11:43:33 -0700 Date: Wed, 23 Oct 2019 11:43:33 -0700 From: Ira Weiny To: "Theodore Y. Ts'o" Cc: Ext4 Developers List Subject: Re: [PATCH] ext4: fix signed vs unsigned comparison in ext4_valid_extent() Message-ID: <20191023184332.GC7689@iweiny-DESK2.sc.intel.com> References: <20191023013112.18809-1-tytso@mit.edu> <20191023054447.GE361298@sol.localdomain> <20191023131546.GB2460@mit.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191023131546.GB2460@mit.edu> User-Agent: Mutt/1.11.1 (2018-12-01) Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Wed, Oct 23, 2019 at 09:15:46AM -0400, Theodore Y. Ts'o wrote: > On Tue, Oct 22, 2019 at 10:44:47PM -0700, Eric Biggers wrote: > > > > This patch can't be fixing anything because the comparison is unsigned both > > before and after this patch. > > Thanks, you're right; I had forgotten C's signed/unsigned rules for > addition. The funny thing is the original reporter of BZ #205197 > reported that the problem went away he tried a similar patch. Not trying to stick my nose in too much here but: What does it mean if ext4_ext_get_actual_len() to return < 0? Ira > > - Ted