Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp7254089rwi; Mon, 24 Oct 2022 11:56:04 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7yVF08Qq7qdaARQJuHgA/DJorK1J3cDEE33okoNzuN6dlzn0NBcZEwnEynsgiSMtiWDIbz X-Received: by 2002:a63:cc4a:0:b0:439:1c48:2fed with SMTP id q10-20020a63cc4a000000b004391c482fedmr29578387pgi.618.1666637764588; Mon, 24 Oct 2022 11:56:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666637764; cv=none; d=google.com; s=arc-20160816; b=cp6Jw88yibJpGk97E0Qj1zolIEphwJCMmxM2ZUoAUlyihgSqVNnKxRCyTB9DeGaGi8 QX84+QwzF85q/ymAG5/8B7iRe1xdK07Na+5gK5W1wnASrg0ftRbt9IAqr9rBxCJt6I7o DBE3cx2+FGYjDUHFhBIXtx7AZCJ44w9AUVenUqARH/ggKqhDcaNTvtwHcpefERrcKt/x pILIMzOCO2GAa6WIoNp57o91n4pvyG+qJk6vBEqyL8BFwGhw3CqLRtfLAw6R13+5jdRN z9Bhhrd1ZWJAMwHwvn9kCau81xuQC+G4hB8TLFb/e8K2ayXwET473qqkSewQnhXVGyvO nGEw== 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=kQzpFZcP8Coy3MtkwLvplRdsueJt1u6B3qt5xoqDDG0=; b=oeOhNQ6TIQ4e9rX5VxfFQWXly1JUKtp2k1mgysO7cHbn3fH4ddaBkXlk3sRWOIGQgn 2TfdD6Wu+QDZonktVUnm+Dm3CJYyUHz9r50tHAtjQTe98YPW+dZEatPvB4zusR8NAMOo xsE0NxjDPL643bR7H/sfLT44pz5U8hRd3gIv12+ugJ5evO/eIT+d1tLGyV+AFE+z/U0F u98tDc9tLh6PUJGygTTCrDXUr2/Sy9F3Mc1GZnUD1zV2Loav8MgEGmcyF+mYpqtyHgML M4QLRc7NAQ8NnhcTnLKwfLlG4HRAdgrNf5AeffHvuuMMJJmjmhen0HEuiwcxG4DIotlC LDWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b="DC/JXvGY"; 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 c19-20020a17090a8d1300b0021332d10601si585055pjo.183.2022.10.24.11.55.52; Mon, 24 Oct 2022 11:56: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="DC/JXvGY"; 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 S230274AbiJXSid (ORCPT + 99 others); Mon, 24 Oct 2022 14:38:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39844 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231844AbiJXSiQ (ORCPT ); Mon, 24 Oct 2022 14:38:16 -0400 Received: from mail-vs1-xe2e.google.com (mail-vs1-xe2e.google.com [IPv6:2607:f8b0:4864:20::e2e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8C5726589 for ; Mon, 24 Oct 2022 10:20:15 -0700 (PDT) Received: by mail-vs1-xe2e.google.com with SMTP id q127so3650965vsa.7 for ; Mon, 24 Oct 2022 10:20: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=kQzpFZcP8Coy3MtkwLvplRdsueJt1u6B3qt5xoqDDG0=; b=DC/JXvGYxRCs4XEoLBmqW0D0Vz2KsH2C3DgLHL1fXNfSPBwBNLhBvG1aiiz7Uuj8I5 WmXcMVYsgZ0vNojncjGyGTEg7WfCECT/PHBTwyfOAa1wN5JjymQANnwgpOuOnPLj5cBC azfIciBEYryDpqGxNAu6DhUj9whA1Y6gO1Ggc= 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=kQzpFZcP8Coy3MtkwLvplRdsueJt1u6B3qt5xoqDDG0=; b=ooWtzP8IjhEydGSEvu834rju3Eb7c/UnU9lFHlxXfq1Cj36FNOuzdFKxikJWQwYkXr g2Ae9VhYq3FlOzs7whuKOk0Tt1M1MGAY0EVEMqCdBdgpj2aMJxD/b/MCdtF4PRi/1VaZ rasVeohjmeBjmXTEwk+dDRRJTanBhyM6x9S7iDta6eyvhlJWnWoLomGIThes4aiMwWo+ Fbofo28/VeNSpk470Aix62MNb9sZwM10mUMwk2mrncTZ/5yNvDigPim5IEfcELZlTW6J 4eytPZmNprkqoeK6wLHT5JlStQBifYEiLoas5QFTYBkp7QPhH7Nyb11kskICfLGot14s kcBg== X-Gm-Message-State: ACrzQf0V8DjQGvLiKkwJ99CUuw4s/hE5+2lmsNe8YvQK4xFCgf9RqTAm apTHICME60zsLtlyawoOL5OshxWbt6kw+Q== X-Received: by 2002:a0c:aacd:0:b0:4ad:fe0:4e84 with SMTP id g13-20020a0caacd000000b004ad0fe04e84mr28565849qvb.8.1666631472425; Mon, 24 Oct 2022 10:11:12 -0700 (PDT) Received: from mail-yw1-f175.google.com (mail-yw1-f175.google.com. [209.85.128.175]) by smtp.gmail.com with ESMTPSA id j15-20020ac806cf000000b00359961365f1sm210801qth.68.2022.10.24.10.11.09 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 24 Oct 2022 10:11:10 -0700 (PDT) Received: by mail-yw1-f175.google.com with SMTP id 00721157ae682-3321c2a8d4cso91468527b3.5 for ; Mon, 24 Oct 2022 10:11:09 -0700 (PDT) X-Received: by 2002:a81:d34c:0:b0:349:1e37:ce4e with SMTP id d12-20020a81d34c000000b003491e37ce4emr30065031ywl.112.1666631469533; Mon, 24 Oct 2022 10:11:09 -0700 (PDT) MIME-Version: 1.0 References: <20221019203034.3795710-1-Jason@zx2c4.com> In-Reply-To: From: Linus Torvalds Date: Mon, 24 Oct 2022 10:10:53 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2] kbuild: treat char as always unsigned To: "Jason A. Donenfeld" Cc: Dan Carpenter , linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org, linux-arch@vger.kernel.org, linux-toolchains@vger.kernel.org, Masahiro Yamada , Kees Cook , Andrew Morton , Andy Shevchenko , Greg Kroah-Hartman Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.8 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 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 Mon, Oct 24, 2022 at 9:34 AM Jason A. Donenfeld wrote: > > Give these a minute to hit Lore, but patches just submitted to various > maintainers as fixes (for 6.1), since these are already broken on some > architecture. Hold up a minute. Some of those may need more thought. For example, that first one: > https://lore.kernel.org/all/20221024163005.536097-1-Jason@zx2c4.com looks just *strange*. As far as I can tell, no other wireless drivers do any sign checks at all. Now, I didn't really look around a lot, but looking at a few other SIOCSIWESSID users, most don't even seem to treat it as a string at all, but as just a byte dump (so memcpy() instead of strncpy()) As far as I know, there are no actual rules for SSID character sets, and while using utf-8 or something else might cause interoperability problems, this driver seems to be just confused. If you want to check for "printable characters", that check is still wrong. So I don't think this is a "assume char is signed" issue. I think this is a "driver is confused" issue. IOW, I don't think these are 6.1 material as some kind of obvious fixes, at least not without driver author acks. Linus