Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp939790rwi; Wed, 26 Oct 2022 08:56:21 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6kb28i2N5obdAIVZnjNSUBefS3BwzoOPb/XkFpD420s4YM8H0aTIOJLtFuEXjTRNAytX4i X-Received: by 2002:a17:907:2d1f:b0:78e:174d:2ce0 with SMTP id gs31-20020a1709072d1f00b0078e174d2ce0mr38572803ejc.638.1666799781288; Wed, 26 Oct 2022 08:56:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666799781; cv=none; d=google.com; s=arc-20160816; b=Ha7vu+fpQ7ZndnBbs8ipSPdN/GHJXeWRwmOQTMuZ2tiv/BqFQFwEuRKQFBq1rYPIpE vP4phuuX4XghFYkJqluaW9YekR7+eWlhncFztXkM4JDTQ7gKePnkTc7PPYB2U3JW8vZV KI544x9hwn+5p2wJCi889Bhy3m0c6GVO/Ro0dNU+rUq7wApkvKAGgdJW9SZ++PdJEWct a6a33oTckUOowVpgXYMxenkWQV1sR005fMMpQRnmX4g+2eD+qdfSxoDgkcgO1GyUPwEk bTKTiTTRggeng9Lb9ciLSKCgjoD6uupA745cNCBIPANV0I0jM1MXUGP6QBdU6zLa9bsF klig== 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=cEIES9uoI6udr7n0rwDVmg+JFtlw13MTcmUB6NYS/Fs=; b=OoL1XQu7xxzEUUXTvBp0f+eTzLEeE4xnZrdUzcDe7KlIZI5uhI7phJI0+OZPFfbVGw LtiXt3hqOXZ7bigilRiTuxi+6uNhyOzmhgSpc3CcDIvQKTWPAmomtrgJ1EqYzAhALUmX 7SF56FEoNM/zS0exqoA16hqgVT/I/8YWZNsXvfWJeEfHUMFU3oKKLBpKP9S96hXgbtz9 yOMxLLB1E63Hl4QzcF66+d2EPKQr1hoMfit5H6Qus8uk7OyHUR7dm+ExLG4v748W84UQ fAyKIn4Cv/ug6qL4Rijhgsof5JZbvgK2WUlwvQDBPWqz3wg/nHidr4kXoenWMiKRSCav 5D7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=mNMDzf7L; 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 h18-20020aa7cdd2000000b00461a21ef785si5481443edw.247.2022.10.26.08.55.28; Wed, 26 Oct 2022 08:56:21 -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=mNMDzf7L; 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 S233810AbiJZPll (ORCPT + 99 others); Wed, 26 Oct 2022 11:41:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43446 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233882AbiJZPlj (ORCPT ); Wed, 26 Oct 2022 11:41:39 -0400 Received: from mail-pl1-x631.google.com (mail-pl1-x631.google.com [IPv6:2607:f8b0:4864:20::631]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5DDBFF0193 for ; Wed, 26 Oct 2022 08:41:38 -0700 (PDT) Received: by mail-pl1-x631.google.com with SMTP id y4so14491101plb.2 for ; Wed, 26 Oct 2022 08:41:38 -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=cEIES9uoI6udr7n0rwDVmg+JFtlw13MTcmUB6NYS/Fs=; b=mNMDzf7LqnhsTxfEgDLr6FNzx9lpzODWlhl8Q8L8+iYUYSgbt6RtNYbc6GlfeRvDYV xcLawmPkaG1E0TGfjOdmVTHe3qkBlZTe6Y5V+o3FKz6thO9oXljGO6sVXa5qhFY109Tg FMmn/0GS+49mB2JnREnsggHuxqU6sSafXueBw= 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=cEIES9uoI6udr7n0rwDVmg+JFtlw13MTcmUB6NYS/Fs=; b=TxGP1rR+NyML5ERwYZEKttC94nux3mRkAmmSqUUSUrvJSuOCCPgR7YAQEA+IxRVY19 FpwWfw6Q+2s6wkkuJqykXIURHwMKBn423aE0hXosYEdHGe/vfZhP/nqD+gXfRZv2nKbU wbhCJyVHgStcaq+Npo5WdUOzs09jpbpVveHKkQ0lfJXy8g73+wlJsFL3w8mCVgWE7KOi rboWZfUj9lvUj/XhAn+RYoUC0OFtCM/pKJIAkUIYpymEYtSLIPS2a1bC2MEebkS6hO84 fo7FpkMjiM9telrEJU10Zsr0CHYfdkAaA5mOkvC+eWVpEtdDhtnt2skMUTNpflbfjxQF 7pbw== X-Gm-Message-State: ACrzQf3Ev9hsmhPQTONJbOc0YN0bM+XXPj4EC6i612XkFK2prHXh6wDc 62hoctDxsN+e1zdSdXfl3PDfuA== X-Received: by 2002:a17:90b:110c:b0:205:cfeb:cfb with SMTP id gi12-20020a17090b110c00b00205cfeb0cfbmr4947459pjb.75.1666798897930; Wed, 26 Oct 2022 08:41:37 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id a64-20020a621a43000000b00528a097aeffsm3143679pfa.118.2022.10.26.08.41.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Oct 2022 08:41:36 -0700 (PDT) Date: Wed, 26 Oct 2022 08:41:35 -0700 From: Kees Cook To: "Jason A. Donenfeld" Cc: Gabriel Paubert , Linus Torvalds , Segher Boessenkool , linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org, linux-arch@vger.kernel.org, linux-toolchains@vger.kernel.org, Masahiro Yamada , Andrew Morton , Andy Shevchenko , Greg Kroah-Hartman Subject: Re: [PATCH] kbuild: treat char as always signed Message-ID: <202210260840.475445C@keescook> References: <20221019174345.GM25951@gate.crashing.org> <202210251555.88933A57F@keescook> 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,URIBL_BLOCKED autolearn=unavailable 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 Wed, Oct 26, 2022 at 02:04:30AM +0200, Jason A. Donenfeld wrote: > ... (Once the > -funsigned-char changes go in, though, we should probably decide that > s8[] is never a valid string.) Yeah, that's my goal too. -- Kees Cook