aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAleksandr Nogikh <nogikh@google.com>2023-08-09 20:52:25 +0200
committerMarco Elver <elver@google.com>2023-08-09 20:28:28 +0000
commita1790533702f3e36235ca03e137ec59336ef742a (patch)
tree587d47ce129f346dbd91f720d0f2d17a81642309
parent13ca4cd61efbe39141a9349f08b96ccd0d8350c2 (diff)
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);
-rw-r--r--pkg/vcs/linux_patches.go8
1 files changed, 8 insertions, 0 deletions
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`,
+ },
}