Received: by 2002:ac0:da4c:0:0:0:0:0 with SMTP id a12csp868824imi; Fri, 22 Jul 2022 11:17:32 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sKeDX2rseJaAoRtQ8O/PkqzBO87wqHlnLQAkwFnpKnUvDEaAUct7bkEYh+R79HYKzVVgmV X-Received: by 2002:a17:907:2c6b:b0:72b:2eb9:6673 with SMTP id ib11-20020a1709072c6b00b0072b2eb96673mr883621ejc.71.1658513852009; Fri, 22 Jul 2022 11:17:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658513852; cv=none; d=google.com; s=arc-20160816; b=XpHPVUVZaRXm4+Zm7RYGDxzdWzzmst2U9Yhqv1Tqxjyf9IACyWRtJT0t8nnBLyDTzA GfdwZ6pCL7ayUHVQRDxmmGeUNOMtF4i35hsTCvCqtg98yo+b9Ka+FDjAwB0h09eLW7tC xr5oMWKZzG5Msr7ZoBSp/EO5uOnkPBH5j9lS/fBSug6QrElM6KaVir5j6k05vJvl5e7l 4Tx0U8dZtGsV0kNh6G5umj5R1bzXFvTnz1m4m6tvSomawZFWA2u5aEuaX/AlK6w0UTT/ bqCSjX8RYPFXMLcqDDbAwypiYikpwCYNVlLTyAA5fy6ueBXMBcTI7zljw+bxllqr4QjX rXqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=fZJdpPztTTADq7IALobyoafTWbKHD8Wm/RY3Y465v+c=; b=m4lSyUbjiZ+s5oL0arUSeR5Vyq2LmM90VQcQt0ZY4K/RhMZNT/lDo+mhNxnVhZaQQ7 W7rC9uDdFV7f3hQdICYoQSKeb2cOHCMq7dVUqqRoavtz4Q1/1/nKUfuE4VKm9Q/yfhW5 B9+KOOHqZhIjJVigMxFb9mhKJkYgac0M4FtgKTjAFN9GkVXFRCdMBFqqRbEmW5An/57C z2ttVl5nVga/zDFs1vTGgN/97DmpBEvN1OL/P4KZXUibK/fnEMoQjlp9N9Ue4iSz/Dae aOO8pskmnBaO/u8RSTbeFAW62r+4k/UpUvWsnLZ9fi3htIjqQycBhVZDa22oGDfnVlVT HqSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=mGr+06EW; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n11-20020a05640205cb00b0043ba7ff9acesi7070475edx.245.2022.07.22.11.16.42; Fri, 22 Jul 2022 11:17:31 -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; dkim=pass header.i=@gmail.com header.s=20210112 header.b=mGr+06EW; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235642AbiGVR7u (ORCPT + 99 others); Fri, 22 Jul 2022 13:59:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51206 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232888AbiGVR7u (ORCPT ); Fri, 22 Jul 2022 13:59:50 -0400 Received: from mail-ej1-x62a.google.com (mail-ej1-x62a.google.com [IPv6:2a00:1450:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 67AC45B071 for ; Fri, 22 Jul 2022 10:59:49 -0700 (PDT) Received: by mail-ej1-x62a.google.com with SMTP id bp15so9845363ejb.6 for ; Fri, 22 Jul 2022 10:59:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=fZJdpPztTTADq7IALobyoafTWbKHD8Wm/RY3Y465v+c=; b=mGr+06EWo+rJOIDf2PYwWfOKJh6azmYPJMH6rKun5MclwLx2xzGNzFm54w5TJjZeLO CCKDX6RP4l2b8swrmG77z4PgXjuwgzx8+7USTaKQhPNnLBt2taS+WwcWig2l6kPM05Rk +T1DkIzikusDSM2wgFT0dJ6x4XtAE2RQ2jnGB6k/SkFzcefRjJAAD383xASO3XrveYjH NGGYgERJktN6kPP9UW8CFUFtaPntlbDJfDTMfYPWf3arkRulGzaZgyy22ny7xgLmXNl6 /+p/3uBkTMsIO79tWTj17dYinvHw4UufDmV8AvN9vnjymBA/M50bASpJGL/LkU5h3L9F 32rg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=fZJdpPztTTADq7IALobyoafTWbKHD8Wm/RY3Y465v+c=; b=S0Y0CdHdnJ0Tg/apibbjA09KZCQl0r6SCrBgVGnlbEt3IgHeZ8+IYegRzPnCvTpu3i TWTt1+QwQzCfdU51yy2/t56Um2xYcy3mdjRLtap5QrtIj9mcYNbm4OwCorCgtQ7XdSN/ fOVs2NvRC09OWoPUezewd25SaFbs8EoaKPR3/lTI5qR+H98818kUvTTMjvjZ3cM1TTCk ELasws2xhFjO6zauHZwj1tMp+X/oXMJJFKWDTcshP3D5FpTL2b+ecpIcaVi2oBdXeh8G i4PDHWxjHCTFZ8FOE4KPycxA4xpY177J1RI/tZoIZmfPm+OKaGRy4i3g7fCfV89ZeNok Dmyw== X-Gm-Message-State: AJIora9N4XIcajnC16fexmACB+GrtOpHEqABMWqVDPp7BPNyFy/FtoL6 yB2/xgtjfYNxbuxF8sUo2EjRZO4TCFfuuu4wg7sG8JDW9WM= X-Received: by 2002:a17:907:7617:b0:72b:49fe:fdf7 with SMTP id jx23-20020a170907761700b0072b49fefdf7mr836680ejc.25.1658512787906; Fri, 22 Jul 2022 10:59:47 -0700 (PDT) MIME-Version: 1.0 References: <20220614145253.132230-1-soenke.huster@eknoes.de> <67219c6e-7eef-ee5c-693c-215a4d4c1b3e@eknoes.de> In-Reply-To: <67219c6e-7eef-ee5c-693c-215a4d4c1b3e@eknoes.de> From: Luiz Augusto von Dentz Date: Fri, 22 Jul 2022 10:59:35 -0700 Message-ID: Subject: Re: [PATCH] Bluetooth: virtio_bt: Use skb_put to set length To: =?UTF-8?Q?S=C3=B6nke_Huster?= Cc: Marcel Holtmann , Johan Hedberg , "linux-bluetooth@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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 Hi S=C3=B6nke, On Fri, Jul 22, 2022 at 4:59 AM S=C3=B6nke Huster = wrote: > > On 14.06.22 16:52, Soenke Huster wrote: > > By using skb_put we ensure that skb->tail is set > > correctly. Currently, skb->tail is always zero, which > > leads to errors, such as the following page fault in > > rfcomm_recv_frame: > > > > BUG: unable to handle page fault for address: ffffed1021de29ff > > #PF: supervisor read access in kernel mode > > #PF: error_code(0x0000) - not-present page > > RIP: 0010:rfcomm_run+0x831/0x4040 (net/bluetooth/rfcomm/core.c:1751= ) > > > > Signed-off-by: Soenke Huster > > --- > > drivers/bluetooth/virtio_bt.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/drivers/bluetooth/virtio_bt.c b/drivers/bluetooth/virtio_b= t.c > > index 67c21263f9e0..fd281d439505 100644 > > --- a/drivers/bluetooth/virtio_bt.c > > +++ b/drivers/bluetooth/virtio_bt.c > > @@ -219,7 +219,7 @@ static void virtbt_rx_work(struct work_struct *work= ) > > if (!skb) > > return; > > > > - skb->len =3D len; > > + skb_put(skb, len); > > virtbt_rx_handle(vbt, skb); > > > > if (virtbt_add_inbuf(vbt) < 0) > > Are there any issues with it, or is there another reason why it is not me= rged yet? It appears it was removed from PW due to 30 days inactivity, when that happens you should resend the patch since it needs to be retested by CI. --=20 Luiz Augusto von Dentz