From nobody Thu Jan 26 19:25:43 2023 X-Original-To: dev-commits-src-all@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 4P2rK41pW5z3bTYQ; Thu, 26 Jan 2023 19:25:44 +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 4P2rK41FLQz4HgC; Thu, 26 Jan 2023 19:25:44 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1674761144; 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=GWMZEmwqbprE6j5Hr6bnVFJ1uB9epRSvhKVkXoT5XXs=; b=KGpkA4R4tGZyujryh5HzYSvvU2T4PB5Y2ZF8GjcbV5DjEE/1ZuoIlJw0/9BsWdzTiGqabS GUSsZDtsTg+Z+KjWLjQp/FY4Z6747I8VTBMhgZ2TbMdBL8Sa9m5AZhqOy1Q/XgkM77rBbg n1W2ZxzltlXjL50e2/UIpxzVvvfrj096/wsuRk1ss796JiSQppyUxrbmmPzntCM5fdIjef uU82l/sqw7z9l1PNSbBN5E/Yl5/NQELhzGnAqKsudWofss/O4RqD0Qzd/nyisxgeSzxJBv kKfLaB465pIQHTvmz85CwOtYwGtB9NKSRx//0/ylBBwCRyabR2c09ioiE5CFCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1674761144; 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=GWMZEmwqbprE6j5Hr6bnVFJ1uB9epRSvhKVkXoT5XXs=; b=ohZyBGFI6T2diHtWKN9llapea7IfVYZdowqffUhf+NoRe02D4S0SepmARQsXhf5p8S5qtv IgP1tew/+KO6xP3++VaJTWAnlCnlsf09iyi84rgGVTArVVz/f0w3TFmZ0kFGScTOPQNONt 0enieee6kR9fRBv2T+kVRv0gCwHqJTxIVbvCV1RuqC7neyoG5sO6R5xapGqqVvJgFhhPCA kHKmzBqThIdrfnzCs9jHU1Gcm/uDjFzAHjIqekYyPIUgvWM6kldrRGAKjp5/q1ecHR7F0H ezZUPDjkxphUIC5kakvrVX5dxqL9AN1QIACKIg61os4VigpxcJ1AHyItCnkWZw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1674761144; a=rsa-sha256; cv=none; b=udyQLGwc+FLGaOo77o10bFWEGF5+hZCd6jy14dzMGjFx76vKiANF/HxG9+DLyr2ZTH6Fw4 hFTcvwABBZmat3XkWKT0EJFZsREoJCa3F270GvsbG2JskB/wcVdC8AYlTOmiC5H9LbiMky UHAVX8NdmCSDkvpGzKe9PSdwjOYkrLk5EQ8bxX0CoNMSY5s+NS/uJt8PqtJpWND6B/h+sf WPtxS8WofUzPFZxNYpMCX90OPb/zIeY6ZDctcRKCzXtZr+nMYfXbwo+YZ9nhIt6Yz5DUrL d10abEdTrBrjaQFq49s9gpKOvxchhF2fgq47CnEl/3yuOeJ+U2W+KboI1aQ7YA== 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 4P2rK40Kr9zghD; Thu, 26 Jan 2023 19:25:44 +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 30QJPhaw077817; Thu, 26 Jan 2023 19:25:43 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 30QJPh7w077816; Thu, 26 Jan 2023 19:25:43 GMT (envelope-from git) Date: Thu, 26 Jan 2023 19:25:43 GMT Message-Id: <202301261925.30QJPh7w077816@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: John Baldwin Subject: git: aa5f7a915250 - stable/13 - bhyve: change a default address from ANY to localhost List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhb X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: aa5f7a9152504d9556e63c89f0b0717ae3e2edec Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=aa5f7a9152504d9556e63c89f0b0717ae3e2edec commit aa5f7a9152504d9556e63c89f0b0717ae3e2edec Author: Mariusz Zaborski AuthorDate: 2021-08-19 18:00:35 +0000 Commit: John Baldwin CommitDate: 2023-01-26 19:12:26 +0000 bhyve: change a default address from ANY to localhost Discussed with: grehan, jhb (cherry picked from commit 3a92927bb69f2d3fcd3dec4c909aab2191f4b848) --- usr.sbin/bhyve/gdb.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/usr.sbin/bhyve/gdb.c b/usr.sbin/bhyve/gdb.c index 40f226701a1a..94167053629e 100644 --- a/usr.sbin/bhyve/gdb.c +++ b/usr.sbin/bhyve/gdb.c @@ -1840,11 +1840,7 @@ init_gdb(struct vmctx *_ctx) saddr = get_config_value("gdb.address"); if (saddr == NULL) { -#if defined(INET) - saddr = "0.0.0.0"; -#elif defined(INET6) - saddr = "[::]"; -#endif + saddr = "localhost"; } debug("==> starting on %s:%s, %swaiting\n", @@ -1860,7 +1856,7 @@ init_gdb(struct vmctx *_ctx) memset(&hints, 0, sizeof(hints)); hints.ai_family = AF_UNSPEC; hints.ai_socktype = SOCK_STREAM; - hints.ai_flags = AI_NUMERICHOST | AI_NUMERICSERV | AI_PASSIVE; + hints.ai_flags = AI_NUMERICSERV | AI_PASSIVE; if (getaddrinfo(saddr, sport, &hints, &gdbaddr) != 0) err(1, "gdb address resolve");