-
Notifications
You must be signed in to change notification settings - Fork 336
Closed
Description
I am trying to live patch a Debian Buster system.
$ uname -a
Linux virt-test-none-8531950 4.19.0-22-cloud-amd64 #1 SMP Debian 4.19.260-1 (2022-09-29) x86_64 GNU/Linux
$ cat /proc/version
Linux version 4.19.0-22-cloud-amd64 (debian-kernel@lists.debian.org) (gcc version 8.3.0 (Debian 8.3.0-6)) #1 SMP Debian 4.19.260-1 (2022-09-29)
$ head -6 debian/Makefile
# SPDX-License-Identifier: GPL-2.0
VERSION = 4
PATCHLEVEL = 19
SUBLEVEL = 260
EXTRAVERSION =
NAME = "People's Front"
The patch is:
$ cat uptime.patch
--- debian/fs/proc/uptime.c 2022-09-28 14:32:58.000000000 +0530
+++ uptime.c 2023-03-01 11:21:47.420572121 +0530
@@ -23,7 +23,7 @@
idle.tv_sec = div_u64_rem(nsec, NSEC_PER_SEC, &rem);
idle.tv_nsec = rem;
seq_printf(m, "%lu.%02lu %lu.%02lu\n",
- (unsigned long) uptime.tv_sec,
+ (unsigned long) uptime.tv_sec + 1000000,
(uptime.tv_nsec / (NSEC_PER_SEC / 100)),
(unsigned long) idle.tv_sec,
(idle.tv_nsec / (NSEC_PER_SEC / 100)));
Patch command:
kpatch-build -j 10 -s debian/ -v /usr/lib/debug/lib/modules/$(uname -r)/vmlinux uptime.patch
This fails with:
# tail /root/.kpatch/build.log
LD vmlinux.o
MODPOST vmlinux.o
KSYM .tmp_kallsyms1.o
KSYM .tmp_kallsyms2.o
LD vmlinux
SORTEX vmlinux
SYSMAP System.map
Building modules, stage 2.
MODPOST 916 modules
/usr/lib/kpatch/create-diff-object: ERROR: uptime.o: find_local_syms: 174: find_local_syms for uptime.c: found_none
Can anyone help with how to proceed, or any suggestions?
Metadata
Metadata
Assignees
Labels
No labels