Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp4737211pxb; Tue, 28 Sep 2021 02:58:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzFt/j1llHStIiIy1h6wBapVSxLzdBbInd1coGCuzc8yQAvWZ+eM8xhaSexu67O0vIWyarl X-Received: by 2002:a17:903:32ce:b0:13e:2245:6fc8 with SMTP id i14-20020a17090332ce00b0013e22456fc8mr4354353plr.67.1632823130758; Tue, 28 Sep 2021 02:58:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632823130; cv=none; d=google.com; s=arc-20160816; b=fc4DNHVTZfqha+cmn4eaLgXHKQ91jXRuZtlQwKYSbwXkdSUKXKjnS1yKrDMC2XWGur YXxPAlF4Bdtf98JDfMDaDByDXAbTGD64iO0Ehs/xFMxywg9MAWC5Lt8fySPo5J2Vf/hi aiAsoNOLp7M3OSNmzKALFaD1Sdcp/EU6riIJxWN+dwZfYFaatHM5pR9aVRGhmLFrwCUm i5FhrSNZlpFbzxliXNRpajHtIGSvbnOBTOxGXdXd3NsuUQfIBaWG1ry/45JL3XvviLkM acnW69py05Xy6eONd7Ty6pNbOximhb1eTwojHOPkoWFpOnG5TR0zBrzpAW3mEJE4GsV5 RPMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=sU/LhEZ8q3BeQ6P/PiHIYla/ZdlSW3YiCmnYV8PIXuI=; b=bO7j6MW0Ci1qLw1eRRZzlf4iTAEcsFqp9Sirjj5j8yrdJ69J9aTnA4GlOSiWDbWKZD xZNPX1HQXtQfOtUML4KuPOEmn3ypWrXKeEiDTCLypkFjt3D3y5NjYcTVhGucA6byTJsm UqPr/bXjC9TZdpEYoXoD5O5LiZfyOgvMLLF069Ba4GrJgAX7O97QucVugaupzgj7d/fq +2FgLrtcd53tMF0hRl9ZuaSw47NtH+OFvKiPnhWyL6asdM2owpcA0Hv1zxC+k9m4aBKW Y8dA7oS/diyDVBix2+oj1PtAOP+1a795unUGup4/FYhMtiE/R7LOb+uFUuX9s4VOoC1e 9i7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rasmusvillemoes.dk header.s=google header.b=VZb+3cpQ; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e25si26872750pgv.525.2021.09.28.02.58.37; Tue, 28 Sep 2021 02:58:50 -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=@rasmusvillemoes.dk header.s=google header.b=VZb+3cpQ; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240082AbhI1J54 (ORCPT + 99 others); Tue, 28 Sep 2021 05:57:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43870 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240060AbhI1J5z (ORCPT ); Tue, 28 Sep 2021 05:57:55 -0400 Received: from mail-lf1-x12a.google.com (mail-lf1-x12a.google.com [IPv6:2a00:1450:4864:20::12a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 72BF6C061740 for ; Tue, 28 Sep 2021 02:56:15 -0700 (PDT) Received: by mail-lf1-x12a.google.com with SMTP id u18so88773091lfd.12 for ; Tue, 28 Sep 2021 02:56:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rasmusvillemoes.dk; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=sU/LhEZ8q3BeQ6P/PiHIYla/ZdlSW3YiCmnYV8PIXuI=; b=VZb+3cpQfdzvddM3ZSwyo95tO1IwqURM2VUyschymPHl9RVL+g8ruFk5g23boV7dhD nI0uXn9W2EmbAY9wgbbOZoGKTUdapoQYzHW5BdSyxvA7ygd+xNKNK5TilO2yE8708XAo 7IWDjKg5fWb3I6i4p631kDaURnh4cIsZuiaHE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=sU/LhEZ8q3BeQ6P/PiHIYla/ZdlSW3YiCmnYV8PIXuI=; b=N13N+wehyNL7nR7sHa53fWu9aMwtriiwH1Yeh8/ei6bv7KtwhuAarSBH2dOdYRimDo Y5midN1QPB7b59c8LGI7SQciyG7SlQOt0MCGYq1OGUQedCux8n2Jr28vluBgsrHYKwSN bhxA31ANI9UFlpGCwzsLlS4wRh+I/KcHO/sQDWp8T4Ar9sl2+Itiu7ELyfYHJpRS8hgK amwp9BccObO6ReiGxZ0LHv+ZJvFSe95cScrvIH7Cm9SFORszBKiqpT6uWVEcK02+H8VA RZ4BBMNhNmqP+rQBx9AA3NteFyrn+UcGEx7k0cPaC+tVZTfD6fszUx2uyHMURC2jwQhX cw6w== X-Gm-Message-State: AOAM532FUlCtRDY6Keu8FNcxVjVlO1dpTVBKRvzqEKAMwrnmyppu4XLx R6i2wErYCiMBocF4x6bN4o7BCA== X-Received: by 2002:a2e:974b:: with SMTP id f11mr4842574ljj.385.1632822973596; Tue, 28 Sep 2021 02:56:13 -0700 (PDT) Received: from [172.16.11.1] ([81.216.59.226]) by smtp.gmail.com with ESMTPSA id y20sm2304960ljn.88.2021.09.28.02.56.12 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 28 Sep 2021 02:56:13 -0700 (PDT) Subject: Re: [PATCH] vboxsf: fix old signature detection To: Dan Carpenter , Hans de Goede , Luc Van Oostenryck , linux-sparse@vger.kernel.org Cc: Arnd Bergmann , Nathan Chancellor , Nick Desaulniers , Al Viro , Arnd Bergmann , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev References: <20210927094123.576521-1-arnd@kernel.org> <40217483-1b8d-28ec-bbfc-8f979773b166@redhat.com> <20210927130253.GH2083@kadam> From: Rasmus Villemoes Message-ID: <78f6d6cc-2be5-c69b-bd17-7da135448438@rasmusvillemoes.dk> Date: Tue, 28 Sep 2021 11:56:12 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: <20210927130253.GH2083@kadam> Content-Type: text/plain; charset=windows-1252 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 27/09/2021 15.02, 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. FTR, while examples are not normative, this: EXAMPLE 2 Consider implementations that use two's complement representation for integers and eight bits for objects that have type char. In an implementation in which type char has the same range of values as signed char, the integer character constant '\xFF' has the value -1; if type char has the same range of values as unsigned char, the character constant '\xFF' has the value +255. doesn't leave any ambiguity or (implementation|un)-definednes, and sparse interpreting '\377' as 255 independent of its target->unsigned_char is a plain bug in sparse. Rasmus