Re: [PATCH] ip_tunnel: Fix name string concatenate in __ip_tunnel_create()

2018-06-07 Thread David Miller
From: Sultan Alsawaf Date: Wed, 6 Jun 2018 15:56:54 -0700 > By passing a limit of 2 bytes to strncat, strncat is limited to writing > fewer bytes than what it's supposed to append to the name here. > > Since the bounds are checked on the line above this, just remove the string > bounds checks e

[PATCH] ip_tunnel: Fix name string concatenate in __ip_tunnel_create()

2018-06-06 Thread Sultan Alsawaf
By passing a limit of 2 bytes to strncat, strncat is limited to writing fewer bytes than what it's supposed to append to the name here. Since the bounds are checked on the line above this, just remove the string bounds checks entirely since they're unneeded. Signed-off-by: Sultan Alsawaf --- ne