lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1244230546.1526.78.camel@w-sridhar.beaverton.ibm.com>
Date:	Fri, 05 Jun 2009 12:35:46 -0700
From:	Sridhar Samudrala <sri@...ibm.com>
To:	davem@...emloft.net, netdev@...r.kernel.org, mst@...hat.com
Subject: [PATCH net-next 3/3] tun: Fix copy/paste error in tun_get_user

Use the right structure while incrementing the offset in tun_get_user.

Signed-off-by: Sridhar Samudrala <sri@...ibm.com>

diff --git a/drivers/net/tun.c b/drivers/net/tun.c
index 4cda69b..15cfcb2 100644
--- a/drivers/net/tun.c
+++ b/drivers/net/tun.c
@@ -567,7 +567,7 @@ static __inline__ ssize_t tun_get_user(struct
tun_struct *tun,

 		if (gso.hdr_len > len)
 			return -EINVAL;
-		offset += sizeof(pi);
+		offset += sizeof(gso);
 	}

 	if ((tun->flags & TUN_TYPE_MASK) == TUN_TAP_DEV) {


--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