Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp4760363pxb; Tue, 28 Sep 2021 03:33:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzy6vuHrAD2u/5U0bFFsyevu3nFG0EBjmP3vNz9Gi3sZhPh1x49h/Tsyi4sLGJGsRHuKRtv X-Received: by 2002:a05:6402:1b90:: with SMTP id cc16mr6600349edb.2.1632825222145; Tue, 28 Sep 2021 03:33:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632825222; cv=none; d=google.com; s=arc-20160816; b=P3AJ6j2vXZorV0VhPYaF+kulqyep5ynfdZQP78jq/x8XuCJZ5KnBXNNr050pU+Ojza ZUJa7JMPYYlGIpdr7sr/rYQ3X5Z13MmFjosCX+JafO6InF+wOqYR14XSKeJANMqpBjLZ kAjgOHDJVfxAyKoQh2QgktyCmGutrELz5bYeFFbjEDeOGPFppYXHsxTQ9R+DYkJk/gqa bOer/4gWXXDk2rQrbRcMUO042c6B+pFcNvWdKMc3U8kag89+xfNxZj43HwlfPLoCd45X 2OD6usG+584N25xlu2ZiqCOTy7GbjtDUC6zxhBkPmehznZBsKj3sjagTVpROWiZWvvlW khFA== 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=VmdbTi66suJMLWatzWuhWowSC1T11IvXHNAMlcFutSw=; b=F+YV3l3sQny7Ts+7NY9VJWcpqLGl0SXmjzgq7kchC853KMTQsud5DrXScVJYlo9klo rqtY1XHEgOc+f+8SCVuzrwlZC5kFcv+kQu1swwXFiq3JHk1HtbbPEKOoC2tAUGRc5VZv oK6f5WfcWKd/OK8SxvCuu/IrNDu2LbQLqOnY83K2xecXQ36jjgCmsT1JFBPJlZCFUYkO TzskIKvi+3AGiSgY36Mo+qqnuZhRv2OfSHwmVwtfOiARpdjDD7MTfOokLybWNKKED6jt tZYOqnbvuTjaSus6CaKgsyH15TK513Si2XNG7fuXspj8kxJNDqs6NrPwT979wjklfccp uYCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=BHQ15uVD; 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d24si2031002edn.474.2021.09.28.03.33.17; Tue, 28 Sep 2021 03:33:42 -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=@redhat.com header.s=mimecast20190719 header.b=BHQ15uVD; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240221AbhI1Kct (ORCPT + 99 others); Tue, 28 Sep 2021 06:32:49 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:21567 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240162AbhI1Kcr (ORCPT ); Tue, 28 Sep 2021 06:32:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1632825068; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=VmdbTi66suJMLWatzWuhWowSC1T11IvXHNAMlcFutSw=; b=BHQ15uVDBGoVdzsXScg2l3zjFtwyHJebUytpX0oGHxTUKek1bebL/iQDW3odMPeehgBFHj C/FYbpSYOmoiiyPQstZjidmtkMh4bh6wkvn9qYoORCk5uWkP6mUNqdPTwp47kcDR/ohN9+ Z1rmOc8Pm2aUmCdGAgMO3OZpsv1VmlA= Received: from mail-ed1-f71.google.com (mail-ed1-f71.google.com [209.85.208.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-572-MgsoEwsuOJ69sAdBz1nhDQ-1; Tue, 28 Sep 2021 06:31:06 -0400 X-MC-Unique: MgsoEwsuOJ69sAdBz1nhDQ-1 Received: by mail-ed1-f71.google.com with SMTP id a6-20020a50c306000000b003da30a380e1so16514576edb.23 for ; Tue, 28 Sep 2021 03:31:05 -0700 (PDT) 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=VmdbTi66suJMLWatzWuhWowSC1T11IvXHNAMlcFutSw=; b=SmENPwvIXI2imL33J/oA4hXep3+AKmlKwPqrHfmUykp6R11GdBGqVolj9twjT4rGVZ mT26KsgHuA6jKE6TgR+I0bD5UEbaYt3FAIEyNEyDMVBDWzbmsd7vBcmXYJ0487G+EH4t w9oIrGSPoTZLTsj9wO9XNmoGOtUqpjH17t3E3hsT5tvc94QVbzH/sbddlz/PbLkx01/b 3503SH/L0ZLgYDEtWeKE+hEWV32NjJvLW2UxtlVMoG5CR7dR6uPFGooadrORaOMdFHGu MpT6hah6E1imT6eLfz7prHDM/b29Z6UQCV1TFQVP3eYP+kvn/pFgC9OJ0HYzE6/hMgoc VtbQ== X-Gm-Message-State: AOAM5333praYBy9HE/k2NeXSRHD+0kX+GXGm095jN/8YivropWFCIX1E MVgvTZXD+HulQrvO73b+er54mb7VfeNojUsyKjA4hC5mqEw5WqC0ux4hGCfyRpTqNpVWQ+5FKHd bT+ky8aXljq5mViNVASzzzDcT X-Received: by 2002:a17:906:1d41:: with SMTP id o1mr5788837ejh.232.1632825064863; Tue, 28 Sep 2021 03:31:04 -0700 (PDT) X-Received: by 2002:a17:906:1d41:: with SMTP id o1mr5788808ejh.232.1632825064627; Tue, 28 Sep 2021 03:31:04 -0700 (PDT) Received: from x1.localdomain (2001-1c00-0c1e-bf00-1054-9d19-e0f0-8214.cable.dynamic.v6.ziggo.nl. [2001:1c00:c1e:bf00:1054:9d19:e0f0:8214]) by smtp.gmail.com with ESMTPSA id a23sm5346073edx.69.2021.09.28.03.31.04 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 28 Sep 2021 03:31:04 -0700 (PDT) Subject: Re: [PATCH] vboxsf: fix old signature detection To: Arnd Bergmann 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 References: <20210927094123.576521-1-arnd@kernel.org> <40217483-1b8d-28ec-bbfc-8f979773b166@redhat.com> <20210927130253.GH2083@kadam> <70a77e44-c43a-f5ce-58d5-297ca2cfe5d9@redhat.com> From: Hans de Goede Message-ID: <42797736-a64b-e244-136a-d4526b732a50@redhat.com> Date: Tue, 28 Sep 2021 12:31:03 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 9/28/21 12:11 PM, Arnd Bergmann wrote: > 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"). Ah, actually you mean: 9b3b353ef330 ("vboxfs: fix broken legacy mount signature checking"), but other then that yes you're right it is already upstream. Thank you Arnd and thank you Linus. Regards, Hans