Re: [PATCH v4 bpf-next 0/2] bpf: add cg_skb_is_valid_access

2018-10-18 Thread Alexei Starovoitov
On 10/18/18 4:34 PM, Alexei Starovoitov wrote: > On Thu, Oct 18, 2018 at 09:06:47AM -0700, Song Liu wrote: >> Changes v3 -> v4: >> 1. Fixed crash issue reported by Alexei. >> >> Changes v2 -> v3: >> 1. Added helper function bpf_compute_and_save_data_pointers() and >>

Re: [PATCH v4 bpf-next 0/2] bpf: add cg_skb_is_valid_access

2018-10-18 Thread Alexei Starovoitov
On Thu, Oct 18, 2018 at 09:06:47AM -0700, Song Liu wrote: > Changes v3 -> v4: > 1. Fixed crash issue reported by Alexei. > > Changes v2 -> v3: > 1. Added helper function bpf_compute_and_save_data_pointers() and >bpf_restore_data_pointers(). > > Changes v1 -> v2: > 1. Updated the list of

[PATCH v4 bpf-next 0/2] bpf: add cg_skb_is_valid_access

2018-10-18 Thread Song Liu
Changes v3 -> v4: 1. Fixed crash issue reported by Alexei. Changes v2 -> v3: 1. Added helper function bpf_compute_and_save_data_pointers() and bpf_restore_data_pointers(). Changes v1 -> v2: 1. Updated the list of read-only fields, and read-write fields. 2. Added dummy sk to