linux-next: manual merge of the net-next tree with the net tree
Mark Brown
maintainerHi all,
Today's linux-next merge of the net-next tree got a conflict in:
drivers/net/amt.c
between commit:
3656a79f94c47 ("amt: re-read skb header pointers after every pull")
from the net tree and commit:
586c4dcf28eb6 ("amt: no longer rely on RTNL in amt_fill_info()")
from the net-next tree.
I fixed it up (see below) and can carry the fix as necessary. This is now fixed as far as linux-next is concerned, but any non trivial conflicts should be mentioned to your upstream maintainer when your tree is submitted for merging. You may also want to consider cooperating with the maintainer of the conflicting tree to minimise any particularly complex conflicts.
drivers/net/amt.c +0 -0
@@@ -2811,7 -2775,8 +2814,8 @@@ dropstatic int amt_rcv (struct sock *sk,struct sk_buff *skb) {struct amt_dev *amt; - struct iphdr *iph; + __be32 saddr; +__be32 remote_ip;int type;bool err;kfree_skb (skb); goto out; } + remote_ip =READ_ONCE (amt->remote_ip); skb->dev = amt->dev; - iph =ip_hdr (skb); + saddr =ip_hdr (skb)->saddr; type =amt_parse_type (skb);if (type ==-1 ) { err = true; } goto out;case AMT_MSG_MULTICAST_DATA : -if (saddr != amt->remote_ip) { - if (iph->saddr != remote_ip) { ++ if (saddr != remote_ip) {netdev_dbg (amt->dev,"Invalid Relay IP\n" ); err = true; goto drop; else goto out;case AMT_MSG_MEMBERSHIP_QUERY : -if (saddr != amt->remote_ip) { - if (iph->saddr != remote_ip) { ++ if (saddr != remote_ip) {netdev_dbg (amt->dev,"Invalid Relay IP\n" ); err = true; goto drop;
Hi Mark,
Quoted 28 lines · Mark Brown
Hi all,
Today's linux-next merge of the net-next tree got a conflict in:
drivers/net/amt.cbetween commit:
3656a79f94c47("amt: re-read skb header pointers after every pull")from the net tree and commit:
586c4dcf28eb6("amt: no longer rely on RTNL inamt_fill_info()")from the net-next tree.
I fixed it up (see below) and can carry the fix as necessary. This is now fixed as far as linux-next is concerned, but any non trivial conflicts should be mentioned to your upstream maintainer when your tree is submitted for merging. You may also want to consider cooperating with the maintainer of the conflicting tree to minimise any particularly complex conflicts.
drivers/net/amt.c +0
-0
drivers/net/amt.c
Quoted 6 lines
drivers/net/amt.c +1
-0@@@ -2811,7 -2775,8 +2814,8 @@@ dropstatic int amt_rcv (struct sock *sk,struct sk_buff *skb) {struct amt_dev *amt; - struct iphdr *iph; + __be32 saddr; +__be32 remote_ip;
Thank you for the resolution, it looks good to me, except these lines:
in the net subsystem, the local variables are declared following the reversed Xmas tree order [1]. So I suppose the Net maintainers will inverse these two lines when resolving this conflict.
[1]
https://docs.kernel.org/process/maintainer-netdev.html#local-variable-ordering-reverse-xmas-tree-rcs
Cheers,
Matt
Signature · 1 line
Sponsored by the NGI0 Core fund.