Skip to content

Commit 4f56186

Browse files
author
Ingo Molnar
committed
Merge branch 'linus' into perf/core, to refresh the branch
Signed-off-by: Ingo Molnar <[email protected]>
2 parents aa469aa + 9cd6681 commit 4f56186

File tree

412 files changed

+6485
-2569
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

412 files changed

+6485
-2569
lines changed

Documentation/devicetree/bindings/clock/st,stm32h7-rcc.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Example:
3232
compatible = "st,stm32h743-rcc", "st,stm32-rcc";
3333
reg = <0x58024400 0x400>;
3434
#reset-cells = <1>;
35-
#clock-cells = <2>;
35+
#clock-cells = <1>;
3636
clocks = <&clk_hse>, <&clk_lse>, <&clk_i2s_ckin>;
3737

3838
st,syscfg = <&pwrcfg>;

Documentation/devicetree/bindings/security/tpm/tpm-i2c.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ Required properties:
88
the firmware event log
99
- linux,sml-size : size of the memory allocated for the firmware event log
1010

11+
Optional properties:
12+
13+
- powered-while-suspended: present when the TPM is left powered on between
14+
suspend and resume (makes the suspend/resume
15+
callbacks do nothing).
16+
1117
Example (for OpenPower Systems with Nuvoton TPM 2.0 on I2C)
1218
----------------------------------------------------------
1319

Documentation/devicetree/bindings/vendor-prefixes.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ Device tree binding vendor prefix registry. Keep list in alphabetical order.
33
This isn't an exhaustive list, but you should add new prefixes to it before
44
using them to avoid name-space collisions.
55

6-
abcn Abracon Corporation
76
abilis Abilis Systems
7+
abracon Abracon Corporation
88
actions Actions Semiconductor Co., Ltd.
99
active-semi Active-Semi International Inc
1010
ad Avionic Design GmbH

Documentation/driver-api/pm/devices.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -675,7 +675,7 @@ sub-domain of the parent domain.
675675

