Skip to content

Commit cabf2d1

Browse files
Automatic merge of 'master' into merge (2026-05-04 17:22)
2 parents 182544a + 028ef9c commit cabf2d1

415 files changed

Lines changed: 4147 additions & 2100 deletions

File tree

Some content is hidden

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

.get_maintainer.ignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
Alan Cox <alan@lxorguk.ukuu.org.uk>
22
Alan Cox <root@hraefn.swansea.linux.org.uk>
33
Alyssa Rosenzweig <alyssa@rosenzweig.io>
4+
Askar Safin <safinaskar@gmail.com>
45
Christoph Hellwig <hch@lst.de>
56
Jeff Kirsher <jeffrey.t.kirsher@intel.com>
67
Marc Gonzalez <marc.w.gonzalez@free.fr>

.mailmap

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -852,6 +852,8 @@ Tvrtko Ursulin <tursulin@ursulin.net> <tvrtko.ursulin@onelan.co.uk>
852852
Tvrtko Ursulin <tursulin@ursulin.net> <tvrtko@ursulin.net>
853853
Tycho Andersen <tycho@tycho.pizza> <tycho@tycho.ws>
854854
Tzung-Bi Shih <tzungbi@kernel.org> <tzungbi@google.com>
855+
Ulf Hansson <ulfh@kernel.org> <ulf.hansson@linaro.org>
856+
Ulf Hansson <ulfh@kernel.org> <ulf.hansson@stericsson.com>
855857
Umang Jain <uajain@igalia.com> <umang.jain@ideasonboard.com>
856858
Uwe Kleine-König <ukleinek@informatik.uni-freiburg.de>
857859
Uwe Kleine-König <u.kleine-koenig@baylibre.com> <ukleinek@baylibre.com>

Documentation/arch/riscv/zicfilp.rst

Lines changed: 39 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -76,34 +76,49 @@ the program.
7676
4. prctl() enabling
7777
--------------------
7878

