Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp60733rwi; Wed, 19 Oct 2022 17:25:04 -0700 (PDT) X-Google-Smtp-Source: AMsMyM48ZUEO1vGL8BVvBp09lD+ZG+COXBwa8zXyDOgI/h3PS5EhMsbynVmciS3P9ExZUI+KMAZD X-Received: by 2002:a17:907:720e:b0:78e:2b59:fdf1 with SMTP id dr14-20020a170907720e00b0078e2b59fdf1mr9114118ejc.659.1666225504636; Wed, 19 Oct 2022 17:25:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666225504; cv=none; d=google.com; s=arc-20160816; b=UyuRY5hwR3jd1h7j8+7bmOQf1b3Y3rug5/015u1EM7UBUfW/JU6DG9fwIpT55oUvcX LwQTSLanR9Tod11F30YOayfqxPtfYybO6RV6uRptVUbFZv5rdlaSaR8I8ln/m+nNYN+n sCs+KdMpOri+dFbPU7DtUJNncqsIZg/p7h0AejoO+vuJA7Ing3QUsHReXDI+awJJvRYS OI/ssAN9TtNPt91fhy1fkCQYqdRHuvUUvwGMgALv7vK6zcZMtvrgzvt+zwTFzkCW9SJC cI8aUiB8sAO0MVWJuCyiu90m0G+ZqHDARt2mjTKTOpzjOppk7OxuWzI7HKztpyi5Ibj9 QOrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=TvTy8n6C/1bhGfXbm3sWLXfdEs9qoqny5LEASHEaNLk=; b=d2wylcKdOcL4jk7B1P8ng22f9LQ+/y2EfOQBePp4TereOkiGKaEHhDH5zH5iBcxtGN E3TiFxrtikhXdPNR4eA1yAHn0PWGCMMBUBgArNDfd2p8GdyHDwtFeXIuXX/utAD5v++a SYBSjl1Z7PVmBTGvVCDqTQcUVJ29adpTi/32tJwHf8D65okXrclcoOh4renuMArdtd4z SvDcAwQk70rRsVUZ+KY/qYXudk/nR/o4oRJ7vXUAlX7c2XnbAI84r0wC1s1k9t2dyUdS FcjF4pujrlDvw5kYaH7FnqPz1NMqmHIABH7gBWuZegHKURqp+YMLEgzo2IR2Ne9JKHYA /E4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=XUuyKUtV; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hp5-20020a1709073e0500b007803e371aedsi17923941ejc.161.2022.10.19.17.24.38; Wed, 19 Oct 2022 17:25:04 -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=@linux-foundation.org header.s=google header.b=XUuyKUtV; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230037AbiJTALU (ORCPT + 99 others); Wed, 19 Oct 2022 20:11:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54798 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230089AbiJTALS (ORCPT ); Wed, 19 Oct 2022 20:11:18 -0400 Received: from mail-qt1-x835.google.com (mail-qt1-x835.google.com [IPv6:2607:f8b0:4864:20::835]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5CB291B8678 for ; Wed, 19 Oct 2022 17:11:15 -0700 (PDT) Received: by mail-qt1-x835.google.com with SMTP id f22so12790331qto.3 for ; Wed, 19 Oct 2022 17:11:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=TvTy8n6C/1bhGfXbm3sWLXfdEs9qoqny5LEASHEaNLk=; b=XUuyKUtVk/E8FvAa0yrjE7arzz1tSezBbWYYJSXcz6sxfS6RHTtGrPKvwnKEOdW3oD RsfHg547QyRyTxoGJWre6JJxFdMYHlAnnqnNTo5EIUQ7RxnVkA1jAWPv3TG/Y8W+QUJ+ IgidGLePtNsUdi3C/qbpsGAfSgrU0ybb6wqpk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=TvTy8n6C/1bhGfXbm3sWLXfdEs9qoqny5LEASHEaNLk=; b=QgmCMGlR3g14Y9d9iiVuq+x0ODxhrTVQtuHgg6vYiT/PIMcWFA5h/D/grUxsMbxICG e711Lv+5wKDKFaW8KrS4ATo9WRJzyU62SRNzLFhzhOIKc9BpIkIhxWA7snbjc8OVdSj1 PwPP65vtpL8DUDClVA24MLC3pfC8oAIwAEmbZ9UedkxTF7NLVTF4Cf7gkfoWfj15bhpT /4bj+8PAOSuAY534lq1I3CUNlcQzmFogGxYSklLFOqkYAK6Yt7DSjm3+G1/sFLP8FMJ5 uN/99CksAmOTXF7CSBpG7VRSxUllWFb9zq7sj+va1XJ4CHg51OICHfbx9SR5ok04R267 zPQg== X-Gm-Message-State: ACrzQf18oC45/Mz59sVMjbsqDWIcnp9oAiB8ojP5vRFYwdDDr15kUck2 M2FkY1uhTe2NLJR7jGlYB81VLyyCi8Oplg== X-Received: by 2002:ac8:7f11:0:b0:39c:e908:6451 with SMTP id f17-20020ac87f11000000b0039ce9086451mr8905999qtk.560.1666224674246; Wed, 19 Oct 2022 17:11:14 -0700 (PDT) Received: from mail-yb1-f169.google.com (mail-yb1-f169.google.com. [209.85.219.169]) by smtp.gmail.com with ESMTPSA id gd21-20020a05622a5c1500b00399ad646794sm5081637qtb.41.2022.10.19.17.11.11 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 19 Oct 2022 17:11:12 -0700 (PDT) Received: by mail-yb1-f169.google.com with SMTP id o70so3529801yba.7 for ; Wed, 19 Oct 2022 17:11:11 -0700 (PDT) X-Received: by 2002:a05:6902:1002:b0:6be:d89d:98d0 with SMTP id w2-20020a056902100200b006bed89d98d0mr8880613ybt.571.1666224671596; Wed, 19 Oct 2022 17:11:11 -0700 (PDT) MIME-Version: 1.0 References: <20221019162648.3557490-1-Jason@zx2c4.com> <20221019165455.GL25951@gate.crashing.org> <20221019174345.GM25951@gate.crashing.org> <202210191209.919149F4@keescook> In-Reply-To: From: Linus Torvalds Date: Wed, 19 Oct 2022 17:10:54 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] kbuild: treat char as always signed To: "Jason A. Donenfeld" Cc: Kees Cook , Nick Desaulniers , 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 Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no 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 19, 2022 at 1:35 PM Jason A. Donenfeld wrote: > > I wish folks would use `u8 *` when they mean "byte array". Together with '-funsigned-char', we could typedef 'u8' to just 'char' (just for __KERNEL__ code, though!), and then we really could just use 'strlen()' and friends on said kind of arrays without any warnings. But we do have a *lot* of 'unsigned char' users, so it would be a huge amount of churn to do this kind of thing. And as mentioned, right now we definitely have a lot of other "ignore sign" code. Much of it is probably simply because we haven't been able to ever use that warning flag, so it's just accumulated and might be trivial to fix. But I wouldn't be surprised at all if some of it ends up somewhat fundamental. Linus