676676
Support for power domains is provided through the :c:member:`pm_domain` field of
677677
|struct device|. This field is a pointer to an object of type
678-
|struct dev_pm_domain|, defined in :file:`include/linux/pm.h``, providing a set
678+
|struct dev_pm_domain|, defined in :file:`include/linux/pm.h`, providing a set
679679
of power management callbacks analogous to the subsystem-level and device driver
680680
callbacks that are executed for the given device during all power transitions,
681681
instead of the respective subsystem-level callbacks. Specifically, if a

Documentation/networking/filter.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ Examples for low-level BPF:
337337
jeq #14, good /* __NR_rt_sigprocmask */
338338
jeq #13, good /* __NR_rt_sigaction */
339339
jeq #35, good /* __NR_nanosleep */
340-
bad: ret #0 /* SECCOMP_RET_KILL */
340+
bad: ret #0 /* SECCOMP_RET_KILL_THREAD */
341341
good: ret #0x7fff0000 /* SECCOMP_RET_ALLOW */
342342

343343
The above example code can be placed into a file (here called "foo"), and

Documentation/networking/ip-sysctl.txt

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1680,6 +1680,9 @@ accept_dad - INTEGER
16801680
2: Enable DAD, and disable IPv6 operation if MAC-based duplicate
16811681
link-local address has been found.
16821682

1683+
DAD operation and mode on a given interface will be selected according
1684+
to the maximum value of conf/{all,interface}/accept_dad.
1685+
16831686
force_tllao - BOOLEAN
16841687
Enable sending the target link-layer address option even when
16851688
responding to a unicast neighbor solicitation.
@@ -1727,16 +1730,23 @@ suppress_frag_ndisc - INTEGER
17271730

17281731
optimistic_dad - BOOLEAN
17291732
Whether to perform Optimistic Duplicate Address Detection (RFC 4429).
1730-
0: disabled (default)
1731-
1: enabled
1733+
0: disabled (default)
1734+
1: enabled
1735+
1736+
Optimistic Duplicate Address Detection for the interface will be enabled
1737+
if at least one of conf/{all,interface}/optimistic_dad is set to 1,
1738+
it will be disabled otherwise.
17321739

17331740
use_optimistic - BOOLEAN
17341741
If enabled, do not classify optimistic addresses as deprecated during
17351742
source address selection. Preferred addresses will still be chosen
17361743
before optimistic addresses, subject to other ranking in the source
17371744
address selection algorithm.
1738-
0: disabled (default)
1739-
1: enabled
1745+
0: disabled (default)
1746+
1: enabled
1747+
1748+
This will be enabled if at least one of
1749+
conf/{all,interface}/use_optimistic is set to 1, disabled otherwise.
17401750

17411751
stable_secret - IPv6 address
17421752
This IPv6 address will be used as a secret to generate IPv6

Documentation/networking/switchdev.txt

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -13,42 +13,42 @@ an example setup using a data-center-class switch ASIC chip. Other setups
1313
with SR-IOV or soft switches, such as OVS, are possible.
1414

1515

16-
                             User-spacetools
17-
18-
       userspace                   |
19-
      +-------------------------------------------------------------------+
20-
       kernel                       | Netlink
21-
                                    |
22-
                     +--------------+-------------------------------+
23-
                     |         Networkstack                        |
24-
                     |           (Linux)                            |
25-
                     |                                              |
26-
                     +----------------------------------------------+
16+
User-space tools
17+
18+
user space |
19+
+-------------------------------------------------------------------+
20+
kernel | Netlink
21+
|
22+
+--------------+-------------------------------+
23+
| Network stack |
24+
| (Linux) |
25+
| |
26+
+----------------------------------------------+
2727

2828
sw1p2 sw1p4 sw1p6
29-
                      sw1p1+ sw1p3 + sw1p5 +         eth1
30-
                        +    |    +    |    +    |            +
31-
                        |    |    |    |    |    |            |
32-
                     +--+----+----+----+-+--+----+---+  +-----+-----+
33-
                     |         Switchdriver         |  |    mgmt   |
34-
                     |        (thisdocument)        |  |   driver  |
35-
                     |                               |  |           |
36-
                     +--------------+----------------+  +-----------+
37-
                                    |
38-
       kernel                       | HW bus(egPCI)
39-
      +-------------------------------------------------------------------+
40-
       hardware                     |
41-
                     +--------------+---+------------+
42-
                     |         Switchdevice (sw1)   |
43-
                     |  +----+                       +--------+
44-
                     |  |    v offloadeddatapath   | mgmtport
45-
                     |  |    |                       |
46-
                     +--|----|----+----+----+----+---+
47-
                        |    |    |    |    |    |
48-
                        +    +    +    +    +    +
49-
                       p1   p2   p3   p4   p5   p6
50-
51-
                             front-panelports
29+
sw1p1 + sw1p3 + sw1p5 + eth1
30+
+ | + | + | +
31+
| | | | | | |
32+
+--+----+----+----+----+----+---+ +-----+-----+
33+
| Switch driver | | mgmt |
34+
| (this document) | | driver |
35+
| | | |
36+
+--------------+----------------+ +-----------+
37+
|
38+
kernel | HW bus (eg PCI)
39+
+-------------------------------------------------------------------+
40+
hardware |
41+
+--------------+----------------+
42+
| Switch device (sw1) |
43+
| +----+ +--------+
44+
| | v offloaded data path | mgmt port
45+
| | | |
46+
+--|----|----+----+----+----+---+
47+
| | | | | |
48+
+ + + + + +
49+
p1 p2 p3 p4 p5 p6
50+
51+
front-panel ports
5252

5353

5454
Fig 1.

Documentation/sysctl/kernel.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ show up in /proc/sys/kernel:
7575
- reboot-cmd [ SPARC only ]
7676
- rtsig-max
7777
- rtsig-nr
78+
- seccomp/ ==> Documentation/userspace-api/seccomp_filter.rst
7879
- sem
7980
- sem_next_id [ sysv ipc ]
8081
- sg-big-buff [ generic SCSI device (sg) ]

Documentation/userspace-api/seccomp_filter.rst

Lines changed: 50 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,16 @@ Return values
8787
A seccomp filter may return any of the following values. If multiple
8888
filters exist, the return value for the evaluation of a given system
8989
call will always use the highest precedent value. (For example,
90-
``SECCOMP_RET_KILL`` will always take precedence.)
90+
``SECCOMP_RET_KILL_PROCESS`` will always take precedence.)
9191

9292
In precedence order, they are:
9393

94-
``SECCOMP_RET_KILL``:
94+
``SECCOMP_RET_KILL_PROCESS``:
95+
Results in the entire process exiting immediately without executing
96+
the system call. The exit status of the task (``status & 0x7f``)
97+
will be ``SIGSYS``, not ``SIGKILL``.
98+
99+
``SECCOMP_RET_KILL_THREAD``:
95100
Results in the task exiting immediately without executing the
96101
system call. The exit status of the task (``status & 0x7f``) will
97102
be ``SIGSYS``, not ``SIGKILL``.
@@ -141,6 +146,15 @@ In precedence order, they are:
141146
allow use of ptrace, even of other sandboxed processes, without
142147
extreme care; ptracers can use this mechanism to escape.)
143148

149+
``SECCOMP_RET_LOG``:
150+
Results in the system call being executed after it is logged. This
151+
should be used by application developers to learn which syscalls their
152+
application needs without having to iterate through multiple test and
153+
development cycles to build the list.
154+
155+
This action will only be logged if "log" is present in the
156+
actions_logged sysctl string.
157+
144158
``SECCOMP_RET_ALLOW``:
145159
Results in the system call being executed.
146160

@@ -169,7 +183,41 @@ The ``samples/seccomp/`` directory contains both an x86-specific example
169183
and a more generic example of a higher level macro interface for BPF
170184
program generation.
171185

186+
Sysctls
187+
=======
172188

189+
Seccomp's sysctl files can be found in the ``/proc/sys/kernel/seccomp/``
190+
directory. Here's a description of each file in that directory:
191+
192+
``actions_avail``:
193+
A read-only ordered list of seccomp return values (refer to the
194+
``SECCOMP_RET_*`` macros above) in string form. The ordering, from
195+
left-to-right, is the least permissive return value to the most
196+
permissive return value.
197+
198+
The list represents the set of seccomp return values supported
199+
by the kernel. A userspace program may use this list to
200+
determine if the actions found in the ``seccomp.h``, when the
201+
program was built, differs from the set of actions actually
202+
supported in the current running kernel.
203+
204+
``actions_logged``:
205+
A read-write ordered list of seccomp return values (refer to the
206+
``SECCOMP_RET_*`` macros above) that are allowed to be logged. Writes
207+
to the file do not need to be in ordered form but reads from the file
208+
will be ordered in the same way as the actions_avail sysctl.
209+
210+
It is important to note that the value of ``actions_logged`` does not
211+
prevent certain actions from being logged when the audit subsystem is
212+
configured to audit a task. If the action is not found in
213+
``actions_logged`` list, the final decision on whether to audit the
214+
action for that task is ultimately left up to the audit subsystem to
215+
decide for all seccomp return values other than ``SECCOMP_RET_ALLOW``.
216+
217+
The ``allow`` string is not accepted in the ``actions_logged`` sysctl
218+
as it is not possible to log ``SECCOMP_RET_ALLOW`` actions. Attempting
219+
to write ``allow`` to the sysctl will result in an EINVAL being
220+
returned.
173221

174222
Adding architecture support
175223
===========================

MAINTAINERS

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,18 @@ L: [email protected]
352352
S: Maintained
353353
F: drivers/acpi/arm64
354354

355+
ACPI PMIC DRIVERS
356+
M: "Rafael J. Wysocki" <[email protected]>
357+
M: Len Brown <[email protected]>
358+
R: Andy Shevchenko <[email protected]>
359+
R: Mika Westerberg <[email protected]>
360+
361+
Q: https://patchwork.kernel.org/project/linux-acpi/list/
362+
T: git git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm
363+
B: https://bugzilla.kernel.org
364+
S: Supported
365+
F: drivers/acpi/pmic/
366+
355367
ACPI THERMAL DRIVER
356368
M: Zhang Rui <[email protected]>
357369
@@ -2853,7 +2865,6 @@ S: Supported
28532865
F: drivers/scsi/bnx2i/
28542866

28552867
BROADCOM BNX2X 10 GIGABIT ETHERNET DRIVER
2856-
M: Yuval Mintz <[email protected]>
28572868
M: Ariel Elior <[email protected]>
28582869
28592870
@@ -6643,8 +6654,8 @@ M: Alexander Aring <[email protected]>
66436654
M: Stefan Schmidt <[email protected]>
66446655
66456656
W: http://wpan.cakelab.org/
6646-
T: git git://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth.git
6647-
T: git git://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth-next.git
6657+
T: git git://git.kernel.org/pub/scm/linux/kernel/git/sschmidt/wpan.git
6658+
T: git git://git.kernel.org/pub/scm/linux/kernel/git/sschmidt/wpan-next.git
66486659
S: Maintained
66496660
F: net/ieee802154/
66506661
F: net/mac802154/
@@ -11047,7 +11058,6 @@ S: Supported
1104711058
F: drivers/scsi/qedi/
1104811059

1104911060
QLOGIC QL4xxx ETHERNET DRIVER
11050-
M: Yuval Mintz <[email protected]>
1105111061
M: Ariel Elior <[email protected]>
1105211062
1105311063

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
VERSION = 4
22
PATCHLEVEL = 14
33
SUBLEVEL = 0
4-
EXTRAVERSION = -rc1
4+
EXTRAVERSION = -rc2
55
NAME = Fearless Coyote
66

77
# *DOCUMENTATION*
@@ -1172,11 +1172,11 @@ headers_check: headers_install
11721172

11731173
PHONY += kselftest
11741174
kselftest:
1175-
$(Q)$(MAKE) -C tools/testing/selftests run_tests
1175+
$(Q)$(MAKE) -C $(srctree)/tools/testing/selftests run_tests
11761176

11771177
PHONY += kselftest-clean
11781178
kselftest-clean:
1179-
$(Q)$(MAKE) -C tools/testing/selftests clean
1179+
$(Q)$(MAKE) -C $(srctree)/tools/testing/selftests clean
11801180

11811181
PHONY += kselftest-merge
11821182
kselftest-merge:

arch/arc/include/asm/processor.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,6 @@ struct task_struct;
7878

7979
#endif
8080

81-
#define copy_segments(tsk, mm) do { } while (0)
82-
#define release_segments(mm) do { } while (0)
83-
8481
#define KSTK_EIP(tsk) (task_pt_regs(tsk)->ret)
8582
#define KSTK_ESP(tsk) (task_pt_regs(tsk)->sp)
8683

arch/arm/include/asm/thread_info.h

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -139,11 +139,10 @@ extern int vfp_restore_user_hwstate(struct user_vfp __user *,
139139
#define TIF_NEED_RESCHED 1 /* rescheduling necessary */
140140
#define TIF_NOTIFY_RESUME 2 /* callback before returning to user */
141141
#define TIF_UPROBE 3 /* breakpointed or singlestepping */
142-
#define TIF_FSCHECK 4 /* Check FS is USER_DS on return */
143-
#define TIF_SYSCALL_TRACE 5 /* syscall trace active */
144-
#define TIF_SYSCALL_AUDIT 6 /* syscall auditing active */
145-
#define TIF_SYSCALL_TRACEPOINT 7 /* syscall tracepoint instrumentation */
146-
#define TIF_SECCOMP 8 /* seccomp syscall filtering active */
142+
#define TIF_SYSCALL_TRACE 4 /* syscall trace active */
143+
#define TIF_SYSCALL_AUDIT 5 /* syscall auditing active */
144+
#define TIF_SYSCALL_TRACEPOINT 6 /* syscall tracepoint instrumentation */
145+
#define TIF_SECCOMP 7 /* seccomp syscall filtering active */
147146

148147
#define TIF_NOHZ 12 /* in adaptive nohz mode */
149148
#define TIF_USING_IWMMXT 17
@@ -154,7 +153,6 @@ extern int vfp_restore_user_hwstate(struct user_vfp __user *,
154153
#define _TIF_NEED_RESCHED (1 << TIF_NEED_RESCHED)
155154
#define _TIF_NOTIFY_RESUME (1 << TIF_NOTIFY_RESUME)
156155
#define _TIF_UPROBE (1 << TIF_UPROBE)
157-
#define _TIF_FSCHECK (1 << TIF_FSCHECK)
158156
#define _TIF_SYSCALL_TRACE (1 << TIF_SYSCALL_TRACE)
159157
#define _TIF_SYSCALL_AUDIT (1 << TIF_SYSCALL_AUDIT)
160158
#define _TIF_SYSCALL_TRACEPOINT (1 << TIF_SYSCALL_TRACEPOINT)
@@ -168,9 +166,8 @@ extern int vfp_restore_user_hwstate(struct user_vfp __user *,
168166
/*
169167
* Change these and you break ASM code in entry-common.S
170168
*/
171-
#define _TIF_WORK_MASK (_TIF_NEED_RESCHED | _TIF_SIGPENDING | \
172-
_TIF_NOTIFY_RESUME | _TIF_UPROBE | \
173-
_TIF_FSCHECK)
169+
#define _TIF_WORK_MASK (_TIF_NEED_RESCHED | _TIF_SIGPENDING | \
170+
_TIF_NOTIFY_RESUME | _TIF_UPROBE)
174171

175172
#endif /* __KERNEL__ */
176173
#endif /* __ASM_ARM_THREAD_INFO_H */

arch/arm/include/asm/uaccess.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,6 @@ static inline void set_fs(mm_segment_t fs)
7070
{
7171
current_thread_info()->addr_limit = fs;
7272
modify_domain(DOMAIN_KERNEL, fs ? DOMAIN_CLIENT : DOMAIN_MANAGER);
73-
/* On user-mode return, check fs is correct */
74-
set_thread_flag(TIF_FSCHECK);
7573
}
7674

7775
#define segment_eq(a, b) ((a) == (b))

0 commit comments

Comments
 (0)