From: Mikhail Golubev <Mikhail.Golubev@opensynergy.com>
To: <mtk.manpages@gmail.com>
Cc: <linux-man@vger.kernel.org>
Subject: [patch] vsock.7: Add missing structure element
Date: Tue, 19 Nov 2019 18:31:34 +0100 [thread overview]
Message-ID: <20191119173134.5668-1-Mikhail.Golubev@opensynergy.com> (raw)
The structure 'struct sockaddr_vm' has additional element 'unsigned char
svm_zero[]' since version v3.9-rc1 (include/uapi/linux/vm_sockets.h).
Linux kernel checks that this element is zeroed
(net/vmw_vsock/vsock_addr.c). Reflect this on the vsock man page.
Fixes: https://bugzilla.kernel.org/show_bug.cgi?id=205583
Signed-off-by: Mikhail Golubev <Mikhail.Golubev@opensynergy.com>
---
man7/vsock.7 | 3 +++
1 file changed, 3 insertions(+)
diff --git a/man7/vsock.7 b/man7/vsock.7
index 23c67548f..145057719 100644
--- a/man7/vsock.7
+++ b/man7/vsock.7
@@ -95,6 +95,7 @@ struct sockaddr_vm {
unsigned short svm_reserved1;
unsigned int svm_port; /* Port # in host byte order */
unsigned int svm_cid; /* Address in host byte order */
+ unsigned char svm_zero[];
};
.EE
.in
@@ -113,6 +114,8 @@ Only a process with the
capability may
.BR bind (2)
to these port numbers.
+.I svm_zero
+is always set to 0.
.PP
There are several special addresses:
.B VMADDR_CID_ANY
--
2.23.0
next reply other threads:[~2019-11-19 17:38 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-11-19 17:31 Mikhail Golubev [this message]
2019-11-21 10:17 ` [patch] vsock.7: Add missing structure element Michael Kerrisk (man-pages)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20191119173134.5668-1-Mikhail.Golubev@opensynergy.com \
--to=mikhail.golubev@opensynergy.com \
--cc=linux-man@vger.kernel.org \
--cc=mtk.manpages@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).