Received: by 2002:a05:6358:795:b0:dc:4c66:fc3e with SMTP id n21csp180164rwj; Sat, 29 Oct 2022 01:05:05 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6TalWJl88qR1jTxvpgCwuHUeKV4lyr33mO1/As3Vjq7FAB9jpwK0P5a0NGeGZklAL2dV08 X-Received: by 2002:a17:90b:2705:b0:20a:b4fa:f624 with SMTP id px5-20020a17090b270500b0020ab4faf624mr3535903pjb.124.1667030705569; Sat, 29 Oct 2022 01:05:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667030705; cv=none; d=google.com; s=arc-20160816; b=v9bqHp2FmQEBTly8qJZ8V5vnKV/1lZLM3LggxkmODMXEKBAc/BCL1TcsOWRITzCLRl 1Ilxhuu7/do/PkcenAB76PDd55e4rPzoJWSh1RDNVsGmlNZhYfzuCsqtO2sqpgheC4rr URYo+BbVpfaxHKhnvynMbtcRKuVgN6DARGA1VOosRXGLsCh2Bm9NWeKtQWCBbtdTnica QhSDb6IQJ0+7TzTvov4cxXwvaODgYQsnJH2q00pRH2okh+dkhZt2yVZnxFeeLYfwSH8t 8fKMNSBl8B3MItF3tnSRUxDi2KcT+QuTcD/1RNQBPSs3BBqM9lqjGDmOhr2rDE+K4Y41 qchQ== 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=fZy5lCa/2Ecq1kSp+TM41cU7cXmzgRAAem3qyDrtqVE=; b=HLPtJYwgOdMaDfKnSGNHXLsIEfHFWMjsFTd90O2+KcRAFJpd5Bf9jPjZi5GhZ+RQTk PYdY6yFht9R4kQdB6G26IItNMfrQzr+HzNGRLqIS9c8PGx+HZkp5py9+fMC8zO1w4Pbs xHV0fVU/rurmcXb9NnbWy1jx0DgDsGc74F7PAbKfq5FUz6h5IzZLpRSFozjTaUiPlUay YNYJpw9f3Tgzjm3XvR5ZZ0D+bw5JXsbx60bDd2PpXbeoAFBCiDUsJabAM/ELy0wU0H5x OddwPaaMf2rVyXG2zti1WB5g+iEy1Wzf8WiXULlCNk9cFpYTk9qfO4ZKpAJDfMxEc0WM 0U5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=A6ozaRuL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n6-20020a170903110600b00182bccf6195si1445241plh.596.2022.10.29.01.04.53; Sat, 29 Oct 2022 01:05:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=@chromium.org header.s=google header.b=A6ozaRuL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229870AbiJ2HcT (ORCPT + 99 others); Sat, 29 Oct 2022 03:32:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56444 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229450AbiJ2HcR (ORCPT ); Sat, 29 Oct 2022 03:32:17 -0400 Received: from mail-pf1-x42a.google.com (mail-pf1-x42a.google.com [IPv6:2607:f8b0:4864:20::42a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8D38E1BB952 for ; Sat, 29 Oct 2022 00:32:16 -0700 (PDT) Received: by mail-pf1-x42a.google.com with SMTP id 192so6603522pfx.5 for ; Sat, 29 Oct 2022 00:32:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=fZy5lCa/2Ecq1kSp+TM41cU7cXmzgRAAem3qyDrtqVE=; b=A6ozaRuL05mZkdsRzdSlURHF6+RyhhlQMHJ17oRbpBtm3eHluiPPTe/pjG6GCA10vk tspsEtfuGzEps6YAzOIbVmjuDaXvqm1pWzEH1nBnDI3wqRh0OvIqYp2m7/OwTKipwoyl NAZ2yriUdMjhNWS1Wx7WX9sK0FE0Y59FOGeLg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=fZy5lCa/2Ecq1kSp+TM41cU7cXmzgRAAem3qyDrtqVE=; b=mMTuGAwqmL8TU8QnGbfP0a19luUgZjpPRo9TS97rUN2MJ6grp1R7Jyge3Ij/DhIWlL MwOubnhIXIU4OohjtwcAjUu36MjxulEbgRoMF9dSBv6G6kNqf3OA08KZTUW9zlN81+Jv kKvCYba4Nso6mdEWSUhMJwI56T7GRjJFABh1vfiLdnseN7s+R7qot5TeWeD70tQEphiq tuO8RQxFaltqIS+wpClVw8Kcrsk+Z3XSiUjbawW3RuzT+EPhz3f5vK4hA74hzueDoRvL NaM9QTsh7rBvxJOZTMNCKwAEUpsoYZNRqblO0j2fK/nPeXHgOMDSykJsD5x4LmftrPdy 1VCQ== X-Gm-Message-State: ACrzQf3dUx5s8q8MbQdltcwxvbCThnY1SPXsg+pyyT0WnCaA/BIRhnkS 4jT2G27DoP1qWqz/wkxgrL+ZJA== X-Received: by 2002:a05:6a02:10a:b0:461:26b8:1c95 with SMTP id bg10-20020a056a02010a00b0046126b81c95mr2895261pgb.503.1667028736033; Sat, 29 Oct 2022 00:32:16 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id j7-20020a170902758700b001868ba9a867sm607345pll.303.2022.10.29.00.32.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 29 Oct 2022 00:32:15 -0700 (PDT) Date: Sat, 29 Oct 2022 00:32:14 -0700 From: Kees Cook To: Gwan-gyeong Mun Cc: airlied@linux.ie, trix@redhat.com, dlatypov@google.com, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org, linux-sparse@vger.kernel.org, llvm@lists.linux.dev, arnd@kernel.org, intel-gfx@lists.freedesktop.org, nathan@kernel.org, rodrigo.vivi@intel.com, mchehab@kernel.org, tvrtko.ursulin@linux.intel.com, mauro.chehab@linux.intel.com, ndesaulniers@google.com, gustavoars@kernel.org, vitor@massaru.org, luc.vanoostenryck@gmail.com Subject: Re: [PATCH v5] overflow: Introduce overflows_type() and castable_to_type() Message-ID: <202210290029.3CD089A86C@keescook> References: <20220926191109.1803094-1-keescook@chromium.org> <20221024201125.1416422-1-gwan-gyeong.mun@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS 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-kernel@vger.kernel.org On Sat, Oct 29, 2022 at 08:55:43AM +0300, Gwan-gyeong Mun wrote: > Hi Kees, Hi! :) > I've updated to v5 with the last comment of Nathan. > Could you please kindly review what more is needed as we move forward with > this patch? It looks fine to me -- I assume it'll go via the drm tree? Would you rather I carry the non-drm changes in my tree instead? > -- Kees Cook