1. 27 Sep, 2021 15 commits
    • Linus Torvalds's avatar
      Merge tag 'perf-tools-fixes-for-v5.15-2021-09-27' of... · 0513e464
      Linus Torvalds authored
      Merge tag 'perf-tools-fixes-for-v5.15-2021-09-27' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux
      
      Pull more perf tools fixes from Arnaldo Carvalho de Melo:
      
       - Fix 'perf test' DWARF unwind for optimized builds.
      
       - Fix 'perf test' 'Object code reading' when dealing with samples in
         @plt symbols.
      
       - Fix off-by-one directory paths in the ARM support code.
      
       - Fix error message to eliminate confusion in 'perf config' when first
         creating a config file.
      
       - 'perf iostat' fix for system wide operation.
      
       - Fix printing of metrics when 'perf iostat' is used with one or more
         iio_root_ports and unconnected cpus (using -C).
      
       - Fix several typos in the documentation files.
      
       - Fix spelling mistake "icach" -> "icache" in the power8 JSON vendor
         files.
      
      * tag 'perf-tools-fixes-for-v5.15-2021-09-27' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux:
        perf iostat: Fix Segmentation fault from NULL 'struct perf_counts_values *'
        perf iostat: Use system-wide mode if the target cpu_list is unspecified
        perf config: Refine error message to eliminate confusion
        perf doc: Fix typos all over the place
        perf arm: Fix off-by-one directory paths.
        perf vendor events powerpc: Fix spelling mistake "icach" -> "icache"
        perf tests: Fix flaky test 'Object code reading'
        perf test: Fix DWARF unwind for optimized builds.
      0513e464
    • Linus Torvalds's avatar
      Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm · 9cccec2b
      Linus Torvalds authored
      Pull kvm fixes from Paolo Bonzini:
       "A bit late... I got sidetracked by back-from-vacation routines and
        conferences. But most of these patches are already a few weeks old and
        things look more calm on the mailing list than what this pull request
        would suggest.
      
        x86:
      
         - missing TLB flush
      
         - nested virtualization fixes for SMM (secure boot on nested
           hypervisor) and other nested SVM fixes
      
         - syscall fuzzing fixes
      
         - live migration fix for AMD SEV
      
         - mirror VMs now work for SEV-ES too
      
         - fixes for reset
      
         - possible out-of-bounds access in IOAPIC emulation
      
         - fix enlightened VMCS on Windows 2022
      
        ARM:
      
         - Add missing FORCE target when building the EL2 object
      
         - Fix a PMU probe regression on some platforms
      
        Generic:
      
         - KCSAN fixes
      
        selftests:
      
         - random fixes, mostly for clang compilation"
      
      * tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm: (43 commits)
        selftests: KVM: Explicitly use movq to read xmm registers
        selftests: KVM: Call ucall_init when setting up in rseq_test
        KVM: Remove tlbs_dirty
        KVM: X86: Synchronize the shadow pagetable before link it
        KVM: X86: Fix missed remote tlb flush in rmap_write_protect()
        KVM: x86: nSVM: don't copy virt_ext from vmcb12
        KVM: x86: nSVM: test eax for 4K alignment for GP errata workaround
        KVM: x86: selftests: test simultaneous uses of V_IRQ from L1 and L0
        KVM: x86: nSVM: restore int_vector in svm_clear_vintr
        kvm: x86: Add AMD PMU MSRs to msrs_to_save_all[]
        KVM: x86: nVMX: re-evaluate emulation_required on nested VM exit
        KVM: x86: nVMX: don't fail nested VM entry on invalid guest state if !from_vmentry
        KVM: x86: VMX: synthesize invalid VM exit when emulating invalid guest state
        KVM: x86: nSVM: refactor svm_leave_smm and smm_enter_smm
        KVM: x86: SVM: call KVM_REQ_GET_NESTED_STATE_PAGES on exit from SMM mode
        KVM: x86: reset pdptrs_from_userspace when exiting smm
        KVM: x86: nSVM: restore the L1 host state prior to resuming nested guest on SMM exit
        KVM: nVMX: Filter out all unsupported controls when eVMCS was activated
        KVM: KVM: Use cpumask_available() to check for NULL cpumask when kicking vCPUs
        KVM: Clean up benign vcpu->cpu data races when kicking vCPUs
        ...
      9cccec2b
    • Linus Torvalds's avatar
      Merge tag 'media/v5.15-2' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media · e6609f2c
      Linus Torvalds authored
      Pull media fixes from Mauro Carvalho Chehab:
       "A couple of driver fixes:
      
         - hantro: Fix check for single irq
      
         - cedrus: Fix SUNXI tile size calculation
      
         - s5p-jpeg: rename JPEG marker constants to prevent build warnings
      
         - ir_toy: prevent device from hanging during transmit"
      
      * tag 'media/v5.15-2' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media:
        media: ir_toy: prevent device from hanging during transmit
        media: s5p-jpeg: rename JPEG marker constants to prevent build warnings
        media: cedrus: Fix SUNXI tile size calculation
        media: hantro: Fix check for single irq
      e6609f2c
    • Jackie Liu's avatar
      watchdog/sb_watchdog: fix compilation problem due to COMPILE_TEST · c388a189
      Jackie Liu authored
      Compiling sb_watchdog needs to clearly define SIBYTE_HDR_FEATURES.
      In arch/mips/sibyte/Platform like:
      
        cflags-$(CONFIG_SIBYTE_BCM112X) +=                                      \
                      -I$(srctree)/arch/mips/include/asm/mach-sibyte          \
                      -DSIBYTE_HDR_FEATURES=SIBYTE_HDR_FMASK_1250_112x_ALL
      
      Otherwise, SIBYTE_HDR_FEATURES is SIBYTE_HDR_FMASK_ALL.
      SIBYTE_HDR_FMASK_ALL is mean:
      
       #define SIBYTE_HDR_FMASK_ALL  SIBYTE_HDR_FMASK_1250_ALL | SIBYTE_HDR_FMASK_112x_ALL \
      				     | SIBYTE_HDR_FMASK_1480_ALL)
      
      So, If not limited to CPU_SB1, we will get such an error:
      
        arch/mips/include/asm/sibyte/bcm1480_scd.h:261: error: "M_SPC_CFG_CLEAR" redefined [-Werror]
        arch/mips/include/asm/sibyte/bcm1480_scd.h:262: error: "M_SPC_CFG_ENABLE" redefined [-Werror]
      
      Fixes: da2a68b3 ("watchdog: Enable COMPILE_TEST where possible")
      Signed-off-by: default avatarJackie Liu <liuyun01@kylinos.cn>
      Reviewed-by: default avatarGuenter Roeck <linux@roeck-us.net>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      c388a189
    • Linus Torvalds's avatar
      vboxfs: fix broken legacy mount signature checking · 9b3b353e
      Linus Torvalds authored
      Commit 9d682ea6 ("vboxsf: Fix the check for the old binary
      mount-arguments struct") was meant to fix a build error due to sign
      mismatch in 'char' and the use of character constants, but it just moved
      the error elsewhere, in that on some architectures characters and signed
      and on others they are unsigned, and that's just how the C standard
      works.
      
      The proper fix is a simple "don't do that then".  The code was just
      being silly and odd, and it should never have cared about signed vs
      unsigned characters in the first place, since what it is testing is not
      four "characters", but four bytes.
      
      And the way to compare four bytes is by using "memcmp()".
      
      Which compilers will know to just turn into a single 32-bit compare with
      a constant, as long as you don't have crazy debug options enabled.
      
      Link: https://lore.kernel.org/lkml/20210927094123.576521-1-arnd@kernel.org/
      Cc: Arnd Bergmann <arnd@kernel.org>
      Cc: Hans de Goede <hdegoede@redhat.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      9b3b353e
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/hid/hid · 42d43c92
      Linus Torvalds authored
      Pull HID fixes from Jiri Kosina:
      
       - NULL pointer dereference fixes in amd_sfh driver (Basavaraj Natikar,
         Evgeny Novikov)
      
       - data processing fix for hid-u2fzero (Andrej Shadura)
      
       - fix for out-of-bounds write in hid-betop (F.A.Sulaiman)
      
       - new device IDs / device-specific quirks
      
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/hid/hid:
        HID: amd_sfh: Fix potential NULL pointer dereference
        HID: u2fzero: ignore incomplete packets without data
        HID: amd_sfh: Fix potential NULL pointer dereference
        HID: wacom: Add new Intuos BT (CTL-4100WL/CTL-6100WL) device IDs
        HID: apple: Fix logical maximum and usage maximum of Magic Keyboard JIS
        HID: betop: fix slab-out-of-bounds Write in betop_probe
      42d43c92
    • Like Xu's avatar
      perf iostat: Fix Segmentation fault from NULL 'struct perf_counts_values *' · 4da8b121
      Like Xu authored
      If the 'perf iostat' user specifies two or more iio_root_ports and also
      specifies the cpu(s) by -C which is not *connected to all* the above iio
      ports, the iostat_print_metric() will run into trouble:
      
      For example:
      
        $ perf iostat list
        S0-uncore_iio_0<0000:16>
        S1-uncore_iio_0<0000:97> # <--- CPU 1 is located in the socket S0
      
        $ perf iostat 0000:16,0000:97 -C 1 -- ls
        port 	Inbound Read(MB)	Inbound Write(MB)	Outbound Read(MB)	Outbound
        Write(MB) ../perf-iostat: line 12: 104418 Segmentation fault
        (core dumped) perf stat --iostat$DELIMITER$*
      
      The core-dump stack says, in the above corner case, the returned
      (struct perf_counts_values *) count will be NULL, and the caller
      iostat_print_metric() apparently doesn't not handle this case.
      
        433	struct perf_counts_values *count = perf_counts(evsel->counts, die, 0);
        434
        435	if (count->run && count->ena) {
        (gdb) p count
        $1 = (struct perf_counts_values *) 0x0
      
      The deeper reason is that there are actually no statistics from the user
      specified pair "iostat 0000:X, -C (disconnected) Y ", but let's fix it with
      minimum cost by adding a NULL check in the user space.
      
      Fixes: f9ed693e ("perf stat: Enable iostat mode for x86 platforms")
      Signed-off-by: default avatarLike Xu <likexu@tencent.com>
      Cc: Alexander Antonov <alexander.antonov@linux.intel.com>
      Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
      Cc: Ian Rogers <irogers@google.com>
      Cc: Jiri Olsa <jolsa@redhat.com>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Stephane Eranian <eranian@google.com>
      Link: http://lore.kernel.org/lkml/20210927081115.39568-2-likexu@tencent.comSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      4da8b121
    • Like Xu's avatar
      perf iostat: Use system-wide mode if the target cpu_list is unspecified · e4fe5d73
      Like Xu authored
      An iostate use case like "perf iostat 0000:16,0000:97 -- ls" should be
      implemented to work in system-wide mode to ensure that the output from
      print_header() is consistent with the user documentation perf-iostat.txt,
      rather than incorrectly assuming that the kernel does not support it:
      
       Error:
       The sys_perf_event_open() syscall returned with 22 (Invalid argument) \
       for event (uncore_iio_0/event=0x83,umask=0x04,ch_mask=0xF,fc_mask=0x07/).
       /bin/dmesg | grep -i perf may provide additional information.
      
      This error is easily fixed by assigning system-wide mode by default
      for IOSTAT_RUN only when the target cpu_list is unspecified.
      
      Fixes: f07952b1 ("perf stat: Basic support for iostat in perf")
      Signed-off-by: default avatarLike Xu <likexu@tencent.com>
      Cc: Alexander Antonov <alexander.antonov@linux.intel.com>
      Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
      Cc: Ian Rogers <irogers@google.com>
      Cc: Jiri Olsa <jolsa@redhat.com>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Stephane Eranian <eranian@google.com>
      Link: http://lore.kernel.org/lkml/20210927081115.39568-1-likexu@tencent.comSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      e4fe5d73
    • Like Xu's avatar
      perf config: Refine error message to eliminate confusion · a827c007
      Like Xu authored
      If there is no configuration file at first, the user can write any pair
      of "key.subkey=value" to the newly created configuration file, while
      value validation against a valid configurable key is *deferred* until
      the next execution or the implied execution of "perf config ... ".
      
      For example:
      
        $ rm ~/.perfconfig
        $ perf config call-graph.dump-size=65529
        $ cat ~/.perfconfig
        # this file is auto-generated.
        [call-graph]
       	dump-size = 65529
        $ perf config call-graph.dump-size=2048
        callchain: Incorrect stack dump size (max 65528): 65529
        Error: wrong config key-value pair call-graph.dump-size=65529
      
      The user might expect that the second value 2048 is valid and can be
      updated to the configuration file, but the error message is very
      confusing because the first value 65529 is not reported as an error
      during the last configuration.
      
      It is recommended not to change the current behavior of delayed
      validation (as more effort is needed), but to refine the original error
      message to *clearly indicate* that the cause of the error is the
      configuration file.
      Signed-off-by: default avatarLike Xu <likexu@tencent.com>
      Acked-by: default avatarIan Rogers <irogers@google.com>
      Cc: Jiri Olsa <jolsa@redhat.com>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Link: http://lore.kernel.org/lkml/20210924115817.58689-1-likexu@tencent.comSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      a827c007
    • Like Xu's avatar
      perf doc: Fix typos all over the place · 4da6552c
      Like Xu authored
      Considering that perf and its subcommands have so many parameters, the
      documentation is always the first stop for perf beginners. Fixing some
      spelling errors will relax the eyes of some readers a little bit.
      
       s/specicfication/specification/
       s/caheline/cacheline/
       s/tranasaction/transaction/
       s/complan/complain/
       s/sched_wakep/sched_wakeup/
       s/possble/possible/
       s/methology/methodology/
      Signed-off-by: default avatarLike Xu <likexu@tencent.com>
      Acked-by: default avatarIan Rogers <irogers@google.com>
      Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
      Cc: Jiri Olsa <jolsa@redhat.com>
      Cc: Jonathan Corbet <corbet@lwn.net>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Stephane Eranian <eranian@google.com>
      Link: http://lore.kernel.org/lkml/20210924081942.38368-1-likexu@tencent.comSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      4da6552c
    • Ian Rogers's avatar
      perf arm: Fix off-by-one directory paths. · c6613bd4
      Ian Rogers authored
      Relative path include works in the regular build due to -I paths but may
      fail in other situations.
      
      v2. Rebase. Comments on v1 were that we should handle include paths
          differently and it is agreed that can be a sensible refactor but
          beyond the scope of this change.
      https://lore.kernel.org/lkml/20210504191227.793712-1-irogers@google.com/Signed-off-by: default avatarIan Rogers <irogers@google.com>
      Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
      Cc: Jiri Olsa <jolsa@redhat.com>
      Cc: John Garry <john.garry@huawei.com>
      Cc: Leo Yan <leo.yan@linaro.org>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Mathieu Poirier <mathieu.poirier@linaro.org>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
      Cc: Stephane Eranian <eranian@google.com>
      Cc: Will Deacon <will@kernel.org>
      Cc: linux-arm-kernel@lists.infradead.org
      Link: http://lore.kernel.org/lkml/20210923154254.737657-1-irogers@google.comSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      c6613bd4
    • Colin Ian King's avatar
      perf vendor events powerpc: Fix spelling mistake "icach" -> "icache" · 774f2c08
      Colin Ian King authored
      There is a spelling mistake in the description text, fix it.
      Signed-off-by: default avatarColin King <colin.king@canonical.com>
      Acked-by: default avatarIan Rogers <irogers@google.com>
      Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
      Cc: Jiri Olsa <jolsa@redhat.com>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: kernel-janitors@vger.kernel.org
      Link: http://lore.kernel.org/lkml/20210916081314.41751-1-colin.king@canonical.comSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      774f2c08
    • James Clark's avatar
      perf tests: Fix flaky test 'Object code reading' · 0f892fd1
      James Clark authored
      This test occasionally fails on aarch64 when a sample is taken in
      free@plt and it fails with "Bytes read differ from those read by
      objdump".
      
      This is because that symbol is near a section boundary in the elf file.
      Despite the -z option to always output zeros, objdump uses
      bfd_map_over_sections() to iterate through the elf file so it doesn't
      see outside of the sections where these zeros are and can't print them.
      
      For example this boundary proceeds free@plt in libc with a gap of 48
      bytes between .plt and .text:
      
        objdump -d -z --start-address=0x23cc8 --stop-address=0x23d08 libc-2.30.so
      
        libc-2.30.so:     file format elf64-littleaarch64
      
        Disassembly of section .plt:
      
        0000000000023cc8 <*ABS*+0x7fd00@plt+0x8>:
           23cc8:	91018210 	add	x16, x16, #0x60
           23ccc:	d61f0220 	br	x17
      
        Disassembly of section .text:
      
        0000000000023d00 <abort@@GLIBC_2.17-0x98>:
           23d00:	a9bf7bfd 	stp	x29, x30, [sp, #-16]!
           23d04:	910003fd 	mov	x29, sp
      
      Taking a sample in free@plt is very rare because it is so small, but the
      test can be forced to fail almost every time on any platform by linking
      the test with a shared library that has a single empty function and
      calling it in a loop.
      
      The fix is to zero the buffers so that when there is a jump in the
      addresses output by objdump, zeros are already filled in between.
      Signed-off-by: default avatarJames Clark <james.clark@arm.com>
      Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
      Cc: Jiri Olsa <jolsa@redhat.com>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Link: http://lore.kernel.org/lkml/20210906152238.3415467-1-james.clark@arm.comSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      0f892fd1
    • Ian Rogers's avatar
      perf test: Fix DWARF unwind for optimized builds. · 5c34aea3
      Ian Rogers authored
      To ensure the stack frames are on the stack tail calls optimizations
      need to be inhibited. If your compiler supports an attribute use it,
      otherwise use an asm volatile barrier.
      
      The barrier fix was suggested here:
      https://lore.kernel.org/lkml/20201028081123.GT2628@hirez.programming.kicks-ass.net/
      Tested with an optimized clang build and by forcing the asm barrier
      route with an optimized clang build.
      
      A GCC bug tracking a proper disable_tail_calls is:
      https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97831
      
      Fixes: 9ae1e990 ("perf tools: Remove broken __no_tail_call
             attribute")
      
      v2. is a rebase. The original fix patch generated quite a lot of
          discussion over the right place for the fix:
          https://lore.kernel.org/lkml/20201114000803.909530-1-irogers@google.com/
          The patch reflects my preference of it being near the use, so that
          future code cleanups don't break this somewhat special usage.
      Signed-off-by: default avatarIan Rogers <irogers@google.com>
      Acked-by: default avatarJiri Olsa <jolsa@redhat.com>
      Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
      Cc: Ard Biesheuvel <ardb@kernel.org>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Miguel Ojeda <ojeda@kernel.org>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Stephane Eranian <eranian@google.com>
      Cc: clang-built-linux@googlegroups.com
      Link: http://lore.kernel.org/lkml/20210922173812.456348-1-irogers@google.comSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      5c34aea3
    • Basavaraj Natikar's avatar
      HID: amd_sfh: Fix potential NULL pointer dereference · 88a04049
      Basavaraj Natikar authored
      The cl_data field of a privdata must be allocated and updated before
      using in amd_sfh_hid_client_init() function.
      
      Hence handling NULL pointer cl_data accordingly.
      
      Fixes: d46ef750 ("HID: amd_sfh: Fix potential NULL pointer dereference")
      Signed-off-by: default avatarBasavaraj Natikar <Basavaraj.Natikar@amd.com>
      Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
      88a04049
  2. 26 Sep, 2021 7 commits
    • Linus Torvalds's avatar
      Linux 5.15-rc3 · 5816b3e6
      Linus Torvalds authored
      5816b3e6
    • Linus Torvalds's avatar
      Merge tag '5.15-rc2-ksmbd-fixes' of git://git.samba.org/ksmbd · 5e5d7597
      Linus Torvalds authored
      Pull ksmbd fixes from Steve French:
       "Five fixes for the ksmbd kernel server, including three security
        fixes:
      
         - remove follow symlinks support
      
         - use LOOKUP_BENEATH to prevent out of share access
      
         - SMB3 compounding security fix
      
         - fix for returning the default streams correctly, fixing a bug when
           writing ppt or doc files from some clients
      
         - logging more clearly that ksmbd is experimental (at module load
           time)"
      
      * tag '5.15-rc2-ksmbd-fixes' of git://git.samba.org/ksmbd:
        ksmbd: use LOOKUP_BENEATH to prevent the out of share access
        ksmbd: remove follow symlinks support
        ksmbd: check protocol id in ksmbd_verify_smb_message()
        ksmbd: add default data stream name in FILE_STREAM_INFORMATION
        ksmbd: log that server is experimental at module load
      5e5d7597
    • Linus Torvalds's avatar
      Merge tag 'edac_urgent_for_v5.15_rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/ras/ras · 996148ee
      Linus Torvalds authored
      Pull EDAC fixes from Borislav Petkov:
       "Fix two EDAC drivers using the wrong value type for the DIMM mode"
      
      * tag 'edac_urgent_for_v5.15_rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/ras/ras:
        EDAC/dmc520: Assign the proper type to dimm->edac_mode
        EDAC/synopsys: Fix wrong value type assignment for edac_mode
      996148ee
    • Linus Torvalds's avatar
      Merge tag 'thermal-v5.15-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/thermal/linux · 299d6e47
      Linus Torvalds authored
      Pull thermal fixes from Daniel Lezcano:
      
       - Fix thermal shutdown after a suspend/resume due to a wrong TCC value
         restored on Intel platform (Antoine Tenart)
      
       - Fix potential buffer overflow when building the list of policies. The
         buffer size is not updated after writing to it (Dan Carpenter)
      
       - Fix wrong check against IS_ERR instead of NULL (Ansuel Smith)
      
      * tag 'thermal-v5.15-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/thermal/linux:
        thermal/drivers/tsens: Fix wrong check for tzd in irq handlers
        thermal/core: Potential buffer overflow in thermal_build_list_of_policies()
        thermal/drivers/int340x: Do not set a wrong tcc offset on resume
      299d6e47
    • Linus Torvalds's avatar
      Merge tag 'x86-urgent-2021-09-26' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 5bb7b210
      Linus Torvalds authored
      Pull x86 fixes from Thomas Gleixner:
       "A set of fixes for X86:
      
         - Prevent sending the wrong signal when protection keys are enabled
           and the kernel handles a fault in the vsyscall emulation.
      
         - Invoke early_reserve_memory() before invoking e820_memory_setup()
           which is required to make the Xen dom0 e820 hooks work correctly.
      
         - Use the correct data type for the SETZ operand in the EMQCMDS
           instruction wrapper.
      
         - Prevent undefined behaviour to the potential unaligned accesss in
           the instruction decoder library"
      
      * tag 'x86-urgent-2021-09-26' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86/insn, tools/x86: Fix undefined behavior due to potential unaligned accesses
        x86/asm: Fix SETZ size enqcmds() build failure
        x86/setup: Call early_reserve_memory() earlier
        x86/fault: Fix wrong signal when vsyscall fails with pkey
      5bb7b210
    • Linus Torvalds's avatar
      Merge tag 'timers-urgent-2021-09-26' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 3a398acc
      Linus Torvalds authored
      Pull timer fix from Thomas Gleixner:
       "A single fix for the recently introduced regression in posix CPU
        timers which failed to stop the timer when requested. That caused
        unexpected signals to be sent to the process/thread causing
        malfunction"
      
      * tag 'timers-urgent-2021-09-26' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        posix-cpu-timers: Prevent spuriously armed 0-value itimer
      3a398acc
    • Linus Torvalds's avatar
      Merge tag 'irq-urgent-2021-09-26' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · dc0f97c2
      Linus Torvalds authored
      Pull irq fixes from Thomas Gleixner:
       "A set of fixes for interrupt chip drivers:
      
         - Work around a bad GIC integration on a Renesas platform which can't
           handle byte-sized MMIO access
      
         - Plug a potential memory leak in the GICv4 driver
      
         - Fix a regression in the Armada 370-XP IPI code which was caused by
           issuing EOI instack of ACK.
      
         - A couple of small fixes here and there"
      
      * tag 'irq-urgent-2021-09-26' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        irqchip/gic: Work around broken Renesas integration
        irqchip/renesas-rza1: Use semicolons instead of commas
        irqchip/gic-v3-its: Fix potential VPE leak on error
        irqchip/goldfish-pic: Select GENERIC_IRQ_CHIP to fix build
        irqchip/mbigen: Repair non-kernel-doc notation
        irqdomain: Change the type of 'size' in __irq_domain_add() to be consistent
        irqchip/armada-370-xp: Fix ack/eoi breakage
        Documentation: Fix irq-domain.rst build warning
      dc0f97c2
  3. 25 Sep, 2021 13 commits
    • Linus Torvalds's avatar
      Merge branch 'akpm' (patches from Andrew) · a3b397b4
      Linus Torvalds authored
      Merge misc fixes from Andrew Morton:
       "16 patches.
      
        Subsystems affected by this patch series: xtensa, sh, ocfs2, scripts,
        lib, and mm (memory-failure, kasan, damon, shmem, tools, pagecache,
        debug, and pagemap)"
      
      * emailed patches from Andrew Morton <akpm@linux-foundation.org>:
        mm: fix uninitialized use in overcommit_policy_handler
        mm/memory_failure: fix the missing pte_unmap() call
        kasan: always respect CONFIG_KASAN_STACK
        sh: pgtable-3level: fix cast to pointer from integer of different size
        mm/debug: sync up latest migrate_reason to migrate_reason_names
        mm/debug: sync up MR_CONTIG_RANGE and MR_LONGTERM_PIN
        mm: fs: invalidate bh_lrus for only cold path
        lib/zlib_inflate/inffast: check config in C to avoid unused function warning
        tools/vm/page-types: remove dependency on opt_file for idle page tracking
        scripts/sorttable: riscv: fix undeclared identifier 'EM_RISCV' error
        ocfs2: drop acl cache for directories too
        mm/shmem.c: fix judgment error in shmem_is_huge()
        xtensa: increase size of gcc stack frame check
        mm/damon: don't use strnlen() with known-bogus source length
        kasan: fix Kconfig check of CC_HAS_WORKING_NOSANITIZE_ADDRESS
        mm, hwpoison: add is_free_buddy_page() in HWPoisonHandlable()
      a3b397b4
    • Linus Torvalds's avatar
      Merge tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi · bb19237b
      Linus Torvalds authored
      Pull SCSI fixes from James Bottomley:
       "Thirty-three fixes, I'm afraid.
      
        Essentially the build up from the last couple of weeks while I've been
        dealling with Linux Plumbers conference infrastructure issues. It's
        mostly the usual assortment of spelling fixes and minor corrections.
      
        The only core relevant changes are to the sd driver to reduce the spin
        up message spew and fix a small memory leak on the freeing path"
      
      * tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi: (33 commits)
        scsi: ses: Retry failed Send/Receive Diagnostic commands
        scsi: target: Fix spelling mistake "CONFLIFT" -> "CONFLICT"
        scsi: lpfc: Fix gcc -Wstringop-overread warning, again
        scsi: lpfc: Use correct scnprintf() limit
        scsi: lpfc: Fix sprintf() overflow in lpfc_display_fpin_wwpn()
        scsi: core: Remove 'current_tag'
        scsi: acornscsi: Remove tagged queuing vestiges
        scsi: fas216: Kill scmd->tag
        scsi: qla2xxx: Restore initiator in dual mode
        scsi: ufs: core: Unbreak the reset handler
        scsi: sd_zbc: Support disks with more than 2**32 logical blocks
        scsi: ufs: core: Revert "scsi: ufs: Synchronize SCSI and UFS error handling"
        scsi: bsg: Fix device unregistration
        scsi: sd: Make sd_spinup_disk() less noisy
        scsi: ufs: ufs-pci: Fix Intel LKF link stability
        scsi: mpt3sas: Clean up some inconsistent indenting
        scsi: megaraid: Clean up some inconsistent indenting
        scsi: sr: Fix spelling mistake "does'nt" -> "doesn't"
        scsi: Remove SCSI CDROM MAINTAINERS entry
        scsi: megaraid: Fix Coccinelle warning
        ...
      bb19237b
    • Linus Torvalds's avatar
      Merge tag 'io_uring-5.15-2021-09-25' of git://git.kernel.dk/linux-block · f6f360ae
      Linus Torvalds authored
      Pull io_uring fixes from Jens Axboe:
       "This one looks a bit bigger than it is, but that's mainly because 2/3
        of it is enabling IORING_OP_CLOSE to close direct file descriptors.
      
        We've had a few folks using them and finding it confusing that the way
        to close them is through using -1 for file update, this just brings
        API symmetry for direct descriptors. Hence I think we should just do
        this now and have a better API for 5.15 release. There's some room for
        de-duplicating the close code, but we're leaving that for the next
        merge window.
      
        Outside of that, just small fixes:
      
         - Poll race fixes (Hao)
      
         - io-wq core dump exit fix (me)
      
         - Reschedule around potentially intensive tctx and buffer iterators
           on teardown (me)
      
         - Fix for always ending up punting files update to io-wq (me)
      
         - Put the provided buffer meta data under memcg accounting (me)
      
         - Tweak for io_write(), removing dead code that was added with the
           iterator changes in this release (Pavel)"
      
      * tag 'io_uring-5.15-2021-09-25' of git://git.kernel.dk/linux-block:
        io_uring: make OP_CLOSE consistent with direct open
        io_uring: kill extra checks in io_write()
        io_uring: don't punt files update to io-wq unconditionally
        io_uring: put provided buffer meta data under memcg accounting
        io_uring: allow conditional reschedule for intensive iterators
        io_uring: fix potential req refcount underflow
        io_uring: fix missing set of EPOLLONESHOT for CQ ring overflow
        io_uring: fix race between poll completion and cancel_hash insertion
        io-wq: ensure we exit if thread group is exiting
      f6f360ae
    • Linus Torvalds's avatar
      Merge tag 'block-5.15-2021-09-25' of git://git.kernel.dk/linux-block · 2d70de4e
      Linus Torvalds authored
      Pull block fixes from Jens Axboe:
      
       - NVMe pull request via Christoph:
            - keep ctrl->namespaces ordered (Christoph Hellwig)
            - fix incorrect h2cdata pdu offset accounting in nvme-tcp (Sagi
              Grimberg)
            - handled updated hw_queues in nvme-fc more carefully (Daniel
              Wagner, James Smart)
      
       - md lock order fix (Christoph)
      
       - fallocate locking fix (Ming)
      
       - blktrace UAF fix (Zhihao)
      
       - rq-qos bio tracking fix (Ming)
      
      * tag 'block-5.15-2021-09-25' of git://git.kernel.dk/linux-block:
        block: hold ->invalidate_lock in blkdev_fallocate
        blktrace: Fix uaf in blk_trace access after removing by sysfs
        block: don't call rq_qos_ops->done_bio if the bio isn't tracked
        md: fix a lock order reversal in md_alloc
        nvme: keep ctrl->namespaces ordered
        nvme-tcp: fix incorrect h2cdata pdu offset accounting
        nvme-fc: remove freeze/unfreeze around update_nr_hw_queues
        nvme-fc: avoid race between time out and tear down
        nvme-fc: update hardware queues before using them
      2d70de4e
    • Linus Torvalds's avatar
      Merge tag 'for-linus-5.15b-rc3-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip · 57398443
      Linus Torvalds authored
      Pull xen fixes from Juergen Gross:
       "Some minor cleanups and fixes of some theoretical bugs, as well as a
        fix of a bug introduced in 5.15-rc1"
      
      * tag 'for-linus-5.15b-rc3-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip:
        xen/x86: fix PV trap handling on secondary processors
        xen/balloon: fix balloon kthread freezing
        swiotlb-xen: this is PV-only on x86
        xen/pci-swiotlb: reduce visibility of symbols
        PCI: only build xen-pcifront in PV-enabled environments
        swiotlb-xen: ensure to issue well-formed XENMEM_exchange requests
        Xen/gntdev: don't ignore kernel unmapping error
        xen/x86: drop redundant zeroing from cpu_initialize_context()
      57398443
    • Linus Torvalds's avatar
      Merge tag 'linux-kselftest-fixes-5.15-rc3' of... · 90316e6e
      Linus Torvalds authored
      Merge tag 'linux-kselftest-fixes-5.15-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest
      
      Pull Kselftest fixes from Shuah Khan:
      
       - fix to Kselftest common framework header install to run before other
         targets for it work correctly in parallel build case.
      
       - fixes to kvm test to not ignore fscanf() returns which could result
         in inconsistent test behavior and failures.
      
      * tag 'linux-kselftest-fixes-5.15-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest:
        selftests: kvm: fix get_run_delay() ignoring fscanf() return warn
        selftests: kvm: move get_run_delay() into lib/test_util
        selftests:kvm: fix get_trans_hugepagesz() ignoring fscanf() return warn
        selftests:kvm: fix get_warnings_count() ignoring fscanf() return warn
        selftests: be sure to make khdr before other targets
      90316e6e
    • Linus Torvalds's avatar
      Merge tag 'erofs-for-5.15-rc3-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs · a5e0acea
      Linus Torvalds authored
      Pull erofs fixes from Gao Xiang:
       "Two bugfixes to fix the 4KiB blockmap chunk format availability and a
        dangling pointer usage. There is also a trivial cleanup to clarify
        compacted_2b if compacted_4b_initial > totalidx.
      
        Summary:
      
         - fix the dangling pointer use in erofs_lookup tracepoint
      
         - fix unsupported chunk format check
      
         - zero out compacted_2b if compacted_4b_initial > totalidx"
      
      * tag 'erofs-for-5.15-rc3-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs:
        erofs: clear compacted_2b if compacted_4b_initial > totalidx
        erofs: fix misbehavior of unsupported chunk format check
        erofs: fix up erofs_lookup tracepoint
      a5e0acea
    • Linus Torvalds's avatar
      Merge tag '5.15-rc2-smb3-fixes' of git://git.samba.org/sfrench/cifs-2.6 · b8f42965
      Linus Torvalds authored
      Pull cifs fixes from Steve French:
       "Six small cifs/smb3 fixes, two for stable:
      
         - important fix for deferred close (found by a git functional test)
           related to attribute caching on close.
      
         - four (two cosmetic, two more serious) small fixes for problems
           pointed out by smatch via Dan Carpenter
      
         - fix for comment formatting problems pointed out by W=1"
      
      * tag '5.15-rc2-smb3-fixes' of git://git.samba.org/sfrench/cifs-2.6:
        cifs: fix incorrect check for null pointer in header_assemble
        smb3: correct server pointer dereferencing check to be more consistent
        smb3: correct smb3 ACL security descriptor
        cifs: Clear modified attribute bit from inode flags
        cifs: Deal with some warnings from W=1
        cifs: fix a sign extension bug
      b8f42965
    • Linus Torvalds's avatar
      Merge tag 'char-misc-5.15-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc · 85736168
      Linus Torvalds authored
      Pull char/misc driver fixes from Greg KH:
       "Here are some small char and misc driver fixes for 5.15-rc3.
      
        Nothing huge in here, just fixes for a number of small issues that
        have been reported. These include:
      
         - habanalabs race conditions and other bugs fixed
      
         - binder driver fixes
      
         - fpga driver fixes
      
         - coresight build warning fix
      
         - nvmem driver fix
      
         - comedi memory leak fix
      
         - bcm-vk tty race fix
      
         - other tiny driver fixes
      
        All of these have been in linux-next for a while with no reported
        issues"
      
      * tag 'char-misc-5.15-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc: (21 commits)
        comedi: Fix memory leak in compat_insnlist()
        nvmem: NVMEM_NINTENDO_OTP should depend on WII
        misc: bcm-vk: fix tty registration race
        fpga: dfl: Avoid reads to AFU CSRs during enumeration
        fpga: machxo2-spi: Fix missing error code in machxo2_write_complete()
        fpga: machxo2-spi: Return an error on failure
        habanalabs: expose a single cs seq in staged submissions
        habanalabs: fix wait offset handling
        habanalabs: rate limit multi CS completion errors
        habanalabs/gaudi: fix LBW RR configuration
        habanalabs: Fix spelling mistake "FEADBACK" -> "FEEDBACK"
        habanalabs: fail collective wait when not supported
        habanalabs/gaudi: use direct MSI in single mode
        habanalabs: fix kernel OOPs related to staged cs
        habanalabs: fix potential race in interrupt wait ioctl
        mcb: fix error handling in mcb_alloc_bus()
        misc: genwqe: Fixes DMA mask setting
        coresight: syscfg: Fix compiler warning
        nvmem: core: Add stubs for nvmem_cell_read_variable_le_u32/64 if !CONFIG_NVMEM
        binder: make sure fd closes complete
        ...
      85736168
    • Linus Torvalds's avatar
      Merge tag 'staging-5.15-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging · 9cbef308
      Linus Torvalds authored
      Pull staging driver fixes from Greg KH:
       "Here are two small staging driver fixes for 5.15-rc3:
      
         - greybus tty use-after-free bugfix
      
         - r8188eu ioctl overlap build warning fix
      
        Note, the r8188eu ioctl has been entirely removed for 5.16-rc1, but
        it's good to get this fixed now for people using this in 5.15.
      
        Both of these have been in linux-next for a while with no reported
        issues"
      
      * tag 'staging-5.15-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging:
        staging: r8188eu: fix -Wrestrict warnings
        staging: greybus: uart: fix tty use after free
      9cbef308
    • Linus Torvalds's avatar
      Merge tag 'tty-5.15-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty · f9d4be25
      Linus Torvalds authored
      Pull tty/serial fixes from Greg KH:
       "Here are four small tty/serial driver fixes for 5.15-rc3. They
        include:
      
         - remove an export now that no one is using it anymore
      
         - mvebu-uart tx_empty callback fix
      
         - 8250_omap bugfix
      
         - synclink_gt build fix
      
        All of these have been in linux-next for a while with no reported
        issues"
      
      * tag 'tty-5.15-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty:
        tty: unexport tty_ldisc_release
        tty: synclink_gt: rename a conflicting function name
        serial: mvebu-uart: fix driver's tx_empty callback
        serial: 8250: 8250_omap: Fix RX_LVL register offset
      f9d4be25
    • Linus Torvalds's avatar
      Merge tag 'usb-5.15-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb · 2c4e969c
      Linus Torvalds authored
      Pull USB driver fixes from Greg KH:
       "Here are some USB driver fixes and new device ids for 5.15-rc3.
      
        They include:
      
         - usb-storage quirk additions
      
         - usb-serial new device ids
      
         - usb-serial driver fixes
      
         - USB roothub registration bugfix to resolve a long-reported issue
      
         - usb gadget driver fixes for a large number of small things
      
         - dwc2 driver fixes
      
        All of these have been in linux-next for a while with no reported
        issues"
      
      * tag 'usb-5.15-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb: (28 commits)
        USB: serial: option: add device id for Foxconn T99W265
        USB: serial: cp210x: add ID for GW Instek GDM-834x Digital Multimeter
        USB: serial: cp210x: add part-number debug printk
        USB: serial: cp210x: fix dropped characters with CP2102
        MAINTAINERS: usb, update Peter Korsgaard's entries
        usb: musb: tusb6010: uninitialized data in tusb_fifo_write_unaligned()
        usb-storage: Add quirk for ScanLogic SL11R-IDE older than 2.6c
        Re-enable UAS for LaCie Rugged USB3-FW with fk quirk
        USB: serial: option: remove duplicate USB device ID
        USB: serial: mos7840: remove duplicated 0xac24 device ID
        arm64: dts: qcom: ipq8074: remove USB tx-fifo-resize property
        usb: gadget: f_uac2: Populate SS descriptors' wBytesPerInterval
        usb: gadget: f_uac2: Add missing companion descriptor for feedback EP
        usb: dwc2: gadget: Fix ISOC transfer complete handling for DDMA
        usb: core: hcd: Modularize HCD stop configuration in usb_stop_hcd()
        xhci: Set HCD flag to defer primary roothub registration
        usb: core: hcd: Add support for deferring roothub registration
        usb: dwc2: gadget: Fix ISOC flow for BDMA and Slave
        usb: dwc3: core: balance phy init and exit
        Revert "USB: bcma: Add a check for devm_gpiod_get"
        ...
      2c4e969c
    • Hyunchul Lee's avatar
      ksmbd: use LOOKUP_BENEATH to prevent the out of share access · 265fd199
      Hyunchul Lee authored
      instead of removing '..' in a given path, call
      kern_path with LOOKUP_BENEATH flag to prevent
      the out of share access.
      
      ran various test on this:
      smb2-cat-async smb://127.0.0.1/homes/../out_of_share
      smb2-cat-async smb://127.0.0.1/homes/foo/../../out_of_share
      smbclient //127.0.0.1/homes -c "mkdir ../foo2"
      smbclient //127.0.0.1/homes -c "rename bar ../bar"
      
      Cc: Ronnie Sahlberg <ronniesahlberg@gmail.com>
      Cc: Ralph Boehme <slow@samba.org>
      Tested-by: default avatarSteve French <smfrench@gmail.com>
      Tested-by: default avatarNamjae Jeon <linkinjeon@kernel.org>
      Acked-by: default avatarNamjae Jeon <linkinjeon@kernel.org>
      Signed-off-by: default avatarHyunchul Lee <hyc.lee@gmail.com>
      Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
      265fd199
  4. 24 Sep, 2021 5 commits