Commit Graph

25 Commits

Author SHA1 Message Date
Vincent Li
bda777582c strace: fix compile error
after moving strace to core package and
recompile strace, it errors out with:

macros.h:141:9: error: static assertion failed:

"Unexpected size of sysoff.rsv (sizeof(unsigned int) * 3 expected).
  --enabled-bundled=yes configure option may be used to work around that."

fix the error as the error log message suggested

Signed-off-by: Vincent Li <vincent.mc.li@gmail.com>
2024-12-25 12:43:37 -08:00
Adolf Belka
534fc35011 strace: Update to version 6.10
- Update from version 6.6 to 6.10
- Update of rootfile not required
- Changelog
    6.10
	* Improvements
	  * Implemented --decode-fds=eventfd option to retrieve eventfd object details
	    associated with eventfd file descriptors.
	  * Implemented decoding of NETLINK_GENERIC nlctrl protocol.
	  * Implemented decoding of F_DUPFD_QUERY fcntl.
	  * Implemented decoding of mseal syscall.
	  * Updated decoding of statx and prctl syscalls.
	  * Updated decoding of BPF_RAW_TRACEPOINT_OPEN bpf command.
	  * Updated lists of BPF_*, IORING_*, KEXEC_*, KEY_*, LANDLOCK_*, PR_*, STATX_*,
	    TCP_*, TEE_*, V4L2_*, and *_MAGIC constants.
	  * Updated lists of ioctl commands from Linux 6.10.
	* Bug fixes
	  * Worked around a bug introduced in Linux 6.5 that affected system call
	    tampering on riscv64.
    6.9
	* Improvements
	  * Implemented --always-show-pid option.
	  * The --user|-u option has learned to recognize numeric UID:GID pair, allowing
	    e.g. statically-built strace to be used without invoking nss plugins.
	  * Implemented decoding of IORING_REGISTER_SYNC_CANCEL,
	    IORING_REGISTER_FILE_ALLOC_RANGE, IORING_REGISTER_PBUF_STATUS,
	    IORING_REGISTER_NAPI, and IORING_UNREGISTER_NAPI opcodes of
	    io_uring_register syscall.
	  * Implemented decoding of BPF_TOKEN_CREATE bpf syscall command.
	  * Updated decoding of io_uring_register and pidfd_send_signal syscalls.
	  * Updated lists of BPF_*, CAN_*, IORING_*, KEY_*, LSM_*, MPOL_*, NT_*, RWF_*,
	    PIDFD_*, PTP_*, TCP_*, and *_MAGIC constants.
	  * Updated lists of ioctl commands from Linux 6.9.
    6.8
	* Improvements
	  * Renamed --stack-traces to --stack-trace for consistency.
	    Old option is retained for backwards compatibility.
	  * Implemented --stack-trace-frame-limit=N option for configuring the limit
	    of the number of printed backtrace frames.
	  * Implemented decoding of statmount, listmount, lsm_get_self_attr,
	    lsm_set_self_attr, and lsm_list_modules syscalls.
	  * Implemented decoding of setsockopt(TCP_AO_ADD_KEY).
	  * Updated decoding of landlock_create_ruleset and landlock_add_rule syscalls.
	  * Updated decoding of SMC_DIAG_DMBINFO netlink attribute.
	  * Updated decoding of UBI_IOCATT ioctl command.
	  * Enhanced decoding of mount attributes of fsmount and mount_setattr syscalls.
	  * Updated lists of BPF_*, KEXEC_*, KVM_*, PERF_*, SOL_*, STATX_*, UFFD_*,
	    and V4L2_* constants.
	  * Updated lists of ioctl commands from Linux 6.8.
    6.7
	* Improvements
	  * Implemented -kk/--stack-traces=source option for libdw-based stack tracing.
	  * Implemented decoding of futex_wake, futex_wait, and sys_futex_requeue
	    syscalls.
	  * Updated lists of BPF_*, BTRFS_*, IORING_*, KVM_*, LANDLOCK_*, PR_*,
	    and TCP_* constants.
	  * Updated lists of ioctl commands from Linux 6.7.
	* Bug fixes
	  * Fix strace -r during the first second after booting to show correct relative
	    timestamps.
	  * Fix strace -f entering deadlock on exit if there are tracee processes
	    spawned using vfork semantics.

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-08-14 09:11:28 +00:00
Adolf Belka
0e16c27908 strace: elfutils moved from addon dependency to core program
Fixes: Bug#13516
Tested-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-02-07 10:56:08 +00:00
Adolf Belka
5c3c431405 strace: Update to version 6.6
- Update from version 6.3 to 6.6
- Update of rootfile not required
- Changelog
    6.6 (2023-10-31)
	* Improvements
	  * Implemented --kill-on-exit option that instructs the tracer to set
	    PTRACE_O_EXITKILL option to all tracee processes and not to detach them
	    on cleanup so they will not be left running after the tracer exit.
	  * Implemented automatic activation of --kill-on-exit option when
	    --seccomp-bpf is enabled and -p/--attach option is not used.
	  * Implemented decoding of map_shadow_stack syscall.
	  * Implemented decoding of FSCONFIG_CMD_CREATE_EXCL fsconfig command.
	  * Implemented decoding of IFLA_BRPORT_BACKUP_NHID netlink attribute.
	  * Implemented decoding of SECCOMP_IOCTL_NOTIF_SET_FLAGS ioctl.
	  * Implemented decoding of UFFDIO_CONTINUE, UFFDIO_POISON, and
	    UFFDIO_WRITEPROTECT ioctls.
	  * Updated lists of ARCH_*, BPF_*, DEVCONF_*, IORING_*, KEXEC_*, MAP_*, NT_*,
	    PTRACE_*, QFMT_*, SEGV_*, UFFD_*, V4L2_*, and XDP_* constants.
	  * Updated lists of ioctl commands from Linux 6.6.
    6.5 (2023-09-01)
	* Improvements
	  * Implemented decoding of cachestat and fchmodat2 syscalls.
	  * Implemented decoding of SO_PASSPIDFD and SO_PEERPIDFD socket options.
	  * Implemented decoding of SCM_PIDFD control messages.
	  * Implemented decoding of BPF_ENABLE_STATS, BPF_ITER_CREATE, BPF_LINK_DETACH,
	    and BPF_PROG_BIND_MAP bpf syscall commands.
	  * Updated decoding of BPF_OBJ_PIN and BPF_OBJ_GET bpf syscall commands.
	  * Updated lists of AT_*, BPF_*, IORING_*, KVM_*, MOVE_MOUNT_*, NFT_*, NT_*,
	    PR_*, and V4L2_* constants.
	  * Updated lists of ioctl commands from Linux 6.5.
    6.4 (2023-06-26)
	* Improvements
	  * Implemented decoding of IFLA_BRPORT_NEIGH_VLAN_SUPPRESS netlink attribute.
	  * Implemented decoding of IP_PROTOCOL type control messages and socket option.
	  * Updated lists of BPF_*, IP_*, KVM_*, MDBA_*, PACKET_*, PR_*, PTRACE_*,
	    UFFD_*, and V4L2_PIX_FMT_* constants.
	  * Updated lists of ioctl commands from Linux 6.4.
	* Bug fixes
	  * Turn --seccomp-bpf off when --syscall-limit option is specified.
	  * Fixed --trace-fds filtering support of syscalls taking file descriptor
	    arguments that do not normally have a path associated with them.

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
2023-11-21 19:23:07 +00:00
Arne Fitzenreiter
4d4f665ab3 riscv64: enable some disabled addons
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2023-10-09 08:16:53 +00:00
Adolf Belka
b776a9403a strace: Update to version 6.3
- Update from version 6.1 to 6.3
- Update of rootfile not required
- Changelog
Noteworthy changes in release 6.3 (2023-05-08)
	* Improvements
	  * Implemented --trace-fds=set option for filtering only the syscalls
	    that operate on the specified set of file descriptors.
	  * Implemented --decode-fds=signalfd option for decoding of signal masks
	    associated with signalfd file descriptors.
	  * Implemented --syscall-limit option to automatically detach tracees
	    after capturing the specified number of syscalls.
	  * Implemented --argv0 option to set argv[0] of the command being executed.
	  * Implemented decoding of PR_GET_MDWE and PR_SET_MDWE operations of prctl
	    syscall.
	  * Implemented decoding of IP_LOCAL_PORT_RANGE socket option.
	  * Implemented decoding of IFLA_BRPORT_MCAST_N_GROUPS,
	    IFLA_BRPORT_MCAST_MAX_GROUPS, IFLA_GSO_IPV4_MAX_SIZE,
	    IFLA_GRO_IPV4_MAX_SIZE, and TCA_EXT_WARN_MSG netlink attributes.
	  * Updated lists of F_SEAL_*, IFLA_*, IORING_*, MFD_*, NFT_*, TCA_*,
	    and V4L2_PIX_FMT_* constants.
	  * Updated lists of ioctl commands from Linux 6.3.
	* Bug fixes
	  * Fixed build on hppa with uapi headers from Linux >= 6.2.
	  * Fixed --status filtering when -c option is in use.
Noteworthy changes in release 6.2 (2023-02-26)
	* Improvements
	  * Implemented collision resolution for overlapping ioctl commands
	    from tty and snd subsystems.
	  * Implemented decoding of IFLA_BRPORT_MAB and IFLA_DEVLINK_PORT
	    netlink attributes.
	  * Updated lists of ALG_*, BPF_*, IFLA_*, KEY_*, KVM_*, LANDLOCK_*,
	    MEMBARRIER_*, NFT_*, NTF_*, and V4L2_* constants.
	  * Updated lists of ioctl commands from Linux 6.2.
	* Bug fixes
	  * Fixed build on alpha architecture.

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2023-06-15 09:38:26 +00:00
Michael Tremer
39f94ee8eb Drop support for armv6l (and armv7hl)
This removes support for building IPFire for 32 bit ARM architectures.

This has been decided in August 2022 with six months notice as there are
not very many users and hardware is generally not available any more.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2023-02-10 09:26:37 +00:00
Arne Fitzenreiter
66e6b4542d strace: bump PAK_VER
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2023-01-08 10:08:33 +00:00
Arne Fitzenreiter
9c0582b2dc strace: update to 6.1
needed for kernel-6.1.x
2023-01-08 10:08:33 +00:00
Adolf Belka
ac8da780aa strace: Update to version 5.17
- Update from 5.14 to 5.17
- Update of rootfile not required
- Changelog
   Noteworthy changes in release 5.17 (2022-03-26)
	* Improvements
	  * Added 64-bit LoongArch architecture support.
	  * Extended personality designation syntax of syscall specification expressions
	    to support all@pers and %class@pers.
	  * Enhanced rejection of invalid syscall numbers in syscall specification
	    expressions.
	  * Implemented decoding of set_mempolicy_home_node syscall, introduced
	    in Linux 5.17.
	  * Implemented decoding of IFLA_GRO_MAX_SIZE and TCA_ACT_IN_HW_COUNT netlink
	    attributes.
	  * Implemented decoding of PR_SET_VMA operation of prctl syscall.
	  * Implemented decoding of siginfo_t.si_pkey field.
	  * Implemented decoding of LIRC ioctl commands.
	  * Updated lists of FAN_*, IORING_*, IOSQE_*, KEY_*, KVM_*, MODULE_INIT_*,
	    TCA_ACT_*, and *_MAGIC constants.
	  * Updated lists of ioctl commands from Linux 5.17.
   Noteworthy changes in release 5.16 (2022-01-10)
	* Improvements
	  * Implemented --secontext=mismatch option to find mismatches in SELinux
	    contexts.
	  * Implemented decoding of futex_waitv syscall introduced in Linux 5.16.
	  * Implemented decoding of BPF_LINK_GET_NEXT_ID and BPF_LINK_GET_FD_BY_ID bpf
	    syscall commands.
	  * Enhanced decoding of BPF_MAP_CREATE, BPF_PROG_TEST_RUN, and BPF_PROG_LOAD
	    bpf syscall commands.
	  * Enhanced decoding of BTRFS_IOC_FS_INFO ioctl command.
	  * Updated lists of AUDIT_*, BPF_*, BTRFS_*, DEVCONF_*, FAN_*, ETH_P_*,
	    IPV4_DEVCONF_*, KVM_*, NDA_*, SO_*, and V4L2_* constants.
	  * Updated lists of ioctl commands from Linux 5.16.
	* Bug fixes
	  * Fixed build for older Android.
   Noteworthy changes in release 5.15 (2021-12-01)
	* Improvements
	  * Implemented --strings-in-hex=non-ascii-chars option for using hexadecimal
	    numbers instead of octal ones in escape sequences in the output strings.
	  * Implemented --decode-pids=comm option (and its alias -Y) for printing
	    command names for PIDs.
	  * Implemented --decode-pids=pidns as an alias to --pidns-translation option.
	  * Implemented printing of current working directory when AT_FDCWD constant
	    is used with --decode-fds=path option enabled.
	  * Improved printing of syscall names in places where the associated
	    AUDIT_ARCH_* value is present (ptrace PTRACE_GET_SYSCALL_INFO request,
	    SIGSYS siginfo_t).
	  * Implemented decoding of process_mrelease syscall, introduced in Linux 5.15.
	  * Implemented decoding of SECCOMP_GET_NOTIF_SIZES operation of seccomp
	    syscall.
	  * Implemented decoding of HDIO_*, KD*, and SECCOMP_* ioctl commands.
	  * Implemented decoding of RTM_NEWCACHEREPORT, RTM_{NEW,DEL,GET}NEXTHOP,
	    and RTM_{NEW,GET}STATS NETLINK_ROUTE netlink messages.
	  * Implemented decoding of AF_ALG, AF_IEEE802154, AF_MCTP, AF_NFC, AF_QIPCRTR,
	    AF_RRPC, AF_VSOCK, and AF_XDP socket addresses.
	  * Implemented decoding of AF_BRIDGE and AF_MCTP protocols for IFLA_AF_SPEC
	    netlink attribute.
	  * Implemented decoding of IFLA_BR_MCAST_QUERIER_STATE, IFLA_BR_MULTI_BOOLOPT,
	    IFLA_INET6_RA_MTU, IFLA_INFO_SLAVE_DATA, and IFLA_VFINFO_LIST netlink
	    attributes.
	  * Enhanced decoding of io_uring_register and times syscalls.
	  * Enhanced IFLA_BR_FORWARD_DELAY, IFLA_BR_MAX_AGE, IFLA_EXT_MASK,
	    IFLA_PROTINFO, *_INTVL, and *_TIMER netlink attribute decoding.
	  * Enhanced decoding of AF_IPX and AF_NETLINK socket addresses.
	  * Updated lists o AF_*, ARPHRD_*, BTRFS_*, DEVCONF_*, DM_*, ETH_P_*,
	    FAN_REPORT_*, IORING_*, MOVE_MOUNT_*, MPOL_*, PACKET_*, RTM_*, SO_*,
	    and XFRM_MSG_* constants.
	  * Updated lists of ioctl commands from Linux 5.15.
	* Bug fixes
	  * Fixed printing of struct bpf_prog_info.map_ids array.
	  * Fixed behaviour of "dev", "pidfd", and "socket" arguments of the --print-fds
	    option to no longer imply the "path" argument.
	  * Fixed insufficient buffer size used for network interface name printing,
	    that previously led to assertions on attempts of printing interface names
	    that require quoting, for example, names longer than 4 characters in -xx
	    mode (addresses RHBZ bug #2028146).

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
2022-04-24 14:18:16 +00:00
Peter Müller
9a7e4d8506 Switch checksums from MD5 to BLAKE2
Historically, the MD5 checksums in our LFS files serve as a protection
against broken downloads, or accidentally corrupted source files.

While the sources are nowadays downloaded via HTTPS, it make sense to
beef up integrity protection for them, since transparently intercepting
TLS is believed to be feasible for more powerful actors, and the state
of the public PKI ecosystem is clearly not helping.

Therefore, this patch switches from MD5 to BLAKE2, updating all LFS
files as well as make.sh to deal with this checksum algorithm. BLAKE2 is
notably faster (and more secure) than SHA2, so the performance penalty
introduced by this patch is negligible, if noticeable at all.

In preparation of this patch, the toolchain files currently used have
been supplied with BLAKE2 checksums as well on
https://source.ipfire.org/.

Cc: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
Acked-by: Michael Tremer <michael.tremeripfire.org>
2022-04-02 14:19:25 +00:00
Robin Roevens
f15707c78c buildprocess: Add extra metadata to pak lfs files
* Add a Summary and Services field to all pak lfs files
* Replace occurances of INSTALL_INITSCRIPT with new INSTALL_INITSCRIPTS
  macro in all pak lfs files.

Signed-off-by: Robin Roevens <robin.roevens@disroot.org>
Reviewed-by: Peter Müller <peter.mueller@ipfire.org>
2022-02-11 15:13:15 +00:00
Michael Tremer
6cf219c427 Drop support for i586
This patch removes support for i586 according to the decision being
taken over a year ago.

It removes the architecture from the build system and removes all
required hacks and other quirks that have been necessary before.

There is no need to ship any changed files to the remaining
architectures as the removed code branches have not been used.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-12-04 23:27:26 +01:00
Adolf Belka
c43d3a12ae strace: Update to version 5.14
- Update from 5.11 to 5.14
- Update of rootfile not required
- Changelog
   Noteworthy changes in release 5.14 (2021-09-02)
    * Improvements
      * Implemented decoding of memfd_secret and quotactl_fd syscalls,
        introduced in Linux 5.14.
      * Enhanced prctl syscall decoding.
      * Enhanced decoding of IFLA_* netlink attributes.
      * Enhanced decoding of MDBA_ROUTER_PATTR_* mdb router port netlink attributes.
      * Updated lists of BPF_*, IORING_*, MADV_*, MOUNT_ATTR_*, SCTP_*,
        and UFFD_* constants.
      * Updated lists of ioctl commands from Linux 5.14.
    * Bug fixes
      * Fixed build using bionic libc.
   Noteworthy changes in release 5.13 (2021-07-18)
    * Improvements
      * Print netlink data in a more structured way.
      * Implemented decoding of NT_PRSTATUS and NT_FPREGSET regsets
        of PTRACE_GETREGSET and PTRACE_SETREGSET requests.
      * Implemented decoding of regs argument of PTRACE_GETREGS, PTRACE_GETREGS64,
        PTRACE_SETREGS, PTRACE_SETREGS64, PTRACE_GETFPREGS, and PTRACE_SETFPREGS
        requests.
      * Implemented powerpc System Call Vectored ABI support.
      * Implemented decoding of landlock_add_rule, landlock_create_ruleset,
        and landlock_restrict_self syscalls introduced in Linux 5.13.
      * Enhanced decoding of perf_event_open syscall.
      * Updated lists of BPF_*, IORING_*, KEXEC_*, KEY_*, KVM_*, NT_*, PR_*,
        PTRACE_*, RTM_*, RTPROT_*, TRAP_*, UFFD_*, UFFDIO_*, and V4L2_* constants.
      * Updated lists of ioctl commands from Linux 5.13.
    * Portability
      * On powerpc and powerpc64, linux kernel >= 2.6.23 is required.
        Older versions without a decent PTRACE_GETREGS support will not work.
   Noteworthy changes in release 5.12 (2021-04-26)
    * Improvements
      * Implemented --secontext[=full] option to display SELinux contexts.
      * Implemented decoding of mount_setattr syscall introduced in Linux 5.12.
      * Updated decoding of IFLA_BRPORT_* netlink attributes to match Linux 5.12.
      * Updated lists of DEVCONF_*, IORING_*, KVM_*, MPOL_*, MTD_*, NFT_MSG_*,
        RESOLVE_*, RTM_*, ST_*, and V4L2_* constants.
      * Updated lists of ioctl commands from Linux 5.12.
    * Bug fixes
      * Fixed build using bionic libc.
    * Portability
      * Added binutils 2.36 support to --enable-mpers builds.
- More details of the above changes can be found in the ChangeLog file in the source
   tarball

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
2021-11-24 09:31:35 +00:00
Arne Fitzenreiter
1479bac19d strace: enable on aarch64
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2021-07-07 05:47:36 +00:00
Michael Tremer
8435b3813f strace: Pass --enable-mpers=check to configure
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-07-05 07:42:39 +02:00
Arne Fitzenreiter
aafdd71b04 switch arm 32 bit arch from armv5tel to armv6l
we have no supported armv5tel board left so we can switch to the higher
arch. This now can use the vpu (still in softfp calling convention to
not break existing installations.)
this fix many compile problems, also boost is now working again.

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2021-07-05 07:42:39 +02:00
Adolf Belka
1f9144f8d0 strace: Update to 5.11
- Update from 5.10 to 5.11
- No update of rootfile required
- Changelog is too long to put in here (several thousand lines)
   Full change log can be reviewed in the tarball.

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-03-22 10:41:50 +00:00
Arne Fitzenreiter
7fd195938f strace: update to 5.10
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-01-13 10:52:11 +00:00
Michael Tremer
8365bd1aaa strace: This package now links against elfutils
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2020-06-19 17:14:59 +00:00
Erik Kapfer
31166ecf7f strace: Update to version 5.5
The version jump from 4.7 to 5.5 includes several bugfixes and improvements.
For a full overview --> https://github.com/strace/strace/releases .

Signed-off-by: Erik Kapfer <ummeegge@ipfire.org>
Reviewed-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2020-04-25 09:03:26 +00:00
Michael Tremer
2dc2a27803 lfs: Drop quotes in DEPS variable
Not sure why this has ever been there. This simply makes it
nicer to read and edit because we can have line-breaks now.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2020-03-24 08:57:27 +00:00
Peter Müller
eee037b890 update disclaimer in LFS files
Most of these files still used old dates and/or domain names for contact
mail addresses. This is now replaced by an up-to-date copyright line.

Just some housekeeping... :-)

Signed-off-by: Peter Müller <peter.mueller@link38.eu>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2018-09-10 19:20:36 +01:00
Michael Tremer
68c68589d9 strace: Does not support aarch64, yet
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2018-05-31 12:06:24 +01:00
Michael Tremer
7739c2dbaa strace: New package. 2013-05-16 10:19:50 +02:00