Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp3952085pxb; Mon, 27 Sep 2021 06:23:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzWW5ra7xduwLfCkzjOtjiK3gtPpEcPMd8tFViHpCe0EZQ/k2Kt5Zsq9dvto1VVoZCxKFfV X-Received: by 2002:a63:4a18:: with SMTP id x24mr16418435pga.209.1632748994576; Mon, 27 Sep 2021 06:23:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632748994; cv=none; d=google.com; s=arc-20160816; b=i09iPCi7r6CqgYrjRLu93OQmyMLwq6G/VHntNjG9mQeErOdCn+ZBtVPGmi6nnywqR6 5Z6HpVX/yBRxSf+9O723WBVhWGv6mepih2d5RZ0ZIYfrtiBZxzzco2XW8YKYgpV4ZCKs vbAZ1Wz2vRwoOiLFtliFSLKx/c9erj8F5alqc6dr+e0bGaQ6/6gW7+I8yQMlmQfuyZDv TSQWLnIdXEJqEcIIKJCMxLf9E6n0T6UcwaBIvu/qmRpZ7jxkzQqO8nGLuNyfQ6at+RnN pwg1d/UNYpsZ7/Ik4R2iR1oFR5d6wKDwEe2oTp+USSXAocdt93dzMKoZpXlYM9c3Qq2Q Qfcg== 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=JZei87dHzEUaiRGqkYddwGTzQMgHDujVfNSg/9XKyJY=; b=iofnq7H4exZawhQrGVG/5CtpW84E63cMegZm75GaI/UYifg1HiUR5dVyytMX0glCuf er/pRXFQr+I0BfaTiR/hz2Bkf0tRpU2XXSU06f03SKqhrIc/C42tm3ADcz36v/QnI++z br9lUeByFf1tufXVikBo/N+pgeQuZ3mAokZDEBbWtHDwJOFHxB9T+OFflnP+sVHwPQoo M1Xe/G2wc/REeh3QLqZxVBZPSQNCYMScjsGoSye6YBt4Za+8O9bPDWMIKsM7SNrO2tP3 rjMY/u7v78gWQAr9ymntoGkzJroaM3g2Toxg/QTWfBoamGTMApNtPdx3YKv5tG3b2HuK eHVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OOFnIZyH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b10si22913049pgq.242.2021.09.27.06.23.01; Mon, 27 Sep 2021 06:23:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OOFnIZyH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234359AbhI0NXs (ORCPT + 99 others); Mon, 27 Sep 2021 09:23:48 -0400 Received: from mail.kernel.org ([198.145.29.99]:56286 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234158AbhI0NXo (ORCPT ); Mon, 27 Sep 2021 09:23:44 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 76C5D6109F; Mon, 27 Sep 2021 13:22:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1632748926; bh=Das70DqAnDl+vU2D9E9K2Sm7+IL1whzT5AdV7Cv64RI=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=OOFnIZyHjl73BWpGX+Odm656Lyv/9q2gXQ5Nzg06FS72+jSBjAT3ye3rcK6JThKXn ogfnUKFoKLZanzkbm/eyK8AX5kJqeDCFCRdDTauFJQU/n3K+RYlD4dksXT6dbd6PXy eCfZivWVyPXsL9sUsyfpTVD5+9jxIC+chV2ckEWXiOquv9WPcj8YTutekB71mT2f32 SCPn96NDRZCYC/GDdYXQ0c2excIFUXZK4s3EjL8v0VgM5SztqdrVgMO3VED5lN79nH ItpHfQLkAM2rm+RlVi/jpV/zvNo6b9x/Si1W647vCGpGji1+JviZxWTT79PrUfP9T7 IHQkyKOCYQVJw== Received: by mail-wr1-f41.google.com with SMTP id x20so7258258wrg.10; Mon, 27 Sep 2021 06:22:06 -0700 (PDT) X-Gm-Message-State: AOAM531lU+jpoVCRr0nmhF2srpF92s0jtH/8jIS6aFm85r90EZ8TmcFb LmF57NITeiGMe+r+cZICb5o8simtwy0Ala01g7M= X-Received: by 2002:a5d:4b50:: with SMTP id w16mr27916738wrs.71.1632748925101; Mon, 27 Sep 2021 06:22:05 -0700 (PDT) MIME-Version: 1.0 References: <20210927094123.576521-1-arnd@kernel.org> <40217483-1b8d-28ec-bbfc-8f979773b166@redhat.com> <20210927130253.GH2083@kadam> In-Reply-To: <20210927130253.GH2083@kadam> From: Arnd Bergmann Date: Mon, 27 Sep 2021 15:21:49 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] vboxsf: fix old signature detection To: Dan Carpenter Cc: Hans de Goede , Luc Van Oostenryck , linux-sparse@vger.kernel.org, Nathan Chancellor , Nick Desaulniers , Al Viro , Arnd Bergmann , Linux FS-devel Mailing List , Linux Kernel Mailing List , llvm@lists.linux.dev Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 27, 2021 at 3:02 PM Dan Carpenter wrote: > > GCC handles it the same way as Clang. '\377' is -1 but in Sparse it's > 255. I've added the Sparse mailing list to the CC. More specifically, ' think '\377' may be either -1 or 255 depending on the architecture. On most architectures, 'char' is implicitly signed, but on some others it is not. The original code before 9d682ea6bcc7 should have worked either way because both sides of the comparison were the same 'char' type, marking one of them as explicitly 'unsigned char' seems to have broken all architectures on which the type is implicitly 'signed'. Arnd