On Thu, Feb 13, 2025 at 2:22 PM Puranjay Mohan <puranjay@xxxxxxxxxx> wrote: > > Song Liu <song@xxxxxxxxxx> writes: > > > On Thu, Feb 13, 2025 at 12:38 AM Puranjay Mohan <puranjay@xxxxxxxxxx> wrote: > > [...] > >> > >> P.S. - The livepatch doesn't have copy_process() but only copy_signal(), > >> yours had copy_process() somehow. > > > > In my build, copy_signal is inlined to copy_process, unless I add noinline. > > If I do add noinline, the issue will not reproduce. > > > > I tried more combinations. The issue doesn't reproduce if I either > > 1) add noinline to copy_signal, so we are not patching the whole > > copy_process function; > > or > > 2) Switch compiler from gcc 14.2.1 to gcc 11.5.0. > > > > So it appears something in gcc 14.2.1 is causing live patch to fail > > for copy_process(). > > So, can you test your RFC set (without SFRAME) with gcc 14.2.1, so we > can be sure that it is not a sframe problem? My RFC set is the same. No issue with gcc 11.5.0; but hits the same WARNING with gcc 14.2.1. My previous tests are all with clang. I didn't see a similar issue there. > And about having the .sframe section in the livepatch module, I realised > that this set doesn't include support for reading/using sframe data from > any module(livepatches included), so the patch I added for generating > .sframe in kpatch is irrelevant because it is a no-op with the current setup. Agreed, this issue should be irrelevant to the .sframe section in the .ko file. Thanks, Song