Skip to content
  1. Jun 06, 2022
  2. Jun 05, 2022
    • Linus Torvalds's avatar
      Merge tag 'pull-18-rc1-work.namei' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs · 952923dd
      Linus Torvalds authored
      Pull vfs pathname updates from Al Viro:
       "Several cleanups in fs/namei.c"
      
      * tag 'pull-18-rc1-work.namei' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs:
        namei: cleanup double word in comment
        get rid of dead code in legitimize_root()
        fs/namei.c:reserve_stack(): tidy up the call of try_to_unlazy()
      952923dd
    • Linus Torvalds's avatar
      Merge tag 'pull-18-rc1-work.mount' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs · cbd76ede
      Linus Torvalds authored
      Pull mount handling updates from Al Viro:
       "Cleanups (and one fix) around struct mount handling.
      
        The fix is usermode_driver.c one - once you've done kern_mount(), you
        must kern_unmount(); simple mntput() will end up with a leak. Several
        failure exits in there messed up that way... In practice you won't hit
        those particular failure exits without fault injection, though"
      
      * tag 'pull-18-rc1-work.mount' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs:
        move mount-related externs from fs.h to mount.h
        blob_to_mnt(): kern_unmount() is needed to undo kern_mount()
        m->mnt_root->d_inode->i_sb is a weird way to spell m->mnt_sb...
        linux/mount.h: trim includes
        uninline may_mount() and don't opencode it in fspick(2)/fsopen(2)
      cbd76ede
    • Linus Torvalds's avatar
      Merge tag 'pull-18-rc1-work.fd' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs · dbe0ee46
      Linus Torvalds authored
      Pull file descriptor updates from Al Viro.
      
       - Descriptor handling cleanups
      
      * tag 'pull-18-rc1-work.fd' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs:
        Unify the primitives for file descriptor closing
        fs: remove fget_many and fput_many interface
        io_uring_enter(): don't leave f.flags uninitialized
      dbe0ee46
    • Linus Torvalds's avatar
      Merge tag '5.19-rc-smb3-client-fixes-part2' of git://git.samba.org/sfrench/cifs-2.6 · d66016c5
      Linus Torvalds authored
      Pull cifs client fixes from Steve French:
       "Nine cifs/smb3 client fixes.
      
        Includes DFS fixes, some cleanup of leagcy SMB1 code, duplicated
        message cleanup and a double free and deadlock fix"
      
      * tag '5.19-rc-smb3-client-fixes-part2' of git://git.samba.org/sfrench/cifs-2.6:
        cifs: fix uninitialized pointer in error case in dfs_cache_get_tgt_share
        cifs: skip trailing separators of prefix paths
        cifs: update internal module number
        cifs: version operations for smb20 unneeded when legacy support disabled
        cifs: do not build smb1ops if legacy support is disabled
        cifs: fix potential deadlock in direct reclaim
        cifs: when extending a file with falloc we should make files not-sparse
        cifs: remove repeated debug message on cifs_put_smb_ses()
        cifs: fix potential double free during failed mount
      d66016c5
    • Schspa Shi's avatar
      kbuild: Allow to select bash in a modified environment · 42ce60aa
      Schspa Shi authored
      
      
      This fixes the build error when the system has a default bash version
      which is too old to support associative array variables.
      
      The build error log as fellowing:
      linux/scripts/check-local-export: line 11: declare: -A: invalid option
      declare: usage: declare [-afFirtx] [-p] [name[=value] ...]
      
      Signed-off-by: default avatarSchspa Shi <schspa@gmail.com>
      Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
      42ce60aa
    • Isak Ellmer's avatar
      scripts: kconfig: nconf: make nconfig accept jk keybindings · 2bbb4861
      Isak Ellmer authored
      
      
      Make nconfig accept jk keybindings for movement in addition to arrow
      keys.
      
      Signed-off-by: default avatarIsak Ellmer <isak01@gmail.com>
      Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
      2bbb4861
    • Masahiro Yamada's avatar
      modpost: use fnmatch() to simplify match() · a89227d7
      Masahiro Yamada authored
      
      
      Replace the own implementation for wildcard (glob) matching with
      a function call to fnmatch().
      
      Also, change the return type to 'bool'.
      
      Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
      a89227d7
    • Masahiro Yamada's avatar
      modpost: simplify mod->name allocation · 8c9ce89c
      Masahiro Yamada authored
      
      
      mod->name is set to the ELF filename with the suffix ".o" stripped.
      
      The current code calls strdup() and free() to manipulate the string,
      but a simpler approach is to pass new_module() with the name length
      subtracted by 2.
      
      Also, check if the passed filename ends with ".o" before stripping it.
      
      The current code blindly chops the suffix:
      
          tmp[strlen(tmp) - 2] = '\0'
      
      It will cause buffer under-run if strlen(tmp) < 2;
      
      Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
      Reviewed-by: default avatarNick Desaulniers <ndesaulniers@google.com>
      8c9ce89c
    • Masahiro Yamada's avatar
      kbuild: factor out the common objtool arguments · b42d2306
      Masahiro Yamada authored
      
      
      scripts/Makefile.build and scripts/link-vmlinux.sh have similar setups
      for the objtool arguments.
      
      It was difficult to factor out them because all the vmlinux build rules
      were written in a shell script. It is somewhat tedious to touch the two
      files every time a new objtool option is supported.
      
      To reduce the code duplication, move the objtool for vmlinux.o into
      scripts/Makefile.vmlinux_o. Then, move the common macros to Makefile.lib
      so they are shared between Makefile.build and Makefile.vmlinux_o.
      
      Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
      Tested-by: Sedat Dilek <sedat.dilek@gmail.com> # LLVM-14 (x86-64)
      b42d2306
    • Masahiro Yamada's avatar
      kbuild: move vmlinux.o link to scripts/Makefile.vmlinux_o · 5d45950d
      Masahiro Yamada authored
      
      
      This is a preparation for moving the objtool rule in the next commit.
      
      Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
      Tested-by: Sedat Dilek <sedat.dilek@gmail.com> # LLVM-14 (x86-64)
      5d45950d
    • Masahiro Yamada's avatar
      kbuild: clean .tmp_* pattern by make clean · b0d6207b
      Masahiro Yamada authored
      
      
      Change the "make clean" rule to remove all the .tmp_* files.
      
      .tmp_objdiff is the only exception, which should be removed by
      "make mrproper".
      
      Rename the record directory of objdiff, .tmp_objdiff to .objdiff to
      avoid the removal by "make clean".
      
      Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
      Tested-by: Sedat Dilek <sedat.dilek@gmail.com> # LLVM-14 (x86-64)
      b0d6207b
    • Linus Torvalds's avatar
      Merge tag 'bitmap-for-5.19-rc1' of https://github.com/norov/linux · d0e60d46
      Linus Torvalds authored
      Pull bitmap updates from Yury Norov:
      
       - bitmap: optimize bitmap_weight() usage, from me
      
       - lib/bitmap.c make bitmap_print_bitmask_to_buf parseable, from Mauro
         Carvalho Chehab
      
       - include/linux/find: Fix documentation, from Anna-Maria Behnsen
      
       - bitmap: fix conversion from/to fix-sized arrays, from me
      
       - bitmap: Fix return values to be unsigned, from Kees Cook
      
      It has been in linux-next for at least a week with no problems.
      
      * tag 'bitmap-for-5.19-rc1' of https://github.com/norov/linux: (31 commits)
        nodemask: Fix return values to be unsigned
        bitmap: Fix return values to be unsigned
        KVM: x86: hyper-v: replace bitmap_weight() with hweight64()
        KVM: x86: hyper-v: fix type of valid_bank_mask
        ia64: cleanup remove_siblinginfo()
        drm/amd/pm: use bitmap_{from,to}_arr32 where appropriate
        KVM: s390: replace bitmap_copy with bitmap_{from,to}_arr64 where appropriate
        lib/bitmap: add test for bitmap_{from,to}_arr64
        lib: add bitmap_{from,to}_arr64
        lib/bitmap: extend comment for bitmap_(from,to)_arr32()
        include/linux/find: Fix documentation
        lib/bitmap.c make bitmap_print_bitmask_to_buf parseable
        MAINTAINERS: add cpumask and nodemask files to BITMAP_API
        arch/x86: replace nodes_weight with nodes_empty where appropriate
        mm/vmstat: replace cpumask_weight with cpumask_empty where appropriate
        clocksource: replace cpumask_weight with cpumask_empty in clocksource.c
        genirq/affinity: replace cpumask_weight with cpumask_empty where appropriate
        irq: mips: replace cpumask_weight with cpumask_empty where appropriate
        drm/i915/pmu: replace cpumask_weight with cpumask_empty where appropriate
        arch/x86: replace cpumask_weight with cpumask_empty where appropriate
        ...
      d0e60d46
    • Linus Torvalds's avatar
      Merge tag 'for-5.19/parisc-2' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux · 23df9ba6
      Linus Torvalds authored
      Pull more parisc architecture updates from Helge Deller:
       "A fix to prevent crash at bootup if CONFIG_SCHED_MC is enabled, and
        add auto-detection of primary graphics card for framebuffer driver"
      
      * tag 'for-5.19/parisc-2' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux:
        parisc/stifb: Keep track of hardware path of graphics card
        parisc/stifb: Implement fb_is_primary_device()
        parisc: fix a crash with multicore scheduler
      23df9ba6
    • Linus Torvalds's avatar
      Merge tag 'for-linus-5.19-rc1b-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip · 4ccbe91d
      Linus Torvalds authored
      Pull more xen updates from Juergen Gross:
       "Two cleanup patches for Xen related code and (more important) an
        update of MAINTAINERS for Xen, as Boris Ostrovsky decided to step
        down"
      
      * tag 'for-linus-5.19-rc1b-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip:
        xen: replace xen_remap() with memremap()
        MAINTAINERS: Update Xen maintainership
        xen: switch gnttab_end_foreign_access() to take a struct page pointer
      4ccbe91d
    • Linus Torvalds's avatar
      Merge tag 'perf-tools-for-v5.19-2022-06-04' of... · 45b2e5ad
      Linus Torvalds authored
      Merge tag 'perf-tools-for-v5.19-2022-06-04' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux
      
      Pull more perf tools updates from Arnaldo Carvalho de Melo:
      
       - Synthesize task events for pre-existing threads when using 'perf lock
         --threads', as we need to show task names.
      
       - Fix unwinding with ld.lld (>= version 10.0) linked objects, where
        .eh_frame_hdr and .text are in different PT_LOAD program headers,
         which makes perf record --call-graph dwarf fail with such obkects.
      
       - Check if 'perf record' hangs in the ARM SPE (Statistical Profiling
         Extensions) 'perf test' entry when recording a workload with forks.
      
       - Trace physical address for Arm SPE events, needed for 'perf c2c' to
         locate the memory node for samples.
      
       - Fix sorting in percent_rmt_hitm_cmp() in 'perf c2c'.
      
       - Further support for Intel hybrid systems in the evlist and 'perf
         record' code.
      
       - Update IBM s/390 vendor event JSON tables.
      
       - Add metrics (JSON) for Intel Sapphirerapids.
      
       - Update metrics for Intel Alderlake.
      
       - Correct typo of sysf 'event_source' directory in the documentation.
      
      * tag 'perf-tools-for-v5.19-2022-06-04' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux:
        perf vendor events intel: Update metrics for Alderlake
        perf vendor events intel: Add metrics for Sapphirerapids
        perf c2c: Fix sorting in percent_rmt_hitm_cmp()
        perf mem: Trace physical address for Arm SPE events
        perf list: Update event description for IBM zEC12/zBC12 to latest level
        perf list: Update event description for IBM z196/z114 to latest level
        perf list: Update event description for IBM z15 to latest level
        perf list: Update event description for IBM z14 to latest level
        perf list: Update event description for IBM z13 to latest level
        perf list: Update event description for IBM z10 to latest level
        perf list: Add IBM z16 event description for s390
        perf record: Support sample-read topdown metric group for hybrid platforms
        perf lock: Change to synthesize task events
        perf unwind: Fix segbase for ld.lld linked objects
        perf test arm-spe: Check if perf-record hangs when recording workload with forks
        perf docs: Correct typo of event_sources
        perf evlist: Extend arch_evsel__must_be_in_group to support hybrid systems
      45b2e5ad
    • Steve French's avatar
      cifs: fix uninitialized pointer in error case in dfs_cache_get_tgt_share · ee3c8019
      Steve French authored
      
      
      Set default value of ppath to null.
      
      Reported-by: default avatarkernel test robot <lkp@intel.com>
      Reviewed-by: default avatarPaulo Alcantara (SUSE) <pc@cjr.nz>
      Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
      ee3c8019
  3. Jun 04, 2022