Received: by mail.netbsd.org (Postfix, from userid 605) id 7EE0E84E8A; Tue, 28 Jun 2022 13:23:25 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id B157484E86 for ; Tue, 28 Jun 2022 13:23:24 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.netbsd.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id awRZK7-lXxmo for ; Tue, 28 Jun 2022 13:23:24 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.NetBSD.org [IPv6:2001:470:a085:999:28c:faff:fe03:5984]) by mail.netbsd.org (Postfix) with ESMTP id 4733084D26 for ; Tue, 28 Jun 2022 13:23:24 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 13A5BFB1A; Tue, 28 Jun 2022 13:25:37 +0000 (UTC) Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" MIME-Version: 1.0 Date: Tue, 28 Jun 2022 13:25:37 +0000 From: "Iain Hibbert" Subject: CVS commit: src/sys/dev/bluetooth To: source-changes@NetBSD.org X-Mailer: log_accum Message-Id: <20220628132537.13A5BFB1A@cvs.NetBSD.org> Sender: source-changes-owner@NetBSD.org List-Id: Precedence: bulk Reply-To: source-changes-d@NetBSD.org Mail-Reply-To: "Iain Hibbert" Mail-Followup-To: source-changes-d@NetBSD.org List-Unsubscribe: Module Name: src Committed By: plunky Date: Tue Jun 28 13:25:36 UTC 2022 Modified Files: src/sys/dev/bluetooth: bcsp.c bth5.c btuart.c Log Message: remove KASSERT() checking for t_oproc at open since assigning this line discipline to a pty may not have that set. Instead do a runtime check to ensure that the function exists before calling it, as ttstart() handles it. Same code in btuart.c, bcsp.c and bth5.c Reported-by: syzbot+766981eef92a3cd0352a@syzkaller.appspotmail.com To generate a diff of this commit: cvs rdiff -u -r1.31 -r1.32 src/sys/dev/bluetooth/bcsp.c cvs rdiff -u -r1.6 -r1.7 src/sys/dev/bluetooth/bth5.c cvs rdiff -u -r1.29 -r1.30 src/sys/dev/bluetooth/btuart.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.