Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp1076247rwa; Sat, 20 Aug 2022 23:55:59 -0700 (PDT) X-Google-Smtp-Source: AA6agR51Ahza/nKPa8ogkCPjfDNSg3qyQrkAzU9M72LiIaK/Krs/+NYFrBzRoDk8MgCTo/BHlus6 X-Received: by 2002:a05:6a00:ad1:b0:530:2cb7:84e2 with SMTP id c17-20020a056a000ad100b005302cb784e2mr15467190pfl.18.1661064959719; Sat, 20 Aug 2022 23:55:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661064959; cv=none; d=google.com; s=arc-20160816; b=tvVBpVRhfPv79qMedRX9mx1Zmi9AbmES7LWOZbAEhgEYvAgGbQpHhCjYsu1zdrT/uc h/Ye7qMuBNelwajvg7Ti4B1WLNR2iciXhsou+1/u1T2tdUpytXmJqFqhmNhgUQdjDc9c sUP0TalSg+OUGf0nOY7VbEayNwuwVuAoCAKPu4p/mRYQcx8jzkMXjix0jKtGLWaBn7HE JhJBr7hKsoOjtFAwcUVg82bkksnQDnYfihkdNmSdM3SK1jT6yjfNk1ST9Ld0vZc+D/Pc VOcQBycLM18kAPOc27k91cZqZjQq1Vg/rlEakIWjngZsNFqDJyyyzWk6lEy6JLxn9I51 552w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=3ERvMu4POZUsMD6yq39TfKZ1EskT5FRYgihPSMVzLrE=; b=MQVhR27aa0QvixDt9w8kFVOaxDGIX7nBCEZrPftXmmO1NKJPKMgKy/Z4t3Ro+VtAFT 4P0Db6PMLfiG0YdVgzpjaSXjrhumTixWrtSdE4SJZcqaiHBDISMiepsipHPJqthUIt9g tvXrEd1H3Ao5D5G7fiwNqR0ZO9Rd9KRPc2OHAy0oCCuM593SIXTgORtkTwjw3x/K8Kem /WLiBZCz0AtoIJC+sbCBIQzp8YJKMVXKqqOmxgSiDWT5lGeR1FYTN/HuVefThcUXzxk0 E8cUqBFez4zCYEb45Q4lB7sX2NNi6umRT4mMCDGeuerPi3+8VBDiyJoGCznT/zp9NHti yYpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=sRfYAE8N; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j10-20020aa78d0a000000b0052e40b7481fsi9193264pfe.92.2022.08.20.23.55.38; Sat, 20 Aug 2022 23:55:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=sRfYAE8N; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229615AbiHUG3Q (ORCPT + 99 others); Sun, 21 Aug 2022 02:29:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55216 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229441AbiHUG3P (ORCPT ); Sun, 21 Aug 2022 02:29:15 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A0CBA26132; Sat, 20 Aug 2022 23:29:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=3ERvMu4POZUsMD6yq39TfKZ1EskT5FRYgihPSMVzLrE=; b=sRfYAE8N3StEyCR2m/Z/a1OEMB 2JBYBMUt6t2Ug76nY/K2hvyqHwgyWsw5Ms5DzFFXqsNhmC1ZAOKAOJEEvgnXScGH+OFrtTJQ0W12T pQ6rmYvwk/qHJxalUZDm1DkzvmkLMYAPikRXindZlJVlHSGniH9t53J44pXX3rXE29FC5XNOhl3gD nV8vH1Q5muzYhD5iCVgVkZZ8gMWV8bWnAfbqt58a3ByNUuMX6+7jOjtCx6C7qM72qU11IgjbHf097 5r2LGGcQ2Hf43JQ0BO0jlzAl/EuGt10sDyrXvTat1yQRiLymXrc2zzaHA2KRBV8C0knkZCul+ZrMh VMzCTG7Q==; Received: from hch by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1oPeSH-006lfG-GK; Sun, 21 Aug 2022 06:29:05 +0000 Date: Sat, 20 Aug 2022 23:29:05 -0700 From: hch To: Siddh Raman Pant Cc: Matthew Wilcox , david , djwong , fgheet255t , hch , linux-ext4 , linux-fsdevel , linux-kernel , linux-xfs , riteshh , syzbot+a8e049cd3abd342936b6 , syzkaller-bugs Subject: Re: [syzbot] WARNING in iomap_iter Message-ID: References: <20220818110031.89467-1-code@siddh.me> <20220818111117.102681-1-code@siddh.me> <182b18b5d92.7a2e2b1623166.1514589417142553905@siddh.me> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <182b18b5d92.7a2e2b1623166.1514589417142553905@siddh.me> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Thu, Aug 18, 2022 at 08:51:16PM +0530, Siddh Raman Pant wrote: > On Thu, 18 Aug 2022 20:20:02 +0530 Matthew Wilcox wrote: > > I don't think changing these from u64 to s64 is the right way to go. > > Why do you think so? Is there somnething I overlooked? > > I think it won't intorduce regression, since if something is working, > it will continue to work. If something does break, then they were > relying on overflows, which is anyways an incorrect way to go about. Well, for example userspace code expecting unsignedness of these types could break. So if we really think changing the types is so much preferred we'd need to audit common userspace first. Because of that I think the version proposed by willy is generally preferred. > Also, it seems even the 32-bit compatibility structure uses signed > types. We should probably fix that as well.