<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux-toradex.git/tools/testing, branch master</title>
<subtitle>Linux kernel for Apalis and Colibri modules</subtitle>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/'/>
<entry>
<title>Merge tag 'landlock-7.4-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/mic/linux</title>
<updated>2026-11-22T01:11:11+00:00</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@linux-foundation.org</email>
</author>
<published>2026-11-22T01:11:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=eef2bc5a82c25d25c3082f5d86d97a300caeb678'/>
<id>eef2bc5a82c25d25c3082f5d86d97a300caeb678</id>
<content type='text'>
Pull Landlock fixes from Mickaël Salaün:

 - prevent composed rulesets from denying link and rename operations
   that each ruleset allows separately;

 - close capability-mediation gaps for low-address mappings, inheritable
   capabilities, the admin memory reserve, and PR_SET_SECUREBITS, so LSM
   capability denials apply consistently;

 - distinguish namespace creation from entry in denial records and
   expose the checked capability context to BPF tracepoint consumers, so
   they can interpret denials correctly.

* tag 'landlock-7.4-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/mic/linux:
  landlock: Add missing EINVAL case in the doc for landlock_add_rule
  clang-format: Fix formatting of guard()
  landlock: Document namespace denial operations
  selftests/landlock: Test namespace denial operations
  landlock: Add capability objects to denial tracing
  landlock: Distinguish namespace creation and entry denials
  selftests/landlock: Test PR_SET_SECUREBITS mediation
  capabilities: Check PR_SET_SECUREBITS with ns_capable()
  landlock: Fix capability restriction documentation
  selftests/landlock: Test capability checks outside the capable hook
  landlock: Mediate CAP_SYS_ADMIN for the admin memory reserve
  landlock: Mediate CAP_SETPCAP for inheritable capabilities
  landlock: Mediate CAP_SYS_RAWIO for mappings below mmap_min_addr
  landlock: Factor out capability denial checks
  landlock: Clarify implicit handling of LANDLOCK_ACCESS_FS_REFER
  landlock: Simplify landlock_get_fs_access_mask()
  selftests/landlock: Test that layering does not break refer
  landlock: Add KUnit test for landlock_get_fs_access_mask()
  landlock: Fix layer composition of LANDLOCK_ACCESS_FS_REFER
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Pull Landlock fixes from Mickaël Salaün:

 - prevent composed rulesets from denying link and rename operations
   that each ruleset allows separately;

 - close capability-mediation gaps for low-address mappings, inheritable
   capabilities, the admin memory reserve, and PR_SET_SECUREBITS, so LSM
   capability denials apply consistently;

 - distinguish namespace creation from entry in denial records and
   expose the checked capability context to BPF tracepoint consumers, so
   they can interpret denials correctly.

