Re: [PATCH 5.10 38/41] bpf, x86: Validate computation of branch displacements for x86-64

2021-04-09 Thread Sudip Mukherjee
Hi Greg, On Fri, Apr 09, 2021 at 11:54:00AM +0200, Greg Kroah-Hartman wrote: > From: Piotr Krysiuk > > commit e4d4d456436bfb2fe412ee2cd489f7658449b098 upstream. And, this one also. I am unable to find this SHA in Linus's tree. -- Regards Sudip

[PATCH 5.10 38/41] bpf, x86: Validate computation of branch displacements for x86-64

2021-04-09 Thread Greg Kroah-Hartman
From: Piotr Krysiuk commit e4d4d456436bfb2fe412ee2cd489f7658449b098 upstream. The branch displacement logic in the BPF JIT compilers for x86 assumes that, for any generated branch instruction, the distance cannot increase between optimization passes. But this assumption can be violated due to h