From nobody Tue Nov 01 18:38:50 2022 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4N1zLf5Yz0z4h0wr; Tue, 1 Nov 2022 18:38:50 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4N1zLf58Bbz4G6w; Tue, 1 Nov 2022 18:38:50 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1667327930; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=YLFnWbF6o+WiQyIvjiuamGPF6dp0dlfVxPBq7+yADns=; b=rMjJkZzAbAGUSfbhIXHv3FhmH0o0qv4zX35LWDgWIuf6vWhlhC0PSmGiVyZFVRhgjWtP5k CtlZqbTQwu4swzRveZTa1MTxyGfi8jBmCNJbxECk3QwkH1bQFTAEW2uHaa6T/+ivOjXq/E UWGOypfTtnAWC6rAGSMg0QVbCli2vCyvDKP+RLk9uPM836XB0uq5nAAdl56xu9faeoNz+x fymQvqUJFbgjCan/ULBQY4Yevqop0QCNUFBW0R8PLS2JNo9JXFzOGlHBtptISoG9cYxbjG Bt6jbugcyIDBjuPYiEsS4hG29N7q4EXOyLAVIYxrDkBayZAYmZ5PXia7LYoLDQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4N1zLf44yWzRT3; Tue, 1 Nov 2022 18:38:50 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 2A1Ico3j057283; Tue, 1 Nov 2022 18:38:50 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2A1IcoPC057282; Tue, 1 Nov 2022 18:38:50 GMT (envelope-from git) Date: Tue, 1 Nov 2022 18:38:50 GMT Message-Id: <202211011838.2A1IcoPC057282@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Ed Maste Subject: git: 05c0c99ea37f - main - ng_hci: handle NG_HCI_M_PULLUP failure in le_advertizing_report List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: emaste X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 05c0c99ea37f2558155f346769a00b4180cb59ed Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1667327930; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=YLFnWbF6o+WiQyIvjiuamGPF6dp0dlfVxPBq7+yADns=; b=WoFc5SOCHSgYj+kRaCefBOT9cD3tLM1qodTBq1iBQXGYV2oSGnGcf/V9APne3f/q74yzcV Dt00R+ZvscVpEbREdolq6Dde5ZLgljqVfH8wLZnACmwda5JXXGRp0ZRVGlh8pVd/+AEqCr sPAlVTB91KHYlFZB6Dc57v+ZW9j7r2l4oZc3YqKdNm3VYtI39GvI9mkNQC1lW9B4BjcDQM k1wuvcQuvsxw3FPXLySQzUo3KcHu694SqMJlLLRkOYvB67PwtL1hYbgzSdyZL9XMar9dJt oYbS28mPOg+0f7kOyUcKDwJCoFPro2hE/Z0iFbKAdLcDzVhN0L1MMzFyBEbecQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1667327930; a=rsa-sha256; cv=none; b=bMq/k92y+kdFqhPEfb2MP+16i/9rui4t6dbOufatkoF8Pdg6Ygh0wcvFLaZAnGCnsvNMF/ YdOjw+8SeoXSKSmxP/S017LFAtMZG+WdYgu9ETpfLZlUItrSxQO8dHp4GrQfuuFoer+x3O Oodew9hGIzmcw9J970ZOtiQqC7pMUVyxeATPS2K378awwTEnU9/M0cKjXPABR+QD1mxWnh Ci/3Jituhr8JB08bowZ+1NpDPJmYHLl00XBLHbes1QTiAuHVYj6tQqMp6FkcF6tinIJjNR kHhJGSDvVmvN0NZ0Iw92HIvR3EwAA2cj4qJQKpHX0hcELNzpjd3TD3+v+kUSMQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=05c0c99ea37f2558155f346769a00b4180cb59ed commit 05c0c99ea37f2558155f346769a00b4180cb59ed Author: Ed Maste AuthorDate: 2022-11-01 13:55:22 +0000 Commit: Ed Maste CommitDate: 2022-11-01 18:33:37 +0000 ng_hci: handle NG_HCI_M_PULLUP failure in le_advertizing_report PR: 267396 Reported by: Robert Morris Reviewed by: takawata Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D37228 --- sys/netgraph/bluetooth/hci/ng_hci_evnt.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/netgraph/bluetooth/hci/ng_hci_evnt.c b/sys/netgraph/bluetooth/hci/ng_hci_evnt.c index b2cdf01423a2..fec039d1f1f6 100644 --- a/sys/netgraph/bluetooth/hci/ng_hci_evnt.c +++ b/sys/netgraph/bluetooth/hci/ng_hci_evnt.c @@ -399,6 +399,10 @@ le_advertizing_report(ng_hci_unit_p unit, struct mbuf *event) /* Get remote unit address */ NG_HCI_M_PULLUP(event, sizeof(u_int8_t)); + if (event == NULL) { + error = ENOBUFS; + goto out; + } addr_type = *mtod(event, u_int8_t *); m_adj(event, sizeof(u_int8_t));