github.com/google/syzkaller@v0.0.0-20240517125934-c0f1611a36d6/sys/linux/test/binfmt (about) 1 # Tests for binfmt_misc. 2 # Executor setups binfmt_misc with ./file0 interpreter for files with byte 0x01 at offset 0. 3 4 execveat(0xffffffffffffff9c, &AUTO='./file1\x00', &AUTO=[0x0], &AUTO=[0x0], 0x0) # ENOENT 5 r0 = openat(0xffffffffffffff9c, &AUTO='./file1\x00', 0x42, 0x1ff) 6 close(r0) 7 execveat(0xffffffffffffff9c, &AUTO='./file1\x00', &AUTO=[0x0], &AUTO=[0x0], 0x0) # ENOEXEC 8 r1 = openat(0xffffffffffffff9c, &AUTO='./file1\x00', 0x2, 0x0) 9 write(r1, &AUTO="01010101", 0x4) 10 close(r1) 11 execveat(0xffffffffffffff9c, &AUTO='./file1\x00', &AUTO=[0x0], &AUTO=[0x0], 0x0) # ENOENT 12 r2 = openat(0xffffffffffffff9c, &AUTO='./file0\x00', 0x42, 0x0) 13 close(r2) 14 execveat(0xffffffffffffff9c, &AUTO='./file1\x00', &AUTO=[0x0], &AUTO=[0x0], 0x0) # EACCES 15 fchmodat(0xffffffffffffff9c, &AUTO='./file0\x00', 0x1ff) 16 execveat(0xffffffffffffff9c, &AUTO='./file1\x00', &AUTO=[0x0], &AUTO=[0x0], 0x0) # ENOEXEC