Re: [PATCH v9 10/14] module: kallsyms: Fix suspicious rcu usage

From: Aaron Tomlin
Date: Wed Mar 02 2022 - 12:02:16 EST


On Tue 2022-03-01 16:52 +0000, Aaron Tomlin wrote:
> Petr,
>
> Any concerns?
>
> Unfortunately, I didn't make enough time to test.

Petr,

$ sudo ./test-livepatch.sh
[sudo] password for atomlin:
TEST: basic function patching ... ok
TEST: multiple livepatches ... ok
TEST: atomic replace livepatch ... ok

- dmesg output excerpt

[ 209.354909] ===== TEST: basic function patching =====
[ 209.435376] % modprobe test_klp_livepatch
[ 209.467226] test_klp_livepatch: tainting kernel with TAINT_LIVEPATCH
[ 209.539749] livepatch: enabling patch 'test_klp_livepatch'
[ 209.539785] livepatch: 'test_klp_livepatch': initializing patching transition
[ 209.543671] livepatch: 'test_klp_livepatch': starting patching transition
[ 210.716486] livepatch: 'test_klp_livepatch': completing patching transition
[ 210.717405] livepatch: 'test_klp_livepatch': patching complete
[ 210.766777] % echo 0 > /sys/kernel/livepatch/test_klp_livepatch/enabled
[ 210.767446] livepatch: 'test_klp_livepatch': initializing unpatching transition
[ 210.767548] livepatch: 'test_klp_livepatch': starting unpatching transition
[ 211.739802] livepatch: 'test_klp_livepatch': completing unpatching transition
[ 211.778846] livepatch: 'test_klp_livepatch': unpatching complete
[ 211.862102] % rmmod test_klp_livepatch


Kind regards,

--
Aaron Tomlin