From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 21A15C38A2D for ; Mon, 24 Oct 2022 18:32:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229497AbiJXScH (ORCPT ); Mon, 24 Oct 2022 14:32:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47154 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231710AbiJXSbs (ORCPT ); Mon, 24 Oct 2022 14:31:48 -0400 Received: from mail-qt1-f171.google.com (mail-qt1-f171.google.com [209.85.160.171]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D5F69437E3 for ; Mon, 24 Oct 2022 10:13:26 -0700 (PDT) Received: by mail-qt1-f171.google.com with SMTP id r19so6000862qtx.6 for ; Mon, 24 Oct 2022 10:13:26 -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=H52jRiw0ocf1Au5Mp0JO2o3efUL/fjHskxEbxwBbwsDQiG2PbulazytN5CPD5Ox7wQ ry5k06gMh0G2xxNKBn8nduHvvpJE0fRwK0ahuzxuAgPGAossguVgv5sj3kiJ2DX9CiBx 19OJPMU1Te798w6pikibh8+HO3arVk12ZjGADnP/fOEyWTlu2mHPaJ7c1X1cQts8KzYX ygDefquAqcWUevDm3HtH8JPih5RUMwKktZ/qbtwA9v5IX3lzpJub72dUfaFlnoAqS+XD GFHAwYrHV3G1lY1jwp78q29IszfRGERIi8pAnTolnfEr2qT8HvBdh8E6whUXtF2APkr7 FTbw== X-Gm-Message-State: ACrzQf1di2I/03zu2J5NHz2JAcBze7ZrOxbEjb2VfwOPI5KUEqSiDEqn kKz5LN4NcyRbZbIG7Ylv/bRPbooKHAShVw== X-Google-Smtp-Source: AMsMyM7QgoxZBilcQCH89Sa80IZ2MLbTSbwYqpc8lDZsl0kS8sToQLM2xvsUeD8KhNaEP/8d4FoWaQ== X-Received: by 2002:ac8:59cb:0:b0:39a:dbc7:2424 with SMTP id f11-20020ac859cb000000b0039adbc72424mr28198250qtf.304.1666631471024; Mon, 24 Oct 2022 10:11:11 -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 cg15-20020a05622a408f00b0039bfe8acff6sm215364qtb.58.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-3691e040abaso91193657b3.9 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" Precedence: bulk List-ID: X-Mailing-List: linux-toolchains@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