From 95d40a21f5c6887f4108ab117ce6fb1de8a2fe64 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Fri, 27 Sep 2024 14:41:10 +0200 Subject: sys/linux: fix binfmt_misc format We create 2 binfmt_misc formats: ":syz0:M:0:\x01::./file0:" ":syz1:M:1:\x02::./file0:POC" They don't require syz0/1 prefix in the fix. syz0/1 is just name of the format. --- sys/linux/binfmt.txt | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'sys/linux') diff --git a/sys/linux/binfmt.txt b/sys/linux/binfmt.txt index d0e6b7b23..3833860d8 100644 --- a/sys/linux/binfmt.txt +++ b/sys/linux/binfmt.txt @@ -17,7 +17,7 @@ execveat$binfmt(dirfd fd_dir, file ptr_binfmt_file, argv ptr[in, argv_array], en openat$binfmt(fd const[AT_FDCWD], file ptr_binfmt_file, flags const[BINFMT_OPEN_FLAGS], mode const[0x1ff]) fd_binfmt write$binfmt_script(fd fd_binfmt, data ptr[in, binfmt_script], len bytesize[data]) -write$binfmt_misc(fd fd_binfmt, data ptr[in, binfmt_misc], len bytesize[data]) +write$binfmt_misc(fd fd_binfmt, data ptr[in, array[int8]], len bytesize[data]) write$binfmt_aout(fd fd_binfmt, data ptr[in, binfmt_aout], len bytesize[data]) write$binfmt_elf32(fd fd_binfmt, data ptr[in, binfmt_elf32], len bytesize[data]) write$binfmt_elf64(fd fd_binfmt, data ptr[in, binfmt_elf64], len bytesize[data]) @@ -44,13 +44,6 @@ binfmt_script_arg { arg stringnoz } -binfmt_misc { - hdr stringnoz[binfmt_misc_headers] - data array[int8] -} - -binfmt_misc_headers = "syz0", "syz1" - binfmt_aout { exec exec data array[int8] -- cgit mrf-deployment