* tag 'landlock-7.4-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/mic/linux:
  landlock: Add missing EINVAL case in the doc for landlock_add_rule
  clang-format: Fix formatting of guard()
  landlock: Document namespace denial operations
  selftests/landlock: Test namespace denial operations
  landlock: Add capability objects to denial tracing
  landlock: Distinguish namespace creation and entry denials
  selftests/landlock: Test PR_SET_SECUREBITS mediation
  capabilities: Check PR_SET_SECUREBITS with ns_capable()
  landlock: Fix capability restriction documentation
  selftests/landlock: Test capability checks outside the capable hook
  landlock: Mediate CAP_SYS_ADMIN for the admin memory reserve
  landlock: Mediate CAP_SETPCAP for inheritable capabilities
  landlock: Mediate CAP_SYS_RAWIO for mappings below mmap_min_addr
  landlock: Factor out capability denial checks
  landlock: Clarify implicit handling of LANDLOCK_ACCESS_FS_REFER
  landlock: Simplify landlock_get_fs_access_mask()
  selftests/landlock: Test that layering does not break refer
  landlock: Add KUnit test for landlock_get_fs_access_mask()
  landlock: Fix layer composition of LANDLOCK_ACCESS_FS_REFER
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge tag 'bpf-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf</title>
<updated>2026-11-21T01:41:06+00:00</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@linux-foundation.org</email>
</author>
<published>2026-11-21T01:41:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=84afebd853437e44cb71f718be11d90e4c1a59dd'/>
<id>84afebd853437e44cb71f718be11d90e4c1a59dd</id>
<content type='text'>
Pull bpf fixes from Alexei Starovoitov:
 "Mostly sockmap fixes as promised, plus uprobe ctx rewrite via bpf and
  cgroup-bpf fixes.

   - Reject writable map iterators on read-only maps (Adethya
     Srinivasan)

   - Various sockmap fixes (Alexei Starovoitov):
       - Clear the redirect target before the sk_msg prog runs
       - Check that the redirected message is the cork
       - Leave sk_stream_wait_memory() once the socket is dead
       - Keep the rest of the cork after a redirect
       - Don't let an SK_PASS verdict cover the next message
       - Subtract all dropped bytes from the return value of sendmsg()
       - Clear the end mark of elements added by bpf_msg_push_data() and
         bpf_msg_pop_data()

   - Fix ring capacity invariant break in bpf_msg_push_data() (Bo Cao)

   - Report RCU-tasks quiescent states in do_check() to fix rcu_tasks
     stalls during a long verification (Breno Leitao)

   - Various sockmap fixes (Chris Mason):
       - Give no progs to a TCP listener
       - Check the target of an egress redirect before each send
       - Check the TCP state in recvmsg()
       - Reset the copy position when corking
       - Don't copy 0 bytes into a full cork

   - Use a dedicated workqueue for freeing BPF programs to fix a
     deadlock between pack_mutex waiters and the vmalloc purge work
     (Emil Tsalapatis)

   - Fix verifier model mismatch on a narrow read of
     __sk_buff.remote_port (Henry Martin)

   - Fix bpf-gcc CO-RE relocation in verifier_sockmap_mutate selftest
     (Jiayuan Chen)

   - Restrict uprobe ctx writes to the registers that ptrace can set
     (Jiri Olsa)

   - Various sockmap fixes (Josef Bacik):
       - Write sg.start when recvmsg() faults
       - Don't let an SK_DROP verdict stick
       - Clear the resume state of a stopped psock

   - Various fixes (Michal Luczaj):
       - Fix "unresolved symbol tcp_request_sock" build error with
         CONFIG_INET=n
       - Restrict iter-context sockmap updates to iter/sockmap
       - Restrict bpf_sock_destroy() to iter/{tcp,udp}
       - Mark bpf_iter__sockmap::sk as PTR_TRUSTED

   - Mark backing_file_alloc/free LSM hooks as untrusted (Sergei
     Nizovtsev)

   - Various cgroup-bpf fixes (Shakeel Butt):
       - Don't read freed effective arrays in BPF_PROG_QUERY
       - Don't attach to a removed cgroup
       - Protect cgroup_bpf state with its own mutex, so that queries
         and the release work don't wait for cgroup_mutex
       - Don't lose errors in effective BPF_LSM_CGROUP queries

   - Check variable-offset accesses against special fields (Shihuang
     Liu)"

