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 X-Spam-Level: X-Spam-Status: No, score=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 56EE0C07E95 for ; Wed, 7 Jul 2021 21:16:12 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 2BD4661376 for ; Wed, 7 Jul 2021 21:16:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230004AbhGGVSw (ORCPT ); Wed, 7 Jul 2021 17:18:52 -0400 Received: from mx.cjr.nz ([51.158.111.142]:18142 "EHLO mx.cjr.nz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229829AbhGGVSv (ORCPT ); Wed, 7 Jul 2021 17:18:51 -0400 Received: from authenticated-user (mx.cjr.nz [51.158.111.142]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: pc) by mx.cjr.nz (Postfix) with ESMTPSA id 0BFB77FD1E; Wed, 7 Jul 2021 21:16:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cjr.nz; s=dkim; t=1625692568; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=TppLu6f/hfhtK8Qwgf8ZFDQ9bFhE1Ayw8OFMu2r85ZQ=; b=QlgPu6mTUAlPbe501qbKcaiqFs0wJcDR98FgpkmjEtfaCoTFBHg9ruKGczhEy0vXeMPJpH uMKPudqIAncu8JMOdaLs4nOgUqDtt99kvGtKSs0w9/pIxxIciaVirjt8kjRxiFSXIW8p1X fkJYD2zI1xWOGMsQRnEfw2H11uYj15GBRwehjby42twVsJdLGzpFVlyh6xH4X9ll/X52qt DN/jNPSLpNtEdhkrqH1HWgPJ2i98Qmd7qs+jj3ETM0ewsxG3RyuJ/tqSSSvqCHU8vd/W25 qpBiidm9zQZIG/Cxg9uiO27wWkRHgiyv0dl4PiFKBlK5jQi51TZvthD35umhXw== From: Paulo Alcantara To: Steve French , CIFS Subject: Re: [PATCH][CIFS] Clarify SMB1 code for POSIX Lock In-Reply-To: References: Date: Wed, 07 Jul 2021 18:16:03 -0300 Message-ID: <877di16d0s.fsf@cjr.nz> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-cifs@vger.kernel.org Steve French writes: > Another trivial (Coverity reported issue) patch ... > > Coverity also complains about the way we calculate the offset > (starting from the address of a 4 byte array within the > header structure rather than from the beginning of the struct > plus 4 bytes) for SMB1 PosixLock. This changeset > doesn't change the address but makes it slightly clearer. > > Addresses-Coverity: 711520 ("Out of bounds write") > Signed-off-by: Steve French > --- > fs/cifs/cifssmb.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) Reviewed-by: Paulo Alcantara (SUSE)