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=-8.7 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 A892FC433F5 for ; Thu, 16 Sep 2021 00:08:40 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 889DD61164 for ; Thu, 16 Sep 2021 00:08:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232975AbhIPAJ7 (ORCPT ); Wed, 15 Sep 2021 20:09:59 -0400 Received: from mga11.intel.com ([192.55.52.93]:51008 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232465AbhIPAJ6 (ORCPT ); Wed, 15 Sep 2021 20:09:58 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10108"; a="219267784" X-IronPort-AV: E=Sophos;i="5.85,296,1624345200"; d="scan'208";a="219267784" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Sep 2021 17:08:38 -0700 X-IronPort-AV: E=Sophos;i="5.85,296,1624345200"; d="scan'208";a="529864584" Received: from vyellapa-mobl.amr.corp.intel.com ([10.209.32.240]) by fmsmga004-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Sep 2021 17:08:37 -0700 Message-ID: <04b4f1b1310bb6db0aa7a4adfb49bda8dc49db2c.camel@linux.intel.com> Subject: Re: [PATCH v4 4/4] Bluetooth: SCO: Fix sco_send_frame returning skb->len From: Tedd Ho-Jeong An To: Luiz Augusto von Dentz , linux-bluetooth@vger.kernel.org Date: Wed, 15 Sep 2021 17:08:35 -0700 In-Reply-To: <20210915233600.4129808-4-luiz.dentz@gmail.com> References: <20210915233600.4129808-1-luiz.dentz@gmail.com> <20210915233600.4129808-4-luiz.dentz@gmail.com> Organization: Intel Corporation Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.5 (3.36.5-2.fc32) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Luiz, On Wed, 2021-09-15 at 16:36 -0700, Luiz Augusto von Dentz wrote: > From: Luiz Augusto von Dentz > > The skb in modified by hci_send_sco which pushes SCO headers thus > changing skb->len causing sco_sock_sendmsg to fail. > > Fixes: 0771cbb3b97d ("Bluetooth: SCO: Replace use of memcpy_from_msg with bt_skb_sendmsg") > Signed-off-by: Luiz Augusto von Dentz Tested-by: Tedd Ho-Jeong An