When encountering an unknown fcntl command valgrind crashes with an assertion message: valgrind: m_syswrap/syswrap-linux.c:5490 (vgSysWrap_linux_sys_fcntl_before): Assertion 'Unimplemented functionality' failed. Valgrind should just warn the user the fcntl command is unimplemented and return EINVAL like the kernel would. LTP testcases/kernel/syscalls/fcntl/fcntl13 Reproducible: Always
Created attachment 101322 [details] Don't crash, but warn and return EINVAL on unknown fcntl command.
valgrind svn r15998