Skip to content

Commit

Permalink
feat: update strace to 6.12+ds-1
Browse files Browse the repository at this point in the history
  • Loading branch information
deepin-community-bot[bot] authored and deepin-ci-robot committed Jan 15, 2025
1 parent 12931ba commit 33ae9d2
Show file tree
Hide file tree
Showing 765 changed files with 42,530 additions and 4,547 deletions.
2 changes: 1 addition & 1 deletion .tarball-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6.9
6.12
2 changes: 1 addition & 1 deletion .version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6.9
6.12
4 changes: 4 additions & 0 deletions CREDITS
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ [email protected] mailing list.
Bernhard Reutner-Fischer <[email protected]>
Bharath Vedartham <[email protected]>
Bo Kullmar <[email protected]>
Brandon Maier <[email protected]>
Bruce Ashfield <[email protected]>
Bryan Matsuo <[email protected]>
Bryce Gibson <[email protected]>
Expand Down Expand Up @@ -88,6 +89,7 @@ [email protected] mailing list.
Dr. David Alan Gilbert <[email protected]>
Edgar E. Iglesias <[email protected]>
Edgar Kaziakhmedov <[email protected]>
Edjunior Machado <[email protected]>
Elliott Hughes <[email protected]>
Elvira Khabirova <[email protected]>
Erik Johansson <[email protected]>
Expand All @@ -103,6 +105,7 @@ [email protected] mailing list.
Felix Janda <[email protected]>
Fernando Luis Vazquez Cao <[email protected]>
Florian Lohoff <[email protected]>
Florian Weimer <[email protected]>
Fr. Br. George <[email protected]>
Frederik Schüler <[email protected]>
Gabor Gombas <[email protected]>
Expand Down Expand Up @@ -316,5 +319,6 @@ [email protected] mailing list.
adrien-n <[email protected]>
donghaobo <[email protected]>
leedagee <[email protected]>
tstabrawa <[email protected]>
Ákos Uzonyi <[email protected]>
Марк Коренберг <[email protected]>
1,858 changes: 1,858 additions & 0 deletions ChangeLog

Large diffs are not rendered by default.

54 changes: 54 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
@@ -1,3 +1,57 @@
Noteworthy changes in release 6.12 (2024-11-18)
===============================================

* Improvements
* Implemented decoding of EPIOCGPARAMS and EPIOCSPARAMS ioctl commands.
* Implemented decoding of NS_GET_MNTNS_ID, NS_GET_PID_FROM_PIDNS,
NS_GET_TGID_FROM_PIDNS, NS_GET_PID_IN_PIDNS, NS_GET_TGID_IN_PIDNS,
NS_MNT_GET_INFO, NS_MNT_GET_NEXT, and NS_MNT_GET_PREV ioctl commands.
* Implemented decoding of FRA_DSCP netlink attribute.
* Implemented decoding of IORING_REGISTER_CLOCK and
IORING_REGISTER_CLONE_BUFFERS opcodes of io_uring_register syscall.
* Updated decoding of struct landlock_ruleset_attr.
* Updated lists of AUDIT_*, ETHTOOL_*, F_*, IORING_*, LSM_*, MAP_*, MSG_*,
NT_*, SCHED_*, SCM_*, SO_*, and V4L2_* constants.
* Updated lists of ioctl commands from Linux 6.12.

* Bug fixes
* Fix the syscall name printed by strace when PTRACE_GET_SYSCALL_INFO
is in use and a syscall is restarted by a just attached tracee using
restart_syscall mechanism.

Noteworthy changes in release 6.11 (2024-09-15)
===============================================

* Improvements
* Implemented decoding of uretprobe syscall.
* Implemented decoding of WDIOC_GETSUPPORT and WDIOC_SETOPTIONS ioctl
commands.
* Enhanced decoding of unknown ioctl commands in non-abbreviated mode
by printing the contents of the ioctl argument buffer in hexadecimal format.
* Updated decoding of listmount, statmount, and statx syscalls.
* Updated lists of ETHTOOL_*, IORING_*, IPPROTO_*, RWF_*, STATX_*, and V4L2_*
constants.
* Updated lists of ioctl commands from Linux 6.11.

Noteworthy changes in release 6.10 (2024-07-21)
===============================================

* 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.

Noteworthy changes in release 6.9 (2024-05-14)
==============================================

