Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp728434lqo; Thu, 16 May 2024 22:37:04 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUED1isUh4OX4fUKSgbiToMbVNz274QsE8PRFgGbKGrn+RqFIh+u0Qq75OtYuKipfcesr/G+HWJgLryJ4KSF8J++reTC1dkDuG279V5kw== X-Google-Smtp-Source: AGHT+IH+n6kNA67yha0RRhBWnAFc0vVmMrU7JYynvsCeiWcdkuKfwN0d3T+EDNlpfNXhrG9VxyGp X-Received: by 2002:ac8:5802:0:b0:43a:d7a9:390 with SMTP id d75a77b69052e-43dfdb4c7bfmr266963871cf.29.1715924223645; Thu, 16 May 2024 22:37:03 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715924223; cv=pass; d=google.com; s=arc-20160816; b=qwqSYOoYDfx7DB3K/L7Yl/67qI7PNR6s6pfXbTlYkMVrsLhpgJMm8ma7M5NzCQKueq n6nBjz4x56Y590e/ZKRFOQEchUTBGz25iNcZVOqAaCmIszHUyOe2t9mbpHMt1eRJfbzP IBsZevA57tZave4wITccUgeeIOrwe4KVD6RGDUzORKklAC55UWhQ570q9vi4qoRF28/A yXOr+n5YkQp7NZpNN4ght/gWnmWzRZfEB1apBJuwzvNO9cjrZKVZnp21pnQ2/7t/ddWd Iz2iF/hTbWo/5GJivL5i/W2uRrkws6l9YcWGVCNDMl+YMyCRnAIGlsyjfjT8rQil885E AU0w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date:dkim-signature; bh=kdToEKd/rzCQk35x9OVJLQQsAOBHBkPUX9V4xj54vVo=; fh=N9VReCt27mnxbKaL7DWX0fG38yTPiRuTIU1uhfgTXEA=; b=na/yANas1OQbWsDoO8lxW6onyG+3Ohp2xWH9yCE1zQbfVVcJRoI06GY+m5wuCRqUzW zimOZlrUhG4INoYhWHA/D3ldtY7XgeLBl05PjePbs0Yi+AuaiuLJIeuwHn323tJP7M3b V6pnVNhh5quym1/k/0c/PywvwlK3Fn6RswDEu8jUeL38tXCvZoO8DDKukKu9bZdrjqbd ZwRvMAHtzcmT4+ELjIEKkoOAZpNeFlv3FFL+3Bzvkrvy+xESBYoxWjDBfsktheXKeGmM 6+XOTYoB5jh/7wvF4FCJMyGxcDMIIdTaMRXlVQIYof/In4i4tQUSDePaNVwKxMAQE8tq Wazw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.org.uk header.s=zeniv-20220401 header.b=VX9NvMkO; arc=pass (i=1 dkim=pass dkdomain=linux.org.uk dmarc=pass fromdomain=zeniv.linux.org.uk); spf=pass (google.com: domain of linux-kernel+bounces-181675-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-181675-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zeniv.linux.org.uk Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id d75a77b69052e-43e07fac74bsi147743891cf.564.2024.05.16.22.37.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 May 2024 22:37:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-181675-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.org.uk header.s=zeniv-20220401 header.b=VX9NvMkO; arc=pass (i=1 dkim=pass dkdomain=linux.org.uk dmarc=pass fromdomain=zeniv.linux.org.uk); spf=pass (google.com: domain of linux-kernel+bounces-181675-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-181675-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zeniv.linux.org.uk 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 1A86E1C21B30 for ; Fri, 17 May 2024 01:27:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0D2DB1C32; Fri, 17 May 2024 01:27:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linux.org.uk header.i=@linux.org.uk header.b="VX9NvMkO" Received: from zeniv.linux.org.uk (zeniv.linux.org.uk [62.89.141.173]) (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 D4D8817D2; Fri, 17 May 2024 01:27:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=62.89.141.173 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715909225; cv=none; b=FUikKiX5Ju5yWf3qYfOcnZuNs9tyT8Fng4bnSaDV6WacbGQUJ5J+p6ZwguYz0Y9JVSoBpAngrdIwiRgQqBmusj6hoU7NtSWc3+knKSL6Q6oHq38Rf7gHexm7884S4ls7yuG3OtW8sHHn7yzNjbBgjQsNMsBTb0U/tcHYjJHFFuk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715909225; c=relaxed/simple; bh=ci2vKGYJPkUX5heEMris7S868/NN3z7NYkLJCN0lrYs=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=T+uhBMdvnYaQc7//7Wk76DIeu8yrb9wknTGKJ1KlNmznGA1ZTXWaZ1+T9uAR9w7b7vUQci+/0oNe9YwjPA+LVau1OkD2D6zWfKhZWN7evjNFzvYSyoQ9aWqowVGF/50hp8R5/mG8xLS5qY5To8jaF5PCxGcmSviP+IYHrZbwZbM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=zeniv.linux.org.uk; spf=none smtp.mailfrom=ftp.linux.org.uk; dkim=pass (2048-bit key) header.d=linux.org.uk header.i=@linux.org.uk header.b=VX9NvMkO; arc=none smtp.client-ip=62.89.141.173 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=zeniv.linux.org.uk Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=ftp.linux.org.uk DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=linux.org.uk; s=zeniv-20220401; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=kdToEKd/rzCQk35x9OVJLQQsAOBHBkPUX9V4xj54vVo=; b=VX9NvMkOl/J6GUN8DUit3GIplH x6WZog9uIBbJ2XpWOLJnpePQzNcYB3nWqHxPnnMwPpPA7bU/RSMXSpIpOkEDIUDzRqrqFGIU5kY0L snktPKMO8EzTIicEdxEpMdhjz+TEIDk8hU+cUni37PoOnI78YpZiZ2G2FRswcYqkY2j/irsLT7Z7K XwMW5wClkEmUgAFcCZKIVlhNQRjOG4VV6c9E6P25cJBDm+RNtjFGgapE7SmPUbe5RWnSr8P46aJ52 LZzBruBsu5t27Ix+QEscMyuHerdhGcarAdiTlcHCwsZ+TZkOOfrjXnRqN1/Vixz9xapu67Y1f/DK1 QfcxISjQ==; Received: from viro by zeniv.linux.org.uk with local (Exim 4.96 #2 (Red Hat Linux)) id 1s7mMx-008cYd-0U; Fri, 17 May 2024 01:26:47 +0000 Date: Fri, 17 May 2024 02:26:47 +0100 From: Al Viro To: Matthew Wilcox Cc: Justin Stitt , Christian Brauner , Jan Kara , Nick Desaulniers , Nathan Chancellor , Bill Wendling , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, linux-hardening@vger.kernel.org Subject: Re: [PATCH v3] fs: fix unintentional arithmetic wraparound in offset calculation Message-ID: <20240517012647.GN2118490@ZenIV> References: <20240517-b4-sio-read_write-v3-1-f180df0a19e6@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: Al Viro On Fri, May 17, 2024 at 02:13:22AM +0100, Matthew Wilcox wrote: > On Fri, May 17, 2024 at 12:29:06AM +0000, Justin Stitt wrote: > > When running syzkaller with the newly reintroduced signed integer > > overflow sanitizer we encounter this report: > > why do you keep saying it's unintentional? it's clearly intended. Because they are short on actual bugs to be found by their tooling and attempt to inflate the sound/noise rate; therefore, every time when overflow _IS_ handled correctly, it must have been an accident - we couldn't have possibly done the analysis correctly. And if somebody insists that they _are_ capable of basic math, they must be dishonest. So... "unintentional" it's going to be. Math is hard, mmkay? Al, more than slightly annoyed by that aspect of the entire thing...