From owner-svn-src-all@freebsd.org Fri Oct 18 10:26:23 2019 Return-Path: Delivered-To: svn-src-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id F056214C896; Fri, 18 Oct 2019 10:26:23 +0000 (UTC) (envelope-from ohartmann@walstatt.org) Received: from mout.gmx.net (mout.gmx.net [212.227.15.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "mout.gmx.net", Issuer "TeleSec ServerPass Class 2 CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46vhyl04wKz4PQt; Fri, 18 Oct 2019 10:26:22 +0000 (UTC) (envelope-from ohartmann@walstatt.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1571394379; bh=IwIVUtUT4FmVdQwwFKJlmAMTuyQyacBBho1pVtwy54A=; h=X-UI-Sender-Class:Date:From:To:Cc:Subject:In-Reply-To:References; b=l1xS3HWyPLbPPqPtv2al0TaU63Xc7/VMQU836sgSnoh2y6QamTjo6iQr+aNTq5jvw EIVqum+yqkUgo577TYDT0QCdYiMHJ8N4BuDqeBsAUxhFe25cvonwOad5EtYcVg32hW JQFR1IXlAPeGD4E+EX5rhkZvzixnWrEdh+6ALnlU= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from hermann.fritz.box ([91.65.85.161]) by mail.gmx.com (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MFKGZ-1iEYpH0wHp-00FlLh; Fri, 18 Oct 2019 12:21:14 +0200 Date: Fri, 18 Oct 2019 12:21:04 +0200 From: "Hartmann, O." To: Conrad Meyer Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r353700 - in head: share/man/man4 sys/amd64/conf sys/conf sys/gdb sys/i386/conf sys/kern sys/net sys/sys Message-ID: <20191018122104.389ffb7a@hermann.fritz.box> In-Reply-To: <201910172133.x9HLX1kl071044@repo.freebsd.org> References: <201910172133.x9HLX1kl071044@repo.freebsd.org> Organization: walstatt.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; boundary="Sig_/Y2gjt=bMes0nx.KMhlJv2oM"; protocol="application/pgp-signature" X-Provags-ID: V03:K1:iBcBTqOmxloBk/cFhXtyyCwdHIMOj/wPkh8NweFa8kKMHtBetn9 HOwSsnFzihidUY0+9V49gNwPimQ0xihKfRxGkESy1P2l2f/y6/9tscOlE2vZlBMLdjrlBGo on+puYdO6TVKdvG8dSwW8cDsvEz7spYzsrXMRfVSWnyQQLpHxlt0JYRspqwK1quSzm2QjoD LWhTBvqdGFKuTRXyrVISg== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:PbU/pB9sUMI=:TdiVD51qOESMleQZ7g5PZl hM6L9WaNV0ZV6AXjZf+lTRT2Xi4cq2TNGEi9UYifIFsUp6INRv/Ugw9SYikBN8NLzz8qIDX7Z T/ueAJiQqZHOFqXBjui6sG2x0tluzr3VADN+vf7mmxnBK9adXnKKh7V2SWQB7mkmMllkGyJiQ XrFAzu9YNVEfdIJkgonEkhxYxtFflFjEE0nCVZ5Bl/n6Ptx84k7n3cTJ6krXYisJZiAxE7WAS qg8hnNQMhC2df/JOtNaXwUWWsOzwD0jHXKVQuRm6mHyfynMjiUX1RqcJDNyX7PjnO3rv7WWYq BW64PglDCP2fljUQVGOL4+tFHoB3hzxPihWbF/l/DA8a2xJ6h1tok/gGp6iKC1aBY0+W9TSvO O+QSgrlRenAlDjqoy/k9MKo8Qn+qD+8cJNcN6JZd00d91/8OuI14qFkQuLrw6wEuUIUCt2bZU Qa3lGfAcTsrJSeB4mYreoF0Q4x/gBYtUDYQP+dJ370SolLCnOyl8Rze6EOxS+yNLFW8nJpA3H a0oDTfqkErLzCfOVfRCXzifT9RdXqp/tyNn8lqcPWsQO7DXlNkbhY5/wxMPkTwCiueiiomwHX 79aL33OMPBVDv1TS3lF3LeG9L7eIycC9AbK5V0sp0HAlRF1xh/5OETe3ptKn14741JllYQGTq kfytWbnUnWIZiJeDDZQ/hhMn7wgDfFaizxaczQ/IOVrGuT+l1dj6RH74TqWN/Is8hcuYdIxoc B02duXFNqvaXrur5E0++19RIp3Wtu31rR+OxjRLCDMPt4NhJbkxBVj1QuYpY/Ti5+4FazQHsU BTvJ+FZnt2fDzio7dwzEc6QU80DaoZTHXrkbrMLAMtREAwWgTTv90rRoipuJdqz084x1/ztq4 jioiNp83ycdIo1J+eVyp2tdxT9OLwidXp0acB7JTCobVz17rlfRt9TlnAWltWHp6SY8ke9dHd MNSznYeas+N7+pAj4YzokpPp14jd4NvYUw2/NTmcg0GaR7YK84PTH4DeeekPcPnu6Ymctvfk8 UY2eTV3/Qt3eGpPUUJ84PhxZSPIMw+wZH2VSQjk8YaqZjBsookeo1eiUbjfpK07v1dowlw+4C YkfJtfogpOliqx2UL/JABuno8TH1sNJGin28mR2cRa6ngTz9LThFKoDWbWx9Dr+WIt1iqvXLH gYYIvLjsLIjVE/eyc3Mv9ydjOeTmCVrLxW8HAZXOZDPk0vr5QjDsZONtCnnJuYN9J9fWKyeFP j2E6jqH4014+PGGakA5pHN9iHPpC8oL2AJNrp8wkDC/qHq/3mDHgkPkOQ3lg= X-Rspamd-Queue-Id: 46vhyl04wKz4PQt X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmx.net header.s=badeba3b8450 header.b=l1xS3HWy; dmarc=none; spf=none (mx1.freebsd.org: domain of ohartmann@walstatt.org has no SPF policy when checking 212.227.15.19) smtp.mailfrom=ohartmann@walstatt.org X-Spamd-Result: default: False [-5.58 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[gmx.net:s=badeba3b8450]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; DMARC_NA(0.00)[walstatt.org]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; HAS_ORG_HEADER(0.00)[]; DKIM_TRACE(0.00)[gmx.net:+]; RCVD_IN_DNSWL_NONE(0.00)[19.15.227.212.list.dnswl.org : 127.0.3.0]; R_SPF_NA(0.00)[]; SIGNED_PGP(-2.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; IP_SCORE(-1.18)[ip: (-6.55), ipnet: 212.227.0.0/16(-1.34), asn: 8560(2.00), country: DE(-0.01)]; ASN(0.00)[asn:8560, ipnet:212.227.0.0/16, country:DE]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; RECEIVED_SPAMHAUS_PBL(0.00)[161.85.65.91.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.11] X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Oct 2019 10:26:24 -0000 --Sig_/Y2gjt=bMes0nx.KMhlJv2oM Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Thu, 17 Oct 2019 21:33:01 +0000 (UTC) Conrad Meyer wrote: > Author: cem > Date: Thu Oct 17 21:33:01 2019 > New Revision: 353700 > URL: https://svnweb.freebsd.org/changeset/base/353700 >=20 > Log: > Implement NetGDB(4) > =20 > NetGDB(4) is a component of a system using a panic-time network > stack to remotely debug crashed FreeBSD kernels over the network, > instead of traditional serial interfaces. > =20 > There are three pieces in the complete NetGDB system. > =20 > First, a dedicated proxy server must be running to accept > connections from both NetGDB and gdb(1), and pass bidirectional > traffic between the two protocols. > =20 > Second, the NetGDB client is activated much like ordinary 'gdb' and > similarly to 'netdump' in ddb(4) after a panic. Like other > debugnet(4) clients (netdump(4)), the network interface on the route > to the proxy server must be online and support debugnet(4). > =20 > Finally, the remote (k)gdb(1) uses 'target remote :' > (like any other TCP remote) to connect to the proxy server. > =20 > The NetGDB v1 protocol speaks the literal GDB remote serial > protocol, and uses a 1:1 relationship between GDB packets and > sequences of debugnet packets (fragmented by MTU). There is no > encryption utilized to keep debugging sessions private, so this is > only appropriate for local segments or trusted networks. > =20 > Submitted by: John Reimer (earlier > version) Discussed some with: emaste, markj > Relnotes: sure > Differential Revision: https://reviews.freebsd.org/D21568 >=20 > Added: > head/share/man/man4/netgdb.4 (contents, props changed) > head/sys/gdb/netgdb.c (contents, props changed) > head/sys/gdb/netgdb.h (contents, props changed) > Modified: > head/share/man/man4/Makefile > head/share/man/man4/ddb.4 > head/sys/amd64/conf/GENERIC > head/sys/conf/NOTES > head/sys/conf/files > head/sys/conf/options > head/sys/gdb/gdb.h > head/sys/gdb/gdb_int.h > head/sys/gdb/gdb_main.c > head/sys/gdb/gdb_packet.c > head/sys/i386/conf/GENERIC > head/sys/kern/subr_kdb.c > head/sys/net/debugnet.c > head/sys/net/debugnet.h > head/sys/net/debugnet_inet.c > head/sys/net/debugnet_int.h > head/sys/sys/kdb.h > head/sys/sys/param.h >=20 > Modified: head/share/man/man4/Makefile > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > --- head/share/man/man4/Makefile Thu Oct 17 21:25:50 > 2019 (r353699) +++ head/share/man/man4/Makefile Thu Oct > 17 21:33:01 2019 (r353700) @@ -307,6 +307,7 @@ MAN=3D > aac.4 \ net80211.4 \ > netdump.4 \ > netfpga10g_nf10bmac.4 \ > + netgdb.4 \ > netgraph.4 \ > netintro.4 \ > netmap.4 \ >=20 [...] Having "nooptions NETGDB # netgdb(4) client support" defined in my kernel config file, buildkernel fails with the error shown below. [...] --- debugnet.o --- /usr/src/sys/net/debugnet.c:662:4: error: implicit declaration of function 'db_printf' is invalid in C99 [-Werror,-Wimplicit-function-declaration] db_printf("%s: Could not get route for that server.\n", ^ /usr/src/sys/net/debugnet.c:662:4: note: did you mean 'if_printf'? /usr/src/sys/net/if_var.h:679:5: note: 'if_printf' declared here int if_printf(struct ifnet *, const char *, ...) __printflike(2, 3); ^ 1 error generated. --Sig_/Y2gjt=bMes0nx.KMhlJv2oM Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iHUEARYIAB0WIQSy8IBxAPDkqVBaTJ44N1ZZPba5RwUCXamSEAAKCRA4N1ZZPba5 R2g1APsFaVSlvFoAYQj9cVc9ODLVlsVFCQp6PhVr0uyhyDVOowEA6OiM6vttm1ku Fv44ybhnNjqJnGtuLL8qJy8sjyhkEAY= =N8pF -----END PGP SIGNATURE----- --Sig_/Y2gjt=bMes0nx.KMhlJv2oM--