lkml.org 
[lkml]   [1999]   [Mar]   [3]   [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:


D'oh. I've looked into FreeBSD implementation of AF_UNIX and it's, erm,
funny.
* accept() doesn't return closed connections.
* unp_gc() (their equivalent of unix_gc()) ignores listen queues
* ... and is horribly bad in performance
* connect() behaves as our one does.
* unless they have a limit on amount of unp (== unix_socket)
somewhere else they are vulnerable to Andrea's DoS.
OpenBSD security logs:
They've recently found a select()/accept() race (Feb 17). And
fixed it. We were lucky here. Their fix seems to be still vulnerable to
Andrea's DoS (modulo independent enforcement of unp limit). unp_gc()
ignores listen queues (inherited from 4.4BSD).



-
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.088 / U:0.172 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site