Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b5dd674b authored by Patrick McHardy's avatar Patrick McHardy Committed by David S. Miller
Browse files

[NETFILTER]: ip6_tables: fix stack leagage



Fix leakage of local variable on stack. This already got fixed in
ip_tables silently by the compat patches.

Signed-off-by: default avatarPatrick McHardy <kaber@trash.net>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent c9d8fe13
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -1154,7 +1154,7 @@ static int get_info(void __user *user, int *len, int compat)
		       sizeof(info.underflow));
		       sizeof(info.underflow));
		info.num_entries = private->number;
		info.num_entries = private->number;
		info.size = private->size;
		info.size = private->size;
		memcpy(info.name, name, sizeof(info.name));
		strcpy(info.name, name);


		if (copy_to_user(user, &info, *len) != 0)
		if (copy_to_user(user, &info, *len) != 0)
			ret = -EFAULT;
			ret = -EFAULT;