Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp4747365pxb; Tue, 28 Sep 2021 03:13:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz2Uxu3Kb+56LoI67DObjA+K66PdLU1Qf6Xr0Ovo7h2ApKtT2sr1ZLKUSxMzAqoT4j4VOw+ X-Received: by 2002:a17:90b:a0a:: with SMTP id gg10mr1810797pjb.4.1632823992355; Tue, 28 Sep 2021 03:13:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632823992; cv=none; d=google.com; s=arc-20160816; b=EJgZpYI1dyiChSxPq3glklfNC6/j6+a7d3IrRJ7jkwACSw/z9sfAP5O38abXaixzY4 Wzf07349SRmpXbKhqXRlSy9cqRYxFdTsKZCBI49UyD+lWKtj45nfrt8gxlSThaCKph48 Ik0+xwKJZr2o9cJF52Q+wpzXpLIP0R8F3YSl6OFHyBd0GgS5CID9vBN/kmS17rH1MNJY 4rnKhcJBXPToPSNjHJYmmC3T5w5Og0EIFBjkMeq3J15hKzj1+3Dj25ze4ckDNr2ISrZ2 VixbYsYA/9Ws+S7l9vAu3fvTAxRV2++NX7wb9m2p2f25BFWdLfnGn4YPTnSziPe1O+c6 MOeA== 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=yf5HKvGsOkZYIIXVRdWjtANuHpqqfLqPKIEufEDbBo4=; b=mXxzn0lYrTLbb7CiCC2VabZD4ttfnIPS/KlKQA5J8U3ILpXiBr4EWPnOPzs/4Z65kd ZRKWwv4K19AS752GhYU1z4IPxylbxAVGkygowYNotA25Hqik1CNMsQkl9aXQ2shyeFI0 2qc/7GPswRi/gNU+kxjtPFxkDaRR63tc8NOKqHb9aZTK7QM60RDKMaBdP3unvz6/SOQ0 k+vsTI2WQlpLRWr7llIcElrPju8ELm9h4+kiK3HczYn2os+pqqHMOusDupJjqEDioFFx k+WS1C9O9t81VVHj+GJx+O7Q6wcXwFfG6Iv4dZ1ZauuqLlx/u0l0SRh4xn3nmHVmsHVr JO0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QPA9Ru63; 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 q21si2472999pjg.17.2021.09.28.03.12.56; Tue, 28 Sep 2021 03:13:12 -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=QPA9Ru63; 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 S240141AbhI1KNg (ORCPT + 99 others); Tue, 28 Sep 2021 06:13:36 -0400 Received: from mail.kernel.org ([198.145.29.99]:38712 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240139AbhI1KNe (ORCPT ); Tue, 28 Sep 2021 06:13:34 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id A2580611CE; Tue, 28 Sep 2021 10:11:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1632823915; bh=Y7wSC7xrhvCDGxkQBLr8UtzzFVjfJNotICIdTFFi8Ok=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=QPA9Ru63h3uBzj/aj83aKCrlH2Ho8nnjT4vdhNQFbKk6Co+Hn3FZjekL20EX1KpLI FL50GDzBdXWbriiurg+DrVuvmonDBe+jhJPB9bTyL/d4bY6OWoPPP5YRIMnBp6zzTw 4n6A0yz8bTyAoop4B6nU7eiw7K8JyZLtCey1qr+Zb8wm4DVWjA55dTV6XKU1d3hS5V ir2Y3SKmHjwXJxijmKqLnENDPWKtHFTMKYpsYZTuFbx5KaEp4r5gYEtI1TbD5/tjPI owKYzZULoX5Q1ynW2wOZjGKXLrR2XIotIoIGmlVJriTxfHr33WKSUXvpwrW4d4sGeP Xh83CeYtUYlgw== Received: by mail-wr1-f46.google.com with SMTP id d6so56891135wrc.11; Tue, 28 Sep 2021 03:11:55 -0700 (PDT) X-Gm-Message-State: AOAM532IOQtmih9UULB6XIIlS/KdGQV8bf+USQ1BdIa0YGxWt0UDBou7 davltlxNc2rvtBA0w+pkg4rhsoIKK6ZuU/Z6TBA= X-Received: by 2002:adf:f481:: with SMTP id l1mr5373570wro.411.1632823914100; Tue, 28 Sep 2021 03:11:54 -0700 (PDT) MIME-Version: 1.0 References: <20210927094123.576521-1-arnd@kernel.org> <40217483-1b8d-28ec-bbfc-8f979773b166@redhat.com> <20210927130253.GH2083@kadam> <70a77e44-c43a-f5ce-58d5-297ca2cfe5d9@redhat.com> In-Reply-To: <70a77e44-c43a-f5ce-58d5-297ca2cfe5d9@redhat.com> From: Arnd Bergmann Date: Tue, 28 Sep 2021 12:11:38 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] vboxsf: fix old signature detection To: Hans de Goede Cc: Linus Torvalds , Dan Carpenter , Luc Van Oostenryck , Sparse Mailing-list , 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 Tue, Sep 28, 2021 at 11:40 AM Hans de Goede wrote: > On 9/27/21 8:33 PM, Linus Torvalds wrote: > > On Mon, Sep 27, 2021 at 6:22 AM Arnd Bergmann wrote: > >> > >> 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. > > > > Yeah. That code is just broken. > > > > And Arnd, your patch may be "conceptually minimal", in that it keeps > > thed broken code and makes it work. But it just dials up the oddity to > > 11. Thank you for addressing it. I usually try to avoid overthinking changes to "unusual" code like this, but your solution is clearly an improvement. What really threw me off this time is that my first attempt to address the warning was an exact revert of 9d682ea6bcc7 ("vboxsf: Fix the check for the old binary mount-arguments struct"), which in turn came from a tool that is usually correct and and that both Dan and Al thought the original patch was correct when it looked like it turned a working (though unusual) implementation into a broken one. > I agree that your suggestion is to be the best solution, > so how do we move forward with this, do I turn this into a > proper patch with you as the author and Arnd as Reported-by and > if yes may I add your Signed-off-by to the patch ? It's already upstream, see d5f6545934c4 ("qnx4: work around gcc false positive warning bug"). Arnd