Re: [PATCHv3 next 0/3] blackhole device to invalidate dst

2019-07-01 Thread David Miller
From: Mahesh Bandewar Date: Mon, 1 Jul 2019 14:38:43 -0700 ... > The idea here is to not alter the data-path with additional > locks or smb()/rmb() barriers to avoid racy assignments but > to create a new device that has really low MTU that has > .ndo_start_xmit essentially a kfree_skb(). Make

[PATCHv3 next 0/3] blackhole device to invalidate dst

2019-07-01 Thread Mahesh Bandewar
When we invalidate dst or mark it "dead", we assign 'lo' to dst->dev. First of all this assignment is racy and more over, it has MTU implications. The standard dev MTU is 1500 while the Loopback MTU is 64k. TCP code when dereferencing the dst don't check if the dst is valid or not. TCP when derefe