Re: xfrm_user reliability

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 7 Oct 2003 20:36:04 +1000
Herbert Xu <herbert@gondor.apana.org.au> wrote:

> The only problem now is that various NETLINK implementations do not
> always generate the overrun.  For example, if the netlink_ack() in
> xfrm_user.c fails to allocate memory nothing is returned.

Another possibility is to do a "yield() until memory available" like
net/ipv4/tcp_output.c:tcp_send_fin() does.

Really, this netlink_ack() case should absolutely fail rarely.
We are talking about at worst a single page allocation to satisfy
this request and for GFP_KERNEL this is all but guarenteed.
-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux