Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
create-diff-object: check NOP-padded instruction when symbol missing
commit 3e54c63 has added support for x86 NOP-padded functions. However, it works only when pfx symbol exists. In fedora 39 with kernel 6.7.4-200.fc39.x86_64. I met the following error: kpatch_bundle_symbols: 251: symbol uptime_proc_show at offset 16 within section .text.uptime_proc_show, expected 0. Problem here is, the symbol table of uptime.o has no __pfx symbol. To solve this problem, we can add a check if the padding area is filled with nop instructions. Signed-off-by: Longjun Luo <luolongjuna@gmail.com>
- Loading branch information