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-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1370273152.24311.150.camel@edumazet-glaptop>
Date:	Mon, 03 Jun 2013 08:25:52 -0700
From:	Eric Dumazet <eric.dumazet@...il.com>
To:	Pablo Neira Ayuso <pablo@...filter.org>
Cc:	netdev@...r.kernel.org, davem@...emloft.net, kaber@...sh.net
Subject: Re: [PATCH net-next] netlink: allow large data transfers from
 user-space

On Mon, 2013-06-03 at 17:10 +0200, Pablo Neira Ayuso wrote:

> +	if (size <= PAGE_SIZE)
> +		return alloc_skb(size, GFP_KERNEL);
> +

That would be

 	if (size < SKB_WITH_OVERHEAD(PAGE_SIZE))

or

	if (size < SKB_MAX_HEAD(0))


--
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