Freeze when coredump in unexistant directory in tmpfs

2014-11-11 Thread Sébastien Marie
Hi, I run -current on amd64. When a program generate a coredump in unexistant directory (cwd before rmdir) in a tmpfs mount, my system freeze. Under a tmpfs mount-point: $ cat coreme.c #include int main() { abort(); } $ cc -o coreme coreme.c $ mkdir testdir $ cd testdir $ D="${PWD%te

Re: Freeze when coredump in unexistant directory in tmpfs

2014-11-11 Thread Peter J. Philipp
On Tue, Nov 11, 2014 at 12:02:57PM +0100, S??bastien Marie wrote: > Hi, > > I run -current on amd64. > > When a program generate a coredump in unexistant directory (cwd before > rmdir) in a tmpfs mount, my system freeze. > > Under a tmpfs mount-point: > > $ cat coreme.c > #include > > int mai

Re: Freeze when coredump in unexistant directory in tmpfs

2014-11-12 Thread Pedro Martelletto
hi! the fix consists of disallowing file allocations on directories that have been removed (tn_links == 0). failure to enforce such a check can lead to the violation of the assumption that removed directories should not contain directory entries -- thus the triggered assertion: http://ambientwork

Re: Freeze when coredump in unexistant directory in tmpfs

2014-11-12 Thread David Coppa
On Wed, Nov 12, 2014 at 10:21 AM, Pedro Martelletto wrote: > hi! > > the fix consists of disallowing file allocations on directories that > have been removed (tn_links == 0). failure to enforce such a check can > lead to the violation of the assumption that removed directories should > not contain