* tag 'bpf-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf: (38 commits)
  selftests/bpf: Test which ctx registers a uprobe prog can write
  bpf: Restrict uprobe ctx writes to the registers ptrace can set
  selftests/bpf: Fix bpf-gcc CO-RE relocation in verifier_sockmap_mutate
  bpf, cgroup: Don't lose errors in effective BPF_LSM_CGROUP queries
  bpf, cgroup: Protect cgroup_bpf state with its own mutex
  bpf, cgroup: Don't attach to a removed cgroup
  bpf, cgroup: Don't read freed effective arrays in BPF_PROG_QUERY
  bpf: Fix verifier model mismatch on __sk_buff.remote_port narrow read
  bpf: Fix "unresolved symbol tcp_request_sock" build error
  selftests/bpf: Add iter/sockmap bpf_sock_destroy() negative test
  bpf: Mark bpf_iter__sockmap::sk as PTR_TRUSTED
  bpf: Restrict bpf_sock_destroy() to iter/{tcp,udp}
  bpf, docs: Document BPF_ITER_NOSLEEP
  selftests/bpf: Add negative test for sockmap update from non-sockmap iter
  bpf, sockmap: Restrict iter-context sockmap updates to iter/sockmap
  selftests/bpf: Remove sockmap update from bpf_iter_unix
  bpf, lsm: Mark backing_file_alloc/free LSM hooks as untrusted
  bpf: Report RCU-tasks quiescent states in do_check()
  bpf: Check variable-offset accesses against special fields
  bpf: Use dedicated workqueue for freeing BPF programs
  ...
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Pull bpf fixes from Alexei Starovoitov:
 "Mostly sockmap fixes as promised, plus uprobe ctx rewrite via bpf and
  cgroup-bpf fixes.

   - Reject writable map iterators on read-only maps (Adethya
     Srinivasan)

   - Various sockmap fixes (Alexei Starovoitov):
       - Clear the redirect target before the sk_msg prog runs
       - Check that the redirected message is the cork
       - Leave sk_stream_wait_memory() once the socket is dead
       - Keep the rest of the cork after a redirect
       - Don't let an SK_PASS verdict cover the next message
       - Subtract all dropped bytes from the return value of sendmsg()
       - Clear the end mark of elements added by bpf_msg_push_data() and
         bpf_msg_pop_data()

   - Fix ring capacity invariant break in bpf_msg_push_data() (Bo Cao)

   - Report RCU-tasks quiescent states in do_check() to fix rcu_tasks
     stalls during a long verification (Breno Leitao)

   - Various sockmap fixes (Chris Mason):
       - Give no progs to a TCP listener
       - Check the target of an egress redirect before each send
       - Check the TCP state in recvmsg()
       - Reset the copy position when corking
       - Don't copy 0 bytes into a full cork

   - Use a dedicated workqueue for freeing BPF programs to fix a
     deadlock between pack_mutex waiters and the vmalloc purge work
     (Emil Tsalapatis)

   - Fix verifier model mismatch on a narrow read of
     __sk_buff.remote_port (Henry Martin)

   - Fix bpf-gcc CO-RE relocation in verifier_sockmap_mutate selftest
     (Jiayuan Chen)

   - Restrict uprobe ctx writes to the registers that ptrace can set
     (Jiri Olsa)

   - Various sockmap fixes (Josef Bacik):
       - Write sg.start when recvmsg() faults
       - Don't let an SK_DROP verdict stick
       - Clear the resume state of a stopped psock

   - Various fixes (Michal Luczaj):
       - Fix "unresolved symbol tcp_request_sock" build error with
         CONFIG_INET=n
       - Restrict iter-context sockmap updates to iter/sockmap
       - Restrict bpf_sock_destroy() to iter/{tcp,udp}
       - Mark bpf_iter__sockmap::sk as PTR_TRUSTED

   - Mark backing_file_alloc/free LSM hooks as untrusted (Sergei
     Nizovtsev)

   - Various cgroup-bpf fixes (Shakeel Butt):
       - Don't read freed effective arrays in BPF_PROG_QUERY
       - Don't attach to a removed cgroup
       - Protect cgroup_bpf state with its own mutex, so that queries
         and the release work don't wait for cgroup_mutex
       - Don't lose errors in effective BPF_LSM_CGROUP queries

   - Check variable-offset accesses against special fields (Shihuang
     Liu)"

* tag 'bpf-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf: (38 commits)
  selftests/bpf: Test which ctx registers a uprobe prog can write
  bpf: Restrict uprobe ctx writes to the registers ptrace can set
  selftests/bpf: Fix bpf-gcc CO-RE relocation in verifier_sockmap_mutate
  bpf, cgroup: Don't lose errors in effective BPF_LSM_CGROUP queries
  bpf, cgroup: Protect cgroup_bpf state with its own mutex
  bpf, cgroup: Don't attach to a removed cgroup
  bpf, cgroup: Don't read freed effective arrays in BPF_PROG_QUERY
  bpf: Fix verifier model mismatch on __sk_buff.remote_port narrow read
  bpf: Fix "unresolved symbol tcp_request_sock" build error
  selftests/bpf: Add iter/sockmap bpf_sock_destroy() negative test
  bpf: Mark bpf_iter__sockmap::sk as PTR_TRUSTED
  bpf: Restrict bpf_sock_destroy() to iter/{tcp,udp}
  bpf, docs: Document BPF_ITER_NOSLEEP
  selftests/bpf: Add negative test for sockmap update from non-sockmap iter
  bpf, sockmap: Restrict iter-context sockmap updates to iter/sockmap
  selftests/bpf: Remove sockmap update from bpf_iter_unix
  bpf, lsm: Mark backing_file_alloc/free LSM hooks as untrusted
  bpf: Report RCU-tasks quiescent states in do_check()
  bpf: Check variable-offset accesses against special fields
  bpf: Use dedicated workqueue for freeing BPF programs
  ...
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge tag 'fuse-fixes-7.4-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/fuse</title>
<updated>2026-11-20T21:10:18+00:00</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@linux-foundation.org</email>
</author>
<published>2026-11-20T21:10:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=5f22fb20497f4983094131f00a734362300d22d2'/>
<id>5f22fb20497f4983094131f00a734362300d22d2</id>
<content type='text'>
Pull fuse fixes from Miklos Szeredi:

 - Fix  bugs reported by Sashiko

 - Fix a couple of issues introduced in this cycle

 - Misc bug fixes

* tag 'fuse-fixes-7.4-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/fuse:
  fuse: limit name size in listxattr
  fuse: clear the old EOF tail before writeback-cache writes
  fuse: fix UBSAN warning in fuse_iomap_writeback_range()
  fuse: skip dcache instantiation for readdirplus names with embedded NUL
  fuse: preserve ENOTCONN after failed initialization and disconnect
  fuse: set dentry epoch before making the dentry visible
  fuse: advertise support for DAX mappings
  fuse: don't mark inode DAX without CONFIG_FS_DAX
  fuse: don't pass a NULL inode to fuse_inode_backing() on release
  virtiofs: zero the reply region of the argument buffer
  virtiofs: disable request timeout
  virtiofs: fix use-after-free of fs-&gt;tag on device removal
  fuse: derive short read EOF from the request offset
  selftests/fuse: test post-EOF page zeroing on copy_file_range()
  fuse: zero the partial EOF page in copy_file_range()
  fuse: fix possible UAF in fuse_direntplus_link()
  fuse: Use d_alloc_trylock() in fuse_direntplus_link()
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Pull fuse fixes from Miklos Szeredi:

 - Fix  bugs reported by Sashiko

 - Fix a couple of issues introduced in this cycle

 - Misc bug fixes

* tag 'fuse-fixes-7.4-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/fuse:
  fuse: limit name size in listxattr
  fuse: clear the old EOF tail before writeback-cache writes
  fuse: fix UBSAN warning in fuse_iomap_writeback_range()
  fuse: skip dcache instantiation for readdirplus names with embedded NUL
  fuse: preserve ENOTCONN after failed initialization and disconnect
  fuse: set dentry epoch before making the dentry visible
  fuse: advertise support for DAX mappings
  fuse: don't mark inode DAX without CONFIG_FS_DAX
  fuse: don't pass a NULL inode to fuse_inode_backing() on release
  virtiofs: zero the reply region of the argument buffer
  virtiofs: disable request timeout
  virtiofs: fix use-after-free of fs-&gt;tag on device removal
  fuse: derive short read EOF from the request offset
  selftests/fuse: test post-EOF page zeroing on copy_file_range()
  fuse: zero the partial EOF page in copy_file_range()
  fuse: fix possible UAF in fuse_direntplus_link()
  fuse: Use d_alloc_trylock() in fuse_direntplus_link()
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge tag 'cxl-fixes-7.4-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl</title>
<updated>2026-11-20T20:39:08+00:00</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@linux-foundation.org</email>
</author>
<published>2026-11-20T20:39:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=b98adc197f7300e875fbcd4cf5dfa5ebe3d6dc08'/>
<id>b98adc197f7300e875fbcd4cf5dfa5ebe3d6dc08</id>
<content type='text'>
Pull cxl fixes from Dave Jiang:
 "A small collection of CXL fixes"

* tag 'cxl-fixes-7.4-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl:
  cxl/port: Fix endpoint RAS error unmasking
  cxl/test: Free the decoder registry when cxl_test_init() fails
  cxl/region: Reject a repeat write of an endpoint decoder to targetN
  cxl/region: Restore a target's position from its slot after sorting
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Pull cxl fixes from Dave Jiang:
 "A small collection of CXL fixes"

* tag 'cxl-fixes-7.4-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl:
  cxl/port: Fix endpoint RAS error unmasking
  cxl/test: Free the decoder registry when cxl_test_init() fails
  cxl/region: Reject a repeat write of an endpoint decoder to targetN
  cxl/region: Restore a target's position from its slot after sorting
</pre>
</div>
</content>
</entry>
<entry>
<title>selftests/bpf: Test which ctx registers a uprobe prog can write</title>
<updated>2026-11-20T02:30:59+00:00</updated>
<author>
<name>Jiri Olsa</name>
<email>jolsa@kernel.org</email>
</author>
<published>2026-11-18T08:44:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=c21b0f82ca96750e81a38b041c037de6b5dab60a'/>
<id>c21b0f82ca96750e81a38b041c037de6b5dab60a</id>
<content type='text'>
A uprobe program can write only the pt_regs fields that ptrace can set
to any value. Add verifier tests for x86-64, arm64 and riscv:

  - writes to the general registers, the stack pointer and the
    instruction pointer load
  - writes to cs, ss, flags and orig_ax on x86-64, to pstate and
    orig_x0 on arm64, and to status, badaddr and cause on riscv fail
    with "invalid bpf_context access"
  - a 4-byte write to the low half of a read-only field fails too
  - reading a read-only field still works
  - on x86-64, a kprobe program that writes ctx-&gt;flags fails to load

Other arches get one test that just loads.

