lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <f8725c2b-635f-1da9-d2f6-4f34777b194a@marples.name>
Date:   Thu, 23 Apr 2020 17:53:08 +0100
From:   Roy Marples <roy@...ples.name>
To:     netdev@...r.kernel.org
Subject: [PATCH net] netlink: Align NLA_ALIGNTO with the other ALIGNTO macros

This avoids sign conversion errors.

Signed-off-by: Roy Marples <roy@...ples.name>

diff --git a/include/uapi/linux/netlink.h b/include/uapi/linux/netlink.h
index 0a4d73317759..c9ed05f14005 100644
--- a/include/uapi/linux/netlink.h
+++ b/include/uapi/linux/netlink.h
@@ -227,7 +227,7 @@ struct nlattr {
   #define NLA_F_NET_BYTEORDER    (1 << 14)
   #define NLA_TYPE_MASK          ~(NLA_F_NESTED | NLA_F_NET_BYTEORDER)

-#define NLA_ALIGNTO            4
+#define NLA_ALIGNTO            4U
   #define NLA_ALIGN(len)         (((len) + NLA_ALIGNTO - 1) & ~(NLA_ALIGNTO - 1))
   #define NLA_HDRLEN             ((int) NLA_ALIGN(sizeof(struct nlattr)))

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