79-
:c:macro:`PR_SET_INDIR_BR_LP_STATUS` / :c:macro:`PR_GET_INDIR_BR_LP_STATUS` /
80-
:c:macro:`PR_LOCK_INDIR_BR_LP_STATUS` are three prctls added to manage indirect
81-
branch tracking. These prctls are architecture-agnostic and return -EINVAL if
82-
the underlying functionality is not supported.
79+
Per-task indirect branch tracking state can be monitored and
80+
controlled via the :c:macro:`PR_GET_CFI` and :c:macro:`PR_SET_CFI`
81+
``prctl()` arguments (respectively), by supplying
82+
:c:macro:`PR_CFI_BRANCH_LANDING_PADS` as the second argument. These
83+
are architecture-agnostic, and will return -EINVAL if the underlying
84+
functionality is not supported.
8385
84-
* prctl(PR_SET_INDIR_BR_LP_STATUS, unsigned long arg)
86+
* prctl(:c:macro:`PR_SET_CFI`, :c:macro:`PR_CFI_BRANCH_LANDING_PADS`, unsigned long arg)
8587
86-
If arg1 is :c:macro:`PR_INDIR_BR_LP_ENABLE` and if CPU supports
87-
``zicfilp`` then the kernel will enable indirect branch tracking for the
88-
task. The dynamic loader can issue this :c:macro:`prctl` once it has
89-
determined that all the objects loaded in the address space support
90-
indirect branch tracking. Additionally, if there is a `dlopen` to an
91-
object which wasn't compiled with ``zicfilp``, the dynamic loader can
92-
issue this prctl with arg1 set to 0 (i.e. :c:macro:`PR_INDIR_BR_LP_ENABLE`
93-
cleared).
94-
95-
* prctl(PR_GET_INDIR_BR_LP_STATUS, unsigned long * arg)
88+
arg is a bitmask.
9689
97-
Returns the current status of indirect branch tracking. If enabled
98-
it'll return :c:macro:`PR_INDIR_BR_LP_ENABLE`
99-
100-
* prctl(PR_LOCK_INDIR_BR_LP_STATUS, unsigned long arg)
90+
If :c:macro:`PR_CFI_ENABLE` is set in arg, and the CPU supports
91+
``zicfilp``, then the kernel will enable indirect branch tracking for
92+
the task. The dynamic loader can issue this ``prctl()`` once it has
93+
determined that all the objects loaded in the address space support
94+
indirect branch tracking.
95+
96+
Indirect branch tracking state can also be locked once enabled. This
97+
prevents the task from subsequently disabling it. This is done by
98+
setting the bit :c:macro:`PR_CFI_LOCK` in arg. Either indirect branch
99+
tracking must already be enabled for the task, or the bit
100+
:c:macro:`PR_CFI_ENABLE` must also be set in arg. This is intended
101+
for environments that wish to run with a strict security posture that
102+
do not wish to load objects without ``zicfilp`` support.
103+
104+
Indirect branch tracking can also be disabled for the task, assuming
105+
that it has not previously been enabled and locked. If there is a
106+
``dlopen()`` to an object which wasn't compiled with ``zicfilp``, the
107+
dynamic loader can issue this ``prctl()`` with arg set to
108+
:c:macro:`PR_CFI_DISABLE`. Disabling indirect branch tracking for the
109+
task is not possible if it has previously been enabled and locked.
110+
111+
112+
* prctl(:c:macro:`PR_GET_CFI`, :c:macro:`PR_CFI_BRANCH_LANDING_PADS`, unsigned long * arg)
113+
114+
Returns the current status of indirect branch tracking into a bitmask
115+
stored into the memory location pointed to by arg. The bitmask will
116+
have the :c:macro:`PR_CFI_ENABLE` bit set if indirect branch tracking
117+
is currently enabled for the task, and if it is locked, will
118+
additionally have the :c:macro:`PR_CFI_LOCK` bit set. If indirect
119+
branch tracking is currently disabled for the task, the
120+
:c:macro:`PR_CFI_DISABLE` bit will be set.
101121

102-
Locks the current status of indirect branch tracking on the task. User
103-
space may want to run with a strict security posture and wouldn't want
104-
loading of objects without ``zicfilp`` support in them, to disallow
105-
disabling of indirect branch tracking. In this case, user space can
106-
use this prctl to lock the current settings.
107122

108123
5. violations related to indirect branch tracking
109124
--------------------------------------------------

Documentation/devicetree/bindings/connector/usb-connector.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,7 @@ properties:
301301
maxItems: 4
302302

303303
dependencies:
304+
pd-disable: [typec-power-opmode]
304305
sink-vdos-v1: [ sink-vdos ]
305306
sink-vdos: [ sink-vdos-v1 ]
306307

Documentation/devicetree/bindings/display/msm/qcom,qcm2290-mdss.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ properties:
3333
- const: core
3434

3535
iommus:
36-
maxItems: 2
36+
maxItems: 1
3737

3838
interconnects:
3939
items:
@@ -107,8 +107,7 @@ examples:
107107
interconnect-names = "mdp0-mem",
108108
"cpu-cfg";
109109
110-
iommus = <&apps_smmu 0x420 0x2>,
111-
<&apps_smmu 0x421 0x0>;
110+
iommus = <&apps_smmu 0x420 0x2>;
112111
ranges;
113112
114113
display-controller@5e01000 {

Documentation/devicetree/bindings/media/qcom,qcm2290-venus.yaml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ properties:
4242
- const: vcodec0_bus
4343

4444
iommus:
45-
maxItems: 5
45+
maxItems: 2
4646

4747
interconnects:
4848
maxItems: 2
@@ -102,10 +102,7 @@ examples:
102102
memory-region = <&pil_video_mem>;
103103
104104
iommus = <&apps_smmu 0x860 0x0>,
105-
<&apps_smmu 0x880 0x0>,
106-
<&apps_smmu 0x861 0x04>,
107-
<&apps_smmu 0x863 0x0>,
108-
<&apps_smmu 0x804 0xe0>;
105+
<&apps_smmu 0x880 0x0>;
109106
110107
interconnects = <&mmnrt_virt MASTER_VIDEO_P0 RPM_ALWAYS_TAG
111108
&bimc SLAVE_EBI1 RPM_ALWAYS_TAG>,

Documentation/devicetree/bindings/net/nvidia,tegra234-mgbe.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ properties:
4242
- const: mgbe
4343
- const: mac
4444
- const: mac-divider
45-
- const: ptp-ref
45+
- const: ptp_ref
4646
- const: rx-input-m
4747
- const: rx-input
4848
- const: tx
@@ -133,7 +133,7 @@ examples:
133133
<&bpmp TEGRA234_CLK_MGBE0_RX_PCS_M>,
134134
<&bpmp TEGRA234_CLK_MGBE0_RX_PCS>,
135135
<&bpmp TEGRA234_CLK_MGBE0_TX_PCS>;
136-
clock-names = "mgbe", "mac", "mac-divider", "ptp-ref", "rx-input-m",
136+
clock-names = "mgbe", "mac", "mac-divider", "ptp_ref", "rx-input-m",
137137
"rx-input", "tx", "eee-pcs", "rx-pcs-input", "rx-pcs-m",
138138
"rx-pcs", "tx-pcs";
139139
resets = <&bpmp TEGRA234_RESET_MGBE0_MAC>,

Documentation/devicetree/bindings/sound/ti,tas2552.yaml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ maintainers:
1212
- Baojun Xu <baojun.xu@ti.com>
1313

1414
description: >
15-
The TAS2552 can receive its reference clock via MCLK, BCLK, IVCLKIN pin or
16-
use the internal 1.8MHz. This CLKIN is used by the PLL. In addition to PLL,
15+
The TAS2552 can receive its reference clock via MCLK, BCLK, IVCLKIN pin or
16+
use the internal 1.8MHz. This CLKIN is used by the PLL. In addition to PLL,
1717
the PDM reference clock is also selectable: PLL, IVCLKIN, BCLK or MCLK.
1818
1919
For system integration the dt-bindings/sound/tas2552.h header file provides
@@ -34,14 +34,20 @@ properties:
3434
maxItems: 1
3535
description: gpio pin to enable/disable the device
3636

37+
'#sound-dai-cells':
38+
const: 0
39+
3740
required:
3841
- compatible
3942
- reg
4043
- vbat-supply
4144
- iovdd-supply
4245
- avdd-supply
4346

44-
additionalProperties: false
47+
allOf:
48+
- $ref: dai-common.yaml#
49+
50+
unevaluatedProperties: false
4551

4652
examples:
4753
- |
@@ -54,6 +60,7 @@ examples:
5460
audio-codec@41 {
5561
compatible = "ti,tas2552";
5662
reg = <0x41>;
63+
#sound-dai-cells = <0>;
5764
vbat-supply = <&reg_vbat>;
5865
iovdd-supply = <&reg_iovdd>;
5966
avdd-supply = <&reg_avdd>;

Documentation/process/security-bugs.rst

Lines changed: 139 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,138 @@ Security bugs
55

66
Linux kernel developers take security very seriously. As such, we'd
77
like to know when a security bug is found so that it can be fixed and
8-
disclosed as quickly as possible. Please report security bugs to the
9-
Linux kernel security team.
8+
disclosed as quickly as possible.
9+
10+
Preparing your report
11+
---------------------
12+
13+
Like with any bug report, a security bug report requires a lot of analysis work
14+
from the developers, so the more information you can share about the issue, the
15+
better. Please review the procedure outlined in
16+
Documentation/admin-guide/reporting-issues.rst if you are unclear about what
17+
information is helpful. The following information are absolutely necessary in
18+
**any** security bug report:
19+
20+
* **affected kernel version range**: with no version indication, your report
21+
will not be processed. A significant part of reports are for bugs that
22+
have already been fixed, so it is extremely important that vulnerabilities
23+
are verified on recent versions (development tree or latest stable
24+
version), at least by verifying that the code has not changed since the
25+
version where it was detected.
26+
27+
* **description of the problem**: a detailed description of the problem, with
28+
traces showing its manifestation, and why you consider that the observed
29+
behavior as a problem in the kernel, is necessary.
30+
31+
* **reproducer**: developers will need to be able to reproduce the problem to
32+
consider a fix as effective. This includes both a way to trigger the issue
33+
and a way to confirm it happens. A reproducer with low complexity
34+
dependencies will be needed (source code, shell script, sequence of
35+
instructions, file-system image etc). Binary-only executables are not
36+
accepted. Working exploits are extremely helpful and will not be released
37+
without consent from the reporter, unless they are already public. By
38+
definition if an issue cannot be reproduced, it is not exploitable, thus it
39+
is not a security bug.
40+
41+
* **conditions**: if the bug depends on certain configuration options,
42+
sysctls, permissions, timing, code modifications etc, these should be
43+
indicated.
44+
45+
In addition, the following information are highly desirable:
46+
47+
* **suspected location of the bug**: the file names and functions where the
48+
bug is suspected to be present are very important, at least to help forward
49+
the report to the appropriate maintainers. When not possible (for example,
50+
"system freezes each time I run this command"), the security team will help
51+
identify the source of the bug.
52+
53+
* **a proposed fix**: bug reporters who have analyzed the cause of a bug in
54+
the source code almost always have an accurate idea on how to fix it,
55+
because they spent a long time studying it and its implications. Proposing
56+
a tested fix will save maintainers a lot of time, even if the fix ends up
57+
not being the right one, because it helps understand the bug. When
58+
proposing a tested fix, please always format it in a way that can be
59+
immediately merged (see Documentation/process/submitting-patches.rst).
60+
This will save some back-and-forth exchanges if it is accepted, and you
61+
will be credited for finding and fixing this issue. Note that in this case
62+
only a ``Signed-off-by:`` tag is needed, without ``Reported-by:`` when the
63+
reporter and author are the same.
64+
65+
* **mitigations**: very often during a bug analysis, some ways of mitigating
66+
the issue appear. It is useful to share them, as they can be helpful to
67+
keep end users protected during the time it takes them to apply the fix.
68+
69+
Identifying contacts
70+
--------------------
71+
72+
The most effective way to report a security bug is to send it directly to the
73+
affected subsystem's maintainers and Cc: the Linux kernel security team. Do
74+
not send it to a public list at this stage, unless you have good reasons to
75+
consider the issue as being public or trivial to discover (e.g. result of a
76+
widely available automated vulnerability scanning tool that can be repeated by
77+
anyone).
78+
79+
If you're sending a report for issues affecting multiple parts in the kernel,
80+
even if they're fairly similar issues, please send individual messages (think
81+
that maintainers will not all work on the issues at the same time). The only
82+
exception is when an issue concerns closely related parts maintained by the
83+
exact same subset of maintainers, and these parts are expected to be fixed all
84+
at once by the same commit, then it may be acceptable to report them at once.
85+
86+
One difficulty for most first-time reporters is to figure the right list of
87+
recipients to send a report to. In the Linux kernel, all official maintainers
88+
are trusted, so the consequences of accidentally including the wrong maintainer
89+
are essentially a bit more noise for that person, i.e. nothing dramatic. As
90+
such, a suitable method to figure the list of maintainers (which kernel
91+
security officers use) is to rely on the get_maintainer.pl script, tuned to
92+
only report maintainers. This script, when passed a file name, will look for
93+
its path in the MAINTAINERS file to figure a hierarchical list of relevant
94+
maintainers. Calling it a first time with the finest level of filtering will
95+
most of the time return a short list of this specific file's maintainers::
96+
97+
$ ./scripts/get_maintainer.pl --no-l --no-r --pattern-depth 1 \
98+
drivers/example.c
99+
Developer One <dev1@example.com> (maintainer:example driver)
100+
Developer Two <dev2@example.org> (maintainer:example driver)
101+
102+
These two maintainers should then receive the message. If the command does not
103+
return anything, it means the affected file is part of a wider subsystem, so we
104+
should be less specific::
105+
106+
$ ./scripts/get_maintainer.pl --no-l --no-r drivers/example.c
107+
Developer One <dev1@example.com> (maintainer:example subsystem)
108+
Developer Two <dev2@example.org> (maintainer:example subsystem)
109+
Developer Three <dev3@example.com> (maintainer:example subsystem [GENERAL])
110+
Developer Four <dev4@example.org> (maintainer:example subsystem [GENERAL])
111+
112+
Here, picking the first, most specific ones, is sufficient. When the list is
113+
long, it is possible to produce a comma-delimited e-mail address list on a
114+
single line suitable for use in the To: field of a mailer like this::
115+
116+
$ ./scripts/get_maintainer.pl --no-tree --no-l --no-r --no-n --m \
117+
--no-git-fallback --no-substatus --no-rolestats --no-multiline \
118+
--pattern-depth 1 drivers/example.c
119+
dev1@example.com, dev2@example.org
120+
121+
or this for the wider list::
122+
123+
$ ./scripts/get_maintainer.pl --no-tree --no-l --no-r --no-n --m \
124+
--no-git-fallback --no-substatus --no-rolestats --no-multiline \
125+
drivers/example.c
126+
dev1@example.com, dev2@example.org, dev3@example.com, dev4@example.org
127+
128+
If at this point you're still facing difficulties spotting the right
129+
maintainers, **and only in this case**, it's possible to send your report to
130+
the Linux kernel security team only. Your message will be triaged, and you
131+
will receive instructions about whom to contact, if needed. Your message may
132+
equally be forwarded as-is to the relevant maintainers.
133+
134+
Sending the report
135+
------------------
136+
137+
Reports are to be sent over e-mail exclusively. Please use a working e-mail
138+
address, preferably the same that you want to appear in ``Reported-by`` tags
139+
if any. If unsure, send your report to yourself first.
10140

11141
The security team and maintainers almost always require additional
12142
information beyond what was initially provided in a report and rely on
@@ -18,20 +148,12 @@ run additional tests. Reports where the reporter does not respond promptly
18148
or cannot effectively discuss their findings may be abandoned if the
19149
communication does not quickly improve.
20150

21-
As it is with any bug, the more information provided the easier it
22-
will be to diagnose and fix. Please review the procedure outlined in
23-
'Documentation/admin-guide/reporting-issues.rst' if you are unclear about what
24-
information is helpful. Any exploit code is very helpful and will not
25-
be released without consent from the reporter unless it has already been
26-
made public.
27-
151+
The report must be sent to maintainers, with the security team in ``Cc:``.
28152
The Linux kernel security team can be contacted by email at
29153
<security@kernel.org>. This is a private list of security officers
30-
who will help verify the bug report and develop and release a fix.
31-
If you already have a fix, please include it with your report, as
32-
that can speed up the process considerably. It is possible that the
33-
security team will bring in extra help from area maintainers to
34-
understand and fix the security vulnerability.
154+
who will help verify the bug report and assist developers working on a fix.
155+
It is possible that the security team will bring in extra help from area
156+
maintainers to understand and fix the security vulnerability.
35157

36158
Please send **plain text** emails without attachments where possible.
37159
It is much harder to have a context-quoted discussion about a complex
@@ -42,7 +164,9 @@ reproduction steps, and follow it with a proposed fix, all in plain text.
42164
Markdown, HTML and RST formatted reports are particularly frowned upon since
43165
they're quite hard to read for humans and encourage to use dedicated viewers,
44166
sometimes online, which by definition is not acceptable for a confidential
45-
security report.
167+
security report. Note that some mailers tend to mangle formatting of plain
168+
text by default, please consult Documentation/process/email-clients.rst for
169+
more info.
46170

47171
Disclosure and embargoed information
48172
------------------------------------

0 commit comments

Comments
 (0)