[patch] vsock.7: Add missing structure element

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxx>
---
 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




[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux