Minor headaches using pkgsrc daemons (samba)
qhwt+dfly at les.ath.cx
Tue Jul 12 09:31:30 PDT 2005
On Tue, Jul 12, 2005 at 04:34:53PM +0200, Joerg Sonnenberger wrote:
> On Sun, Jul 10, 2005 at 05:40:32PM -0700, walt wrote:
> > smbd: stack overflow in function open_sockets_smbd
> > kernel: pid 907 (smbd), uid 0: exited on signal 6
> > That is what I get when any client (like smbtree) tries to
> > connect to my DFly machine running smbd.
> I'm investigating this at the moment. The code is definitely
> not safe, there are actual problems, but I still have to find
> out why it triggers them as soon as it does.
This is very weird; if I add `return False' BEFORE FD_ZERO() in
open_sockets_smbd(), it terminates with SIGTERM, but if I put the
`return False' AFTER FD_ZERO() and stack smash protector detects
the stack overflow and it catches SIGABRT.
More information about the Bugs