Linux/linux 6de23f8. Makefile

Linux 7.0-rc1
DeltaFile
+3-3Makefile
+3-31 files

Linux/linux fbf3380fs/f2fs compress.c, fs/verity verify.c

Merge tag 'fsverity-for-linus' of git://git.kernel.org/pub/scm/fs/fsverity/linux

Pull fsverity fixes from Eric Biggers:

 - Fix a build error on parisc

 - Remove the non-large-folio-aware function fsverity_verify_page()

* tag 'fsverity-for-linus' of git://git.kernel.org/pub/scm/fs/fsverity/linux:
  fsverity: fix build error by adding fsverity_readahead() stub
  fsverity: remove fsverity_verify_page()
  f2fs: make f2fs_verify_cluster() partially large-folio-aware
  f2fs: remove unnecessary ClearPageUptodate in f2fs_verify_cluster()
DeltaFile
+7-8include/linux/fsverity.h
+5-6fs/f2fs/compress.c
+2-2fs/verity/verify.c
+14-163 files

Linux/linux 75e1f66lib/crypto/powerpc aes.h

Merge tag 'libcrypto-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiggers/linux

Pull crypto library fix from Eric Biggers:
 "Fix a big endian specific issue in the PPC64-optimized AES code"

* tag 'libcrypto-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiggers/linux:
  lib/crypto: powerpc/aes: Fix rndkey_from_vsx() on big endian CPUs
DeltaFile
+7-5lib/crypto/powerpc/aes.h
+7-51 files

Linux/linux aaf96df. CREDITS

CREDITS: Add -next to Stephen Rothwell's entry

Stephen retired and stepped back from -next maintainership, update his
entry in CREDITS to recognise his 18 years of hard work making it what
it is today and all the impact it's had on our development process.

Also update to his current GnuPG key while we're here.

Acked-by: Stephen Rothwell <sfr at canb.auug.org.au>
Acked-by: SeongJae Park <sj at kernel.org>
Reviewed-by: Randy Dunlap <rdunlap at infradead.org>
Signed-off-by: Mark Brown <broonie at kernel.org>
Acked-by: Krzysztof Kozlowski <krzk at kernel.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
DeltaFile
+2-1CREDITS
+2-11 files

Linux/linux 746b9efcrypto/asymmetric_keys Kconfig

x509: select CONFIG_CRYPTO_LIB_SHA256

The x509 public key code gained a dependency on the sha256 hash
implementation, causing a rare link time failure in randconfig
builds:

  arm-linux-gnueabi-ld: crypto/asymmetric_keys/x509_public_key.o: in function `x509_get_sig_params':
  x509_public_key.c:(.text.x509_get_sig_params+0x12): undefined reference to `sha256'
  arm-linux-gnueabi-ld: (sha256): Unknown destination type (ARM/Thumb) in crypto/asymmetric_keys/x509_public_key.o
  x509_public_key.c:(.text.x509_get_sig_params+0x12): dangerous relocation: unsupported relocation

Select the necessary library code from Kconfig.

Fixes: 2c62068ac86b ("x509: Separately calculate sha256 for blacklist")
Signed-off-by: Arnd Bergmann <arnd at arndb.de>
Signed-off-by: David Howells <dhowells at redhat.com>
Reviewed-by: Eric Biggers <ebiggers at kernel.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
DeltaFile
+1-0crypto/asymmetric_keys/Kconfig
+1-01 files

Linux/linux fd1d6b9lib decompress_unxz.c

xz: fix arm fdt compile error for kmalloc replacement

