Commit e1cb561
bpf: Check flow_dissector ctx accesses are aligned
flow_dissector_is_valid_access doesn't check that the context access is
aligned. As a consequence, an unaligned access within one of the exposed
field is considered valid and later rejected by
flow_dissector_convert_ctx_access when we try to convert it.
The later rejection is problematic because it's reported as a verifier
bug with a kernel warning and doesn't point to the right instruction in
verifier logs.
Fixes: d58e468 ("flow_dissector: implements flow dissector BPF hook")
Reported-by: [email protected]
Closes: https://syzkaller.appspot.com/bug?extid=ccac90e482b2a81d74aa
Signed-off-by: Paul Chaignon <[email protected]>
Acked-by: Yonghong Song <[email protected]>
Acked-by: Eduard Zingerman <[email protected]>1 parent 821bb1d commit e1cb561
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9458 | 9458 | | |
9459 | 9459 | | |
9460 | 9460 | | |
| 9461 | + | |
| 9462 | + | |
| 9463 | + | |
9461 | 9464 | | |
9462 | 9465 | | |
9463 | 9466 | | |
| |||
0 commit comments