mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Conflicts: net/netfilter/nfnetlink_log.c net/netfilter/xt_LOG.c Rather easy conflict resolution, the 'net' tree had bug fixes to make sure we checked if a socket is a time-wait one or not and elide the logging code if so. Whereas on the 'net-next' side we are calculating the UID and GID from the creds using different interfaces due to the user namespace changes from Eric Biederman. Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
commit
b48b63a1f6
594 changed files with 5227 additions and 2810 deletions
|
|
@ -212,7 +212,7 @@ resume:
|
|||
/* only the first xfrm gets the encap type */
|
||||
encap_type = 0;
|
||||
|
||||
if (async && x->repl->check(x, skb, seq)) {
|
||||
if (async && x->repl->recheck(x, skb, seq)) {
|
||||
XFRM_INC_STATS(net, LINUX_MIB_XFRMINSTATESEQERROR);
|
||||
goto drop_unlock;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -420,6 +420,18 @@ err:
|
|||
return -EINVAL;
|
||||
}
|
||||
|
||||
static int xfrm_replay_recheck_esn(struct xfrm_state *x,
|
||||
struct sk_buff *skb, __be32 net_seq)
|
||||
{
|
||||
if (unlikely(XFRM_SKB_CB(skb)->seq.input.hi !=
|
||||
htonl(xfrm_replay_seqhi(x, net_seq)))) {
|
||||
x->stats.replay_window++;
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
return xfrm_replay_check_esn(x, skb, net_seq);
|
||||
}
|
||||
|
||||
static void xfrm_replay_advance_esn(struct xfrm_state *x, __be32 net_seq)
|
||||
{
|
||||
unsigned int bitnr, nr, i;
|
||||
|
|
@ -479,6 +491,7 @@ static void xfrm_replay_advance_esn(struct xfrm_state *x, __be32 net_seq)
|
|||
static struct xfrm_replay xfrm_replay_legacy = {
|
||||
.advance = xfrm_replay_advance,
|
||||
.check = xfrm_replay_check,
|
||||
.recheck = xfrm_replay_check,
|
||||
.notify = xfrm_replay_notify,
|
||||
.overflow = xfrm_replay_overflow,
|
||||
};
|
||||
|
|
@ -486,6 +499,7 @@ static struct xfrm_replay xfrm_replay_legacy = {
|
|||
static struct xfrm_replay xfrm_replay_bmp = {
|
||||
.advance = xfrm_replay_advance_bmp,
|
||||
.check = xfrm_replay_check_bmp,
|
||||
.recheck = xfrm_replay_check_bmp,
|
||||
.notify = xfrm_replay_notify_bmp,
|
||||
.overflow = xfrm_replay_overflow_bmp,
|
||||
};
|
||||
|
|
@ -493,6 +507,7 @@ static struct xfrm_replay xfrm_replay_bmp = {
|
|||
static struct xfrm_replay xfrm_replay_esn = {
|
||||
.advance = xfrm_replay_advance_esn,
|
||||
.check = xfrm_replay_check_esn,
|
||||
.recheck = xfrm_replay_recheck_esn,
|
||||
.notify = xfrm_replay_notify_bmp,
|
||||
.overflow = xfrm_replay_overflow_esn,
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1994,8 +1994,10 @@ int __xfrm_init_state(struct xfrm_state *x, bool init_replay)
|
|||
goto error;
|
||||
|
||||
x->outer_mode = xfrm_get_mode(x->props.mode, family);
|
||||
if (x->outer_mode == NULL)
|
||||
if (x->outer_mode == NULL) {
|
||||
err = -EPROTONOSUPPORT;
|
||||
goto error;
|
||||
}
|
||||
|
||||
if (init_replay) {
|
||||
err = xfrm_init_replay(x);
|
||||
|
|
|
|||
Loading…
Reference in a new issue