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

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