Align to the commit bf4afc53b77a ("Convert 'alloc_obj' family to use the
new default GFP_KERNEL argument") update the 'kmalloc_obj' declaration
for userspace to fix below compile error:

  In file included from arch/arm/boot/compressed/../../../../lib/decompress_unxz.c:241,
                   from arch/arm/boot/compressed/decompress.c:56:
  arch/arm/boot/compressed/../../../../lib/xz/xz_dec_stream.c: In function 'xz_dec_init':
  arch/arm/boot/compressed/../../../../lib/xz/xz_dec_stream.c:787:28: error: implicit declaration of function 'kmalloc_obj'; did you mean 'kmalloc'? [-Wimplicit-function-declaration]
     787 |         struct xz_dec *s = kmalloc_obj(*s);
         |                            ^~~~~~~~~~~
         |                            kmalloc

Signed-off-by: Haiyue Wang <haiyuewa at 163.com>
Fixes: 69050f8d6d07 ("treewide: Replace kmalloc with kmalloc_obj for non-scalar types")
Fixes: bf4afc53b77a ("Convert 'alloc_obj' family to use the new default GFP_KERNEL argument")
Reviewed-by: Kees Cook <kees at kernel.org>
Acked-by: Lasse Collin <lasse.collin at tukaani.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
DeltaFile
+2-2lib/decompress_unxz.c
+2-21 files

Linux/linux 5f2eac7Documentation/devicetree/bindings/rtc motorola,cpcap-rtc.yaml cpcap-rtc.txt, drivers/rtc rtc-zynqmp.c rtc-loongson.c

Merge tag 'rtc-7.0' of git://git.kernel.org/pub/scm/linux/kernel/git/abelloni/linux

Pull RTC updates from Alexandre Belloni:

 - loongson: Loongson-2K0300 support

 - s35390a: nvmem support

 - zynqmp: rework calibration

* tag 'rtc-7.0' of git://git.kernel.org/pub/scm/linux/kernel/git/abelloni/linux:
  rtc: ds1390: fix number of bytes read from RTC
  rtc: class: Remove duplicate check for alarm
  rtc: optee: simplify OP-TEE context match
  rtc: interface: Alarm race handling should not discard preceding error
  rtc: s35390a: implement nvmem support
  rtc: loongson: Add Loongson-2K0300 support
  dt-bindings: rtc: loongson: Document Loongson-2K0300 compatible
  dt-bindings: rtc: loongson: Correct Loongson-1C interrupts property

    [11 lines not shown]
DeltaFile
+41-34drivers/rtc/rtc-zynqmp.c
+47-24drivers/rtc/rtc-loongson.c
+32-0Documentation/devicetree/bindings/rtc/motorola,cpcap-rtc.yaml
+32-0drivers/rtc/rtc-s35390a.c
+0-18Documentation/devicetree/bindings/rtc/cpcap-rtc.txt
+13-0Documentation/devicetree/bindings/rtc/loongson,rtc.yaml
+165-768 files not shown
+178-8814 files

Linux/linux 1dd4191rust Makefile, rust/kernel/irq request.rs

Merge tag 'rust-fixes-7.0' of git://git.kernel.org/pub/scm/linux/kernel/git/ojeda/linux

Pull rust fixes from Miguel Ojeda:
 "Toolchain and infrastructure:

   - Pass '-Zunstable-options' flag required by the future Rust 1.95.0

   - Fix 'objtool' warning for Rust 1.84.0

  'kernel' crate:

   - 'irq' module: add missing bound detected by the future Rust 1.95.0

   - 'list' module: add missing 'unsafe' blocks and placeholder safety
     comments to macros (an issue for future callers within the crate)

  'pin-init' crate:

   - Clean Clippy warning that changed behavior in the future Rust

    [8 lines not shown]
DeltaFile
+16-9rust/kernel/list/impl_list_item_mod.rs
+9-3rust/kernel/irq/request.rs
+2-2rust/pin-init/src/lib.rs
+3-0rust/Makefile
+2-1tools/objtool/check.c
+32-155 files

Linux/linux d2ba6e9include/rv da_monitor.h

Merge tag 'trace-rv-7.0-2' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace

Pull runtime verifier fix from Steven Rostedt:

 - Fix multiple definition of __pcpu_unique_da_mon_this

   After refactoring monitors, we used static per-cpu variables with the
   same names across different per-cpu monitors. This is explicitly
   disallowed for modules on some architectures (alpha) or if
   CONFIG_DEBUG_FORCE_WEAK_PER_CPU is enabled (e.g. Fedora's debug
   kernel). Make sure all those variables have different names to avoid
   compilation issues.

* tag 'trace-rv-7.0-2' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace:
  rv: Fix multiple definition of __pcpu_unique_da_mon_this
DeltaFile
+11-5include/rv/da_monitor.h
+11-51 files

Linux/linux 189f164drivers/gpu/drm/amd/pm/powerplay/hwmgr process_pptables_v1_0.c, drivers/net/ethernet/intel/idpf idpf_txrx.c

Convert remaining multi-line kmalloc_obj/flex GFP_KERNEL uses

Conversion performed via this Coccinelle script:

  // SPDX-License-Identifier: GPL-2.0-only
  // Options: --include-headers-for-types --all-includes --include-headers --keep-comments
  virtual patch

  @gfp depends on patch && !(file in "tools") && !(file in "samples")@
  identifier ALLOC = {kmalloc_obj,kmalloc_objs,kmalloc_flex,
                    kzalloc_obj,kzalloc_objs,kzalloc_flex,
                    kvmalloc_obj,kvmalloc_objs,kvmalloc_flex,
                    kvzalloc_obj,kvzalloc_objs,kvzalloc_flex};
  @@

        ALLOC(...
  -             , GFP_KERNEL
        )


    [9 lines not shown]
DeltaFile
+9-18drivers/scsi/lpfc/lpfc_init.c
+8-14drivers/scsi/be2iscsi/be_main.c
+7-13drivers/staging/media/atomisp/pci/sh_css.c
+7-11drivers/net/ethernet/intel/idpf/idpf_txrx.c
+6-9drivers/scsi/mpt3sas/mpt3sas_base.c
+6-9drivers/gpu/drm/amd/pm/powerplay/hwmgr/process_pptables_v1_0.c
+43-74409 files not shown
+612-833415 files

Linux/linux 32a92f8drivers/gpu/drm/amd/display/dc/clk_mgr clk_mgr.c, drivers/gpu/drm/amd/display/dc/resource/dcn302 dcn302_resource.c

Convert more 'alloc_obj' cases to default GFP_KERNEL arguments

This converts some of the visually simpler cases that have been split
over multiple lines.  I only did the ones that are easy to verify the
resulting diff by having just that final GFP_KERNEL argument on the next
line.

Somebody should probably do a proper coccinelle script for this, but for
me the trivial script actually resulted in an assertion failure in the
middle of the script.  I probably had made it a bit _too_ trivial.

So after fighting that far a while I decided to just do some of the
syntactically simpler cases with variations of the previous 'sed'
scripts.

The more syntactically complex multi-line cases would mostly really want
whitespace cleanup anyway.

Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
DeltaFile
+14-28drivers/gpu/drm/amd/display/dc/clk_mgr/clk_mgr.c
+12-24drivers/pci/hotplug/ibmphp_pci.c
+9-18drivers/gpu/drm/amd/display/dc/resource/dcn303/dcn303_resource.c
+9-18drivers/gpu/drm/amd/display/dc/resource/dcn302/dcn302_resource.c
+8-16drivers/net/ethernet/intel/idpf/idpf_txrx.c
+7-14drivers/gpu/drm/amd/pm/powerplay/hwmgr/processpptables.c
+59-118820 files not shown
+1,211-2,422826 files

Linux/linux bf4afc5drivers/net/wireless/marvell mwl8k.c, drivers/net/wireless/ti/wl1251 acx.c

Convert 'alloc_obj' family to use the new default GFP_KERNEL argument

This was done entirely with mindless brute force, using

    git grep -l '\<k[vmz]*alloc_objs*(.*, GFP_KERNEL)' |
        xargs sed -i 's/\(alloc_objs*(.*\), GFP_KERNEL)/\1)/'

to convert the new alloc_obj() users that had a simple GFP_KERNEL
argument to just drop that argument.

Note that due to the extreme simplicity of the scripting, any slightly
more complex cases spread over multiple lines would not be triggered:
they definitely exist, but this covers the vast bulk of the cases, and
the resulting diff is also then easier to check automatically.

For the same reason the 'flex' versions will be done as a separate
conversion.

Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
DeltaFile
+51-51drivers/net/wireless/ti/wlcore/acx.c
+40-40drivers/net/wireless/marvell/mwl8k.c
+35-35drivers/net/wireless/ti/wl1251/acx.c
+26-26drivers/scsi/hpsa.c
+25-25drivers/net/wireless/ti/wlcore/cmd.c
+24-24lib/test_bpf.c
+201-2016,667 files not shown
+13,013-13,0136,673 files

Linux/linux 323bbfcdrivers/net/ethernet/mellanox/mlxsw spectrum_router.c, drivers/net/ethernet/stmicro/stmmac stmmac_selftests.c

Convert 'alloc_flex' family to use the new default GFP_KERNEL argument

This is the exact same thing as the 'alloc_obj()' version, only much
smaller because there are a lot fewer users of the *alloc_flex()
interface.

As with alloc_obj() version, this was done entirely with mindless brute
force, using the same script, except using 'flex' in the pattern rather
than 'objs*'.

Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
DeltaFile
+7-7net/wireless/nl80211.c
+5-5net/sched/cls_u32.c
+4-4lib/assoc_array.c
+3-3drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c
+3-3drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c
+3-3net/wireless/reg.c
+25-25304 files not shown
+352-352310 files

Linux/linux e19e1b4include/linux slab.h gfp.h

add default_gfp() helper macro and use it in the new *alloc_obj() helpers

Most simple allocations use GFP_KERNEL, and with the new allocation
helpers being introduced, let's just take advantage of that to simplify
that default case.

It's a numbers game:

    git grep 'alloc_obj(' |
        sed 's/.*\(GFP_[_A-Z]*\).*/\1/' |
        sort | uniq -c | sort -n | tail

shows that about 90% of all those new allocator instances just use that
standard GFP_KERNEL.

Those helpers are already macros, and we can easily just make it be the
default case when the gfp argument is missing.

And yes, we could do that for all the legacy interfaces too, but let's

    [8 lines not shown]
DeltaFile
+24-24include/linux/slab.h
+4-0include/linux/gfp.h
+28-242 files

Linux/linux fa5c82finclude/linux slab.h overflow.h

slab.h: disable completely broken overflow handling in flex allocations

Commit 69050f8d6d07 ("treewide: Replace kmalloc with kmalloc_obj for
non-scalar types") started using the new allocation helpers, and in the
process showed that they were completely non-working.

The overflow logic in overflows_flex_counter_type() is completely the
wrong way around, and that broke __alloc_flex() completely.  By chance,
the resulting code was then such a mess that clang generated
sufficiently garbage code that objtool warned about it all.  Which made
it somewhat quicker to narrow things down.

While fixing overflows_flex_counter_type() would presumably fix this
all, I'm excising the whole broken overflow logic from __alloc_flex(),
because we don't want that kind of code in basic allocation functions
anyway.

That (no longer) broken overflows_flex_counter_type() thing needs to be
inserted into the actual __set_flex_counter() logic in the unlikely case

    [7 lines not shown]
DeltaFile
+1-5include/linux/slab.h
+1-1include/linux/overflow.h
+2-62 files

Linux/linux 8934827drivers/net/ethernet/intel/idpf idpf_txrx.c, drivers/net/wireless/marvell mwl8k.c

Merge tag 'kmalloc_obj-treewide-v7.0-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux

Pull kmalloc_obj conversion from Kees Cook:
 "This does the tree-wide conversion to kmalloc_obj() and friends using
  coccinelle, with a subsequent small manual cleanup of whitespace
  alignment that coccinelle does not handle.

  This uncovered a clang bug in __builtin_counted_by_ref(), so the
  conversion is preceded by disabling that for current versions of
  clang.  The imminent clang 22.1 release has the fix.

  I've done allmodconfig build tests for x86_64, arm64, i386, and arm. I
  did defconfig builds for alpha, m68k, mips, parisc, powerpc, riscv,
  s390, sparc, sh, arc, csky, xtensa, hexagon, and openrisc"

* tag 'kmalloc_obj-treewide-v7.0-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux:
  kmalloc_obj: Clean up after treewide replacements
  treewide: Replace kmalloc with kmalloc_obj for non-scalar types
  compiler_types: Disable __builtin_counted_by_ref for Clang
DeltaFile
+51-52drivers/net/wireless/ti/wlcore/acx.c
+42-47drivers/scsi/lpfc/lpfc_init.c
+40-40drivers/net/wireless/marvell/mwl8k.c
+37-43drivers/net/ethernet/intel/idpf/idpf_txrx.c
+35-41net/wireless/nl80211.c
+38-37drivers/staging/rtl8723bs/core/rtw_cmd.c
+243-2608,012 files not shown
+20,062-20,9148,018 files

Linux/linux c7decectools/perf builtin-sched.c, tools/perf/arch/x86/annotate instructions.c

Merge tag 'perf-tools-for-v7.0-1-2026-02-21' of git://git.kernel.org/pub/scm/linux/kernel/git/perf/perf-tools

Pull perf tools updates from Arnaldo Carvalho de Melo:

 - Introduce 'perf sched stats' tool with record/report/diff workflows
   using schedstat counters

 - Add a faster libdw based addr2line implementation and allow selecting
   it or its alternatives via 'perf config addr2line.style='

 - Data-type profiling fixes and improvements including the ability to
   select fields using 'perf report''s -F/-fields, e.g.:

     'perf report --fields overhead,type'

 - Add 'perf test' regression tests for Data-type profiling with C and
   Rust workloads

 - Fix srcline printing with inlines in callchains, make sure this has

    [70 lines not shown]
DeltaFile
+1,129-0tools/perf/pmu-events/intel_metrics.py
+1,106-0tools/perf/pmu-events/arch/x86/amdzen6/floating-point.json
+1,033-1tools/perf/builtin-sched.c
+820-0tools/perf/util/annotate-arch/annotate-x86.c
+0-783tools/perf/arch/x86/annotate/instructions.c
+523-0tools/perf/pmu-events/arch/x86/amdzen6/load-store.json
+4,611-784337 files not shown
+18,409-7,187343 files

Linux/linux 3544d5cDocumentation/dev-tools coccinelle.rst, scripts coccicheck

Merge tag 'cocci-7.0-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/jlawall/linux

Pull coccinelle updates from Julia Lawall:
 "This simplifies and clarifies the handling of output generated by
  Coccinelle that is sent to standard error.

  By default, this goes to /dev/null. Remind the user of that and
  encourage them to provide another file name (Benjamin Philip)"

* tag 'cocci-7.0-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/jlawall/linux:
  Documentation: Coccinelle: document debug log handling
  scripts: coccicheck: warn on unset debug file
  scripts: coccicheck: simplify debug file handling
DeltaFile
+13-8scripts/coccicheck
+16-5Documentation/dev-tools/coccinelle.rst
+29-132 files

Linux/linux 9813616drivers/ntb ntb_transport.c msi.c, drivers/ntb/hw/intel ntb_hw_gen4.c ntb_hw_gen1.c

Merge tag 'ntb-7.0' of https://github.com/jonmason/ntb

Pull NTB (PCIe non-transparent bridge) updates from Jon Mason:
 "NTB updates include debugfs improvements, correctness fixes, cleanups,
  and new hardware support:

  ntb_transport QP stats are converted to seq_file, a tx_memcpy_offload
  module parameter is introduced with associated ordering fixes, and a
  debugfs queue name truncation bug is corrected.

  Additional fixes address format specifier mismatches in ntb_tool and
  boundary conditions in the Switchtec driver, while unused MSI helpers
  are removed and the codebase migrates to dma_map_phys().

  Intel Gen6 (Diamond Rapids) NTB support is also added"

* tag 'ntb-7.0' of https://github.com/jonmason/ntb:
  NTB: ntb_transport: Use seq_file for QP stats debugfs
  NTB: ntb_transport: Fix too small buffer for debugfs_name

    [10 lines not shown]
DeltaFile
+145-110drivers/ntb/ntb_transport.c
+0-64drivers/ntb/msi.c
+17-5drivers/ntb/hw/intel/ntb_hw_gen4.c
+0-14include/linux/ntb.h
+10-4drivers/ntb/hw/intel/ntb_hw_gen1.c
+11-3drivers/ntb/hw/mscc/ntb_hw_switchtec.c
+183-2004 files not shown
+192-20210 files

Linux/linux f9d66e6drivers/block ublk_drv.c, fs/fuse dev_uring.c

Merge tag 'io_uring-20260221' of git://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux

Pull io_uring fixes from Jens Axboe:

 - A fix for a missing URING_CMD128 opcode check, fixing an issue with
   the SQE mixed mode support introduced in 6.19. Merged late due to
   having multiple dependencies

 - Add sqe->cmd size checking for big SQEs, similar to what we have for
   normal sized SQEs

 - Fix a race condition in zcrx, that leads to a double free

* tag 'io_uring-20260221' of git://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux:
  io_uring: Add size check for sqe->cmd
  io_uring: add IORING_OP_URING_CMD128 to opcode checks
  io_uring/zcrx: fix user_ref race between scrub and refill paths
DeltaFile
+11-4include/linux/io_uring/cmd.h
+8-4drivers/block/ublk_drv.c
+7-3io_uring/zcrx.c
+6-0io_uring/io_uring.h
+4-2fs/fuse/dev_uring.c
+2-2io_uring/rw.c
+38-152 files not shown
+41-178 files

Linux/linux 817c16emm numa_memblks.c

Merge tag 'fixes-2026-02-21' of git://git.kernel.org/pub/scm/linux/kernel/git/rppt/memblock

Pull memblock fix from Mike Rapoport:
 "Fix detection of NUMA node for CXL windows

  phys_to_target_node() may assign a CXL Fixed Memory Window to the
  wrong NUMA node when a CXL node resides in the gap of discontinuous
  System RAM node.

  Fix this by checking both numa_meminfo and numa_reserved_meminfo,
  preferring the reserved NID when the address appears in both"

* tag 'fixes-2026-02-21' of git://git.kernel.org/pub/scm/linux/kernel/git/rppt/memblock:
  mm: numa_memblks: Identify the accurate NUMA ID of CFMW
DeltaFile
+5-4mm/numa_memblks.c
+5-41 files

Linux/linux 4cf4465tools/sched_ext scx_userland.c scx_flatcg.c, tools/testing/selftests/sched_ext rt_stall.c

Merge tag 'sched_ext-for-7.0-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/sched_ext

Pull sched_ext fixes from Tejun Heo:

 - Various bug fixes for the example schedulers and selftests

* tag 'sched_ext-for-7.0-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/sched_ext:
  tools/sched_ext: fix getopt not re-parsed on restart
  tools/sched_ext: scx_userland: fix data races on shared counters
  tools/sched_ext: scx_pair: fix stride == 0 crash on single-CPU systems
  tools/sched_ext: scx_central: fix CPU_SET and skeleton leak on early exit
  tools/sched_ext: scx_userland: fix stale data on restart
  tools/sched_ext: scx_flatcg: fix potential stack overflow from VLA in fcg_read_stats
  selftests/sched_ext: Fix rt_stall flaky failure
  tools/sched_ext: scx_userland: fix restart and stats thread lifecycle bugs
  tools/sched_ext: scx_central: fix sched_setaffinity() call with the set size
  tools/sched_ext: scx_flatcg: zero-initialize stats counter array
DeltaFile
+49-0tools/testing/selftests/sched_ext/rt_stall.c
+20-11tools/sched_ext/scx_userland.c
+10-3tools/sched_ext/scx_flatcg.c
+7-3tools/sched_ext/scx_central.c
+7-1tools/sched_ext/scx_pair.c
+1-0tools/sched_ext/scx_simple.c
+94-182 files not shown
+96-188 files

Linux/linux 8eb604dfs/smb/server smb2pdu.c server.c

Merge tag 'v7.0-rc-part2-ksmbd-server-fixes' of git://git.samba.org/ksmbd

Pull smb server fixes from Steve French:
 "Two small fixes:

   - fix potential deadlock

   - minor cleanup"

* tag 'v7.0-rc-part2-ksmbd-server-fixes' of git://git.samba.org/ksmbd:
  ksmbd: call ksmbd_vfs_kern_path_end_removing() on some error paths
  smb: server: Remove duplicate include of misc.h
DeltaFile
+2-2fs/smb/server/smb2pdu.c
+0-1fs/smb/server/server.c
+2-32 files

Linux/linux e3a22b5Documentation/dev-tools coccinelle.rst

Documentation: Coccinelle: document debug log handling

The current debug documentation does not mention that logs are printed
to stdout unless DEBUG_FILE is set. It also doesn't mention that
Coccinelle cannot overwrite debug files.

Document this behaviour in the examples and reference it in the
debugging section.

Signed-off-by: Benjamin Philip <benjamin.philip495 at gmail.com>
Signed-off-by: Julia Lawall <julia.lawall at inria.fr>
DeltaFile
+16-5Documentation/dev-tools/coccinelle.rst
+16-51 files

Linux/linux bb1c9ccscripts coccicheck

scripts: coccicheck: warn on unset debug file

coccicheck prints debug logs to stdout unless a debug file has been set.
This makes it hard to read coccinelle's suggested changes, especially
for someone new to coccicheck.

From this commit, we warn about this behaviour from within the script on
an unset debug file. Explicitly setting the debug file to /dev/null
suppresses the warning while keeping the default.

Signed-off-by: Benjamin Philip <benjamin.philip495 at gmail.com>
Signed-off-by: Julia Lawall <julia.lawall at inria.fr>
DeltaFile
+5-0scripts/coccicheck
+5-01 files

Linux/linux 8952cfescripts coccicheck

scripts: coccicheck: simplify debug file handling

This commit separates handling unset files and pre-existing files. It
also eliminates a duplicated check for unset files in run_cmd_parmap().

Signed-off-by: Benjamin Philip <benjamin.philip495 at gmail.com>
Signed-off-by: Julia Lawall <julia.lawall at inria.fr>
DeltaFile
+8-8scripts/coccicheck
+8-81 files

Linux/linux 7a70c15drivers/media/tuners tuner-i2c.h, drivers/net/ethernet/mellanox/mlx5/core/lib mpfs.h

kmalloc_obj: Clean up after treewide replacements

Coccinelle doesn't handle re-indenting line escapes. Fix the 2 places
where these got misaligned.

Remove 2 now-redundant type casts, found with:
$ git grep -P 'struct (\S+).*\)\s*k\S+alloc_(objs?|flex)\(struct \1'

Signed-off-by: Kees Cook <kees at kernel.org>
DeltaFile
+1-1drivers/net/ethernet/mellanox/mlx5/core/lib/mpfs.h
+1-1drivers/media/tuners/tuner-i2c.h
+1-1include/linux/dma-fence-chain.h
+1-1include/linux/skmsg.h
+4-44 files

Linux/linux 69050f8drivers/net/ethernet/intel/idpf idpf_txrx.c, drivers/net/wireless/marvell mwl8k.c

treewide: Replace kmalloc with kmalloc_obj for non-scalar types

This is the result of running the Coccinelle script from
scripts/coccinelle/api/kmalloc_objs.cocci. The script is designed to
avoid scalar types (which need careful case-by-case checking), and
instead replace kmalloc-family calls that allocate struct or union
object instances:

Single allocations:     kmalloc(sizeof(TYPE), ...)
are replaced with:      kmalloc_obj(TYPE, ...)

Array allocations:      kmalloc_array(COUNT, sizeof(TYPE), ...)
are replaced with:      kmalloc_objs(TYPE, COUNT, ...)

Flex array allocations: kmalloc(struct_size(PTR, FAM, COUNT), ...)
are replaced with:      kmalloc_flex(*PTR, FAM, COUNT, ...)

(where TYPE may also be *VAR)


    [4 lines not shown]
DeltaFile
+51-52drivers/net/wireless/ti/wlcore/acx.c
+42-47drivers/scsi/lpfc/lpfc_init.c
+37-43drivers/net/ethernet/intel/idpf/idpf_txrx.c
+40-40drivers/net/wireless/marvell/mwl8k.c
+35-41net/wireless/nl80211.c
+38-37drivers/staging/rtl8723bs/core/rtw_cmd.c
+243-2608,010 files not shown
+20,055-20,9138,016 files

Linux/linux d39a1d7include/linux compiler_types.h, init Kconfig

compiler_types: Disable __builtin_counted_by_ref for Clang

Unfortunately, there is a corner case of __builtin_counted_by_ref()
usage that crashes[1] Clang since support was introduced in Clang 19.
Disable it prior to Clang 22. Found while tested kmalloc_obj treewide
refactoring (via kmalloc_flex() usage).

Link: https://github.com/llvm/llvm-project/issues/182575 [1]
Signed-off-by: Kees Cook <kees at kernel.org>
DeltaFile
+5-0init/Kconfig
+2-1include/linux/compiler_types.h
+7-12 files

Linux/linux 640c9dctools/sched_ext scx_sdt.c scx_flatcg.c

tools/sched_ext: fix getopt not re-parsed on restart

After goto restart, optind retains its advanced position from the
previous getopt loop, causing getopt() to immediately return -1.
This silently drops all command-line options on the restarted skeleton.

Reset optind to 1 at the restart label so options are re-parsed.

Affected schedulers: scx_simple, scx_central, scx_flatcg, scx_pair,
scx_sdt, scx_cpu0.

Signed-off-by: David Carlier <devnexen at gmail.com>
Signed-off-by: Tejun Heo <tj at kernel.org>
DeltaFile
+1-0tools/sched_ext/scx_sdt.c
+1-0tools/sched_ext/scx_flatcg.c
+1-0tools/sched_ext/scx_pair.c
+1-0tools/sched_ext/scx_simple.c
+1-0tools/sched_ext/scx_central.c
+1-0tools/sched_ext/scx_cpu0.c
+6-06 files