From 41799debdcc19d65fb6e0499cbbb74a489a822ea Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Wed, 13 Dec 2017 19:18:07 +0100 Subject: prog: introduce more readable format for data args Fixes #460 File names, crypto algorithm names, etc in programs are completely unreadable: bind$alg(r0, &(0x7f0000408000)={0x26, "6861736800000000000000000000", 0x0, 0x0, "6d6435000000000000000000000000000000000000000000000000 000000000000000000000000000000000000000000000000000000000000000 00000000000"}, 0x58) Introduce another format for printable strings. New args are denoted by '' ("" for old args). New format is enabled for printable chars, \x00 and \t, \r, \n. Example: `serialize(&(0x7f0000408000)={"6861736800000000000000000000", "4849000000"})`, vs: `serialize(&(0x7f0000408000)={'hash\x00', 'HI\x00'})`, --- executor/syscalls_test.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'executor/syscalls_test.h') diff --git a/executor/syscalls_test.h b/executor/syscalls_test.h index b5022fb1f..8b1e9a814 100644 --- a/executor/syscalls_test.h +++ b/executor/syscalls_test.h @@ -2,10 +2,10 @@ #if 0 #define GOARCH "32" -#define SYZ_REVISION "d250d71b6658517f5cde664a9f26c969ddb5c4d1" +#define SYZ_REVISION "ab5b2b746192f26c994482e664534cbf487e3dbe" #define __NR_syz_test 1000000 -unsigned syscall_count = 74; +unsigned syscall_count = 75; call_t syscalls[] = { {"mmap", 0, (syscall_t)mmap}, {"mutate0", 0, (syscall_t)mutate0}, @@ -15,6 +15,7 @@ call_t syscalls[] = { {"mutate4", 0, (syscall_t)mutate4}, {"mutate5", 0, (syscall_t)mutate5}, {"mutate6", 0, (syscall_t)mutate6}, + {"serialize", 0, (syscall_t)serialize}, {"syz_test", 1000000, (syscall_t)syz_test}, {"syz_test$align0", 1000000, (syscall_t)syz_test}, {"syz_test$align1", 1000000, (syscall_t)syz_test}, @@ -87,10 +88,10 @@ call_t syscalls[] = { #if 0 #define GOARCH "64" -#define SYZ_REVISION "42c3155912d115b719bd9a905c83c2419b5935f2" +#define SYZ_REVISION "1dd179fe95626e284e24e4e636195924bced24ef" #define __NR_syz_test 1000000 -unsigned syscall_count = 74; +unsigned syscall_count = 75; call_t syscalls[] = { {"mmap", 0, (syscall_t)mmap}, {"mutate0", 0, (syscall_t)mutate0}, @@ -100,6 +101,7 @@ call_t syscalls[] = { {"mutate4", 0, (syscall_t)mutate4}, {"mutate5", 0, (syscall_t)mutate5}, {"mutate6", 0, (syscall_t)mutate6}, + {"serialize", 0, (syscall_t)serialize}, {"syz_test", 1000000, (syscall_t)syz_test}, {"syz_test$align0", 1000000, (syscall_t)syz_test}, {"syz_test$align1", 1000000, (syscall_t)syz_test}, -- cgit mrf-deployment