Signed-off-by: Jiri Olsa &lt;jolsa@kernel.org&gt;
Signed-off-by: Alexei Starovoitov &lt;ast@kernel.org&gt;
Link: https://patch.msgid.link/20261118084451.12590-3-jolsa@kernel.org
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
A uprobe program can write only the pt_regs fields that ptrace can set
to any value. Add verifier tests for x86-64, arm64 and riscv:

  - writes to the general registers, the stack pointer and the
    instruction pointer load
  - writes to cs, ss, flags and orig_ax on x86-64, to pstate and
    orig_x0 on arm64, and to status, badaddr and cause on riscv fail
    with "invalid bpf_context access"
  - a 4-byte write to the low half of a read-only field fails too
  - reading a read-only field still works
  - on x86-64, a kprobe program that writes ctx-&gt;flags fails to load

Other arches get one test that just loads.

Signed-off-by: Jiri Olsa &lt;jolsa@kernel.org&gt;
Signed-off-by: Alexei Starovoitov &lt;ast@kernel.org&gt;
Link: https://patch.msgid.link/20261118084451.12590-3-jolsa@kernel.org
</pre>
</div>
</content>
</entry>
<entry>
<title>selftests/bpf: Fix bpf-gcc CO-RE relocation in verifier_sockmap_mutate</title>
<updated>2026-11-19T22:26:13+00:00</updated>
<author>
<name>Jiayuan Chen</name>
<email>jiayuan.chen@linux.dev</email>
</author>
<published>2026-11-17T12:24:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=7543d8d314b222452258b30e5c7a40c6f4cbfcda'/>
<id>7543d8d314b222452258b30e5c7a40c6f4cbfcda</id>
<content type='text'>
bpf-gcc fails to load test_trace_iter_unix:

  Error: #766/6 verifier_sockmap_mutate/test_trace_iter_unix
  libbpf: elf: skipping section(3) .data (size 0)
  libbpf: elf: skipping unrecognized data section(18) .comment
  run_subtest:PASS:obj_open_mem 0 nsec
  libbpf: prog 'test_trace_iter_unix': relo #0: insn #0 (LDX/ST/STX) accesses field incorrectly. ...
  libbpf: prog 'test_trace_iter_unix': BPF program load failed: -EINVAL
  libbpf: prog 'test_trace_iter_unix': failed to load: -EINVAL
  libbpf: failed to load object 'verifier_sockmap_mutate'
  run_subtest:PASS:unexpected_load_success 0 nsec
  validate_msgs:FAIL:1014 expect_msg
  VERIFIER LOG:
  =============
  0: R1=ctx() R10=fp0
  ;  @ verifier_sockmap_mutate.c:124
  0: &lt;invalid CO-RE relocation&gt;
  failed to resolve CO-RE relocation &lt;byte_off&gt; [4] struct bpf_iter__unix (0:0 @ offset 0)
  processed 1 insns (limit 1000000) max_states_per_insn 0 total_states 0 peak_states 0 mark_read 0
  =============
  EXPECTED   SUBSTR: 'cannot update sockmap in this context'

GCC only applies preserve_access_index to types that carry the attribute
themselves. The anonymous union holding the sock pointer doesn't, so the
CO-RE access stops at the union ("0:0") instead of reaching the pointer
("0:0:0"), and libbpf rejects the relocation.

Fixes: e16c83fa764f ("selftests/bpf: Add negative test for sockmap update from non-sockmap iter")
Signed-off-by: Jiayuan Chen &lt;jiayuan.chen@linux.dev&gt;
Signed-off-by: Alexei Starovoitov &lt;ast@kernel.org&gt;
Acked-by: Ihor Solodrai &lt;ihor.solodrai@linux.dev&gt;
Link: https://patch.msgid.link/20261117122417.340562-1-jiayuan.chen@linux.dev
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
bpf-gcc fails to load test_trace_iter_unix:

  Error: #766/6 verifier_sockmap_mutate/test_trace_iter_unix
  libbpf: elf: skipping section(3) .data (size 0)
  libbpf: elf: skipping unrecognized data section(18) .comment
  run_subtest:PASS:obj_open_mem 0 nsec
  libbpf: prog 'test_trace_iter_unix': relo #0: insn #0 (LDX/ST/STX) accesses field incorrectly. ...
  libbpf: prog 'test_trace_iter_unix': BPF program load failed: -EINVAL
  libbpf: prog 'test_trace_iter_unix': failed to load: -EINVAL
  libbpf: failed to load object 'verifier_sockmap_mutate'
  run_subtest:PASS:unexpected_load_success 0 nsec
  validate_msgs:FAIL:1014 expect_msg
  VERIFIER LOG:
  =============
  0: R1=ctx() R10=fp0
  ;  @ verifier_sockmap_mutate.c:124
  0: &lt;invalid CO-RE relocation&gt;
  failed to resolve CO-RE relocation &lt;byte_off&gt; [4] struct bpf_iter__unix (0:0 @ offset 0)
  processed 1 insns (limit 1000000) max_states_per_insn 0 total_states 0 peak_states 0 mark_read 0
  =============
  EXPECTED   SUBSTR: 'cannot update sockmap in this context'

