1. 02 Oct, 2024 3 commits
    • Martin KaFai Lau's avatar
      Merge branch 'bpf: devmap: provide rxq after redirect' · bcd28cfd
      Martin KaFai Lau authored
      Florian Kauer says:
      
      ====================
      rxq contains a pointer to the device from where
      the redirect happened. Currently, the BPF program
      that was executed after a redirect via BPF_MAP_TYPE_DEVMAP*
      does not have it set.
      
      Add bugfix and related selftest.
      
      ---
      Changes in v4:
      - return -> goto out_close, thanks Toke
      - Link to v3: https://lore.kernel.org/r/20240909-devel-koalo-fix-ingress-ifindex-v3-0-66218191ecca@linutronix.de
      
      Changes in v3:
      - initialize skel to NULL, thanks Stanislav
      - Link to v2: https://lore.kernel.org/r/20240906-devel-koalo-fix-ingress-ifindex-v2-0-4caa12c644b4@linutronix.de
      
      Changes in v2:
      - changed fixes tag
      - added selftest
      - Link to v1: https://lore.kernel.org/r/20240905-devel-koalo-fix-ingress-ifindex-v1-1-d12a0d74c29c@linutronix.de
      ====================
      Signed-off-by: default avatarMartin KaFai Lau <martin.lau@kernel.org>
      bcd28cfd
    • Florian Kauer's avatar
      bpf: selftests: send packet to devmap redirect XDP · 49ebeb0c
      Florian Kauer authored
      The current xdp_devmap_attach test attaches a program
      that redirects to another program via devmap.
      
      It is, however, never executed, so do that to catch
      any bugs that might occur during execution.
      
      Also, execute the same for a veth pair so that we
      also cover the non-generic path.
      
      Warning: Running this without the bugfix in this series
      will likely crash your system.
      Signed-off-by: default avatarFlorian Kauer <florian.kauer@linutronix.de>
      Reviewed-by: default avatarToke Høiland-Jørgensen <toke@redhat.com>
      Link: https://lore.kernel.org/r/20240911-devel-koalo-fix-ingress-ifindex-v4-2-5c643ae10258@linutronix.deSigned-off-by: default avatarMartin KaFai Lau <martin.lau@kernel.org>
      49ebeb0c
    • Florian Kauer's avatar
      bpf: devmap: provide rxq after redirect · ca9984c5
      Florian Kauer authored
      rxq contains a pointer to the device from where
      the redirect happened. Currently, the BPF program
      that was executed after a redirect via BPF_MAP_TYPE_DEVMAP*
      does not have it set.
      
      This is particularly bad since accessing ingress_ifindex, e.g.
      
      SEC("xdp")
      int prog(struct xdp_md *pkt)
      {
              return bpf_redirect_map(&dev_redirect_map, 0, 0);
      }
      
      SEC("xdp/devmap")
      int prog_after_redirect(struct xdp_md *pkt)
      {
              bpf_printk("ifindex %i", pkt->ingress_ifindex);
              return XDP_PASS;
      }
      
      depends on access to rxq, so a NULL pointer gets dereferenced:
      
      <1>[  574.475170] BUG: kernel NULL pointer dereference, address: 0000000000000000
      <1>[  574.475188] #PF: supervisor read access in kernel mode
      <1>[  574.475194] #PF: error_code(0x0000) - not-present page
      <6>[  574.475199] PGD 0 P4D 0
      <4>[  574.475207] Oops: Oops: 0000 [#1] PREEMPT SMP NOPTI
      <4>[  574.475217] CPU: 4 UID: 0 PID: 217 Comm: kworker/4:1 Not tainted 6.11.0-rc5-reduced-00859-g78080120 #23
      <4>[  574.475226] Hardware name: Intel(R) Client Systems NUC13ANHi7/NUC13ANBi7, BIOS ANRPL357.0026.2023.0314.1458 03/14/2023
      <4>[  574.475231] Workqueue: mld mld_ifc_work
      <4>[  574.475247] RIP: 0010:bpf_prog_5e13354d9cf5018a_prog_after_redirect+0x17/0x3c
      <4>[  574.475257] Code: cc cc cc cc cc cc cc 80 00 00 00 cc cc cc cc cc cc cc cc f3 0f 1e fa 0f 1f 44 00 00 66 90 55 48 89 e5 f3 0f 1e fa 48 8b 57 20 <48> 8b 52 00 8b 92 e0 00 00 00 48 bf f8 a6 d5 c4 5d a0 ff ff be 0b
      <4>[  574.475263] RSP: 0018:ffffa62440280c98 EFLAGS: 00010206
      <4>[  574.475269] RAX: ffffa62440280cd8 RBX: 0000000000000001 RCX: 0000000000000000
      <4>[  574.475274] RDX: 0000000000000000 RSI: ffffa62440549048 RDI: ffffa62440280ce0
      <4>[  574.475278] RBP: ffffa62440280c98 R08: 0000000000000002 R09: 0000000000000001
      <4>[  574.475281] R10: ffffa05dc8b98000 R11: ffffa05f577fca40 R12: ffffa05dcab24000
      <4>[  574.475285] R13: ffffa62440280ce0 R14: ffffa62440549048 R15: ffffa62440549000
      <4>[  574.475289] FS:  0000000000000000(0000) GS:ffffa05f4f700000(0000) knlGS:0000000000000000
      <4>[  574.475294] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
      <4>[  574.475298] CR2: 0000000000000000 CR3: 000000025522e000 CR4: 0000000000f50ef0
      <4>[  574.475303] PKRU: 55555554
      <4>[  574.475306] Call Trace:
      <4>[  574.475313]  <IRQ>
      <4>[  574.475318]  ? __die+0x23/0x70
      <4>[  574.475329]  ? page_fault_oops+0x180/0x4c0
      <4>[  574.475339]  ? skb_pp_cow_data+0x34c/0x490
      <4>[  574.475346]  ? kmem_cache_free+0x257/0x280
      <4>[  574.475357]  ? exc_page_fault+0x67/0x150
      <4>[  574.475368]  ? asm_exc_page_fault+0x26/0x30
      <4>[  574.475381]  ? bpf_prog_5e13354d9cf5018a_prog_after_redirect+0x17/0x3c
      <4>[  574.475386]  bq_xmit_all+0x158/0x420
      <4>[  574.475397]  __dev_flush+0x30/0x90
      <4>[  574.475407]  veth_poll+0x216/0x250 [veth]
      <4>[  574.475421]  __napi_poll+0x28/0x1c0
      <4>[  574.475430]  net_rx_action+0x32d/0x3a0
      <4>[  574.475441]  handle_softirqs+0xcb/0x2c0
      <4>[  574.475451]  do_softirq+0x40/0x60
      <4>[  574.475458]  </IRQ>
      <4>[  574.475461]  <TASK>
      <4>[  574.475464]  __local_bh_enable_ip+0x66/0x70
      <4>[  574.475471]  __dev_queue_xmit+0x268/0xe40
      <4>[  574.475480]  ? selinux_ip_postroute+0x213/0x420
      <4>[  574.475491]  ? alloc_skb_with_frags+0x4a/0x1d0
      <4>[  574.475502]  ip6_finish_output2+0x2be/0x640
      <4>[  574.475512]  ? nf_hook_slow+0x42/0xf0
      <4>[  574.475521]  ip6_finish_output+0x194/0x300
      <4>[  574.475529]  ? __pfx_ip6_finish_output+0x10/0x10
      <4>[  574.475538]  mld_sendpack+0x17c/0x240
      <4>[  574.475548]  mld_ifc_work+0x192/0x410
      <4>[  574.475557]  process_one_work+0x15d/0x380
      <4>[  574.475566]  worker_thread+0x29d/0x3a0
      <4>[  574.475573]  ? __pfx_worker_thread+0x10/0x10
      <4>[  574.475580]  ? __pfx_worker_thread+0x10/0x10
      <4>[  574.475587]  kthread+0xcd/0x100
      <4>[  574.475597]  ? __pfx_kthread+0x10/0x10
      <4>[  574.475606]  ret_from_fork+0x31/0x50
      <4>[  574.475615]  ? __pfx_kthread+0x10/0x10
      <4>[  574.475623]  ret_from_fork_asm+0x1a/0x30
      <4>[  574.475635]  </TASK>
      <4>[  574.475637] Modules linked in: veth br_netfilter bridge stp llc iwlmvm x86_pkg_temp_thermal iwlwifi efivarfs nvme nvme_core
      <4>[  574.475662] CR2: 0000000000000000
      <4>[  574.475668] ---[ end trace 0000000000000000 ]---
      
      Therefore, provide it to the program by setting rxq properly.
      
      Fixes: cb261b59 ("bpf: Run devmap xdp_prog on flush instead of bulk enqueue")
      Reviewed-by: default avatarToke Høiland-Jørgensen <toke@redhat.com>
      Signed-off-by: default avatarFlorian Kauer <florian.kauer@linutronix.de>
      Acked-by: default avatarJakub Kicinski <kuba@kernel.org>
      Link: https://lore.kernel.org/r/20240911-devel-koalo-fix-ingress-ifindex-v4-1-5c643ae10258@linutronix.deSigned-off-by: default avatarMartin KaFai Lau <martin.lau@kernel.org>
      ca9984c5
  2. 01 Oct, 2024 4 commits
  3. 25 Sep, 2024 1 commit
    • Wander Lairson Costa's avatar
      bpf: Use raw_spinlock_t in ringbuf · 8b62645b
      Wander Lairson Costa authored
      The function __bpf_ringbuf_reserve is invoked from a tracepoint, which
      disables preemption. Using spinlock_t in this context can lead to a
      "sleep in atomic" warning in the RT variant. This issue is illustrated
      in the example below:
      
      BUG: sleeping function called from invalid context at kernel/locking/spinlock_rt.c:48
      in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 556208, name: test_progs
      preempt_count: 1, expected: 0
      RCU nest depth: 1, expected: 1
      INFO: lockdep is turned off.
      Preemption disabled at:
      [<ffffd33a5c88ea44>] migrate_enable+0xc0/0x39c
      CPU: 7 PID: 556208 Comm: test_progs Tainted: G
      Hardware name: Qualcomm SA8775P Ride (DT)
      Call trace:
       dump_backtrace+0xac/0x130
       show_stack+0x1c/0x30
       dump_stack_lvl+0xac/0xe8
       dump_stack+0x18/0x30
       __might_resched+0x3bc/0x4fc
       rt_spin_lock+0x8c/0x1a4
       __bpf_ringbuf_reserve+0xc4/0x254
       bpf_ringbuf_reserve_dynptr+0x5c/0xdc
       bpf_prog_ac3d15160d62622a_test_read_write+0x104/0x238
       trace_call_bpf+0x238/0x774
       perf_call_bpf_enter.isra.0+0x104/0x194
       perf_syscall_enter+0x2f8/0x510
       trace_sys_enter+0x39c/0x564
       syscall_trace_enter+0x220/0x3c0
       do_el0_svc+0x138/0x1dc
       el0_svc+0x54/0x130
       el0t_64_sync_handler+0x134/0x150
       el0t_64_sync+0x17c/0x180
      
      Switch the spinlock to raw_spinlock_t to avoid this error.
      
      Fixes: 457f4436 ("bpf: Implement BPF ring buffer and verifier support for it")
      Reported-by: default avatarBrian Grech <bgrech@redhat.com>
      Signed-off-by: default avatarWander Lairson Costa <wander.lairson@gmail.com>
      Signed-off-by: default avatarWander Lairson Costa <wander@redhat.com>
      Signed-off-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
      Acked-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
      Link: https://lore.kernel.org/r/20240920190700.617253-1-wander@redhat.com
      8b62645b
  4. 24 Sep, 2024 29 commits
    • Linus Torvalds's avatar
      Merge tag 'nfs-for-6.12-1' of git://git.linux-nfs.org/projects/anna/linux-nfs · 684a64bf
      Linus Torvalds authored
      Pull NFS client updates from Anna Schumaker:
       "New Features:
         - Add a 'noalignwrite' mount option for lock-less 'lost writes' prevention
         - Add support for the LOCALIO protocol extention
      
        Bugfixes:
         - Fix memory leak in error path of nfs4_do_reclaim()
         - Simplify and guarantee lock owner uniqueness
         - Fix -Wformat-truncation warning
         - Fix folio refcounts by using folio_attach_private()
         - Fix failing the mount system call when the server is down
         - Fix detection of "Proxying of Times" server support
      
        Cleanups:
         - Annotate struct nfs_cache_array with __counted_by()
         - Remove unnecessary NULL checks before kfree()
         - Convert RPC_TASK_* constants to an enum
         - Remove obsolete or misleading comments and declerations"
      
      * tag 'nfs-for-6.12-1' of git://git.linux-nfs.org/projects/anna/linux-nfs: (41 commits)
        nfs: Fix `make htmldocs` warnings in the localio documentation
        nfs: add "NFS Client and Server Interlock" section to localio.rst
        nfs: add FAQ section to Documentation/filesystems/nfs/localio.rst
        nfs: add Documentation/filesystems/nfs/localio.rst
        nfs: implement client support for NFS_LOCALIO_PROGRAM
        nfs/localio: use dedicated workqueues for filesystem read and write
        pnfs/flexfiles: enable localio support
        nfs: enable localio for non-pNFS IO
        nfs: add LOCALIO support
        nfs: pass struct nfsd_file to nfs_init_pgio and nfs_init_commit
        nfsd: implement server support for NFS_LOCALIO_PROGRAM
        nfsd: add LOCALIO support
        nfs_common: prepare for the NFS client to use nfsd_file for LOCALIO
        nfs_common: add NFS LOCALIO auxiliary protocol enablement
        SUNRPC: replace program list with program array
        SUNRPC: add svcauth_map_clnt_to_svc_cred_local
        SUNRPC: remove call_allocate() BUG_ONs
        nfsd: add nfsd_serv_try_get and nfsd_serv_put
        nfsd: add nfsd_file_acquire_local()
        nfsd: factor out __fh_verify to allow NULL rqstp to be passed
        ...
      684a64bf
    • Linus Torvalds's avatar
      Merge tag 'fuse-update-6.12' of git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/fuse · f7fccaa7
      Linus Torvalds authored
      Pull fuse updates from Miklos Szeredi:
      
       - Add support for idmapped fuse mounts (Alexander Mikhalitsyn)
      
       - Add optimization when checking for writeback (yangyun)
      
       - Add tracepoints (Josef Bacik)
      
       - Clean up writeback code (Joanne Koong)
      
       - Clean up request queuing (me)
      
       - Misc fixes
      
      * tag 'fuse-update-6.12' of git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/fuse: (32 commits)
        fuse: use exclusive lock when FUSE_I_CACHE_IO_MODE is set
        fuse: clear FR_PENDING if abort is detected when sending request
        fs/fuse: convert to use invalid_mnt_idmap
        fs/mnt_idmapping: introduce an invalid_mnt_idmap
        fs/fuse: introduce and use fuse_simple_idmap_request() helper
        fs/fuse: fix null-ptr-deref when checking SB_I_NOIDMAP flag
        fuse: allow O_PATH fd for FUSE_DEV_IOC_BACKING_OPEN
        virtio_fs: allow idmapped mounts
        fuse: allow idmapped mounts
        fuse: warn if fuse_access is called when idmapped mounts are allowed
        fuse: handle idmappings properly in ->write_iter()
        fuse: support idmapped ->rename op
        fuse: support idmapped ->set_acl
        fuse: drop idmap argument from __fuse_get_acl
        fuse: support idmapped ->setattr op
        fuse: support idmapped ->permission inode op
        fuse: support idmapped getattr inode op
        fuse: support idmap for mkdir/mknod/symlink/create/tmpfile
        fuse: support idmapped FUSE_EXT_GROUPS
        fuse: add an idmap argument to fuse_simple_request
        ...
      f7fccaa7
    • Linus Torvalds's avatar
      Merge tag 'exfat-for-6.12-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/linkinjeon/exfat · 4165cee7
      Linus Torvalds authored
      Pull exfat updates from Namjae Jeon:
      
       - Clean-up unnecessary codes as ->valid_size is supported
      
       - buffered-IO fallback is no longer needed when using direct-IO
      
       - Move ->valid_size extension from mmap to ->page_mkwrite. This
         improves the overhead caused by unnecessary zero-out during mmap.
      
       - Fix memleaks from exfat_load_bitmap() and exfat_create_upcase_table()
      
       - Add sops->shutdown and ioctl
      
       - Add Yuezhang Mo as a reviwer
      
      * tag 'exfat-for-6.12-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/linkinjeon/exfat:
        MAINTAINERS: exfat: add myself as reviewer
        exfat: resolve memory leak from exfat_create_upcase_table()
        exfat: move extend valid_size into ->page_mkwrite()
        exfat: fix memory leak in exfat_load_bitmap()
        exfat: Implement sops->shutdown and ioctl
        exfat: do not fallback to buffered write
        exfat: drop ->i_size_ondisk
      4165cee7
    • Linus Torvalds's avatar
      Merge tag 'f2fs-for-6.12-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs · 79952bdc
      Linus Torvalds authored
      Pull f2fs updates from Jaegeuk Kim:
       "The main changes include converting major IO paths to use folio, and
        adding various knobs to control GC more flexibly for Zoned devices.
      
        In addition, there are several patches to address corner cases of
        atomic file operations and better support for file pinning on zoned
        device.
      
        Enhancement:
         - add knobs to tune foreground/background GCs for Zoned devices
         - convert IO paths to use folio
         - reduce expensive checkpoint trigger frequency
         - allow F2FS_IPU_NOCACHE for pinned file
         - forcibly migrate to secure space for zoned device file pinning
         - get rid of buffer_head use
         - add write priority option based on zone UFS
         - get rid of online repair on corrupted directory
      
        Bug fixes:
         - fix to don't panic system for no free segment fault injection
         - fix to don't set SB_RDONLY in f2fs_handle_critical_error()
         - avoid unused block when dio write in LFS mode
         - compress: don't redirty sparse cluster during {,de}compress
         - check discard support for conventional zones
         - atomic: prevent atomic file from being dirtied before commit
         - atomic: fix to check atomic_file in f2fs ioctl interfaces
         - atomic: fix to forbid dio in atomic_file
         - atomic: fix to truncate pagecache before on-disk metadata truncation
         - atomic: create COW inode from parent dentry
         - atomic: fix to avoid racing w/ GC
         - atomic: require FMODE_WRITE for atomic write ioctls
         - fix to wait page writeback before setting gcing flag
         - fix to avoid racing in between read and OPU dio write, dio completion
         - fix several potential integer overflows in file offsets and dir_block_index
         - fix to avoid use-after-free in f2fs_stop_gc_thread()
      
        As usual, there are several code clean-ups and refactorings"
      
      * tag 'f2fs-for-6.12-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs: (60 commits)
        f2fs: allow F2FS_IPU_NOCACHE for pinned file
        f2fs: forcibly migrate to secure space for zoned device file pinning
        f2fs: remove unused parameters
        f2fs: fix to don't panic system for no free segment fault injection
        f2fs: fix to don't set SB_RDONLY in f2fs_handle_critical_error()
        f2fs: add valid block ratio not to do excessive GC for one time GC
        f2fs: create gc_no_zoned_gc_percent and gc_boost_zoned_gc_percent
        f2fs: do FG_GC when GC boosting is required for zoned devices
        f2fs: increase BG GC migration window granularity when boosted for zoned devices
        f2fs: add reserved_segments sysfs node
        f2fs: introduce migration_window_granularity
        f2fs: make BG GC more aggressive for zoned devices
        f2fs: avoid unused block when dio write in LFS mode
        f2fs: fix to check atomic_file in f2fs ioctl interfaces
        f2fs: get rid of online repaire on corrupted directory
        f2fs: prevent atomic file from being dirtied before commit
        f2fs: get rid of page->index
        f2fs: convert read_node_page() to use folio
        f2fs: convert __write_node_page() to use folio
        f2fs: convert f2fs_write_data_page() to use folio
        ...
      79952bdc
    • Linus Torvalds's avatar
      Merge tag 'bpf-next-6.12-struct-fd' of git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next · fa8380a0
      Linus Torvalds authored
      Pull bpf 'struct fd' updates from Alexei Starovoitov:
       "This includes struct_fd BPF changes from Al and Andrii"
      
      * tag 'bpf-next-6.12-struct-fd' of git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next:
        bpf: convert bpf_token_create() to CLASS(fd, ...)
        security,bpf: constify struct path in bpf_token_create() LSM hook
        bpf: more trivial fdget() conversions
        bpf: trivial conversions for fdget()
        bpf: switch maps to CLASS(fd, ...)
        bpf: factor out fetching bpf_map from FD and adding it to used_maps list
        bpf: switch fdget_raw() uses to CLASS(fd_raw, ...)
        bpf: convert __bpf_prog_get() to CLASS(fd, ...)
      fa8380a0
    • Linus Torvalds's avatar
      Merge tag 'kbuild-v6.12' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild · 68e5c7d4
      Linus Torvalds authored
      Pull Kbuild updates from Masahiro Yamada:
      
       - Support cross-compiling linux-headers Debian package and kernel-devel
         RPM package
      
       - Add support for the linux-debug Pacman package
      
       - Improve module rebuilding speed by factoring out the common code to
         scripts/module-common.c
      
       - Separate device tree build rules into scripts/Makefile.dtbs
      
       - Add a new script to generate modules.builtin.ranges, which is useful
         for tracing tools to find symbols in built-in modules
      
       - Refactor Kconfig and misc tools
      
       - Update Kbuild and Kconfig documentation
      
      * tag 'kbuild-v6.12' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild: (51 commits)
        kbuild: doc: replace "gcc" in external module description
        kbuild: doc: describe the -C option precisely for external module builds
        kbuild: doc: remove the description about shipped files
        kbuild: doc: drop section numbering, use references in modules.rst
        kbuild: doc: throw out the local table of contents in modules.rst
        kbuild: doc: remove outdated description of the limitation on -I usage
        kbuild: doc: remove description about grepping CONFIG options
        kbuild: doc: update the description about Kbuild/Makefile split
        kbuild: remove unnecessary export of RUST_LIB_SRC
        kbuild: remove append operation on cmd_ld_ko_o
        kconfig: cache expression values
        kconfig: use hash table to reuse expressions
        kconfig: refactor expr_eliminate_dups()
        kconfig: add comments to expression transformations
        kconfig: change some expr_*() functions to bool
        scripts: move hash function from scripts/kconfig/ to scripts/include/
        kallsyms: change overflow variable to bool type
        kallsyms: squash output_address()
        kbuild: add install target for modules.builtin.ranges
        scripts: add verifier script for builtin module range data
        ...
      68e5c7d4
    • Linus Torvalds's avatar
      Merge tag 'linux-cpupower-6.12-rc1-fixes' of... · 7f8de2bf
      Linus Torvalds authored
      Merge tag 'linux-cpupower-6.12-rc1-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux
      
      Pull cpupower updates from Shuah Khan
       "The 'raw_pylibcpupower.i' file was being removed by "make mrproper".
      
        That was because '*.i', '.s' and '*.o' files are generated during
        kernel compile and removed when the repo is cleaned by mrproper.
      
        Rename it to use .swg extension instead to avoid the problem.
      
        A second patch removes references to it from .gitignore"
      
      * tag 'linux-cpupower-6.12-rc1-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux:
        pm: cpupower: Clean up bindings gitignore
        pm: cpupower: rename raw_pylibcpupower.i
      7f8de2bf
    • Linus Torvalds's avatar
      Merge tag 'i3c/for-6.12' of git://git.kernel.org/pub/scm/linux/kernel/git/i3c/linux · cd3d6477
      Linus Torvalds authored
      Pull i3c updates from Alexandre Belloni:
       "This adds support for the I3C HCI controller of the AMD SoC which as
        expected requires quirks. Also fixes for the other drivers, including
        rate selection fixes for svc.
      
        Core:
         - allow adjusting first broadcast address speed
      
        Drivers:
         - cdns: few fixes
         - mipi-i3c-hci: Add AMD SoC I3C controller support and quirks, fix
           get_i3c_mode
         - svc: adjust rates, fix race condition"
      
      * tag 'i3c/for-6.12' of git://git.kernel.org/pub/scm/linux/kernel/git/i3c/linux:
        i3c: master: svc: Fix use after free vulnerability in svc_i3c_master Driver Due to Race Condition
        i3c: master: cdns: Fix use after free vulnerability in cdns_i3c_master Driver Due to Race Condition
        i3c: master: svc: adjust SDR according to i3c spec
        i3c: master: svc: use slow speed for first broadcast address
        i3c: master: support to adjust first broadcast address speed
        i3c/master: cmd_v1: Fix the rule for getting i3c mode
        i3c: master: cdns: fix module autoloading
        i3c: mipi-i3c-hci: Add a quirk to set Response buffer threshold
        i3c: mipi-i3c-hci: Add a quirk to set timing parameters
        i3c: mipi-i3c-hci: Relocate helper macros to HCI header file
        i3c: mipi-i3c-hci: Add a quirk to set PIO mode
        i3c: mipi-i3c-hci: Read HC_CONTROL_PIO_MODE only after i3c hci v1.1
        i3c: mipi-i3c-hci: Add AMDI5017 ACPI ID to the I3C Support List
      cd3d6477
    • Linus Torvalds's avatar
      remoteproc: k3-m4: use the proper dependencies · ba0c0cb5
      Linus Torvalds authored
      The TI_K3_M4_REMOTEPROC Kconfig entry selects OMAP2PLUS_MBOX, but that
      driver in turn depends on other things, which the k4-m4 driver didn't.
      
      This causes a Kconfig time warning:
      
        WARNING: unmet direct dependencies detected for OMAP2PLUS_MBOX
          Depends on [n]: MAILBOX [=y] && (ARCH_OMAP2PLUS || ARCH_K3)
          Selected by [m]:
          - TI_K3_M4_REMOTEPROC [=m] && REMOTEPROC [=y] && (ARCH_K3 || COMPILE_TEST [=y])
      
      because you can't select something that is unavailable.
      
      Make the dependencies for TI_K3_M4_REMOTEPROC match those of the
      OMAP2PLUS_MBOX driver that it needs.
      
      Fixes: ebcf9008 ("remoteproc: k3-m4: Add a remoteproc driver for M4F subsystem")
      Cc: Bjorn Andersson <andersson@kernel.org>
      Cc: Martyn Welch <martyn.welch@collabora.com>
      Cc: Hari Nagalla <hnagalla@ti.com>
      Cc: Andrew Davis <afd@ti.com>
      Cc: Mathieu Poirier <mathieu.poirier@linaro.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      ba0c0cb5
    • Linus Torvalds's avatar
      Merge tag 'input-for-v6.12-rc0' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input · 9ae2940c
      Linus Torvalds authored
      Pull input updates from Dmitry Torokhov:
      
       - support for PixArt PS/2 touchpad
      
       - updates to tsc2004/5, usbtouchscreen, and zforce_ts drivers
      
       - support for GPIO-only mode for ADP55888 controller
      
       - support for touch keys in Zinitix driver
      
       - support for querying density of Synaptics sensors
      
       - sysfs interface for Goodex "Berlin" devices to read and write touch
         IC registers
      
       - more quirks to i8042 to handle various Tuxedo laptops
      
       - a number of drivers have been converted to using "guard" notation
         when acquiring various locks, as well as using other cleanup
         functions to simplify releasing of resources (with more drivers to
         follow)
      
       - evdev will limit amount of data that can be written into an evdev
         instance at a given time to 4096 bytes (170 input events) to avoid
         holding evdev->mutex for too long and starving other users
      
       - Spitz has been converted to use software nodes/properties to describe
         its matrix keypad and GPIO-connected LEDs
      
       - msc5000_ts, msc_touchkey and keypad-nomadik-ske drivers have been
         removed since noone in mainline have been using them
      
       - other assorted cleanups and fixes
      
      * tag 'input-for-v6.12-rc0' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input: (98 commits)
        ARM: spitz: fix compile error when matrix keypad driver is enabled
        Input: hynitron_cstxxx - drop explicit initialization of struct i2c_device_id::driver_data to 0
        Input: adp5588-keys - fix check on return code
        Input: Convert comma to semicolon
        Input: i8042 - add TUXEDO Stellaris 15 Slim Gen6 AMD to i8042 quirk table
        Input: i8042 - add another board name for TUXEDO Stellaris Gen5 AMD line
        Input: tegra-kbc - use of_property_read_variable_u32_array() and of_property_present()
        Input: ps2-gpio - use IRQF_NO_AUTOEN flag in request_irq()
        Input: ims-pcu - fix calling interruptible mutex
        Input: zforce_ts - switch to using asynchronous probing
        Input: zforce_ts - remove assert/deassert wrappers
        Input: zforce_ts - do not hardcode interrupt level
        Input: zforce_ts - switch to using devm_regulator_get_enable()
        Input: zforce_ts - stop treating VDD regulator as optional
        Input: zforce_ts - make zforce_idtable constant
        Input: zforce_ts - use dev_err_probe() where appropriate
        Input: zforce_ts - do not ignore errors when acquiring regulator
        Input: zforce_ts - make parsing of contacts less confusing
        Input: zforce_ts - switch to using get_unaligned_le16
        Input: zforce_ts - use guard notation when acquiring mutexes
        ...
      9ae2940c
    • Linus Torvalds's avatar
      Merge tag 'hwlock-v6.12' of git://git.kernel.org/pub/scm/linux/kernel/git/remoteproc/linux · 6db6a19f
      Linus Torvalds authored
      Pull hwspinlock update from Bjorn Andersson:
       "This converts the Spreadtrum hardware spinlock DeviceTree binding to
        YAML, to allow validation of related DeviceTree source"
      
      * tag 'hwlock-v6.12' of git://git.kernel.org/pub/scm/linux/kernel/git/remoteproc/linux:
        dt-bindings: hwlock: sprd-hwspinlock: convert to YAML
      6db6a19f
    • Linus Torvalds's avatar
      Merge tag 'rpmsg-v6.12' of git://git.kernel.org/pub/scm/linux/kernel/git/remoteproc/linux · 6e10aa1f
      Linus Torvalds authored
      Pull rpmsg updates from Bjorn Andersson:
      
       - Minor cleanup/refactor to the Qualcomm GLINK code, in order to add
         trace events related to the messages exchange with the remote side,
         useful for debugging a range of interoperability issues
      
       - Rewrite the nested structs with flexible array members in order to
         avoid the risk of invalid accesses
      
      * tag 'rpmsg-v6.12' of git://git.kernel.org/pub/scm/linux/kernel/git/remoteproc/linux:
        rpmsg: glink: Avoid -Wflex-array-member-not-at-end warnings
        rpmsg: glink: Introduce packet tracepoints
        rpmsg: glink: Pass channel to qcom_glink_send_close_ack()
        rpmsg: glink: Tidy up RX advance handling
      6e10aa1f
    • Linus Torvalds's avatar
      Merge tag 'rproc-v6.12' of git://git.kernel.org/pub/scm/linux/kernel/git/remoteproc/linux · 5c480f1d
      Linus Torvalds authored
      Pull remoteproc updates from Bjorn Andersson:
      
       - Add remoteproc support for the Cortex M4F found in AM62x and AM64x of
         the TI K3 family, support for the modem remoteproc in the Qualcomm
         SDX75, and audio, compute and general-purpose DSPs of the Qualcomm
         SA8775P.
      
       - Add support for blocking and non-blocking mailbox transmissions to
         the i.MX remoteproc driver, and implement poweroff and reboot
         mechanisms using them. Plus a few bug fixes and minor improvements.
      
       - Cleanups and bug fixes for the TI K3 DSP and R5F drivers
      
       - Support mapping SRAM regions into the AMD-Xilinx Zynqmp R5 cores
      
       - Use devres helpers for various allocations in the Ingenic, TI DA8xx,
         TI Keystone, TI K3, ST slim drivers
      
       - Replace uses of of_{find,get}_property() with of_property_present()
         where possible
      
      * tag 'rproc-v6.12' of git://git.kernel.org/pub/scm/linux/kernel/git/remoteproc/linux: (25 commits)
        remoteporc: ingenic: Use devm_platform_ioremap_resource_byname()
        remoteproc: da8xx: Use devm_platform_ioremap_resource_byname()
        remoteproc: st_slim: Use devm_platform_ioremap_resource_byname()
        remoteproc: xlnx: Add sram support
        remoteproc: k3-r5: Fix error handling when power-up failed
        remoteproc: imx_rproc: Add support for poweroff and reboot
        remoteproc: imx_rproc: Allow setting of the mailbox transmit mode
        remoteproc: k3-r5: Delay notification of wakeup event
        remoteproc: k3-m4: Add a remoteproc driver for M4F subsystem
        remoteproc: k3: Factor out TI-SCI processor control OF get function
        dt-bindings: remoteproc: k3-m4f: Add K3 AM64x SoCs
        remoteproc: k3-dsp: Acquire mailbox handle during probe routine
        remoteproc: k3-r5: Acquire mailbox handle during probe routine
        remoteproc: k3-r5: Use devm_rproc_alloc() helper
        remoteproc: qcom: pas: Add support for SA8775p ADSP, CDSP and GPDSP
        remoteproc: qcom: pas: Add SDX75 remoteproc support
        dt-bindings: remoteproc: qcom,sm8550-pas: document the SDX75 PAS
        remoteproc: keystone: Use devm_rproc_alloc() helper
        remoteproc: keystone: Use devm_kasprintf() to build name string
        dt-bindings: remoteproc: xlnx,zynqmp-r5fss: Add missing "additionalProperties" on child nodes
        ...
      5c480f1d
    • Linus Torvalds's avatar
      Merge tag 'vfio-v6.12-rc1' of https://github.com/awilliam/linux-vfio · 7bc21c5e
      Linus Torvalds authored
      Pull VFIO updates from Alex Williamson:
       "Just a few cleanups this cycle:
      
         - Remove several unused structure and function declarations, and
           unused variables (Dr. David Alan Gilbert, Yue Haibing, Zhang Zekun)
      
         - Constify unmodified structure in mdev (Hongbo Li)
      
         - Convert to unsigned type to catch overflow with less fanfare than
           passing a negative value to kcalloc() (Dan Carpenter)"
      
      * tag 'vfio-v6.12-rc1' of https://github.com/awilliam/linux-vfio:
        vfio/pci: clean up a type in vfio_pci_ioctl_pci_hot_reset_groups()
        vfio/mdev: Constify struct kobj_type
        vfio: mdev: Remove unused function declarations
        vfio/fsl-mc: Remove unused variable 'hwirq'
        vfio/pci: Remove unused struct 'vfio_pci_mmap_vma'
      7bc21c5e
    • Linus Torvalds's avatar
      Merge tag 'dma-mapping-6.12-2024-09-24' of git://git.infradead.org/users/hch/dma-mapping · 4491b854
      Linus Torvalds authored
      Pull dma-mapping fixes from Christoph Hellwig:
      
       - sort out a few issues with the direct calls to iommu-dma (Christoph
         Hellwig, Leon Romanovsky)
      
      * tag 'dma-mapping-6.12-2024-09-24' of git://git.infradead.org/users/hch/dma-mapping:
        dma-mapping: report unlimited DMA addressing in IOMMU DMA path
        iommu/dma: remove most stubs in iommu-dma.h
        dma-mapping: fix vmap and mmap of noncontiougs allocations
      4491b854
    • Linus Torvalds's avatar
      Merge tag 'for-linus-iommufd' of git://git.kernel.org/pub/scm/linux/kernel/git/jgg/iommufd · db78436b
      Linus Torvalds authored
      Pull iommufd updates from Jason Gunthorpe:
       "Collection of small cleanup and one fix:
      
         - Sort headers and struct forward declarations
      
         - Fix random selftest failures in some cases due to dirty tracking
           tests
      
         - Have the reserved IOVA regions mechanism work when a HWPT is used
           as a nesting parent. This updates the nesting parent's IOAS with
           the reserved regions of the device and will also install the ITS
           doorbell page on ARM.
      
         - Add missed validation of parent domain ops against the current
           iommu
      
         - Fix a syzkaller bug related to integer overflow during ALIGN()
      
         - Tidy two iommu_domain attach paths"
      
      * tag 'for-linus-iommufd' of git://git.kernel.org/pub/scm/linux/kernel/git/jgg/iommufd:
        iommu: Set iommu_attach_handle->domain in core
        iommufd: Avoid duplicated __iommu_group_set_core_domain() call
        iommufd: Protect against overflow of ALIGN() during iova allocation
        iommufd: Reorder struct forward declarations
        iommufd: Check the domain owner of the parent before creating a nesting domain
        iommufd/device: Enforce reserved IOVA also when attached to hwpt_nested
        iommufd/selftest: Fix buffer read overrrun in the dirty test
        iommufd: Reorder include files
      db78436b
    • Linus Torvalds's avatar
      Merge tag 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma · 54d7e819
      Linus Torvalds authored
      Pull rdma updates from Jason Gunthorpe:
       "Usual collection of small improvements and fixes, nothing especially
        stands out to me here.
      
        The new multipath PCI feature is a sign of things to come, I think we
        will see more of this in the next 10 years. Broadcom and HNS continue
        to update their drivers for their new HW generations.
      
        Summary:
      
         - Bug fixes and minor improvments in cxgb4, siw, mlx5, rxe, efa, rts,
           hfi, erdma, hns, irdma
      
         - Code cleanups/typos/etc. Tidy alloc_ordered_workqueue() calls
      
         - Multipath PCI for mlx5
      
         - Variable size work queue, SRQ changes, and relaxed ordering for new
           bnxt HW
      
         - New ODP fault resolution FW protocol in mlx5
      
         - New 'rdma monitor' netlink mechanism"
      
      * tag 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma: (99 commits)
        RDMA/bnxt_re: Remove the unused variable en_dev
        RDMA/nldev: Add missing break in rdma_nl_notify_err_msg()
        RDMA/irdma: fix error message in irdma_modify_qp_roce()
        RDMA/cxgb4: Added NULL check for lookup_atid
        RDMA/hns: Fix ah error counter in sw stat not increasing
        RDMA/bnxt_re: Recover the device when FW error is detected
        RDMA/bnxt_re: Group all operations under add_device and remove_device
        RDMA/bnxt_re: Use the aux device for L2 ULP callbacks
        RDMA/bnxt_re: Change aux driver data to en_info to hold more information
        RDMA/nldev: Expose whether RDMA monitoring is supported
        RDMA/nldev: Add support for RDMA monitoring
        RDMA/mlx5: Use IB set_netdev and get_netdev functions
        RDMA/device: Remove optimization in ib_device_get_netdev()
        RDMA/mlx5: Initialize phys_port_cnt earlier in RDMA device creation
        RDMA/mlx5: Obtain upper net device only when needed
        RDMA/mlx5: Check RoCE LAG status before getting netdev
        RDMA/mlx5: Consider the query_vuid cap for data_direct
        net/mlx5: Handle memory scheme ODP capabilities
        RDMA/mlx5: Add implicit MR handling to ODP memory scheme
        RDMA/mlx5: Add handling for memory scheme page fault events
        ...
      54d7e819
    • Linus Torvalds's avatar
      Merge tag 'sched_ext-for-6.12-rc1-fixes' of... · 6fa6588e
      Linus Torvalds authored
      Merge tag 'sched_ext-for-6.12-rc1-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/sched_ext
      
      Pull sched_ext fixes from Tejun Heo:
      
       - Three build fixes
      
       - The fix for a stall bug introduced by a recent optimization in sched
         core (SM_IDLE)
      
       - Addition of /sys/kernel/sched_ext/enable_seq. While not a fix, it is
         a simple addition that distro people want to be able to tell whether
         an SCX scheduler has ever been loaded on the system
      
      * tag 'sched_ext-for-6.12-rc1-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/sched_ext:
        sched_ext: Provide a sysfs enable_seq counter
        sched_ext: Fix build when !CONFIG_STACKTRACE
        sched, sched_ext: Disable SM_IDLE/rq empty path when scx_enabled()
        sched: Put task_group::idle under CONFIG_GROUP_SCHED_WEIGHT
        sched: Add dummy version of sched_group_set_idle()
      6fa6588e
    • Linus Torvalds's avatar
      Merge tag 'for-6.12/io_uring-20240922' of git://git.kernel.dk/linux · 3147a068
      Linus Torvalds authored
      Pull more io_uring updates from Jens Axboe:
       "Mostly just a set of fixes in here, or little changes that didn't get
        included in the initial pull request. This contains:
      
         - Move the SQPOLL napi polling outside the submission lock (Olivier)
      
         - Rename of the "copy buffers" API that got added in the 6.12 merge
           window. There's really no copying going on, it's just referencing
           the buffers. After a bit of consideration, decided that it was
           better to simply rename this to avoid potential confusion (me)
      
         - Shrink struct io_mapped_ubuf from 48 to 32 bytes, by changing it to
           start + len tracking rather than having start / end in there, and
           by removing the caching of folio_mask when we can just calculate it
           from folio_shift when we need it (me)
      
         - Fixes for the SQPOLL affinity checking (me, Felix)
      
         - Fix for how cqring waiting checks for the presence of task_work.
           Just check it directly rather than check for a specific
           notification mechanism (me)
      
         - Tweak to how request linking is represented in tracing (me)
      
         - Fix a syzbot report that deliberately sets up a huge list of
           overflow entries, and then hits rcu stalls when flushing this list.
           Just check for the need to preempt, and drop/reacquire locks in the
           loop. There's no state maintained over the loop itself, and each
           entry is yanked from head-of-list (me)"
      
      * tag 'for-6.12/io_uring-20240922' of git://git.kernel.dk/linux:
        io_uring: check if we need to reschedule during overflow flush
        io_uring: improve request linking trace
        io_uring: check for presence of task_work rather than TIF_NOTIFY_SIGNAL
        io_uring/sqpoll: do the napi busy poll outside the submission block
        io_uring: clean up a type in io_uring_register_get_file()
        io_uring/sqpoll: do not put cpumask on stack
        io_uring/sqpoll: retain test for whether the CPU is valid
        io_uring/rsrc: change ubuf->ubuf_end to length tracking
        io_uring/rsrc: get rid of io_mapped_ubuf->folio_mask
        io_uring: rename "copy buffers" to "clone buffers"
      3147a068
    • Linus Torvalds's avatar
      Merge tag 'sysctl-6.12-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/sysctl/sysctl · 172d5139
      Linus Torvalds authored
      Pull sysctl update from Joel Granados:
      
       - Avoid evaluating non-mount ctl_tables as a sysctl_mount_point by
         removing the unlikely (but possible) chance that the permanently
         empty ctl_table array shares its address with another ctl_table
      
       - Update Joel Granados' contact info in MAINTAINERS
      
      * tag 'sysctl-6.12-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/sysctl/sysctl:
        MAINTAINERS: update email for Joel Granados
        sysctl: avoid spurious permanent empty tables
      172d5139
    • Linus Torvalds's avatar
      Merge tag 'riscv-for-linus-6.12-mw1' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux · 97d8894b
      Linus Torvalds authored
      Pull RISC-V updates from Palmer Dabbelt:
      
       - Support using Zkr to seed KASLR
      
       - Support IPI-triggered CPU backtracing
      
       - Support for generic CPU vulnerabilities reporting to userspace
      
       - A few cleanups for missing licenses
      
       - The size limit on the XIP kernel has been removed
      
       - Support for tracing userspace stacks
      
       - Support for the Svvptc extension
      
       - Various cleanups and fixes throughout the tree
      
      * tag 'riscv-for-linus-6.12-mw1' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux: (47 commits)
        crash: Fix riscv64 crash memory reserve dead loop
        perf/riscv-sbi: Add platform specific firmware event handling
        tools: Optimize ring buffer for riscv
        tools: Add riscv barrier implementation
        RISC-V: Don't have MAX_PHYSMEM_BITS exceed phys_addr_t
        ACPI: NUMA: initialize all values of acpi_early_node_map to NUMA_NO_NODE
        riscv: Enable bitops instrumentation
        riscv: Omit optimized string routines when using KASAN
        ACPI: RISCV: Make acpi_numa_get_nid() to be static
        riscv: Randomize lower bits of stack address
        selftests: riscv: Allow mmap test to compile on 32-bit
        riscv: Make riscv_isa_vendor_ext_andes array static
        riscv: Use LIST_HEAD() to simplify code
        riscv: defconfig: Disable RZ/Five peripheral support
        RISC-V: Implement kgdb_roundup_cpus() to enable future NMI Roundup
        riscv: avoid Imbalance in RAS
        riscv: cacheinfo: Add back init_cache_level() function
        riscv: Remove unused _TIF_WORK_MASK
        drivers/perf: riscv: Remove redundant macro check
        riscv: define ILLEGAL_POINTER_VALUE for 64bit
        ...
      97d8894b
    • Linus Torvalds's avatar
      Merge tag 'm68knommu-for-v6.12' of git://git.kernel.org/pub/scm/linux/kernel/git/gerg/m68knommu · 7108fff8
      Linus Torvalds authored
      Pull m68knommu fixlet from Greg Ungerer:
       "Only a single change, cleaning up white space in debug message"
      
      * tag 'm68knommu-for-v6.12' of git://git.kernel.org/pub/scm/linux/kernel/git/gerg/m68knommu:
        m68k: remove trailing space after \n newline
      7108fff8
    • Linus Torvalds's avatar
      Merge tag 'v6.12-p2' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6 · 1cfb4605
      Linus Torvalds authored
      Pull crypto fixes from Herbert Xu:
      
       - Disable buggy p10 aes-gcm code on powerpc
      
       - Fix module aliases in paes_s390
      
       - Fix buffer overread in caam
      
      * tag 'v6.12-p2' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6:
        crypto: powerpc/p10-aes-gcm - Disable CRYPTO_AES_GCM_P10
        crypto: s390/paes - Fix module aliases
        crypto: caam - Pad SG length when allocating hash edesc
      1cfb4605
    • Linus Torvalds's avatar
      Merge tag 'landlock-6.12-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/mic/linux · e1b061b4
      Linus Torvalds authored
      Pull landlock updates from Mickaël Salaün:
       "We can now scope a Landlock domain thanks to a new "scoped" field that
        can deny interactions with resources outside of this domain.
      
        The LANDLOCK_SCOPE_ABSTRACT_UNIX_SOCKET flag denies connections to an
        abstract UNIX socket created outside of the current scoped domain, and
        the LANDLOCK_SCOPE_SIGNAL flag denies sending a signal to processes
        outside of the current scoped domain.
      
        These restrictions also apply to nested domains according to their
        scope. The related changes will also be useful to support other kind
        of IPC isolations"
      
      * tag 'landlock-6.12-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/mic/linux:
        landlock: Document LANDLOCK_SCOPE_SIGNAL
        samples/landlock: Add support for signal scoping
        selftests/landlock: Test signal created by out-of-bound message
        selftests/landlock: Test signal scoping for threads
        selftests/landlock: Test signal scoping
        landlock: Add signal scoping
        landlock: Document LANDLOCK_SCOPE_ABSTRACT_UNIX_SOCKET
        samples/landlock: Add support for abstract UNIX socket scoping
        selftests/landlock: Test inherited restriction of abstract UNIX socket
        selftests/landlock: Test connected and unconnected datagram UNIX socket
        selftests/landlock: Test UNIX sockets with any address formats
        selftests/landlock: Test abstract UNIX socket scoping
        selftests/landlock: Test handling of unknown scope
        landlock: Add abstract UNIX socket scoping
      e1b061b4
    • Linus Torvalds's avatar
      Merge tag 'keys-next-6.12-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/jarkko/linux-tpmdd · 24f772de
      Linus Torvalds authored
      Pull key updates from Jarkko Sakkinen:
       "The bulk of this is OpenSSL 3.0 compatibility fixes for the signing
        and certificates"
      
      * tag 'keys-next-6.12-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/jarkko/linux-tpmdd:
        sign-file,extract-cert: use pkcs11 provider for OPENSSL MAJOR >= 3
        sign-file,extract-cert: avoid using deprecated ERR_get_error_line()
        sign-file,extract-cert: move common SSL helper functions to a header
        KEYS: prevent NULL pointer dereference in find_asymmetric_key()
        KEYS: Remove unused declarations
      24f772de
    • Linus Torvalds's avatar
      Merge tag 'lsm-pr-20240923' of git://git.kernel.org/pub/scm/linux/kernel/git/pcmoore/lsm · 5c36498d
      Linus Torvalds authored
      Pull LSM fixes from Paul Moore:
      
       - Add a missing security_mmap_file() check to the remap_file_pages()
         syscall
      
       - Properly reference the SELinux and Smack LSM blobs in the
         security_watch_key() LSM hook
      
       - Fix a random IPE selftest crash caused by a missing list terminator
         in the test
      
      * tag 'lsm-pr-20240923' of git://git.kernel.org/pub/scm/linux/kernel/git/pcmoore/lsm:
        ipe: Add missing terminator to list of unit tests
        selinux,smack: properly reference the LSM blob in security_watch_key()
        mm: call the security_mmap_file() LSM hook in remap_file_pages()
      5c36498d
    • Anna Schumaker's avatar
      nfs: Fix `make htmldocs` warnings in the localio documentation · 68898131
      Anna Schumaker authored
      Reported-by: default avatarStephen Rothwell <sfr@canb.auug.org.au>
      Fixes: 92945bd8 ("nfs: add Documentation/filesystems/nfs/localio.rst")
      Signed-off-by: default avatarAnna Schumaker <anna.schumaker@oracle.com>
      68898131
    • yangyun's avatar
      fuse: use exclusive lock when FUSE_I_CACHE_IO_MODE is set · 2f3d8ff4
      yangyun authored
      This may be a typo. The comment has said shared locks are
      not allowed when this bit is set. If using shared lock, the
      wait in `fuse_file_cached_io_open` may be forever.
      
      Fixes: 205c1d80 ("fuse: allow parallel dio writes with FUSE_DIRECT_IO_ALLOW_MMAP")
      CC: stable@vger.kernel.org # v6.9
      Signed-off-by: default avataryangyun <yangyun50@huawei.com>
      Reviewed-by: default avatarBernd Schubert <bschubert@ddn.com>
      Signed-off-by: default avatarMiklos Szeredi <mszeredi@redhat.com>
      2f3d8ff4
    • Miklos Szeredi's avatar
      fuse: clear FR_PENDING if abort is detected when sending request · fcd2d9e1
      Miklos Szeredi authored
      The (!fiq->connected) check was moved into the queuing method resulting in
      the following:
      
      Fixes: 5de8acb4 ("fuse: cleanup request queuing towards virtiofs")
      Reported-by: default avatarLai, Yi <yi1.lai@linux.intel.com>
      Closes: https://lore.kernel.org/all/ZvFEAM6JfrBKsOU0@ly-workstation/Signed-off-by: default avatarMiklos Szeredi <mszeredi@redhat.com>
      fcd2d9e1
  5. 23 Sep, 2024 3 commits
    • Linus Torvalds's avatar
      Merge tag 'media/v6.12-1' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media · abf2050f
      Linus Torvalds authored
      Pull media updates from Mauro Carvalho Chehab:
      
       - New CEC driver: Extron DA HD 4K Plus
      
       - Lots of driver fixes, cleanups and improvements
      
      * tag 'media/v6.12-1' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media: (179 commits)
        media: atomisp: Use clamp() in ia_css_eed1_8_vmem_encode()
        media: atomisp: Fix eed1_8 code assigning signed values to an unsigned variable
        media: atomisp: set lock before calling vb2_queue_init()
        media: atomisp: Improve binary finding debug logging
        media: atomisp: Drop dev_dbg() calls from hmm_[alloc|free]()
        media: atomisp: csi2-bridge: Add DMI quirk for t4ka3 on Xiaomi Mipad2
        media: atomisp: add missing wait_prepare/finish ops
        media: atomisp: Remove unused declaration
        media: atomisp: use clamp() in compute_coring()
        media: atomisp: use clamp() in ia_css_eed1_8_encode()
        media: atomisp: Simplify ia_css_pipe_create_cas_scaler_desc_single_output()
        media: atomisp: Replace rarely used macro from math_support.h
        media: atomisp: Remove duplicated leftover, i.e. sh_css_dvs_info.h
        media: atomisp: bnr: fix trailing statement
        media: atomisp: move trailing */ to separate lines
        media: atomisp: move trailing statement to next line.
        media: atomisp: Fix trailing statement in ia_css_de.host.c
        media: atomisp: Fix spelling mistakes in atomisp.h
        media: atomisp: Fix spelling mistakes in atomisp_platform.h
        media: atomisp: Fix spelling mistake in csi_rx_public.h
        ...
      abf2050f
    • Linus Torvalds's avatar
      Merge tag 'clk-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/clk/linux · 9ab27b01
      Linus Torvalds authored
      Pull clk updates from Stephen Boyd:
       "The core clk framework is left largely untouched this time around
        except for support for the newly ratified DT property
        'assigned-clock-rates-u64'.
      
        I'm much more excited about the support for loading DT overlays from
        KUnit tests so that we can test how the clk framework parses DT nodes
        during clk registration. The clk framework has some places that are
        highly DeviceTree dependent so this charts the path to extend the
        KUnit tests to cover even more framework code in the future. I've got
        some more tests on the list that use the DT overlay support, but they
        uncovered issues with clk unregistration that I'm still working on
        fixing.
      
        Outside the core, the clk driver update pile is dominated by Qualcomm
        and Renesas SoCs, making it fairly usual. Looking closer, there are
        fixes for things all over the place, like adding missing clk
        frequencies or moving defines for the number of clks out of DT binding
        headers into the drivers. There are even conversions of DT bindings to
        YAML and migration away from strings to describe clk topology. Overall
        it doesn't look unusual so I expect the new drivers to be where we'll
        have fixes in the coming weeks.
      
        Core:
         - KUnit tests for clk registration and fixed rate basic clk type
         - A couple more devm helpers, one consumer and one provider
         - Support for assigned-clock-rates-u64
      
        New Drivers:
         - Camera, display and GPU clocks on Qualcomm SM4450
         - Camera clocks on Qualcomm SM8150
         - Rockchip rk3576 clks
         - Microchip SAM9X7 clks
         - Renesas RZ/V2H(P) (R9A09G057) clks
      
        Updates:
         - Mark a bunch of struct freq_tbl const to reduce .data usage
         - Add Qualcomm MSM8226 A7PLL and Regera PLL support
         - Fix the Qualcomm Lucid 5LPE PLL configuration sequence to not reuse
           Trion, as they do differ
         - A number of fixes to the Qualcomm SM8550 display clock driver
         - Fold Qualcomm SM8650 display clock driver into SM8550 one
         - Add missing clocks and GDSCs needed for audio on Qualcomm MSM8998
         - Add missing USB MP resets, GPLL9, and QUPv3 DFS to Qualcomm SC8180X
         - Fix sdcc clk frequency tables on Qualcomm SC8180X
         - Drop the Qualcomm SM8150 gcc_cpuss_ahb_clk_src
         - Mark Qualcomm PCIe GDSCs as RET_ON on sm8250 and sm8540 to avoid
           them turning off during suspend
         - Use the HW_CTRL mechanism on Qualcomm SM8550 video clock controller
           GDSCs
         - Get rid of CLK_NR_CLKS defines in Rockchip DT binding headers
         - Some fixes for Rockchip rk3228 and rk3588
         - Exynos850: Add clock for Thermal Management Unit
         - Exynos7885: Fix duplicated ID in the header, add missing TOP PLLs
           and add clocks for USB block in the FSYS clock controller
         - ExynosAutov9: Add DPUM clock controller
         - ExynosAutov920: Add new (first) clock controllers: TOP and PERIC0
           (and a bit more complete bindings)
         - Use clk_hw pointer instead of fw_name for acm_aud_clk[0-1]_sel
           clocks on i.MX8Q as parents in ACM provider
         - Add i.MX95 NETCMIX support to the block control provider
         - Fix parents for ENETx_REF_SEL clocks on i.MX6UL
         - Add USB clocks, resets and power domains on Renesas RZ/G3S
         - Add Generic Timer (GTM), I2C Bus Interface (RIIC), SD/MMC Host
           Interface (SDHI) and Watchdog Timer (WDT) clocks and resets on
           Renesas RZ/V2H
         - Add PCIe, PWM, and CAN-FD clocks on Renesas R-Car V4M
         - Add LCD controller clocks and resets on Renesas RZ/G2UL
         - Add DMA clocks and resets on Renesas RZ/G3S
         - Add fractional multiplication PLL support on Renesas R-Car Gen4
         - Document support for the Renesas RZ/G2M v3.0 (r8a774a3) SoC
         - Support for the Microchip SAM9X7 SoC as follows:
         - Updates for the Microchip PLL drivers
         - DT binding documentation updates (for the new clock driver and for
           the slow clock controller that SAM9X7 is using)
         - A fix for the Microchip SAMA7G5 clock driver to avoid allocating
           more memory than necessary
         - Constify some Amlogic structs
         - Add SM1 eARC clocks for Amlogic
         - Introduce a symbol namespace for Amlogic clock specific symbols
         - Add reset controller support to audiomix block control on i.MX
         - Add CLK_SET_RATE_PARENT flag to all audiomix clocks and to i.MX7D
           lcdif_pixel_src clock
         - Fix parent clocks for earc_phy and audpll on i.MX8MP
         - Fix default parents for enet[12]_ref_sel on i.MX6UL
         - Add ops in composite 8M and 93 that allow no-op on disable
         - Add check for PCC present bit on composite 7ULP register
         - Fix fractional part for fracn-gppll on prepare in i.MX
         - Fix clock tree update for TF-A managed clocks on i.MX8M
         - Drop CLK_SET_PARENT_GATE for DRAM mux on i.MX7D
         - Add the SAI7 IPG clock for i.MX8MN
         - Mark the 'nand_usdhc_bus' clock as non-critical on i.MX8MM
         - Add LVDS bypass clocks on i.MX8QXP
         - Add muxes for MIPI and PHY ref clocks on i.MX
         - Reorder dc0_bypass0_clk, lcd_pxl and dc1_disp clocks on i.MX8QXP
         - Add 1039.5MHz and 800MHz rates to fracn-gppll table on i.MX
         - Add CLK_SET_RATE_PARENT for media_disp pixel clocks on i.MX8QXP
         - Add some module descriptions to the i.MX generic and the i.MXRT1050
           driver
         - Fix return value for bypass for composite i.MX7ULP
         - Move Mediatek clk bindings to clock/
         - Convert some more clk bindings to dt schema"
      
      * tag 'clk-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/clk/linux: (180 commits)
        clk: Switch back to struct platform_driver::remove()
        dt-bindings: clock, reset: fix top-comment indentation rk3576 headers
        clk: rockchip: remove unused mclk_pdm0_p/pdm0_p definitions
        clk: provide devm_clk_get_optional_enabled_with_rate()
        clk: fixed-rate: add devm_clk_hw_register_fixed_rate_parent_data()
        clk: imx6ul: fix clock parent for IMX6UL_CLK_ENETx_REF_SEL
        clk: renesas: r9a09g057: Add clock and reset entries for GTM/RIIC/SDHI/WDT
        clk: renesas: rzv2h: Add support for dynamic switching divider clocks
        clk: renesas: r9a08g045: Add clocks, resets and power domains for USB
        clk: rockchip: fix error for unknown clocks
        clk: rockchip: rk3588: drop unused code
        clk: rockchip: Add clock controller for the RK3576
        clk: rockchip: Add new pll type pll_rk3588_ddr
        dt-bindings: clock, reset: Add support for rk3576
        dt-bindings: clock: rockchip,rk3588-cru: drop unneeded assigned-clocks
        clk: rockchip: rk3588: Fix 32k clock name for pmu_24m_32k_100m_src_p
        clk: imx95: enable the clock of NETCMIX block control
        dt-bindings: clock: add RMII clock selection
        dt-bindings: clock: add i.MX95 NETCMIX block control
        clk: imx: imx8: Use clk_hw pointer for self registered clock in clk_parent_data
        ...
      9ab27b01
    • Linus Torvalds's avatar
      Merge tag 'i2c-for-6.12-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux · 4e2c9cd7
      Linus Torvalds authored
      Pull i2c updates from Wolfram Sang:
       "I2C core:
      
         - finally remove the I2C_COMPAT symbol after 15 years of deprecation
      
         - lock client addresses during initialization to prevent race
           conditions between different kinds of instantiation
      
         - use scoped foreach OF child loops
      
         - testunit cleanups and documentation improvements, as well as two
           new tests, one for repeated start and one for triggering SMBusAlert
           interrupts
      
        I2C host drivers:
      
         - DesignWare and Renesas I2C driver updates.
      
           The first has has undergone through a series of cleanups that have
           been sent to the mailing list a year ago for the first time and
           finally get merged in this pull request. They are many, from typos
           (e.g. i2/i2c), to cosmetics, to refactoring (e.g. move inline
           functions to librarieas) and many others.
      
         - all the DesignWare Kconfig options have been grouped under the
           I2C_DESIGNWARE_CORE and this required some adaptation in many of
           the kernel configuration files for different arm and mips boards
      
        Cleanups:
      
         - improve the exit path in the runtime resume function for the
           Qualcomm Geni platform
      
         - get rid of the unused "target_addr" parameter in the Intel LJCA
           driver
      
         - intialize the restart_flag in the MediaTek controller in one single
           place
      
         - constify a few global data structures in the virtio driver
      
         - simplify the bus speed handling in the Renesas driver init function
           making it more readable
      
         - improved probe function of the Renesas R-Car driver
      
         - switch the iMX/MXC driver to use RUNTIME_PM_OPS() instead of
           SET_RUNTIME_PM_OPS()
      
         - iMX/MXC driver cleanups
      
         - use devm_clk_get_enabled() to simplify the Renesas EMEV2, Ingenic
           and MPC drivers
      
        Refactoring:
      
         - Fix a potential out of boundary array access in the Nuvoton driver.
      
           This is not a bug fix because the issue could never occur due to
           hardware not having the properties listed in the array. The change
           makes the driver more future proof and, at the same time, silences
           code analyzers.
      
        Improvements:
      
         - several patches improving the runtime power management handling of
           the Renesas I2C (riic) driver
      
         - use a more descriptive adapter name in the Intel i801 driver to
           show the presence of the IDF feature
      
         - kill pending transactions when irq's can't complete their handling
           in the Intel Denverton (ismt) driver, triggering a timeout
      
        New Feature:
      
         - support fast mode plus in the Renesas I2C (riic) driver
      
        New support:
      
         - Added support for:
            - Renesas R9A08G045
            - Rockchip RK3576
            - KEBA I2C
            - Theobroma Systems Mule Multiplexer.
      
         - new i2c-keba.c driver
      
         - new driver for The Mule i2c multiplexer
      
        Core I2C framework:
      
         - move runtime PM functions in order to allow them to be accessed
           during device add
      
        Devicetree:
      
         - nVidia and Qualcomm binding improvements
      
         - get rid of redundant "multi-master" property in the aspeed binding
      
         - convert i2c-sprd binding to YAML
      
        AT24 updates:
      
        - document a new model from giantec in DT bindings"
      
      * tag 'i2c-for-6.12-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux: (69 commits)
        i2c: designware: Use pci_get_drvdata()
        i2c: designware: Propagate firmware node
        i2c: designware: Uninline i2c_dw_probe()
        i2c: ljca: Remove unused "target_addr" parameter
        i2c: keba: Add KEBA I2C controller support
        i2c: i801: Use a different adapter-name for IDF adapters
        i2c: core: Setup i2c_adapter runtime-pm before calling device_add()
        dt-bindings: i2c: i2c-sprd: convert to YAML
        i2c: ismt: kill transaction in hardware on timeout
        i2c: designware: Group all DesignWare drivers under a single option
        net: txgbe: Fix I2C Kconfig dependencies
        RISC-V: configs: enable I2C_DESIGNWARE_CORE with I2C_DESIGNWARE_PLATFORM
        mips: configs: enable I2C_DESIGNWARE_CORE with I2C_DESIGNWARE_PLATFORM
        arm64: defconfig: enable I2C_DESIGNWARE_CORE with I2C_DESIGNWARE_PLATFORM
        ARM: configs: enable I2C_DESIGNWARE_CORE with I2C_DESIGNWARE_PLATFORM
        ARC: configs: enable I2C_DESIGNWARE_CORE with I2C_DESIGNWARE_PLATFORM
        i2c: virtio: Constify struct i2c_algorithm and struct virtio_device_id
        i2c: rcar: tidyup priv->devtype handling on rcar_i2c_probe()
        i2c: imx: Convert comma to semicolon
        i2c: jz4780: Use devm_clk_get_enabled() helpers
        ...
      4e2c9cd7