Expand Down
15 changes: 15 additions & 0 deletions bundled/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,18 @@ EXTRA_DIST = \
linux/include/uapi/linux/bsg.h \
linux/include/uapi/linux/btrfs.h \
linux/include/uapi/linux/btrfs_tree.h \
linux/include/uapi/linux/cgroupstats.h \
linux/include/uapi/linux/close_range.h \
linux/include/uapi/linux/const.h \
linux/include/uapi/linux/counter.h \
linux/include/uapi/linux/cryptouser.h \
linux/include/uapi/linux/dcbnl.h \
linux/include/uapi/linux/devlink.h \
linux/include/uapi/linux/dm-ioctl.h \
linux/include/uapi/linux/dqblk_xfs.h \
linux/include/uapi/linux/ethtool.h \
linux/include/uapi/linux/ethtool_netlink.h \
linux/include/uapi/linux/eventpoll.h \
linux/include/uapi/linux/falloc.h \
linux/include/uapi/linux/fcntl.h \
linux/include/uapi/linux/fib_rules.h \
Expand All @@ -41,13 +46,15 @@ EXTRA_DIST = \
linux/include/uapi/linux/fscrypt.h \
linux/include/uapi/linux/futex.h \
linux/include/uapi/linux/gen_stats.h \
linux/include/uapi/linux/genetlink.h \
linux/include/uapi/linux/gpio.h \
linux/include/uapi/linux/hiddev.h \
linux/include/uapi/linux/if_addr.h \
linux/include/uapi/linux/if_addrlabel.h \
linux/include/uapi/linux/if_alg.h \
linux/include/uapi/linux/if_bonding.h \
linux/include/uapi/linux/if_bridge.h \
linux/include/uapi/linux/if_ether.h \
linux/include/uapi/linux/if_link.h \
linux/include/uapi/linux/if_xdp.h \
linux/include/uapi/linux/in.h \
Expand All @@ -56,6 +63,7 @@ EXTRA_DIST = \
linux/include/uapi/linux/input-event-codes.h \
linux/include/uapi/linux/input.h \
linux/include/uapi/linux/io_uring.h \
linux/include/uapi/linux/ioam6_genl.h \
linux/include/uapi/linux/ip_vs.h \
linux/include/uapi/linux/kcmp.h \
linux/include/uapi/linux/kexec.h \
Expand All @@ -77,6 +85,7 @@ EXTRA_DIST = \
linux/include/uapi/linux/mroute6.h \
linux/include/uapi/linux/neighbour.h \
linux/include/uapi/linux/netconf.h \
linux/include/uapi/linux/netdev.h \
linux/include/uapi/linux/netfilter/ipset/ip_set.h \
linux/include/uapi/linux/netfilter/nf_tables.h \
linux/include/uapi/linux/netfilter/nf_tables_compat.h \
Expand All @@ -94,6 +103,7 @@ EXTRA_DIST = \
linux/include/uapi/linux/netlink_diag.h \
linux/include/uapi/linux/nexthop.h \
linux/include/uapi/linux/nfc.h \
linux/include/uapi/linux/nl80211.h \
linux/include/uapi/linux/nsfs.h \
linux/include/uapi/linux/openat2.h \
linux/include/uapi/linux/packet_diag.h \
Expand All @@ -105,15 +115,20 @@ EXTRA_DIST = \
linux/include/uapi/linux/quota.h \
linux/include/uapi/linux/rtnetlink.h \
linux/include/uapi/linux/sched.h \
linux/include/uapi/linux/sched/types.h \
linux/include/uapi/linux/seccomp.h \
linux/include/uapi/linux/securebits.h \
linux/include/uapi/linux/seg6_genl.h \
linux/include/uapi/linux/smc_diag.h \
linux/include/uapi/linux/sock_diag.h \
linux/include/uapi/linux/socket.h \
linux/include/uapi/linux/stat.h \
linux/include/uapi/linux/stddef.h \
linux/include/uapi/linux/taskstats.h \
linux/include/uapi/linux/tcp.h \
linux/include/uapi/linux/tcp_metrics.h \
linux/include/uapi/linux/tee.h \
linux/include/uapi/linux/thermal.h \
linux/include/uapi/linux/tls.h \
linux/include/uapi/linux/types.h \
linux/include/uapi/linux/unix_diag.h \
Expand Down
15 changes: 15 additions & 0 deletions bundled/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -347,13 +347,18 @@ EXTRA_DIST = \
linux/include/uapi/linux/bsg.h \
linux/include/uapi/linux/btrfs.h \
linux/include/uapi/linux/btrfs_tree.h \
linux/include/uapi/linux/cgroupstats.h \
linux/include/uapi/linux/close_range.h \
linux/include/uapi/linux/const.h \
linux/include/uapi/linux/counter.h \
linux/include/uapi/linux/cryptouser.h \
linux/include/uapi/linux/dcbnl.h \
linux/include/uapi/linux/devlink.h \
linux/include/uapi/linux/dm-ioctl.h \
linux/include/uapi/linux/dqblk_xfs.h \
linux/include/uapi/linux/ethtool.h \
linux/include/uapi/linux/ethtool_netlink.h \
linux/include/uapi/linux/eventpoll.h \
linux/include/uapi/linux/falloc.h \
linux/include/uapi/linux/fcntl.h \
linux/include/uapi/linux/fib_rules.h \
Expand All @@ -362,13 +367,15 @@ EXTRA_DIST = \
linux/include/uapi/linux/fscrypt.h \
linux/include/uapi/linux/futex.h \
linux/include/uapi/linux/gen_stats.h \
linux/include/uapi/linux/genetlink.h \
linux/include/uapi/linux/gpio.h \
linux/include/uapi/linux/hiddev.h \
linux/include/uapi/linux/if_addr.h \
linux/include/uapi/linux/if_addrlabel.h \
linux/include/uapi/linux/if_alg.h \
linux/include/uapi/linux/if_bonding.h \
linux/include/uapi/linux/if_bridge.h \
linux/include/uapi/linux/if_ether.h \
linux/include/uapi/linux/if_link.h \
linux/include/uapi/linux/if_xdp.h \
linux/include/uapi/linux/in.h \
Expand All @@ -377,6 +384,7 @@ EXTRA_DIST = \
linux/include/uapi/linux/input-event-codes.h \
linux/include/uapi/linux/input.h \
linux/include/uapi/linux/io_uring.h \
linux/include/uapi/linux/ioam6_genl.h \
linux/include/uapi/linux/ip_vs.h \
linux/include/uapi/linux/kcmp.h \
linux/include/uapi/linux/kexec.h \
Expand All @@ -398,6 +406,7 @@ EXTRA_DIST = \
linux/include/uapi/linux/mroute6.h \
linux/include/uapi/linux/neighbour.h \
linux/include/uapi/linux/netconf.h \
linux/include/uapi/linux/netdev.h \
linux/include/uapi/linux/netfilter/ipset/ip_set.h \
linux/include/uapi/linux/netfilter/nf_tables.h \
linux/include/uapi/linux/netfilter/nf_tables_compat.h \
Expand All @@ -415,6 +424,7 @@ EXTRA_DIST = \
linux/include/uapi/linux/netlink_diag.h \
linux/include/uapi/linux/nexthop.h \
linux/include/uapi/linux/nfc.h \
linux/include/uapi/linux/nl80211.h \
linux/include/uapi/linux/nsfs.h \
linux/include/uapi/linux/openat2.h \
linux/include/uapi/linux/packet_diag.h \
Expand All @@ -426,15 +436,20 @@ EXTRA_DIST = \
linux/include/uapi/linux/quota.h \
linux/include/uapi/linux/rtnetlink.h \
linux/include/uapi/linux/sched.h \
linux/include/uapi/linux/sched/types.h \
linux/include/uapi/linux/seccomp.h \
linux/include/uapi/linux/securebits.h \
linux/include/uapi/linux/seg6_genl.h \
linux/include/uapi/linux/smc_diag.h \
linux/include/uapi/linux/sock_diag.h \
linux/include/uapi/linux/socket.h \
linux/include/uapi/linux/stat.h \
linux/include/uapi/linux/stddef.h \
linux/include/uapi/linux/taskstats.h \
linux/include/uapi/linux/tcp.h \
linux/include/uapi/linux/tcp_metrics.h \
linux/include/uapi/linux/tee.h \
linux/include/uapi/linux/thermal.h \
linux/include/uapi/linux/tls.h \
linux/include/uapi/linux/types.h \
linux/include/uapi/linux/unix_diag.h \
Expand Down
22 changes: 9 additions & 13 deletions bundled/linux/include/uapi/linux/btrfs_tree.h
Original file line number Diff line number Diff line change
Expand Up @@ -743,21 +743,9 @@ struct btrfs_raid_stride {
__le64 physical;
} __attribute__ ((__packed__));

