Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp5116306rwp; Sun, 16 Jul 2023 20:12:35 -0700 (PDT) X-Google-Smtp-Source: APBJJlEaEToPvTLNybvNaCeRKlsTMgB0Cw0Q3mpYZLHPwyzdgrxoaiVBsvwVxR1vQCMY7XxbN14M X-Received: by 2002:a50:fb02:0:b0:51d:b89d:9819 with SMTP id d2-20020a50fb02000000b0051db89d9819mr10673921edq.1.1689563554676; Sun, 16 Jul 2023 20:12:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689563554; cv=none; d=google.com; s=arc-20160816; b=FtNQVkKwG0wkuMP4Bso+pdNeQ3uS4bdv6CwNaTqJjSv+XGIT+WAfy4ElFF2/D3V6L/ V09pwg2x8JoaZx8agAJ6W1mohh33ppxSwsy2w1IkiH2U1fnanPoPWY++PIwL+pKMnJzd 8fE7QoTxht9oXAfGWNZ/cHCQ8d8iKdQ10MEHC4YjksYraD2wbgtQ1DRX5Z433pZQnlg5 mdqub7Fyet6eJIE1ueV2u4aKCAx++ujc8H/+SrCAR7JZRokiv3uwXx72wVnYbm12y8E5 ghPKAw6LfwFg72PpyxYxJvmvkERzZOJ1dVZxyhC+aGl6MpZu6Ts4TckUONvl10CW95qX 5lVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :feedback-id:references:in-reply-to:message-id:subject:cc:from:to :dkim-signature:date; bh=Lm1hC9x8ZQ00YPQk0nFR4Er9obaeamtJGoQRzDp8/bg=; fh=O/Bt9KF24FOzffTtIzoQfPUztvvbDAIlOG1nsByC0Bg=; b=CzVvvInTUsp1wFr9hK1yNaQKVMc5OBkN866rx0toQSmSZ326EmNqvm2gIWUgNYLDm1 UK2YPpBOuT+sSHg3ek53kdASWBEm3DL1WTOuShMulxxJXIpjQHjG0Myzp3N0tPmVGwsP 2IcmrhdkLwSX+979T4z9jp4bKc6VGHm0N529AuPZX/KjGYJ8Qy0iVJYkVWrcmQTkkHTP RSbV5lqXnN5JvG6rh0cOaceIcl/EwgeBWLfDFWUL43xkpPfqp8X+ssK9+lIruQHBJjZQ NGrfXttlToGsgmHozjivY+oM13ee5b697H//tZhebblhvZprgPbhNW48FWy+vvMocaku 9TZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail3 header.b=oBlHHA+g; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=protonmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e24-20020a50ec98000000b0051e0ebb201fsi13702400edr.118.2023.07.16.20.11.55; Sun, 16 Jul 2023 20:12:34 -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=@protonmail.com header.s=protonmail3 header.b=oBlHHA+g; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=protonmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230368AbjGQCxl (ORCPT + 99 others); Sun, 16 Jul 2023 22:53:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34296 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229920AbjGQCxl (ORCPT ); Sun, 16 Jul 2023 22:53:41 -0400 Received: from mail-4316.protonmail.ch (mail-4316.protonmail.ch [185.70.43.16]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A2687107 for ; Sun, 16 Jul 2023 19:53:39 -0700 (PDT) Date: Mon, 17 Jul 2023 02:53:21 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1689562417; x=1689821617; bh=Lm1hC9x8ZQ00YPQk0nFR4Er9obaeamtJGoQRzDp8/bg=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=oBlHHA+gu/1eN9XQJMjtpCI3eoMAEctw+VvgKJrXHfu5B9Nq+EcHiFvUrWelSfPFU EXgKZ3zXjv8gENs+ny5o7KgwjOgTRG8PxSQnPZX4HOVw05B0WJSe/V5lROu4YBtRV6 /Mc4qdpaMzKM7euRMvXIzkbQDeXdA48pBdQyZ3pbHvrZu2ShZJpFlapgxiwNl8/2E6 436Pn0fG9BlUvo5sEoEvx0eCFOgcL9sMUASVZb5aSyORekz3x3s3rUYRW6yYwD/uis l0TgdVOStQ0/3JBg6B3CovffmVhOTEgvYSR6FLmf+x/OcrqM7Ccl7XYiNxwgB+C9EU vV/Kn4tyCpDBg== To: Pauli Virtanen From: =?utf-8?Q?Barnab=C3=A1s_P=C5=91cze?= Cc: "linux-bluetooth@vger.kernel.org" Subject: Re: kernel NULL pointer dereference in hci_send_sco() Message-ID: In-Reply-To: References: Feedback-ID: 20568564:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL, SPF_HELO_PASS,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 2023. j=C3=BAlius 12., szerda 0:21 keltez=C3=A9ssel, Barnab=C3=A1s P=C5= =91cze =C3=ADrta: > [...] > > > > Those generally should be harmless, as the hci_conn may be destroyed > > earlier than when controller stops sending SCO packets for it. > > > > It's not clear those should be printed as errors, same also for the > > "corrupted SCO packet" messages which are also printed when the > > hci_conn has been already destroyed. You get lots of that spam during > > normal SCO operation. > > > > For this crash, maybe you can try apply the following patches: > > > > https://lore.kernel.org/linux-bluetooth/490b5c6a0e13047fd1bea42d3184b46= 623adc359.1689003801.git.pav@iki.fi/ > > > > https://lore.kernel.org/linux-bluetooth/20230711131353.40500-1-code@sid= dh.me/ > > > > Basically the ISO sockets had similar crashes before, which are now > > fixed and SCO seems to need similar fixes. >=20 > Thanks. I will try them. Any idea as to how I could trigger the issue? I = haven't > noticed any pattern yet... Seemingly `hci_send_sco()` is only hit when I = set > the profile to HSP/HFP, however, every time this issue was triggered, the= device > was in the A2DP profile (at least as far as I can tell). > [...] I have not seen the oops since applying those two patches on 2023-07-12, so hopefully the issue is fixed. Regards, Barnab=C3=A1s P=C5=91cze