From a1790533702f3e36235ca03e137ec59336ef742a Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Wed, 9 Aug 2023 20:52:25 +0200 Subject: pkg/vcs: patch an objtool Linux bug The following error appears when bisecting older Linux versions: check.c: In function 'validate_call': check.c:2865:58: error: '%d' directive output may be truncated writing between 1 and 10 bytes into a region of size 9 [-Werror=format-truncation=] 2865 | snprintf(pvname, sizeof(pvname), "pv_ops[%d]", idx); --- pkg/vcs/linux_patches.go | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'pkg/vcs') diff --git a/pkg/vcs/linux_patches.go b/pkg/vcs/linux_patches.go index 88c3741f2..2a8a9a8c2 100644 --- a/pkg/vcs/linux_patches.go +++ b/pkg/vcs/linux_patches.go @@ -81,4 +81,12 @@ var pickLinuxCommits = []BackportCommit{ FixHash: `0711f0d7050b9e07c44bc159bbc64ac0a1022c7f`, FixTitle: "pid: take a reference when initializing `cad_pid`", }, + { + // Fixes the following error: + // check.c:2865:58: error: '%d' directive output may be truncated writing between 1 and + // 10 bytes into a region of size 9 [-Werror=format-truncation=] + GuiltyHash: `db2b0c5d7b6f19b3c2cab08c531b65342eb5252b`, + FixHash: `82880283d7fcd0a1d20964a56d6d1a5cc0df0713`, + FixTitle: `objtool: Fix truncated string warning`, + }, } -- cgit mrf-deployment