Re: Livepatch vs LTO

2019-04-26 Thread Josh Poimboeuf
On Fri, Apr 26, 2019 at 11:00:48AM +0200, Miroslav Benes wrote: > > - For binary-based patch generation (kpatch-build), we currently diff > > objects at a per-compilation-unit level. That would have to be > > changed to work on vmlinux.o instead. > > > > - Objtool would also have to be change

Re: Livepatch vs LTO

2019-04-26 Thread Jan Hubicka
> [ adding CCs ] > > On Thu, 25 Apr 2019, Josh Poimboeuf wrote: > > > Hi all, > > > > On IRC, Peter expressed some concern about -flive-patching, specifically > > that the flag isn't compatible with LTO. > > > > The upstream kernel currently doesn't support LTO, but Android is using > > it with

Re: Livepatch vs LTO

2019-04-26 Thread Miroslav Benes
[ adding CCs ] On Thu, 25 Apr 2019, Josh Poimboeuf wrote: > Hi all, > > On IRC, Peter expressed some concern about -flive-patching, specifically > that the flag isn't compatible with LTO. > > The upstream kernel currently doesn't support LTO, but Android is using > it with LLVM: > > https://

Re: Livepatch vs LTO

2019-04-25 Thread Josh Poimboeuf
On Thu, Apr 25, 2019 at 02:22:23PM -0400, Joe Lawrence wrote: > On 4/25/19 11:26 AM, Josh Poimboeuf wrote: > > Hi all, > > > > On IRC, Peter expressed some concern about -flive-patching, specifically > > that the flag isn't compatible with LTO. > > > > The upstream kernel currently doesn't suppor

Re: Livepatch vs LTO

2019-04-25 Thread Joe Lawrence
On 4/25/19 11:26 AM, Josh Poimboeuf wrote: Hi all, On IRC, Peter expressed some concern about -flive-patching, specifically that the flag isn't compatible with LTO. The upstream kernel currently doesn't support LTO, but Android is using it with LLVM: https://source.android.com/devices/tech/

Livepatch vs LTO

2019-04-25 Thread Josh Poimboeuf
Hi all, On IRC, Peter expressed some concern about -flive-patching, specifically that the flag isn't compatible with LTO. The upstream kernel currently doesn't support LTO, but Android is using it with LLVM: https://source.android.com/devices/tech/debug/kcfi And there seems to be progress bei