Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp4586992ybf; Wed, 4 Mar 2020 06:52:46 -0800 (PST) X-Google-Smtp-Source: ADFU+vux4dXbW7+QtMRJ42KSgEt/+o6zrJ36j9pa2mP8l1NcGRA0fCr/Au0tfeagoQju0xtFjSFr X-Received: by 2002:a05:6808:b29:: with SMTP id t9mr1920698oij.64.1583333566166; Wed, 04 Mar 2020 06:52:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583333566; cv=none; d=google.com; s=arc-20160816; b=RSbPOH9oGQ13K6CltKt74SveK10z0fUgejY8t6HgED2cxmJ6juGQvBagpMdTDzc4jw Rr6alhxVEYDiPm3JNiWiG783HLK9SVP6MpdPed+Rd4KehP1fMEpLVP0DpbQVxN8R0u83 okACqnmETDEz2zjrdVcm4JPf6wPYlSA+sJZHo2mPN47dVFk4jeH1QpspE05Coax2urKb nI+z+c8UThe7kIUMG47BPDTD0u1oHSWb1OqhyYV/5O0w7IEKHhXKsBHythU2KnnaHnVv cC+zipoMwdtOWuxjbPcYv1nt+N4I/ypK8Xkbv7hibT+4xvFWtYEs+zlFJVwDUNoKBmzh TW9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=PdIEInuRnFWAet7Rbg6b7+xHDblel1LCE8hUbr8M2qg=; b=sLdIKNzLdCSZIZcxKnztlfRIgbT817fUDjGaJGJfGEfgeCrHydhOKWy8RGmswy1kmO gJHioqkCqQVRQRcTwK4p41FZX/zR1wOvZyN48YCYYYmfXSTGTfdAp4AUFfKDosNIhfZp ajg6qKZApOOosV/ioJkVXddQpdYves86gEt4ALgRWm+/c/sgIaSCybPjoe4Lko2a7qlY qxO9JBl4nIl35o1wxDrp2Rr57R9FxxyI3PSzchl7zqHJbgS0S6VNkIfBOhNkrj3v3IVE igQGw0IcePJ7dsryi+MGnwyOyuVqEAKyGOErkYoBH3hdEEIWYZ3elNp2a7E0lvdq9Hhp mEyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=Xaou4yQv; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f137si1281101oig.87.2020.03.04.06.52.20; Wed, 04 Mar 2020 06:52:46 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=Xaou4yQv; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726661AbgCDOwP (ORCPT + 99 others); Wed, 4 Mar 2020 09:52:15 -0500 Received: from mail-lf1-f66.google.com ([209.85.167.66]:36499 "EHLO mail-lf1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725795AbgCDOwP (ORCPT ); Wed, 4 Mar 2020 09:52:15 -0500 Received: by mail-lf1-f66.google.com with SMTP id s1so1761548lfd.3 for ; Wed, 04 Mar 2020 06:52:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=PdIEInuRnFWAet7Rbg6b7+xHDblel1LCE8hUbr8M2qg=; b=Xaou4yQvP96gTaxMbvxEPxCDkV9KxTKgOm3aa8s5RVwVQSrqPbqYs/IQoVWkpVTDXl ANXEZrwPB32For5qL4Btz+ExQfjHhCQijLsBUFhYMNMZyuDC2FeP1g0IbEjFW8dvheoj ufjzKc/zud1xycd7FJbnO38xUhVgZzMRqi9+o+TIHbicQkaFISxSLo6Klj7XA0B747ah HiWtbzKRqdI1MPNM9oeUnawZFksZz5hkaa56BTdpZub5QMuANFbbhFG8u5fTPbcKyhGF RsKY0a1xDQbwVlHVqrGeSZV+8bpnxF0sCg/ivBtxBmyXtxG+NsBjH6ptgS7yZPCE4xl2 6BQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=PdIEInuRnFWAet7Rbg6b7+xHDblel1LCE8hUbr8M2qg=; b=TT3DzmLrvIqlBjzEoI8Y0wmvGB4A2c+hmpA4RqUxJesaSHS+utx75TiqKiufYxgRLe z4BdzjW/r5vDLHsXwqy40O8pEfSVVRPRncWACj3RxRXoLVXIzvvV2pHYTvbAAW0nd0S6 S1k3M4cxDr97eGTdjcAVr2OQ93v+XmmDJrzDWVo/tAw7IL9kGNLPg1WF5ZsGBySt6Ry0 D+8BwVPtzR9aDs+wucJMR1V4FafSOU5nr0AYscL0BCS2ef1KCgJWM+lkYNo82XloNBKs 9EUlnD+p9vwfhSLh6lv+ZamxBe8erjI7yHFBoUa1tJCFWW78csb18j8v8+do8ygICGNz z9qA== X-Gm-Message-State: ANhLgQ1FeJW4ENonNTRQv6tipouxIFNlpkS1nvlhYWO7R/rhlH2McJuc Wge7eLMnEg2ngQUmbN9zWhGN53rzuhaZzt+ZGV64Sg== X-Received: by 2002:ac2:5c5d:: with SMTP id s29mr2284678lfp.191.1583333532822; Wed, 04 Mar 2020 06:52:12 -0800 (PST) MIME-Version: 1.0 References: <20200303155534.127645-1-alainm@chromium.org> <3F146946-8F93-4541-B2EC-9EAE4262176F@holtmann.org> In-Reply-To: <3F146946-8F93-4541-B2EC-9EAE4262176F@holtmann.org> From: Alain Michaud Date: Wed, 4 Mar 2020 09:52:01 -0500 Message-ID: Subject: Re: [PATCH v3] bluetooth: guard against controllers sending zero'd events To: Marcel Holtmann Cc: Alain Michaud , BlueZ Content-Type: text/plain; charset="UTF-8" Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Thanks Marcel. On Wed, Mar 4, 2020 at 2:28 AM Marcel Holtmann wrote: > > Hi Alain, > > > Some controllers have been observed to send zero'd events under some > > conditions. This change guards against this condition as well as adding > > a trace to facilitate diagnosability of this condition. > > > > Signed-off-by: Alain Michaud > > --- > > > > net/bluetooth/hci_event.c | 6 ++++++ > > 1 file changed, 6 insertions(+) > > patch has been applied to bluetooth-next tree. > > Regards > > Marcel >