Commit 84afebd85343 for kernel

commit 84afebd853437e44cb71f718be11d90e4c1a59dd
Merge: 05718d5c2907 d5ba86298b45
Author: Linus Torvalds <torvalds@linux-foundation.org>
Date:   Fri Nov 20 17:41:06 2026 -0800

    Merge tag 'bpf-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf

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

diff --cc kernel/bpf/bpf_lsm.c
index 468e63dbd922,f39a3766f224..ae23511fd811
--- a/kernel/bpf/bpf_lsm.c
+++ b/kernel/bpf/bpf_lsm.c
@@@ -411,8 -411,8 +411,10 @@@ BTF_ID(func, bpf_lsm_bpf_map_free
  BTF_ID(func, bpf_lsm_bpf_prog_free)
  BTF_ID(func, bpf_lsm_file_alloc_security)
  BTF_ID(func, bpf_lsm_file_free_security)
+ BTF_ID(func, bpf_lsm_backing_file_alloc)
+ BTF_ID(func, bpf_lsm_backing_file_free)
 +BTF_ID(func, bpf_lsm_namespace_init)
 +BTF_ID(func, bpf_lsm_namespace_free)
  #ifdef CONFIG_SECURITY_NETWORK
  BTF_ID(func, bpf_lsm_sk_alloc_security)
  BTF_ID(func, bpf_lsm_sk_free_security)