/* The stripe_extent::encoding, 1:1 mapping of enum btrfs_raid_types. */
#define BTRFS_STRIPE_RAID0 1
#define BTRFS_STRIPE_RAID1 2
#define BTRFS_STRIPE_DUP 3
#define BTRFS_STRIPE_RAID10 4
#define BTRFS_STRIPE_RAID5 5
#define BTRFS_STRIPE_RAID6 6
#define BTRFS_STRIPE_RAID1C3 7
#define BTRFS_STRIPE_RAID1C4 8

struct btrfs_stripe_extent {
__u8 encoding;
__u8 reserved[7];
/* An array of raid strides this stripe is composed of. */
struct btrfs_raid_stride strides[];
__DECLARE_FLEX_ARRAY(struct btrfs_raid_stride, strides);
} __attribute__ ((__packed__));

#define BTRFS_HEADER_FLAG_WRITTEN (1ULL << 0)
Expand All @@ -773,6 +761,14 @@ struct btrfs_stripe_extent {
#define BTRFS_SUPER_FLAG_CHANGING_FSID (1ULL << 35)
#define BTRFS_SUPER_FLAG_CHANGING_FSID_V2 (1ULL << 36)

/*
* Those are temporaray flags utilized by btrfs-progs to do offline conversion.
* They are rejected by kernel.
* But still keep them all here to avoid conflicts.
*/
#define BTRFS_SUPER_FLAG_CHANGING_BG_TREE (1ULL << 38)
#define BTRFS_SUPER_FLAG_CHANGING_DATA_CSUM (1ULL << 39)
#define BTRFS_SUPER_FLAG_CHANGING_META_CSUM (1ULL << 40)

/*
* items in the extent btree are used to record the objectid of the
Expand Down
70 changes: 70 additions & 0 deletions bundled/linux/include/uapi/linux/cgroupstats.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
/* SPDX-License-Identifier: LGPL-2.1 WITH Linux-syscall-note */
/* cgroupstats.h - exporting per-cgroup statistics
*
* Copyright IBM Corporation, 2007
* Author Balbir Singh <[email protected]>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of version 2.1 of the GNU Lesser General Public License
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it would be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/

#ifndef _LINUX_CGROUPSTATS_H
#define _LINUX_CGROUPSTATS_H

#include <linux/types.h>
#include <linux/taskstats.h>

/*
* Data shared between user space and kernel space on a per cgroup
* basis. This data is shared using taskstats.
*
* Most of these states are derived by looking at the task->state value
*
* Each member is aligned to a 8 byte boundary.
*/
struct cgroupstats {
__u64 nr_sleeping; /* Number of tasks sleeping */
__u64 nr_running; /* Number of tasks running */
__u64 nr_stopped; /* Number of tasks in stopped state */
__u64 nr_uninterruptible; /* Number of tasks in uninterruptible */
/* state */
__u64 nr_io_wait; /* Number of tasks waiting on IO */
};

/*
* Commands sent from userspace
* Not versioned. New commands should only be inserted at the enum's end
* prior to __CGROUPSTATS_CMD_MAX
*/

enum {
CGROUPSTATS_CMD_UNSPEC = __TASKSTATS_CMD_MAX, /* Reserved */
CGROUPSTATS_CMD_GET, /* user->kernel request/get-response */
CGROUPSTATS_CMD_NEW, /* kernel->user event */
__CGROUPSTATS_CMD_MAX,
};

#define CGROUPSTATS_CMD_MAX (__CGROUPSTATS_CMD_MAX - 1)

enum {
CGROUPSTATS_TYPE_UNSPEC = 0, /* Reserved */
CGROUPSTATS_TYPE_CGROUP_STATS, /* contains name + stats */
__CGROUPSTATS_TYPE_MAX,
};

#define CGROUPSTATS_TYPE_MAX (__CGROUPSTATS_TYPE_MAX - 1)

enum {
CGROUPSTATS_CMD_ATTR_UNSPEC = 0,
CGROUPSTATS_CMD_ATTR_FD,
__CGROUPSTATS_CMD_ATTR_MAX,
};

#define CGROUPSTATS_CMD_ATTR_MAX (__CGROUPSTATS_CMD_ATTR_MAX - 1)

#endif /* _LINUX_CGROUPSTATS_H */
17 changes: 17 additions & 0 deletions bundled/linux/include/uapi/linux/const.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,23 @@
#define _BITUL(x) (_UL(1) << (x))
#define _BITULL(x) (_ULL(1) << (x))

#if !defined(__ASSEMBLY__)
/*
* Missing asm support
*
* __BIT128() would not work in the asm code, as it shifts an
* 'unsigned __init128' data type as direct representation of
* 128 bit constants is not supported in the gcc compiler, as
* they get silently truncated.
*
* TODO: Please revisit this implementation when gcc compiler
* starts representing 128 bit constants directly like long
* and unsigned long etc. Subsequently drop the comment for
* GENMASK_U128() which would then start supporting asm code.
*/
#define _BIT128(x) ((unsigned __int128)(1) << (x))
#endif

#define __ALIGN_KERNEL(x, a) __ALIGN_KERNEL_MASK(x, (__typeof__(x))(a) - 1)
#define __ALIGN_KERNEL_MASK(x, mask) (((x) + (mask)) & ~(mask))

Expand Down
Loading

0 comments on commit 33ae9d2

Please sign in to comment.