GCC only applies preserve_access_index to types that carry the attribute
themselves. The anonymous union holding the sock pointer doesn't, so the
CO-RE access stops at the union ("0:0") instead of reaching the pointer
("0:0:0"), and libbpf rejects the relocation.

Fixes: e16c83fa764f ("selftests/bpf: Add negative test for sockmap update from non-sockmap iter")
Signed-off-by: Jiayuan Chen &lt;jiayuan.chen@linux.dev&gt;
Signed-off-by: Alexei Starovoitov &lt;ast@kernel.org&gt;
Acked-by: Ihor Solodrai &lt;ihor.solodrai@linux.dev&gt;
Link: https://patch.msgid.link/20261117122417.340562-1-jiayuan.chen@linux.dev
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge tag 'net-7.4-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net</title>
<updated>2026-11-19T16:11:44+00:00</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@linux-foundation.org</email>
</author>
<published>2026-11-19T16:11:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=1e575bda30acc0bf01f799cee798d4a1c100d538'/>
<id>1e575bda30acc0bf01f799cee798d4a1c100d538</id>
<content type='text'>
Pull networking fixes from Paolo Abeni:
 "Including fixes from netfilter and Bluetooth.

  Current release - regressions:

    - ipvs: honor the overload state and do not enter it forever

  Previous releases - regressions:

    - core:
       - prevent receive header offset overflow during decapsulation
       - avoid truncated transport header offsets

    - tcp:
       - fix NULL pointer dereference when restarting a fast open listener
       - fix the SO_REUSEPORT bind cache admitting a conflicting socket

    - sctp: do not free a new asoc peeled off while sendmsg slept

    - bridge: fix skb leak of reinjected link-local frames

    - bluetooth:
      - L2CAP: clear the SDU before the receive callback
      - vhci: serialize packet reception with device creation

    - ipvs:
       - avoid stack overflow from recursive connection expiration
       - fix problems during connection deletion

    - eth:
       - virtio_net: check RX buffer length before DMA sync
       - gve: fix RX page refcount overflow from INT_MAX pagecnt_bias

  Previous releases - always broken:

    - core: make room for the tunnel header in skb_segment_list()

    - eth:
       - i40e: fix freeing of TX rings on RX allocation failure
       - stmmac: fix VXLAN over IPv6 with zero UDP checksum"

* tag 'net-7.4-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net: (117 commits)
  net: prevent receive header offset overflow during decapsulation
  tcp: bound the rto_min of a route in tcp_rto_min()
  tcp: clamp the samples in tcp_rcv_rtt_update()
  tcp: reject RTT samples from TSecr above 120 s
  tcp: clamp RTT samples in tcp_rtt_estimator()
  tcp: don't let __tcp_set_rto() return 0
  net: make room for the tunnel header in skb_segment_list()
  udp: use skb_set_transport_header_careful() in __udp6_lib_err_encap()
  sctp: use skb_set_transport_header_careful() in sctp_v6_err()
  net: openvswitch: use skb_set_transport_header_careful() in parse_ipv6hdr()
  ipv6: mcast: use skb_set_transport_header_careful() in ipv6_mc_check_exthdrs()
  ipv6: gro: limit the number of extension headers
  net: stmmac: dwmac1000: stop hardware from dropping checksum-error packets
  net: stmmac: dwmac1000: don't discard frames with only a checksum error
  net: stmmac: honour Rx checksum errors in the AF_XDP zero-copy path
  veth: wake the peer txq when deleting NAPI
  veth: wake a stopped peer txq beyond real_num_tx_queues
  iavf: add missing PTP adjustment callbacks
  iavf: fix ASQ command buffer leak on init failure
  iavf: fix QoS capabilities memory leak
  ...
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Pull networking fixes from Paolo Abeni:
 "Including fixes from netfilter and Bluetooth.

  Current release - regressions:

    - ipvs: honor the overload state and do not enter it forever

  Previous releases - regressions:

    - core:
       - prevent receive header offset overflow during decapsulation
       - avoid truncated transport header offsets

    - tcp:
       - fix NULL pointer dereference when restarting a fast open listener
       - fix the SO_REUSEPORT bind cache admitting a conflicting socket

    - sctp: do not free a new asoc peeled off while sendmsg slept

    - bridge: fix skb leak of reinjected link-local frames

    - bluetooth:
      - L2CAP: clear the SDU before the receive callback
      - vhci: serialize packet reception with device creation

    - ipvs:
       - avoid stack overflow from recursive connection expiration
       - fix problems during connection deletion

    - eth:
       - virtio_net: check RX buffer length before DMA sync
       - gve: fix RX page refcount overflow from INT_MAX pagecnt_bias

  Previous releases - always broken:

    - core: make room for the tunnel header in skb_segment_list()

    - eth:
       - i40e: fix freeing of TX rings on RX allocation failure
       - stmmac: fix VXLAN over IPv6 with zero UDP checksum"

