Subject: kern/16349: compat_linux(8) programs can freeze on NFS directory access
To: None <gnats-bugs@gnats.netbsd.org>
From: Matthias Scheler <tron@colwyn.zhadum.de>
List: netbsd-bugs
Date: 04/14/2002 13:14:10
>Number:         16349
>Category:       kern
>Synopsis:       compat_linux(8) programs can freeze on NFS directory access
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Apr 14 04:15:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     
>Release:        NetBSD 1.5ZC 2002-04-12/2002-04-14 sources
>Organization:
Matthias Scheler                                  http://scheler.de/~matthias/
>Environment:
System: NetBSD lyssa.zhadum.de 1.5ZC NetBSD 1.5ZC (LYSSA) #0: Sun Apr 14 12:25:45 CEST 2002 tron@lyssa.zhadum.de:/src/sys/compile/LYSSA i386
Architecture: i386
Machine: i386

SuSE 7.3 Linux emulation packages

>Description:
Using the file requester of either "netscape" or "opera" on a NFS
mounted directory with sub directorries results in a hanging process
which is eating up lots of CPU time. Finally it dies with a
segmentation fault because its virtual memory is exhausted. Here is
some "ktrace" output:

 15087 opera    CALL  lstat64(0x108e4078,0xbfbfbf98)
 15087 opera    NAMI  "/emul/linux/amd/colwyn/export/home/tron/lib"
 15087 opera    NAMI  "/amd/colwyn/export/home/tron/lib"
 15087 opera    RET   lstat64 0
 15087 opera    CALL  getdents64(0x6,0x8c99c28,0x200)
 15087 opera    RET   getdents64 452/0x1c4
 15087 opera    CALL  llseek(0x6,0,0x78000000,0xbfbfc000,0)
 15087 opera    RET   llseek 0

This sequence is repeated over and over again.

>How-To-Repeat:
1.) Launch Netscape 4.79 or Opera 6.0 Beta 1.
2.) Use a menu item which opens a file request like "Save as".
3.) If the program doesn't hang yet change to a NFS mounted directory with
    sub directories.

>Fix:
None provided.
>Release-Note:
>Audit-Trail:
>Unformatted: