Date: Mon, 3 Feb 2014 14:01:00 -0700 (MST) From: Chris Torek <torek@elf.torek.net> To: freebsd-hackers@freebsd.org, rysto32@gmail.com Subject: Re: Races in ichsmb(9) when accessed from a multithreaded process Message-ID: <201402032101.s13L10rm092760@elf.torek.net> In-Reply-To: <CAFMmRNxLWcxV2dYdr8R9ihrSgy4Fma9YELBmResU2KrQEQd6XA@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Yes, we found that the code does not properly allow either multiple threads *or* multiple processes to work. The top level driver makes it a single-open device (which has the obvious drawback that only one process can open() the device). But even then, multiple threads within a process, or forking, or using PF_LOCAL sockets to hand over the file descriptor, result in races. We have a hack that makes it work for our case but the SMB framework needs an overhaul. Chris
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201402032101.s13L10rm092760>