* tag 'net-7.4-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net: (117 commits)
  net: prevent receive header offset overflow during decapsulation
  tcp: bound the rto_min of a route in tcp_rto_min()
  tcp: clamp the samples in tcp_rcv_rtt_update()
  tcp: reject RTT samples from TSecr above 120 s
  tcp: clamp RTT samples in tcp_rtt_estimator()
  tcp: don't let __tcp_set_rto() return 0
  net: make room for the tunnel header in skb_segment_list()
  udp: use skb_set_transport_header_careful() in __udp6_lib_err_encap()
  sctp: use skb_set_transport_header_careful() in sctp_v6_err()
  net: openvswitch: use skb_set_transport_header_careful() in parse_ipv6hdr()
  ipv6: mcast: use skb_set_transport_header_careful() in ipv6_mc_check_exthdrs()
  ipv6: gro: limit the number of extension headers
  net: stmmac: dwmac1000: stop hardware from dropping checksum-error packets
  net: stmmac: dwmac1000: don't discard frames with only a checksum error
  net: stmmac: honour Rx checksum errors in the AF_XDP zero-copy path
  veth: wake the peer txq when deleting NAPI
  veth: wake a stopped peer txq beyond real_num_tx_queues
  iavf: add missing PTP adjustment callbacks
  iavf: fix ASQ command buffer leak on init failure
  iavf: fix QoS capabilities memory leak
  ...
</pre>
</div>
</content>
</entry>
<entry>
<title>selftests/landlock: Test namespace denial operations</title>
<updated>2026-11-19T10:55:45+00:00</updated>
<author>
<name>Mickaël Salaün</name>
<email>mic@digikod.net</email>
</author>
<published>2026-11-18T16:32:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=3b70d866e9355dd3210cb47d51ed9e5a5e2c7ccc'/>
<id>3b70d866e9355dd3210cb47d51ed9e5a5e2c7ccc</id>
<content type='text'>
The namespace trace tests cover creation and entry denials, but only
creation exercises the quiet path.  This leaves the new ENTER request
tag untested through quiet selection and trace dispatch when audit
logging is suppressed.

Add the missing quiet setns(2) case.  Together with the existing cases,
this exercises all four combinations of CREATE and ENTER with logged and
quieted denials, including each exact namespace_op value.

Test coverage for security/landlock is 91.6% of 2894 lines according to
LLVM 23.

Cc: Günther Noack &lt;gnoack@google.com&gt;
Link: https://patch.msgid.link/20261118163254.2554413-4-mic@digikod.net
Signed-off-by: Mickaël Salaün &lt;mic@digikod.net&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The namespace trace tests cover creation and entry denials, but only
creation exercises the quiet path.  This leaves the new ENTER request
tag untested through quiet selection and trace dispatch when audit
logging is suppressed.

Add the missing quiet setns(2) case.  Together with the existing cases,
this exercises all four combinations of CREATE and ENTER with logged and
quieted denials, including each exact namespace_op value.

Test coverage for security/landlock is 91.6% of 2894 lines according to
LLVM 23.

