logo

oasis

Own branch of Oasis Linux (upstream: <https://git.sr.ht/~mcf/oasis/>) git clone https://anongit.hacktivis.me/git/oasis.git
commit: 0357aa47b64720f9cd4b74cc5891f4ff5d9ca74b
parent fbd109c85f41a654e009cf18b0488a8d9bbdad33
Author: Michael Forney <mforney@mforney.org>
Date:   Sat, 22 Oct 2022 03:16:18 -0700

strace: Update to 5.19

Diffstat:

Mpkg/strace/.gitignore2+-
Mpkg/strace/config.h36+++++++++++++++++++++++++++++-------
Mpkg/strace/gen.lua7+++++--
Mpkg/strace/patch/0001-Don-t-return-expression-in-void-function.patch8++++----
Mpkg/strace/patch/0002-Use-__typeof__-spelling-of-typeof.patch28+++++++---------------------
Mpkg/strace/patch/0004-Avoid-empty-initializer-lists.patch20++++++++++----------
Mpkg/strace/patch/0005-Avoid-pointer-arithmetic-on-void.patch10+++++-----
Mpkg/strace/patch/0007-Don-t-omit-second-operand-to-operator.patch53+++++++++++++++++++++++++++++++++++++++--------------
Mpkg/strace/patch/0008-Avoid-unnecessary-VLAs.patch10+++++-----
Mpkg/strace/patch/0011-Avoid-index-ranges.patch12++++++------
Mpkg/strace/sha2562+-
Mpkg/strace/url2+-
Mpkg/strace/ver2+-
13 files changed, 114 insertions(+), 78 deletions(-)

diff --git a/pkg/strace/.gitignore b/pkg/strace/.gitignore @@ -1,3 +1,3 @@ /src -/strace-5.16.tar.xz +/strace-5.19.tar.xz /tools.ninja diff --git a/pkg/strace/config.h b/pkg/strace/config.h @@ -160,12 +160,12 @@ #define HAVE_DECL_NET_IPV4_ALWAYS_DEFRAG 1 #define HAVE_DECL_NET_IPV4_AUTOCONFIG 1 #define HAVE_DECL_NET_IPV4_CONF 1 -#define HAVE_DECL_NET_IPV4_CONF_ACCEPT_LOCAL 0 #define HAVE_DECL_NET_IPV4_CONF_ACCEPT_REDIRECTS 1 #define HAVE_DECL_NET_IPV4_CONF_ACCEPT_SOURCE_ROUTE 1 #define HAVE_DECL_NET_IPV4_CONF_ARPFILTER 1 #define HAVE_DECL_NET_IPV4_CONF_ARP_ACCEPT 1 #define HAVE_DECL_NET_IPV4_CONF_ARP_ANNOUNCE 1 +#define HAVE_DECL_NET_IPV4_CONF_ARP_EVICT_NOCARRIER 1 #define HAVE_DECL_NET_IPV4_CONF_ARP_IGNORE 1 #define HAVE_DECL_NET_IPV4_CONF_ARP_NOTIFY 1 #define HAVE_DECL_NET_IPV4_CONF_BOOTP_RELAY 1 @@ -178,12 +178,10 @@ #define HAVE_DECL_NET_IPV4_CONF_NOXFRM 1 #define HAVE_DECL_NET_IPV4_CONF_PROMOTE_SECONDARIES 1 #define HAVE_DECL_NET_IPV4_CONF_PROXY_ARP 1 -#define HAVE_DECL_NET_IPV4_CONF_PROXY_ARP_PVLAN 0 #define HAVE_DECL_NET_IPV4_CONF_RP_FILTER 1 #define HAVE_DECL_NET_IPV4_CONF_SECURE_REDIRECTS 1 #define HAVE_DECL_NET_IPV4_CONF_SEND_REDIRECTS 1 #define HAVE_DECL_NET_IPV4_CONF_SHARED_MEDIA 1 -#define HAVE_DECL_NET_IPV4_CONF_SRC_VMARK 0 #define HAVE_DECL_NET_IPV4_CONF_TAG 1 #define HAVE_DECL_NET_IPV4_DEFAULT_TTL 1 #define HAVE_DECL_NET_IPV4_DYNADDR 1 @@ -331,6 +329,9 @@ #define HAVE_DECL_NET_UNIX_DESTROY_DELAY 1 #define HAVE_DECL_NET_UNIX_MAX_DGRAM_QLEN 1 #define HAVE_DECL_NET_X25 1 +#define HAVE_DECL_NFEA_ACTIVITY_NOTIFY 0 +#define HAVE_DECL_NFEA_DONT_REFRESH 0 +#define HAVE_DECL_NFEA_UNSPEC 0 #define HAVE_DECL_PTRACE_PEEKUSER 1 #define HAVE_DECL_PTRACE_POKEUSER 1 #define HAVE_DECL_P_ALL 1 @@ -342,6 +343,7 @@ #define HAVE_DECL_TCA_ACT_FLAGS 1 #define HAVE_DECL_TCA_ACT_HW_STATS 1 #define HAVE_DECL_TCA_ACT_INDEX 1 +#define HAVE_DECL_TCA_ACT_IN_HW_COUNT 1 #define HAVE_DECL_TCA_ACT_KIND 1 #define HAVE_DECL_TCA_ACT_OPTIONS 1 #define HAVE_DECL_TCA_ACT_PAD 1 @@ -480,9 +482,16 @@ #define HAVE_SCSI_SG_H 1 /* #undef HAVE_SELINUX_RUNTIME */ /* #undef HAVE_SELINUX_SELINUX_H */ +#define HAVE_SIGINFO_T_SI_ADDR_LSB 1 +#define HAVE_SIGINFO_T_SI_LOWER 1 #define HAVE_SIGINFO_T_SI_OVERRUN 1 +/* #undef HAVE_SIGINFO_T_SI_PERF_DATA */ +/* #undef HAVE_SIGINFO_T_SI_PERF_FLAGS */ +/* #undef HAVE_SIGINFO_T_SI_PERF_TYPE */ +#define HAVE_SIGINFO_T_SI_PKEY 1 #define HAVE_SIGINFO_T_SI_SYSCALL 1 #define HAVE_SIGINFO_T_SI_TIMERID 1 +#define HAVE_SIGINFO_T_SI_UPPER 1 #define HAVE_SIGNALFD 1 #define HAVE_SIG_ATOMIC_T 1 #define HAVE_STATIC_ASSERT 1 @@ -577,6 +586,7 @@ #define HAVE_STRUCT_STATFS_F_FSID_VAL 1 /* #undef HAVE_STRUCT_STATFS_F_FSID___VAL */ #define HAVE_STRUCT_STAT_ST_MTIME_NSEC 1 +#define HAVE_STRUCT_TCP_DIAG_MD5SIG 1 #define HAVE_STRUCT_USER_DESC 1 #define HAVE_STRUCT_USER_DESC_LM 1 #define HAVE_STRUCT_UTSNAME_DOMAINNAME 1 @@ -640,9 +650,19 @@ #define HAVE_UNION_BPF_ATTR_LINE_INFO 1 #define HAVE_UNION_BPF_ATTR_LINE_INFO_CNT 1 #define HAVE_UNION_BPF_ATTR_LINE_INFO_REC_SIZE 1 +/* #undef HAVE_UNION_BPF_ATTR_LINK_CREATE_ADDRS */ #define HAVE_UNION_BPF_ATTR_LINK_CREATE_ATTACH_TYPE 1 +/* #undef HAVE_UNION_BPF_ATTR_LINK_CREATE_BPF_COOKIE */ +/* #undef HAVE_UNION_BPF_ATTR_LINK_CREATE_CNT */ +/* #undef HAVE_UNION_BPF_ATTR_LINK_CREATE_COOKIES */ #define HAVE_UNION_BPF_ATTR_LINK_CREATE_FLAGS 1 +#define HAVE_UNION_BPF_ATTR_LINK_CREATE_ITER_INFO 1 +#define HAVE_UNION_BPF_ATTR_LINK_CREATE_ITER_INFO_LEN 1 +#define HAVE_UNION_BPF_ATTR_LINK_CREATE_KPROBE_MULTI 1 +#define HAVE_UNION_BPF_ATTR_LINK_CREATE_PERF_EVENT 1 #define HAVE_UNION_BPF_ATTR_LINK_CREATE_PROG_FD 1 +/* #undef HAVE_UNION_BPF_ATTR_LINK_CREATE_SYMS */ +#define HAVE_UNION_BPF_ATTR_LINK_CREATE_TARGET_BTF_ID 1 #define HAVE_UNION_BPF_ATTR_LINK_CREATE_TARGET_FD 1 #define HAVE_UNION_BPF_ATTR_LINK_ID 1 #define HAVE_UNION_BPF_ATTR_LINK_UPDATE_FLAGS 1 @@ -692,6 +712,7 @@ #define HAVE_UNION_BPF_ATTR_TASK_FD_QUERY_PROBE_ADDR 1 #define HAVE_UNION_BPF_ATTR_TASK_FD_QUERY_PROBE_OFFSET 1 #define HAVE_UNION_BPF_ATTR_TASK_FD_QUERY_PROG_ID 1 +#define HAVE_UNION_BPF_ATTR_TEST_BATCH_SIZE 1 #define HAVE_UNION_BPF_ATTR_TEST_CPU 1 #define HAVE_UNION_BPF_ATTR_TEST_CTX_IN 1 #define HAVE_UNION_BPF_ATTR_TEST_CTX_OUT 1 @@ -720,6 +741,7 @@ /* #undef LINUX_MIPSN32 */ /* #undef LINUX_MIPSN64 */ /* #undef LINUX_MIPSO32 */ +/* #undef LOONGARCH64 */ /* #undef M32_SIZEOF_KERNEL_LONG_T */ /* #undef M32_SIZEOF_LONG */ /* #undef M32_SIZEOF_STRUCT_MSQID64_DS */ @@ -735,10 +757,10 @@ #define PACKAGE "strace" #define PACKAGE_BUGREPORT "strace-devel@lists.strace.io" #define PACKAGE_NAME "strace" -#define PACKAGE_STRING "strace 5.16" +#define PACKAGE_STRING "strace 5.19" #define PACKAGE_TARNAME "strace" #define PACKAGE_URL "https://strace.io" -#define PACKAGE_VERSION "5.16" +#define PACKAGE_VERSION "5.19" /* #undef POWERPC */ /* #undef POWERPC64 */ /* #undef POWERPC64LE */ @@ -757,7 +779,7 @@ /* #undef SPARC */ /* #undef SPARC64 */ #define STDC_HEADERS 1 -#define STRACE_MANPAGE_DATE "2022-01-04" +#define STRACE_MANPAGE_DATE "2022-07-19" /* #undef TILE */ /* #undef USE_DEMANGLE */ /* #undef USE_LIBDW */ @@ -778,7 +800,7 @@ # define __EXTENSIONS__ 1 #endif /* #undef USE_UNWINDER */ -#define VERSION "5.16" +#define VERSION "5.19" #if defined AC_APPLE_UNIVERSAL_BUILD # if defined __BIG_ENDIAN__ # define WORDS_BIGENDIAN 1 diff --git a/pkg/strace/gen.lua b/pkg/strace/gen.lua @@ -104,6 +104,7 @@ local srcs = paths[[src/( close_range.c copy_file_range.c count.c + counter_ioctl.c delay.c desc.c dirent.c @@ -183,6 +184,7 @@ local srcs = paths[[src/( landlock.c ldt.c link.c + lirc_ioctl.c listen.c lookup_dcookie.c loop.c @@ -315,6 +317,7 @@ local srcs = paths[[src/( statfs.c statfs64.c statx.c + strauss.c string_to_uint.c swapon.c sync_file_range.c @@ -378,8 +381,8 @@ file('bin/strace', '755', '$outdir/strace') build('sed', '$outdir/strace.1', '$srcdir/doc/strace.1.in', { expr={ - [[-e 's,@STRACE_MANPAGE_DATE@,2022-01-04,']], - [[-e 's,@VERSION@,5.16,']], + [[-e 's,@STRACE_MANPAGE_DATE@,2022-08-12,']], + [[-e 's,@VERSION@,5.19,']], [[-e 's,@ENABLE_STACKTRACE_TRUE@,#,']], [[-e 's,@ENABLE_STACKTRACE_FALSE@,,']], [[-e 's,@ENABLE_SECONTEXT_TRUE@,#,']], diff --git a/pkg/strace/patch/0001-Don-t-return-expression-in-void-function.patch b/pkg/strace/patch/0001-Don-t-return-expression-in-void-function.patch @@ -1,4 +1,4 @@ -From ea3a66eaff044dcdbf29062d771f931e0777430e Mon Sep 17 00:00:00 2001 +From 524e22352b2a39b5839375c65b4fc9c2282d6c40 Mon Sep 17 00:00:00 2001 From: Michael Forney <mforney@mforney.org> Date: Fri, 5 Jul 2019 20:52:24 -0700 Subject: [PATCH] Don't return expression in void function @@ -8,10 +8,10 @@ Subject: [PATCH] Don't return expression in void function 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/defs.h b/src/defs.h -index b95f6bdd3..fd11d60c3 100644 +index f90763dd5..861b667ff 100644 --- a/src/defs.h +++ b/src/defs.h -@@ -784,7 +784,7 @@ extern bool pathtrace_match_set(struct tcb *, struct path_set *); +@@ -782,7 +782,7 @@ extern bool pathtrace_match_set(struct tcb *, struct path_set *); static inline void pathtrace_select(const char *path) { @@ -21,5 +21,5 @@ index b95f6bdd3..fd11d60c3 100644 static inline bool -- -2.34.1 +2.37.3 diff --git a/pkg/strace/patch/0002-Use-__typeof__-spelling-of-typeof.patch b/pkg/strace/patch/0002-Use-__typeof__-spelling-of-typeof.patch @@ -1,4 +1,4 @@ -From deb58e1542286779d0bd95482ae3e4e7e7ce7fb7 Mon Sep 17 00:00:00 2001 +From 8ec1f34a8943d175270cbfde3d3a576512e5d2e6 Mon Sep 17 00:00:00 2001 From: Michael Forney <mforney@mforney.org> Date: Sat, 6 Jul 2019 01:33:01 -0700 Subject: [PATCH] Use __typeof__ spelling of typeof @@ -11,12 +11,11 @@ Subject: [PATCH] Use __typeof__ spelling of typeof src/landlock.c | 4 ++-- src/list.h | 10 +++++----- src/macros.h | 2 +- - src/net.c | 2 +- src/tee.c | 2 +- src/ubi.c | 2 +- tests/btrfs.c | 2 +- tests/fcntl-common.c | 2 +- - 12 files changed, 24 insertions(+), 24 deletions(-) + 11 files changed, 23 insertions(+), 23 deletions(-) diff --git a/src/btrfs.c b/src/btrfs.c index 349fee657..c641d2408 100644 @@ -77,10 +76,10 @@ index 349fee657..c641d2408 100644 &info, sizeof(info), tfetch_mem, print_btrfs_ioctl_space_info, 0); diff --git a/src/defs.h b/src/defs.h -index fd11d60c3..71cec62b4 100644 +index 861b667ff..c44935796 100644 --- a/src/defs.h +++ b/src/defs.h -@@ -1089,7 +1089,7 @@ print_local_array_ex(struct tcb *tcp, +@@ -1120,7 +1120,7 @@ print_local_array_ex(struct tcb *tcp, # define print_local_array_upto(tcp_, start_addr_, upto_, print_func_) \ print_local_array_ex((tcp_), (start_addr_), \ CLAMP((upto_), 0, \ @@ -89,7 +88,7 @@ index fd11d60c3..71cec62b4 100644 sizeof((start_addr_)[0]), (print_func_), \ NULL, 0, NULL, NULL) -@@ -1926,8 +1926,8 @@ scno_is_valid(kernel_ulong_t scno) +@@ -1986,8 +1986,8 @@ scno_pers_is_valid(kernel_ulong_t scno, unsigned int pers) # define ILOG2_ITER_(val_, ret_, bit_) \ do { \ @@ -191,7 +190,7 @@ index 4de4cb3be..f4ec11f0e 100644 #endif /* !STRACE_LIST_H */ diff --git a/src/macros.h b/src/macros.h -index fc563ce2d..02f58d726 100644 +index 659d47191..57a0123b4 100644 --- a/src/macros.h +++ b/src/macros.h @@ -62,7 +62,7 @@ @@ -203,19 +202,6 @@ index fc563ce2d..02f58d726 100644 # ifndef offsetofend # define offsetofend(type_, member_) \ -diff --git a/src/net.c b/src/net.c -index 3ba2330fb..8d4458a70 100644 ---- a/src/net.c -+++ b/src/net.c -@@ -524,7 +524,7 @@ SYS_FUNC(socketpair) - #define MAYBE_PRINT_FIELD_LEN(print_prefix_, where_, field_, \ - len_, print_func_, ...) \ - do { \ -- unsigned int start = offsetof(typeof(where_), field_); \ -+ unsigned int start = offsetof(__typeof__(where_), field_); \ - unsigned int end = start + sizeof(where_.field_); \ - if (len_ > start) { \ - print_prefix_; \ diff --git a/src/tee.c b/src/tee.c index d7e9b15d9..fc735e0da 100644 --- a/src/tee.c @@ -269,5 +255,5 @@ index 20f92dd1d..aa6ecc8f5 100644 # define TYPEOF_FLOCK_OFF_T off_t #endif -- -2.34.1 +2.37.3 diff --git a/pkg/strace/patch/0004-Avoid-empty-initializer-lists.patch b/pkg/strace/patch/0004-Avoid-empty-initializer-lists.patch @@ -1,4 +1,4 @@ -From d24d8f3d9a658f2732c99d92376a675af58aee25 Mon Sep 17 00:00:00 2001 +From 1ea9b617255ce7ae228fa6fec171a0d960ab7e96 Mon Sep 17 00:00:00 2001 From: Michael Forney <mforney@mforney.org> Date: Sat, 6 Jul 2019 01:54:05 -0700 Subject: [PATCH] Avoid empty initializer lists @@ -20,19 +20,19 @@ Subject: [PATCH] Avoid empty initializer lists 13 files changed, 17 insertions(+), 17 deletions(-) diff --git a/src/bpf.c b/src/bpf.c -index 801968048..841bb33e3 100644 +index 7bdeb4f65..3c6889eb0 100644 --- a/src/bpf.c +++ b/src/bpf.c -@@ -43,7 +43,7 @@ bpf_cmd_decoder(struct tcb *const tcp, \ +@@ -48,7 +48,7 @@ bpf_cmd_decoder(struct tcb *const tcp, \ #define BEGIN_BPF_CMD_DECODER(bpf_cmd) \ static DECL_BPF_CMD_DECODER(decode_ ## bpf_cmd) \ { \ - struct bpf_cmd ## _struct attr = {}; \ + struct bpf_cmd ## _struct attr = {0}; \ - const size_t attr_size = bpf_cmd ## _struct_size; \ + size_t attr_size = bpf_cmd ## _struct_size; \ const unsigned int len = MIN(size, attr_size); \ memcpy(&attr, data, len); \ -@@ -154,7 +154,7 @@ print_ebpf_prog(struct tcb *const tcp, const uint64_t addr, const uint32_t len) +@@ -159,7 +159,7 @@ print_ebpf_prog(struct tcb *const tcp, const uint64_t addr, const uint32_t len) if (abbrev(tcp)) { printaddr(addr); } else { @@ -81,10 +81,10 @@ index fc13a6613..f7b6e6e49 100644 return; tprints(sprintsigmask_n("", mask, len)); diff --git a/src/strace.c b/src/strace.c -index 7370275e1..d12e1f34a 100644 +index 3f5a00a0a..cea52bb22 100644 --- a/src/strace.c +++ b/src/strace.c -@@ -3532,7 +3532,7 @@ trace_syscall(struct tcb *tcp, unsigned int *sig) +@@ -3621,7 +3621,7 @@ trace_syscall(struct tcb *tcp, unsigned int *sig) syscall_entering_finish(tcp, res); return res; } else { @@ -212,10 +212,10 @@ index faf9423f8..eacee2366 100644 assert(sigprocmask(SIG_BLOCK, &mask, NULL) == 0); diff --git a/tests/waitid.c b/tests/waitid.c -index a14899530..b08881ae7 100644 +index 1ed763840..fef941874 100644 --- a/tests/waitid.c +++ b/tests/waitid.c -@@ -130,7 +130,7 @@ do_waitid(const unsigned int idtype, +@@ -146,7 +146,7 @@ do_waitid(const unsigned int idtype, const unsigned int options, const kernel_rusage_t *const rusage) { @@ -225,5 +225,5 @@ index a14899530..b08881ae7 100644 assert(sigprocmask(SIG_BLOCK, &mask, NULL) == 0); -- -2.34.1 +2.37.3 diff --git a/pkg/strace/patch/0005-Avoid-pointer-arithmetic-on-void.patch b/pkg/strace/patch/0005-Avoid-pointer-arithmetic-on-void.patch @@ -1,4 +1,4 @@ -From 4cd0019ddd66505ce71f0cffa3627a4a038640ef Mon Sep 17 00:00:00 2001 +From 989bfd76544b4f62ade9e35d2476332934d27d86 Mon Sep 17 00:00:00 2001 From: Michael Forney <mforney@mforney.org> Date: Sun, 7 Jul 2019 21:25:13 -0700 Subject: [PATCH] Avoid pointer arithmetic on `void *` @@ -60,10 +60,10 @@ index 9603a6bb6..f5f747c42 100644 tprint_array_end(); diff --git a/src/sockaddr.c b/src/sockaddr.c -index a6e698d4b..52c10eac4 100644 +index 9139da1cd..7126ad2fc 100644 --- a/src/sockaddr.c +++ b/src/sockaddr.c -@@ -580,7 +580,7 @@ print_sockaddr_data_ll(struct tcb *tcp, const void *const buf, +@@ -583,7 +583,7 @@ print_sockaddr_data_ll(struct tcb *tcp, const void *const buf, static void print_sockaddr_data_raw(const void *const buf, const int addrlen) { @@ -72,7 +72,7 @@ index a6e698d4b..52c10eac4 100644 const int datalen = addrlen - SIZEOF_SA_FAMILY; tprints_field_name("sa_data"); -@@ -777,7 +777,7 @@ print_sockaddr_data_rxrpc(struct tcb *tcp, const void *const buf, +@@ -780,7 +780,7 @@ print_sockaddr_data_rxrpc(struct tcb *tcp, const void *const buf, tprints_field_name("transport"); tprint_struct_begin(); @@ -148,5 +148,5 @@ index c769a1916..ed401ae74 100644 } -- -2.34.1 +2.37.3 diff --git a/pkg/strace/patch/0007-Don-t-omit-second-operand-to-operator.patch b/pkg/strace/patch/0007-Don-t-omit-second-operand-to-operator.patch @@ -1,4 +1,4 @@ -From 91ba17ac11b0994dc28019a7b643d479a2f201c5 Mon Sep 17 00:00:00 2001 +From b77a4eb06db5c9ec06dfb8386364a5966bbcb1a8 Mon Sep 17 00:00:00 2001 From: Michael Forney <mforney@mforney.org> Date: Sun, 7 Jul 2019 21:53:16 -0700 Subject: [PATCH] Don't omit second operand to '?' operator @@ -6,9 +6,9 @@ Subject: [PATCH] Don't omit second operand to '?' operator --- src/kd_ioctl.c | 2 +- src/open.c | 5 +++-- - src/prctl.c | 2 +- + src/prctl.c | 9 ++++----- src/strace.c | 6 +++--- - 4 files changed, 8 insertions(+), 7 deletions(-) + 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/kd_ioctl.c b/src/kd_ioctl.c index eadc1a457..35a89ffed 100644 @@ -40,23 +40,48 @@ index d7654d7e8..6c5c4a2a5 100644 const char * diff --git a/src/prctl.c b/src/prctl.c -index 4275e5f70..a52b3348d 100644 +index 97f42fe15..c0394782b 100644 --- a/src/prctl.c +++ b/src/prctl.c -@@ -80,7 +80,7 @@ sprint_sve_val(kernel_ulong_t arg) - const char *flags_str = sprintflags("", pr_sve_vl_flags, flags); +@@ -82,7 +82,6 @@ sprint_sve_val(kernel_ulong_t arg, bool aux) + kernel_ulong_t vl = arg & PR_SVE_VL_LEN_MASK; + kernel_ulong_t flags = arg & ~PR_SVE_VL_LEN_MASK; - xsprintf(out, "%s%s%#" PRI_klx, -- flags_str ?: "", flags_str ? "|" : "", vl); -+ flags_str ? flags_str : "", flags_str ? "|" : "", vl); +- if (!flags && aux) + return NULL; + + const char *flags_str = sprintflags_ex("", pr_sve_vl_flags, flags, '\0', +@@ -91,10 +90,10 @@ sprint_sve_val(kernel_ulong_t arg, bool aux) + if (!aux && flags && xlat_verbose(xlat_verbosity) == XLAT_STYLE_VERBOSE) + { + xsprintf(out, "%#" PRI_klx " /* %s%s%#" PRI_klx " */", +- arg, flags_str ?: "", flags_str ? "|" : "", vl); ++ arg, flags_str ? flags_str : "", flags_str ? "|" : "", vl); + } else { + xsprintf(out, "%s%s%#" PRI_klx, +- flags_str ?: "", flags_str ? "|" : "", vl); ++ flags_str ? flags_str : "", flags_str ? "|" : "", vl); + } + + return out; +@@ -127,10 +126,10 @@ sprint_sme_val(kernel_ulong_t arg, bool aux) + if (!aux && flags && xlat_verbose(xlat_verbosity) == XLAT_STYLE_VERBOSE) + { + xsprintf(out, "%#" PRI_klx " /* %s%s%#" PRI_klx " */", +- arg, flags_str ?: "", flags_str ? "|" : "", vl); ++ arg, flags_str ? flags_str : "", flags_str ? "|" : "", vl); + } else { + xsprintf(out, "%s%s%#" PRI_klx, +- flags_str ?: "", flags_str ? "|" : "", vl); ++ flags_str ? flags_str : "", flags_str ? "|" : "", vl); + } return out; - } diff --git a/src/strace.c b/src/strace.c -index d12e1f34a..85c8568fe 100644 +index cea52bb22..154ee684f 100644 --- a/src/strace.c +++ b/src/strace.c -@@ -2380,7 +2380,7 @@ init(int argc, char *argv[]) +@@ -2463,7 +2463,7 @@ init(int argc, char *argv[]) break; case GETOPT_TS: tflag_long_set = true; @@ -65,7 +90,7 @@ index d12e1f34a..85c8568fe 100644 error_opt_arg(c, lopt, optarg); break; case 'T': -@@ -2488,10 +2488,10 @@ init(int argc, char *argv[]) +@@ -2572,10 +2572,10 @@ init(int argc, char *argv[]) qualify_kvm(optarg); break; case GETOPT_QUAL_QUIET: @@ -79,5 +104,5 @@ index d12e1f34a..85c8568fe 100644 case GETOPT_QUAL_DECODE_PID: qualify_decode_pid(optarg); -- -2.34.1 +2.37.3 diff --git a/pkg/strace/patch/0008-Avoid-unnecessary-VLAs.patch b/pkg/strace/patch/0008-Avoid-unnecessary-VLAs.patch @@ -1,4 +1,4 @@ -From fa5aa4ec41eafb8a65732dd599bd645a8650d0d1 Mon Sep 17 00:00:00 2001 +From ecb0b8b820e7777d3270e1ba48583fcf6ef6e9ed Mon Sep 17 00:00:00 2001 From: Michael Forney <mforney@mforney.org> Date: Sun, 7 Jul 2019 21:58:46 -0700 Subject: [PATCH] Avoid unnecessary VLAs @@ -25,10 +25,10 @@ index e4f362787..ad203748b 100644 const size_t c = columns[i]; diff --git a/src/nlattr.c b/src/nlattr.c -index 9b4879a84..ffa8be53e 100644 +index c0563c804..298f6e6da 100644 --- a/src/nlattr.c +++ b/src/nlattr.c -@@ -356,7 +356,7 @@ decode_nla_hwaddr(struct tcb *const tcp, +@@ -355,7 +355,7 @@ decode_nla_hwaddr(struct tcb *const tcp, if (len > MAX_ADDR_LEN) return false; @@ -73,7 +73,7 @@ index 92aaee092..159a2a511 100644 if (umoven(tcp, tcp->u_arg[1], nargs * current_wordsize, buf) < 0) return; diff --git a/src/util.c b/src/util.c -index 302496d36..4ed870ac6 100644 +index c4c4bc0ef..6e513ede0 100644 --- a/src/util.c +++ b/src/util.c @@ -571,8 +571,7 @@ enum sock_proto @@ -96,5 +96,5 @@ index 302496d36..4ed870ac6 100644 return SOCK_PROTO_UNKNOWN; else { -- -2.34.1 +2.37.3 diff --git a/pkg/strace/patch/0011-Avoid-index-ranges.patch b/pkg/strace/patch/0011-Avoid-index-ranges.patch @@ -1,4 +1,4 @@ -From ec81ad56aec0cdfe0eff2cd4cb9ea396e3ab9794 Mon Sep 17 00:00:00 2001 +From 2aed2fd146be2c7b36f1f618accf166c8be109b6 Mon Sep 17 00:00:00 2001 From: Michael Forney <mforney@mforney.org> Date: Thu, 30 Jan 2020 22:32:50 -0800 Subject: [PATCH] Avoid index ranges @@ -11,7 +11,7 @@ ignore this for now. 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/src/print_mac.c b/src/print_mac.c -index 9674b9841..7446fa719 100644 +index 38a1f57e8..ebcc708a3 100644 --- a/src/print_mac.c +++ b/src/print_mac.c @@ -17,8 +17,6 @@ @@ -24,7 +24,7 @@ index 9674b9841..7446fa719 100644 [ARPHRD_ETHER] = 6 /* ETH_ALEN */, /* ARPHRD_EETHER - no actual devices in Linux */ @@ -129,7 +127,7 @@ print_mac_addr(const char *prefix, const uint8_t addr[], size_t size) - const char * + static const char * sprint_hwaddr(const uint8_t hwaddr[], size_t size, uint32_t devtype) { - uint8_t sz = (devtype < ARRAY_SIZE(hwaddr_sizes)) @@ -33,10 +33,10 @@ index 9674b9841..7446fa719 100644 return sprint_mac_addr(hwaddr, MIN(size, sz)); diff --git a/src/util.c b/src/util.c -index 4ed870ac6..e6a7fdfba 100644 +index 6e513ede0..88f25aa83 100644 --- a/src/util.c +++ b/src/util.c -@@ -1382,16 +1382,16 @@ dumpstr(struct tcb *const tcp, const kernel_ulong_t addr, +@@ -1389,16 +1389,16 @@ dumpstr(struct tcb *const tcp, const kernel_ulong_t addr, ? 1 + ilog2_klong(len - 1) / HEX_BIT : DUMPSTR_OFFS_MIN_CHARS; kernel_ulong_t i = 0; const unsigned char *src; @@ -58,5 +58,5 @@ index 4ed870ac6..e6a7fdfba 100644 /* Fetching data from tracee. */ -- -2.34.1 +2.37.3 diff --git a/pkg/strace/sha256 b/pkg/strace/sha256 @@ -1 +1 @@ -dc7db230ff3e57c249830ba94acab2b862da1fcaac55417e9b85041a833ca285 strace-5.16.tar.xz +aa3dc1c8e60e4f6ff3d396514aa247f3c7bf719d8a8dc4dd4fa793be786beca3 strace-5.19.tar.xz diff --git a/pkg/strace/url b/pkg/strace/url @@ -1 +1 @@ -url = "https://github.com/strace/strace/releases/download/v5.16/strace-5.16.tar.xz" +url = "https://github.com/strace/strace/releases/download/v5.19/strace-5.19.tar.xz" diff --git a/pkg/strace/ver b/pkg/strace/ver @@ -1 +1 @@ -5.16 r0 +5.19 r0