D Dmitry Vyukov #
Message details and related content
Hello, The following program: // autogenerated by syzkaller (http://github.com/google/syzkaller) #include <syscall.h> #include <string.h> #include <stdint.h> #include <pthread.h> #define SYS_memfd_create 319 long fd; void *thr(void *p) { syscall(SYS_ftruncate, fd, 0x8ul, 0, 0, 0, 0); return 0; } int main() { pthread_t th; syscall(SYS_mmap, 0x20000000ul, 0x10000ul, 0x3ul, 0x32ul, 0xfffffffffffffffful, 0x0ul); memcpy((void*)0x20000f96, "\x23\x65\x6d\x31\x07\x2b\x27\x29\x00", 9); fd = syscall(SYS_memfd_create, 0x20000f96ul, 0x2ul, 0, 0, 0, 0); syscall(SYS_fallocate, fd, 0x0ul, 0x31d89288ul, 0x4ul, 0, 0); syscall(SYS_mmap, 0x20061000ul, 0xc00000ul, 0x1a9d91e04768640bul, 0x11ul, fd, 0x0ul); pthread_create(&th, 0, thr, 0); syscall(SYS_fstat, fd, 0x20550fcful, 0, 0, 0, 0); pthread_join(th, 0); return 0; } triggers WARNING in shmem_evict_inode: