From: Eugene Syromyatnikov Date: Wed, 7 Feb 2018 01:07:43 +0000 (+0100) Subject: Mark various arch-specific syscalls with SYSCALL_NEVER_FAILS X-Git-Tag: v4.21~45 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1a5c89d4ed71201349de868ac61f76a63b1a9c22;p=strace Mark various arch-specific syscalls with SYSCALL_NEVER_FAILS * linux/alpha/syscallent.h (getpagesize, getdtablesize): Add NF flag. * linux/arc/syscallent.h (arc_gettls): Likewise. * linux/arm/syscallent.h (get_tls): Likewise. * linux/ia64/syscallent.h (getpagesize): Likewise. * linux/m68k/syscallent.h (getpagesize, get_thread_area): Likewise. * linux/sparc/syscallent.h (getpagesize): Likewise. * linux/sparc64/syscallent.h (getpagesize): Likewise. --- diff --git a/linux/alpha/syscallent.h b/linux/alpha/syscallent.h index be2c5846..30363338 100644 --- a/linux/alpha/syscallent.h +++ b/linux/alpha/syscallent.h @@ -91,7 +91,7 @@ [ 61] = { 1, TF, SEN(chroot), "chroot" }, [ 62] = { 5, TD|TFST|TSTA, SEN(printargs), "osf_old_fstat" }, /* not implemented */ [ 63] = { 0, NF, SEN(getpgrp), "getpgrp" }, -[ 64] = { 0, 0, SEN(getpagesize), "getpagesize" }, +[ 64] = { 0, NF, SEN(getpagesize), "getpagesize" }, [ 65] = { 5, TM, SEN(printargs), "osf_mremap" }, /* not implemented */ [ 66] = { 0, TP, SEN(vfork), "vfork" }, [ 67] = { 2, TF|TST|TSTA, SEN(stat), "stat" }, @@ -116,7 +116,7 @@ [ 86] = { 2, 0, SEN(osf_getitimer), "osf_getitimer" }, [ 87] = { 2, 0, SEN(gethostname), "gethostname" }, [ 88] = { 2, 0, SEN(sethostname), "sethostname" }, -[ 89] = { 0, 0, SEN(getdtablesize), "getdtablesize" }, +[ 89] = { 0, NF, SEN(getdtablesize), "getdtablesize" }, [ 90] = { 2, TD, SEN(dup2), "dup2" }, [ 91] = { 2, TD|TFST|TSTA, SEN(fstat), "fstat" }, [ 92] = { 3, TD, SEN(fcntl), "fcntl" }, diff --git a/linux/arc/syscallent.h b/linux/arc/syscallent.h index edcdff2e..42ce12b2 100644 --- a/linux/arc/syscallent.h +++ b/linux/arc/syscallent.h @@ -3,6 +3,6 @@ /* [244 ... 259] are arch specific */ [244] = { 3, 0, SEN(printargs), "cacheflush" }, [245] = { 1, 0, SEN(printargs), "arc_settls" }, -[246] = { 0, 0, SEN(printargs), "arc_gettls" }, +[246] = { 0, NF, SEN(printargs), "arc_gettls" }, [247] = { 3, 0, SEN(sysfs), "sysfs" }, [248] = { 3, 0, SEN(printargs), "arc_usr_cmpxchg"}, diff --git a/linux/arm/syscallent.h b/linux/arm/syscallent.h index 8f2aa4ac..7db7e021 100644 --- a/linux/arm/syscallent.h +++ b/linux/arm/syscallent.h @@ -449,5 +449,5 @@ [ARM_FIRST_SHUFFLED_SYSCALL+1+3] = { 0, 0, SEN(printargs), "usr26" }, [ARM_FIRST_SHUFFLED_SYSCALL+1+4] = { 0, 0, SEN(printargs), "usr32" }, [ARM_FIRST_SHUFFLED_SYSCALL+1+5] = { 1, 0, SEN(printargs), "set_tls" }, -[ARM_FIRST_SHUFFLED_SYSCALL+1+6] = { 0, 0, SEN(printargs), "get_tls" }, +[ARM_FIRST_SHUFFLED_SYSCALL+1+6] = { 0, NF, SEN(printargs), "get_tls" }, #define ARM_LAST_SPECIAL_SYSCALL 6 diff --git a/linux/ia64/syscallent.h b/linux/ia64/syscallent.h index cbefb6f4..4846c1c7 100644 --- a/linux/ia64/syscallent.h +++ b/linux/ia64/syscallent.h @@ -189,7 +189,7 @@ [1168] = { 2, 0, SEN(nanosleep), "nanosleep" }, [1169] = { 3, 0, SEN(nfsservctl), "nfsservctl" }, [1170] = { 5, 0, SEN(prctl), "prctl" }, -[1171] = { 0, 0, SEN(getpagesize), "getpagesize" }, +[1171] = { 0, NF, SEN(getpagesize), "getpagesize" }, [1172] = { 6, TD|TM|SI, SEN(mmap_pgoff), "mmap2" }, [1173] = { 5, 0, SEN(printargs), "pciconfig_read" }, [1174] = { 5, 0, SEN(printargs), "pciconfig_write" }, diff --git a/linux/m68k/syscallent.h b/linux/m68k/syscallent.h index d1a3f64d..abfd49c5 100644 --- a/linux/m68k/syscallent.h +++ b/linux/m68k/syscallent.h @@ -193,7 +193,7 @@ [163] = { 5, TM|SI, SEN(mremap), "mremap" }, [164] = { 3, 0, SEN(setresuid16), "setresuid" }, [165] = { 3, 0, SEN(getresuid16), "getresuid" }, -[166] = { 0, 0, SEN(getpagesize), "getpagesize" }, +[166] = { 0, NF, SEN(getpagesize), "getpagesize" }, [167] = { 5, 0, SEN(query_module), "query_module" }, [168] = { 3, TD, SEN(poll), "poll" }, [169] = { 3, 0, SEN(nfsservctl), "nfsservctl" }, @@ -359,7 +359,7 @@ [330] = { 5, TD, SEN(pwritev), "pwritev" }, [331] = { 4, TP|TS, SEN(rt_tgsigqueueinfo), "rt_tgsigqueueinfo" }, [332] = { 5, TD, SEN(perf_event_open), "perf_event_open" }, -[333] = { 0, 0, SEN(get_thread_area), "get_thread_area" }, +[333] = { 0, NF, SEN(get_thread_area), "get_thread_area" }, [334] = { 1, 0, SEN(set_thread_area), "set_thread_area" }, [335] = { 6, 0, SEN(printargs), "atomic_cmpxchg_32" }, [336] = { 0, 0, SEN(printargs), "atomic_barrier" }, diff --git a/linux/sparc/syscallent.h b/linux/sparc/syscallent.h index 8e886887..a72020c2 100644 --- a/linux/sparc/syscallent.h +++ b/linux/sparc/syscallent.h @@ -62,7 +62,7 @@ [ 61] = { 1, TF, SEN(chroot), "chroot" }, [ 62] = { 2, TD|TFST|TSTA, SEN(fstat), "fstat" }, [ 63] = { 2, TD|TFST|TSTA, SEN(fstat64), "fstat64" }, -[ 64] = { 0, 0, SEN(getpagesize), "getpagesize" }, +[ 64] = { 0, NF, SEN(getpagesize), "getpagesize" }, [ 65] = { 3, TM, SEN(msync), "msync" }, [ 66] = { 0, TP, SEN(vfork), "vfork" }, [ 67] = { 5, TD, SEN(pread), "pread64" }, diff --git a/linux/sparc64/syscallent.h b/linux/sparc64/syscallent.h index 616b5cf4..e87a1e76 100644 --- a/linux/sparc64/syscallent.h +++ b/linux/sparc64/syscallent.h @@ -61,7 +61,7 @@ [ 61] = { 1, TF, SEN(chroot), "chroot" }, [ 62] = { 2, TD|TFST|TSTA, SEN(fstat), "fstat" }, [ 63] = { 2, TD|TFST|TSTA, SEN(fstat64), "fstat64" }, -[ 64] = { 0, 0, SEN(getpagesize), "getpagesize" }, +[ 64] = { 0, NF, SEN(getpagesize), "getpagesize" }, [ 65] = { 3, TM, SEN(msync), "msync" }, [ 66] = { 0, TP, SEN(vfork), "vfork" }, [ 67] = { 4, TD, SEN(pread), "pread64" },