Re: [PATCH stable 4.14] bpf, arm: fix emit_ldx_r and emit_mov_i using TMP_REG_1

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Dec 19, 2018 at 10:40:42PM +0100, Daniel Borkmann wrote:
From: Nicolas Schichan <nschichan@xxxxxxxxxx>

emit_ldx_r() and emit_a32_mov_i() were both using TMP_REG_1 and
clashing with each other. Using TMP_REG_2 in emit_ldx_r() fixes
the issue.

Fixes: ec19e02b343 ("ARM: net: bpf: fix LDX instructions")
Cc: Russell King <rmk+kernel@xxxxxxxxxxxxxxx>
Signed-off-by: Nicolas Schichan <nschichan@xxxxxxxxxx>
Signed-off-by: Daniel Borkmann <daniel@xxxxxxxxxxxxx>
---
[ Note, this has been implicitly fixed upstream by a6eccac507e
  ("ARM: net: bpf: 64-bit accessor functions for BPF registers"),
  so the fix here is a minimal stand-alone fix for 4.14. test_bpf
  suite runs without error after the fix. ]

Queued for 4.14, thank you.

--
Thanks,
Sasha



[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux