Bug#888028: nvidia-driver: applications running with discrete NVIDIA graphics tries to create /home/user.nv/ directory

Vincas Dargis vindrg at gmail.com
Mon Jan 29 17:44:28 UTC 2018


I've managed to break on relevant mmap() and mkdir() syscalls, now I'll try to report to NVIDIA.

mmap() where `prot=5` means read and exec, for /tmp/.gl* (with printed `stat` output on while on breakpoint):

```
Catchpoint 1 (call to syscall mmap), 0x00007f5fdae27033 in __GI___mmap64 (addr=0x0, len=8192, prot=5, flags=65, fd=14, 
offset=0) at ../sysdeps/unix/sysv/linux/mmap64.c:52
52	in ../sysdeps/unix/sysv/linux/mmap64.c
   File: /proc/10927/fd/14 -> /tmp/.glkNddnb (deleted)
   Size: 64        	Blocks: 0          IO Block: 1024   simbolinė nuoroda
Device: 4h/4d	Inode: 155774      Links: 1
Access: (0700/lrwx------)  Uid: ( 1000/  vincas)   Gid: ( 1000/  vincas)
Access: 2018-01-29 19:26:23.888696615 +0200
Modify: 2018-01-29 19:26:23.868696676 +0200
Change: 2018-01-29 19:26:23.868696676 +0200
  Birth: -
#0  0x00007f5fdae27033 in __GI___mmap64 (addr=0x0, len=8192, prot=5, flags=65, fd=14, offset=0) at 
../sysdeps/unix/sysv/linux/mmap64.c:52
#1  0x00007f5fd9473174 in ?? () from /usr/lib/x86_64-linux-gnu/nvidia/libGL.so.1
#2  0x00007f5fd83fe04b in ?? () from /lib/x86_64-linux-gnu/libnvidia-glcore.so.384.111
#3  0x00007f5fd8721894 in ?? () from /lib/x86_64-linux-gnu/libnvidia-glcore.so.384.111
#4  0x00007f5fd872d1d9 in ?? () from /lib/x86_64-linux-gnu/libnvidia-glcore.so.384.111
#5  0x00007f5fd85c9f72 in ?? () from /lib/x86_64-linux-gnu/libnvidia-glcore.so.384.111
#6  0x00007f5fd85d51f6 in ?? () from /lib/x86_64-linux-gnu/libnvidia-glcore.so.384.111
#7  0x00007f5fd83e2be5 in ?? () from /lib/x86_64-linux-gnu/libnvidia-glcore.so.384.111
#8  0x00007f5fd83bd56c in ?? () from /lib/x86_64-linux-gnu/libnvidia-glcore.so.384.111
#9  0x00007f5fd9412f60 in ?? () from /usr/lib/x86_64-linux-gnu/nvidia/libGL.so.1
#10 0x00007f5fd941318d in ?? () from /usr/lib/x86_64-linux-gnu/nvidia/libGL.so.1
#11 0x00007f5fd9446f73 in ?? () from /usr/lib/x86_64-linux-gnu/nvidia/libGL.so.1
#12 0x00005653103b9b06 in ?? ()
#13 0x00007f5fdad57f2a in __libc_start_main (main=0x5653103b9970, argc=1, argv=0x7ffca310b8f8, init=<optimized out>, 
fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffca310b8e8) at ../csu/libc-start.c:310
#14 0x00005653103ba46a in ?? ()
```

And mkdir for strange dir (with printed mkdir argument):

```
Catchpoint 2 (call to syscall mkdir), 0x00007f50e2271547 in mkdir () at ../sysdeps/unix/syscall-template.S:84
84	in ../sysdeps/unix/syscall-template.S
$11 = 0x559c11fc3460 "/home/vincas.nv"
#0  0x00007f50e2271547 in mkdir () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007f50e08c0394 in ?? () from /usr/lib/x86_64-linux-gnu/nvidia/libGL.so.1
#2  0x00007f50e08c70eb in ?? () from /usr/lib/x86_64-linux-gnu/nvidia/libGL.so.1
#3  0x00007f50df85204b in ?? () from /lib/x86_64-linux-gnu/libnvidia-glcore.so.384.111
#4  0x00007f50dfb75894 in ?? () from /lib/x86_64-linux-gnu/libnvidia-glcore.so.384.111
#5  0x00007f50dfb811d9 in ?? () from /lib/x86_64-linux-gnu/libnvidia-glcore.so.384.111
#6  0x00007f50dfa1df72 in ?? () from /lib/x86_64-linux-gnu/libnvidia-glcore.so.384.111
#7  0x00007f50dfa291f6 in ?? () from /lib/x86_64-linux-gnu/libnvidia-glcore.so.384.111
#8  0x00007f50df836be5 in ?? () from /lib/x86_64-linux-gnu/libnvidia-glcore.so.384.111
#9  0x00007f50df81156c in ?? () from /lib/x86_64-linux-gnu/libnvidia-glcore.so.384.111
#10 0x00007f50e0866f60 in ?? () from /usr/lib/x86_64-linux-gnu/nvidia/libGL.so.1
#11 0x00007f50e086718d in ?? () from /usr/lib/x86_64-linux-gnu/nvidia/libGL.so.1
#12 0x00007f50e089af73 in ?? () from /usr/lib/x86_64-linux-gnu/nvidia/libGL.so.1
#13 0x0000559c11669b06 in ?? ()
#14 0x00007f50e21abf2a in __libc_start_main (main=0x559c11669970, argc=1, argv=0x7ffef7be8e28, init=<optimized out>, 
fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffef7be8e18) at ../csu/libc-start.c:310
#15 0x0000559c1166a46a in ?? ()
```

So in both cases it's nvidia/libGL.



More information about the pkg-nvidia-devel mailing list