Blame SOURCES/0007-nlattr-fix-off-by-one-error-in-indexed-xlat-lookup.patch

a94321
From def46773e2540b4898b26c470d8d658b4b39075f Mon Sep 17 00:00:00 2001
a94321
From: "Dmitry V. Levin" <ldv@altlinux.org>
a94321
Date: Sun, 23 Dec 2018 22:12:36 +0000
a94321
Subject: [PATCH 07/27] nlattr: fix off-by-one error in indexed xlat lookup
a94321
a94321
* nlattr.c (decode_nla_meminfo): Decrement xlat size by one
a94321
to account for XLAT_END as other users of indexed xlats do.
a94321
a94321
Fixes: v4.23~89 "nlattr: print index names in netlink meminfo array"
a94321
---
a94321
 nlattr.c | 2 +-
a94321
 1 file changed, 1 insertion(+), 1 deletion(-)
a94321
a94321
diff --git a/nlattr.c b/nlattr.c
a94321
index af7cc16..db37452 100644
a94321
--- a/nlattr.c
a94321
+++ b/nlattr.c
a94321
@@ -217,7 +217,7 @@ decode_nla_meminfo(struct tcb *const tcp,
a94321
 		       tfetch_mem, print_uint32_array_member, &count,
a94321
 		       PAF_PRINT_INDICES | PAF_INDEX_XLAT_VALUE_INDEXED
a94321
 			| XLAT_STYLE_FMT_U,
a94321
-		       ARRSZ_PAIR(netlink_sk_meminfo_indices),
a94321
+		       ARRSZ_PAIR(netlink_sk_meminfo_indices) - 1,
a94321
 		       "SK_MEMINFO_???");
a94321
 
a94321
 	return true;
a94321
-- 
a94321
2.1.4
a94321