Re: [PATCH 0/2] livepatch: fix handling of (some) relocations

2022-03-17 Thread Jan Beulich
On 17.03.2022 12:08, Roger Pau Monne wrote: > I wonder whether it's possible to have unresolved symbols if we only > ignore non SHF_ALLOC sections, so we could maybe error out earlier if we > found a symbols that belongs to a non SHF_ALLOC section in > livepatch_elf_resolve_symbols. The current

Re: [PATCH 0/2] livepatch: fix handling of (some) relocations

2022-03-17 Thread Doebel, Bjoern
On 17.03.22, 12:10, "Xen-devel on behalf of Roger Pau Monne" wrote: Hello, Relocations that reference symbols that belong to sections with a size of 0 are not properly resolved, as the address of those symbols won't be resolved in the first place. Fix this by not

[PATCH 0/2] livepatch: fix handling of (some) relocations

2022-03-17 Thread Roger Pau Monne
Hello, Relocations that reference symbols that belong to sections with a size of 0 are not properly resolved, as the address of those symbols won't be resolved in the first place. Fix this by not ignoring sections with a size of 0, while still properly handling the detection of whether a