Cc: Günther Noack &lt;gnoack@google.com&gt;
Link: https://patch.msgid.link/20261118163254.2554413-4-mic@digikod.net
Signed-off-by: Mickaël Salaün &lt;mic@digikod.net&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>landlock: Distinguish namespace creation and entry denials</title>
<updated>2026-11-19T10:55:41+00:00</updated>
<author>
<name>Mickaël Salaün</name>
<email>mic@digikod.net</email>
</author>
<published>2026-11-18T16:32:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=a873f3c213a6fc09aaa2bb389fba49f9bbe9d589'/>
<id>a873f3c213a6fc09aaa2bb389fba49f9bbe9d589</id>
<content type='text'>
Landlock reports denied namespace creation and entry with the same
internal request type.  Before commit 08471914d6bb ("ns: allocate the
namespace id before the namespace_init hook"), denied creation carried
ID zero and could be distinguished from entry by ID alone.  That commit
moved ID allocation before namespace_init(), so creation now carries the
ID of an unreachable new namespace while entry carries the existing
target ID.  Namespace IDs are object context, not operation
discriminators.

Split the request type into creation and entry.  Keep the two namespace
values together before capability; this renumbers the unreleased
capability request in raw and typed trace context.  Report
namespace_op=create or namespace_op=enter immediately after blockers in
namespace audit records and trace event text.  Placing the operation
before namespace_type and namespace_id lets consumers establish the
semantics before interpreting the following namespace context,
especially whether namespace_id is the creation-time value or identifies
an existing entry target.

Keep namespace.use as the policy blocker: the new value only describes
the semantic hook context and does not add a policy control.

Cc: Günther Noack &lt;gnoack@google.com&gt;
Fixes: 15dd86021b57 ("landlock: Enforce namespace use restrictions")
Link: https://patch.msgid.link/20261118163254.2554413-2-mic@digikod.net
Signed-off-by: Mickaël Salaün &lt;mic@digikod.net&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Landlock reports denied namespace creation and entry with the same
internal request type.  Before commit 08471914d6bb ("ns: allocate the
namespace id before the namespace_init hook"), denied creation carried
ID zero and could be distinguished from entry by ID alone.  That commit
moved ID allocation before namespace_init(), so creation now carries the
ID of an unreachable new namespace while entry carries the existing
target ID.  Namespace IDs are object context, not operation
discriminators.

Split the request type into creation and entry.  Keep the two namespace
values together before capability; this renumbers the unreleased
capability request in raw and typed trace context.  Report
namespace_op=create or namespace_op=enter immediately after blockers in
namespace audit records and trace event text.  Placing the operation
before namespace_type and namespace_id lets consumers establish the
semantics before interpreting the following namespace context,
especially whether namespace_id is the creation-time value or identifies
an existing entry target.

Keep namespace.use as the policy blocker: the new value only describes
the semantic hook context and does not add a policy control.

Cc: Günther Noack &lt;gnoack@google.com&gt;
Fixes: 15dd86021b57 ("landlock: Enforce namespace use restrictions")
Link: https://patch.msgid.link/20261118163254.2554413-2-mic@digikod.net
Signed-off-by: Mickaël Salaün &lt;mic@digikod.net&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>selftests/landlock: Test PR_SET_SECUREBITS mediation</title>
<updated>2026-11-19T10:55:40+00:00</updated>
<author>
<name>Mickaël Salaün</name>
<email>mic@digikod.net</email>
</author>
<published>2026-11-18T14:54:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=102143984d542ef7f3bff6bcfd886d3940e17ca7'/>
<id>102143984d542ef7f3bff6bcfd886d3940e17ca7</id>
<content type='text'>
Test that Landlock denies and logs a privileged PR_SET_SECUREBITS
change, now that the previous commit routes its CAP_SETPCAP check
through the capable hooks, and that an unprivileged change still
succeeds.  The domain deallocation record must then report exactly one
denial, which proves that the unprivileged change was not denied,
without relying on a no-record timeout.

The check-exec selftests already cover commoncap's securebits semantics.
Without the previous commit, this test fails.

Cc: Christian Brauner &lt;brauner@kernel.org&gt;
Cc: Günther Noack &lt;gnoack@google.com&gt;
Cc: Paul Moore &lt;paul@paul-moore.com&gt;
Cc: Serge Hallyn &lt;serge@hallyn.com&gt;
Link: https://patch.msgid.link/20261118145431.2551578-3-mic@digikod.net
Signed-off-by: Mickaël Salaün &lt;mic@digikod.net&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Test that Landlock denies and logs a privileged PR_SET_SECUREBITS
change, now that the previous commit routes its CAP_SETPCAP check
through the capable hooks, and that an unprivileged change still
succeeds.  The domain deallocation record must then report exactly one
denial, which proves that the unprivileged change was not denied,
without relying on a no-record timeout.

The check-exec selftests already cover commoncap's securebits semantics.
Without the previous commit, this test fails.

Cc: Christian Brauner &lt;brauner@kernel.org&gt;
Cc: Günther Noack &lt;gnoack@google.com&gt;
Cc: Paul Moore &lt;paul@paul-moore.com&gt;
Cc: Serge Hallyn &lt;serge@hallyn.com&gt;
Link: https://patch.msgid.link/20261118145431.2551578-3-mic@digikod.net
Signed-off-by: Mickaël Salaün &lt;mic@digikod.net&gt;
</pre>
</div>
</content>
</entry>
</feed>
