Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp5683595iob; Tue, 10 May 2022 00:51:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwPtUGqBUHJn5nEP/5rL0CUPfDpXj9YBDqBUAPiMmAA99KkW31/Q0WlLLsJVxPdqP/MBZJT X-Received: by 2002:a17:907:6e04:b0:6f4:d6f3:c72a with SMTP id sd4-20020a1709076e0400b006f4d6f3c72amr18432385ejc.636.1652169098145; Tue, 10 May 2022 00:51:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652169098; cv=none; d=google.com; s=arc-20160816; b=YG48gHOSME1B2Kl/S6FRnBTb1IVCo/1kY16Pwh6jwVhP3s8M3WouxAlG6zIly1lS1s lSoGY2BWlubaRUIliCRuoR/4uQCDGt9gyaYafjypMONURXQUy6J5x5UuttMz6BMhh/E/ M1FpDjpNrgEptlveHSFwq+Ghzw/xTZ+HhRro0hHYxvrB+Z6opKXTEAqh6nbMzaS1Km8y ZjSzj0SBTIo+bCrIwg6PP7l5hdqF8QH6GGe0Ex4Pxe+P7vB8eWzBHjNQL4lS2yriec8y vZV1q8ZDxFEtc3MjGtA1fuYnTmw7IIFjgWgV0NvXHRiMc5QgtDTYrBQNDCaaKiTCc+hi Hm4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=O8rJ3oFelCzw0sFgdVae0q/fLnA7opnSC+G7ZxNdAd4=; b=U5x5AZfN/EfLA2qeIL8iUSu4uOKxXnDSV1PyRFczwAQXJr0rFy0jot2v4YpP13YTbZ TnEICxd6XU8mTtd2JHeYt0G2/2qghwHxx5ndOPTIyTLQUII4Z6R18eHou7I3kd1ZrerE mt29g0X2keJCAEzZIv38NgBG9wPDce92wTD+mKkPN7aS70IagaSAkKHbrJKmJ9k+l/2B molL+RBaUO1PwrQEoeyxbUwko2Y65iGjAV8WYQnxZtp4sGphZ+cRxLIxWPJSkQ2NX3lv nvng8yrfT9DFoDFtN3cXDMH22o6A3/ypyXkrQduiFphyCRdQbzTFPjuyV2vc3sys9qr8 UScA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h12-20020a05640250cc00b00425d3a0bd56si18304910edb.155.2022.05.10.00.50.50; Tue, 10 May 2022 00:51:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236887AbiEJF7U (ORCPT + 99 others); Tue, 10 May 2022 01:59:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41596 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233186AbiEJF7T (ORCPT ); Tue, 10 May 2022 01:59:19 -0400 Received: from mx1.molgen.mpg.de (mx3.molgen.mpg.de [141.14.17.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9268B291CCB; Mon, 9 May 2022 22:55:22 -0700 (PDT) Received: from [192.168.0.2] (ip5f5aeae3.dynamic.kabel-deutschland.de [95.90.234.227]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: pmenzel) by mx.molgen.mpg.de (Postfix) with ESMTPSA id 8353A61E6478B; Tue, 10 May 2022 07:55:19 +0200 (CEST) Message-ID: <76bc568e-4b3e-135c-5a5b-34a7dce42498@molgen.mpg.de> Date: Tue, 10 May 2022 07:55:18 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 Subject: Re: [PATCH] Bluetooth: Fix Adv Monitor msft_add/remove_monitor_sync() Content-Language: en-US To: Manish Mandlik Cc: marcel@holtmann.org, luiz.dentz@gmail.com, chromeos-bluetooth-upstreaming@chromium.org, linux-bluetooth@vger.kernel.org, "David S. Miller" , Eric Dumazet , Jakub Kicinski , Johan Hedberg , Paolo Abeni , linux-kernel@vger.kernel.org, netdev@vger.kernel.org References: <20220509140403.1.I28d2ec514ad3b612015b28b8de861b8955033a19@changeid> From: Paul Menzel In-Reply-To: <20220509140403.1.I28d2ec514ad3b612015b28b8de861b8955033a19@changeid> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.3 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Dear Manish, Thank you for your patch. Am 09.05.22 um 23:05 schrieb Manish Mandlik: > Do not call skb_pull() in msft_add_monitor_sync() as > msft_le_monitor_advertisement_cb() expects 'status' to be > part of the skb. Please reflow for 75 characters per line. > Same applies for msft_remove_monitor_sync(). Was this found by code review, or were there noticeable problems? If the later, please add a note, how to reproduce it. Also, maybe also add a Fixes tag, referencing the commit introducing the problem. Kind regards, Paul > Signed-off-by: Manish Mandlik > --- > > net/bluetooth/msft.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/net/bluetooth/msft.c b/net/bluetooth/msft.c > index f43994523b1f..9990924719aa 100644 > --- a/net/bluetooth/msft.c > +++ b/net/bluetooth/msft.c > @@ -387,7 +387,6 @@ static int msft_remove_monitor_sync(struct hci_dev *hdev, > return PTR_ERR(skb); > > status = skb->data[0]; > - skb_pull(skb, 1); > > msft_le_cancel_monitor_advertisement_cb(hdev, status, hdev->msft_opcode, > skb); > @@ -506,7 +505,6 @@ static int msft_add_monitor_sync(struct hci_dev *hdev, > return PTR_ERR(skb); > > status = skb->data[0]; > - skb_pull(skb, 1); > > msft_le_monitor_advertisement_cb(hdev, status, hdev->msft_opcode, skb); >