Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
There were quite a few overlapping sets of changes here. Daniel's bug fix for off-by-ones in the new BPF branch instructions, along with the added allowances for "data_end > ptr + x" forms collided with the metadata additions. Along with those three changes came veritifer test cases, which in their final form I tried to group together properly. If I had just trimmed GIT's conflict tags as-is, this would have split up the meta tests unnecessarily. In the socketmap code, a set of preemption disabling changes overlapped with the rename of bpf_compute_data_end() to bpf_compute_data_pointers(). Changes were made to the mv88e6060.c driver set addr method which got removed in net-next. The hyperv transport socket layer had a locking change in 'net' which overlapped with a change of socket state macro usage in 'net-next'. Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
@@ -1124,9 +1124,13 @@ int skb_zerocopy_iter_stream(struct sock *sk, struct sk_buff *skb,
|
||||
|
||||
err = __zerocopy_sg_from_iter(sk, skb, &msg->msg_iter, len);
|
||||
if (err == -EFAULT || (err == -EMSGSIZE && skb->len == orig_len)) {
|
||||
struct sock *save_sk = skb->sk;
|
||||
|
||||
/* Streams do not free skb on error. Reset to prev state. */
|
||||
msg->msg_iter = orig_iter;
|
||||
skb->sk = sk;
|
||||
___pskb_trim(skb, orig_len);
|
||||
skb->sk = save_sk;
|
||||
return err;
|
||||
}
|
||||
|
||||
@@ -1895,7 +1899,7 @@ void *__pskb_pull_tail(struct sk_buff *skb, int delta)
|
||||
}
|
||||
|
||||
/* If we need update frag list, we are in troubles.
|
||||
* Certainly, it possible to add an offset to skb data,
|
||||
* Certainly, it is possible to add an offset to skb data,
|
||||
* but taking into account that pulling is expected to
|
||||
* be very rare operation, it is worth to fight against
|
||||
* further bloating skb head and crucify ourselves here instead.
|
||||
|
Reference in New Issue
Block a user