Searched hist:315376 (Results 1 - 1 of 1) sorted by relevance
/freebsd-11-stable/sys/compat/linux/ | ||
H A D | linux_file.c | diff 315376 Thu Mar 16 06:43:31 MDT 2017 dchagin MFC r313740: Replace Linuxulator implementation of readdir(), getdents() and getdents64() with wrapper over kern_getdirentries(). The patch was originally written by emaste@ and then adapted by trasz@ and me. Note: 1. I divided linux_getdents() and linux_readdir() as in case when the getdents() called with count = 1 (readdir() case) it can overwrite user stack (by writing to user buffer pointer more than 1 byte). 2. Linux returns EINVAL in case when user supplied buffer is not enough to contain fetched dirent. 3. Linux returns ENOTDIR in case when fd points to not a directory. |
Completed in 131 milliseconds