Yonghong Song
239946314e
bpf: possibly avoid extra masking for narrower load in verifier
...
Commit 31fd85816d ("bpf: permits narrower load from bpf program
context fields") permits narrower load for certain ctx fields.
The commit however will already generate a masking even if
the prog-specific ctx conversion produces the result with
narrower size.
For example, for __sk_buff->protocol, the ctx conversion
loads the data into register with 2-byte load.
A narrower 2-byte load should not generate masking.
For __sk_buff->vlan_present, the conversion function
set the result as either 0 or 1, essentially a byte.
The narrower 2-byte or 1-byte load should not generate masking.
To avoid unnecessary masking, prog-specific *_is_valid_access
now passes converted_op_size back to verifier, which indicates
the valid data width after perceived future conversion.
Based on this information, verifier is able to avoid
unnecessary marking.
Since we want more information back from prog-specific
*_is_valid_access checking, all of them are packed into
one data structure for more clarity.
Acked-by: Daniel Borkmann <[email protected] >
Signed-off-by: Yonghong Song <[email protected] >
Signed-off-by: David S. Miller <[email protected] >
2017-06-23 14:04:11 -04:00
..
blktrace.c
blktrace: fix integer parse
2017-05-19 09:21:15 -06:00
bpf_trace.c
bpf: possibly avoid extra masking for narrower load in verifier
2017-06-23 14:04:11 -04:00
ftrace.c
ftrace: Fix memory leak in ftrace_graph_release()
2017-05-26 22:35:48 -04:00
Kconfig
New features for this release:
2017-05-03 18:41:21 -07:00
Makefile
perf/core: Rename CONFIG_[UK]PROBE_EVENT to CONFIG_[UK]PROBE_EVENTS
2017-03-01 10:26:39 +01:00
power-traces.c
ring_buffer.c
New features for this release:
2017-05-03 18:41:21 -07:00
ring_buffer_benchmark.c
ring-buffer: Return reader page back into existing ring buffer
2017-05-01 10:26:40 -04:00
rpm-traces.c
trace.c
tracing: Make sure RCU is watching before calling a stack trace
2017-05-18 23:57:56 -04:00
trace.h
ftrace: Remove #ifdef from code and add clear_ftrace_function_probes() stub
2017-05-17 21:53:32 -04:00
trace_benchmark.c
tracing: Have the trace_event benchmark thread call cond_resched_rcu_qs()
2017-04-17 15:21:19 -04:00
trace_benchmark.h
tracing: Have the reg function allow to fail
2016-12-09 09:13:30 -05:00
trace_branch.c
tracing: Add the constant count for branch tracer
2017-01-19 08:57:41 -05:00
trace_clock.c
sched/headers: Prepare for new header dependencies before moving code to <linux/sched/clock.h>
2017-03-02 08:42:27 +01:00
trace_entries.h
trace: make trace_hwlat timestamp y2038 safe
2017-05-08 17:15:15 -07:00
trace_event_perf.c
trace_events.c
tracing/ftrace: Add a better way to pass data via the probe functions
2017-04-20 22:06:46 -04:00
trace_events_filter.c
tracing/filter: Define op as the enum that it is
2016-11-14 16:42:59 -05:00
trace_events_filter_test.h
trace_events_hist.c
sched/headers: Prepare to use <linux/rcuupdate.h> instead of <linux/rculist.h> in <linux/sched.h>
2017-03-02 08:42:38 +01:00
trace_events_trigger.c
sched/headers: Prepare to use <linux/rcuupdate.h> instead of <linux/rculist.h> in <linux/sched.h>
2017-03-02 08:42:38 +01:00
trace_export.c
trace_functions.c
tracing/ftrace: Allow for instances to trigger their own stacktrace probes
2017-04-20 22:06:49 -04:00
trace_functions_graph.c
tracing/fgraph: Have wakeup and irqsoff tracers ignore graph functions too
2016-12-09 09:21:35 -05:00
trace_hwlat.c
trace: make trace_hwlat timestamp y2038 safe
2017-05-08 17:15:15 -07:00
trace_irqsoff.c
clocksource: Use a plain u64 instead of cycle_t
2016-12-25 11:04:12 +01:00
trace_kdb.c
trace_kprobe.c
tracing/kprobes: Enforce kprobes teardown after testing
2017-05-17 21:50:27 -04:00
trace_mmiotrace.c
tracing: Expose CPU physical addresses (resource values) for PCI devices
2016-06-20 09:54:22 -04:00
trace_nop.c
trace_output.c
trace: make trace_hwlat timestamp y2038 safe
2017-05-08 17:15:15 -07:00
trace_output.h
trace_printk.c
tracing: Handle NULL formats in hold_module_trace_bprintk_format()
2016-06-20 09:46:12 -04:00
trace_probe.c
tracing/probes: Fix a warning message to show correct maximum length
2017-02-15 10:32:48 -05:00
trace_probe.h
perf/core: Rename CONFIG_[UK]PROBE_EVENT to CONFIG_[UK]PROBE_EVENTS
2017-03-01 10:26:39 +01:00
trace_sched_switch.c
trace_sched_wakeup.c
clocksource: Use a plain u64 instead of cycle_t
2016-12-25 11:04:12 +01:00
trace_selftest.c
sched/headers: Prepare for new header dependencies before moving code to <uapi/linux/sched/types.h>
2017-03-02 08:42:27 +01:00
trace_selftest_dynamic.c
trace_seq.c
trace_stack.c
rcu/tracing: Add rcu_disabled to denote when rcu_irq_enter() will not work
2017-04-10 15:22:03 -04:00
trace_stat.c
trace_stat.h
trace_syscalls.c
tracing/syscalls: fix multiline in error message text
2016-09-29 10:25:23 +02:00
trace_uprobe.c
sched/headers: Prepare to use <linux/rcuupdate.h> instead of <linux/rculist.h> in <linux/sched.h>
2017-03-02 08:42:38 +01:00
tracing_map.c
tracing_map.h