Repository navigation
Commit 2a02759
bpf: Add support for BTF pointers to interpreter
Pointer to BTF object is a pointer to kernel object or NULL.
The memory access in the interpreter has to be done via probe_kernel_read
to avoid page faults.
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Andrii Nakryiko <andriin@fb.com>
Acked-by: Martin KaFai Lau <kafai@fb.com>
Link: https://lore.kernel.org/bpf/20191016032505.2089704-9-ast@kernel.org1 parent ac4414b commit 2a02759
3 files changed
Lines changed: 30 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
68 | 71 | | |
69 | 72 | | |
70 | 73 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1291 | 1291 | | |
1292 | 1292 | | |
1293 | 1293 | | |
| 1294 | + | |
| 1295 | + | |
| 1296 | + | |
| 1297 | + | |
| 1298 | + | |
1294 | 1299 | | |
1295 | 1300 | | |
1296 | 1301 | | |
| |||
1310 | 1315 | | |
1311 | 1316 | | |
1312 | 1317 | | |
| 1318 | + | |
| 1319 | + | |
| 1320 | + | |
| 1321 | + | |
1313 | 1322 | | |
1314 | 1323 | | |
1315 | 1324 | | |
| |||
1542 | 1551 | | |
1543 | 1552 | | |
1544 | 1553 | | |
| 1554 | + | |
| 1555 | + | |
| 1556 | + | |
| 1557 | + | |
| 1558 | + | |
| 1559 | + | |
| 1560 | + | |
| 1561 | + | |
| 1562 | + | |
| 1563 | + | |
1545 | 1564 | | |
1546 | 1565 | | |
1547 | 1566 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7581 | 7581 | | |
7582 | 7582 | | |
7583 | 7583 | | |
| 7584 | + | |
7584 | 7585 | | |
7585 | 7586 | | |
7586 | 7587 | | |
| |||
8722 | 8723 | | |
8723 | 8724 | | |
8724 | 8725 | | |
| 8726 | + | |
| 8727 | + | |
| 8728 | + | |
| 8729 | + | |
| 8730 | + | |
| 8731 | + | |
| 8732 | + | |
8725 | 8733 | | |
8726 | 8734 | | |
8727 | 8735 | | |
| |||
0 commit comments