Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1740218rwi; Wed, 19 Oct 2022 14:56:18 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4KUH/fWEHqJOuvcMMTq3Mjrdy3jGzoSb2tsv+dsJyZRIzt3QVCY6OvLJD2YgBsALzl6lTo X-Received: by 2002:a17:906:ee89:b0:73d:70c5:1a4e with SMTP id wt9-20020a170906ee8900b0073d70c51a4emr8117920ejb.683.1666216578105; Wed, 19 Oct 2022 14:56:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666216578; cv=none; d=google.com; s=arc-20160816; b=EHG6/A6CXj4Fota+nAGTpLjSrBm7fzHDAMA1ir+3b0HNlg9LJQs+MGUAiLRPBWsfTJ 3KufLPmxAb5GJ2hwyu9mAR386UzmaXLQ0vE1ltvOq2DsHGEqGGI4f9U32oUyh5BQe8RI ID0CQKARkixIEC6bQRqCnUNmeO98haogn2u14F99G0uWTMAFFB1XiDzfYtCWrrBEKUZV eBZVXrfgLD7pe4dRjl5sx+TkDS5LEbiOGGHBZssJr/rxwjEKxWjaTMMebxRlzn5U62+l Kr7w6jttV1ZwqMExEwP6Bkwt8jsVazig7p9rnq14x3WpqRSjP2oXBjyVKm/CwcYkeMEG p4aw== 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=txdjrnQxkksG5klYgF5siV+ewaBIwJ9LoBxaecxqpbM=; b=eAyBKtD4/mvAPJRdmQwffs9KFoaxTsyfs1ZbcdVKlbMjJnT0hh1XQV3j3bQO7lCkN1 qAPNOMhzwtHZyiZacK0joavylj2PO0dlfC5Z5VdtUX4TJ41yyc3pxsjVxkVlBd4yD5N6 QLjUdNqSYYOpRIAvh2QviBr9MUjiObU90tstsgssOxeUyhb/YexPoKkCyJAuPc4SfPpb QmbzahVlD5NnGoz2IWcTAUcMOq39Z9CLKMl5Y0loBzqX93WEme1vaMfkosHzUVcsH0xS 0DJWp36X+odXiNtttxqnFTE6bcu26lszNGydMuRy3+cPTqfoU+585GiVej3i0TKPy3uH +UdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zx2c4.com header.s=20210105 header.b=ox4LmpHN; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=zx2c4.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q6-20020a17090676c600b0078da414a7cesi12945245ejn.149.2022.10.19.14.55.29; Wed, 19 Oct 2022 14:56:18 -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=@zx2c4.com header.s=20210105 header.b=ox4LmpHN; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=zx2c4.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231401AbiJSUfb (ORCPT + 99 others); Wed, 19 Oct 2022 16:35:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58962 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230322AbiJSUf0 (ORCPT ); Wed, 19 Oct 2022 16:35:26 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D5DD83FA34; Wed, 19 Oct 2022 13:35:24 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 72963619D2; Wed, 19 Oct 2022 20:35:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BF9ACC433D6; Wed, 19 Oct 2022 20:35:22 +0000 (UTC) Authentication-Results: smtp.kernel.org; dkim=pass (1024-bit key) header.d=zx2c4.com header.i=@zx2c4.com header.b="ox4LmpHN" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zx2c4.com; s=20210105; t=1666211721; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=txdjrnQxkksG5klYgF5siV+ewaBIwJ9LoBxaecxqpbM=; b=ox4LmpHNCKy/7WPZCY7YOHMQ0vRz/vsVgq/eohG2xXAea9aXzjSWmRDnJSO0FjvzpzJeKG pNvC3iC9GgUPUdh0ge/wjY9HNVZHnjRyviwzo6em+tfsLxcnLqQJ3purFrPGM757Z4IsXA 2nmxgu2Zr0i+ZEDbZAA1U2q3qLRA1sk= Received: by mail.zx2c4.com (ZX2C4 Mail Server) with ESMTPSA id 8d11adb5 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Wed, 19 Oct 2022 20:35:20 +0000 (UTC) Date: Wed, 19 Oct 2022 14:35:15 -0600 From: "Jason A. Donenfeld" To: Linus Torvalds 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 Subject: Re: [PATCH] kbuild: treat char as always signed Message-ID: References: <20221019162648.3557490-1-Jason@zx2c4.com> <20221019165455.GL25951@gate.crashing.org> <20221019174345.GM25951@gate.crashing.org> <202210191209.919149F4@keescook> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_HI,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 Wed, Oct 19, 2022 at 12:30:59PM -0700, Linus Torvalds wrote: > The crypto code uses 'unsigned char *' a lot - which makes a lot of > sense, since the crypto code really does work basically with a "byte > array", and 'unsigned char *' tends to really be a good way to do > that. I wish folks would use `u8 *` when they mean "byte array". Maybe the attitude should just be -- use u8 for bytes, s8 for signed bytes, and char for characters/strings. Declare any use of char for something non-stringy forbidden, and call it a day. Yes, obviously u8 and s8 are just typedefs, but they're a lot more explicit of intent. Jason