lkml.org 
[lkml]   [1999]   [Mar]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [patch] af_unix fix for a panic a DoS and a memory leak [Re: [Real fix] Re: Kernel panic: can't push onto full stack]
On Mon, 1 Mar 1999, Alexander Viro wrote:

>Yes, you can do it. I don't think that ENOMEM is the right return value
>here - ECONNREFUSED is more reasonable, IMHO. But yes, we need to limit

[..]
err = -ECONNREFUSED;
^^^^^^^^^^^^^^^^^^^^
if (other == NULL || other->dead || other->state != TCP_LISTEN)
goto out;

/* Fail if the listen backlog is just full. -arca */
if (other->ack_backlog >= other->max_ack_backlog)
goto out;
^^^^^^^^
[..]

I am just using -ECONNREFUSED ;).

Andrea Arcangeli


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:50    [W:0.068 / U:0.116 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site