Message ID | 20210409095306.075652415@linuxfoundation.org |
---|---|
State | Superseded |
Headers | show |
Series | None | expand |
Hi Greg, On Fri, Apr 09, 2021 at 11:54:01AM +0200, Greg Kroah-Hartman wrote: > From: Piotr Krysiuk <piotras@gmail.com> > > commit 26f55a59dc65ff77cd1c4b37991e26497fc68049 upstream. I am not finding this in Linus's tree and even not seeing this change in master branch also. Am I missing something? -- Regards Sudip
On 4/9/21 9:51 PM, Sudip Mukherjee wrote: > On Fri, Apr 09, 2021 at 11:54:01AM +0200, Greg Kroah-Hartman wrote: >> From: Piotr Krysiuk <piotras@gmail.com> >> >> commit 26f55a59dc65ff77cd1c4b37991e26497fc68049 upstream. > > I am not finding this in Linus's tree and even not seeing this change in > master branch also. Am I missing something? Both are in -net tree at this point, thus commit sha won't change anymore. David or Jakub will likely send their -net PR to Linus today or tomorrow for landing in mainline. For stable things had to move a bit quicker given the announcement in [0] yesterday. Timing was a bit unfortunate here as I would have preferred for things to land in stable the regular way first (aka merge to mainline, cherry-picking to stable, minor stable release, then announcement). Thanks, Daniel [0] https://www.openwall.com/lists/oss-security/2021/04/08/1
--- a/arch/x86/net/bpf_jit_comp32.c +++ b/arch/x86/net/bpf_jit_comp32.c @@ -2278,7 +2278,16 @@ notyet: } if (image) { - if (unlikely(proglen + ilen > oldproglen)) { + /* + * When populating the image, assert that: + * + * i) We do not write beyond the allocated space, and + * ii) addrs[i] did not change from the prior run, in order + * to validate assumptions made for computing branch + * displacements. + */ + if (unlikely(proglen + ilen > oldproglen || + proglen + ilen != addrs[i])) { pr_err("bpf_jit: fatal error\n"); return -EFAULT; }