1. 16 Oct, 2021 13 commits
    • Linus Torvalds's avatar
      Merge tag 'perf-tools-fixes-for-v5.15-2021-10-16' of... · d999ade1
      Linus Torvalds authored
      Merge tag 'perf-tools-fixes-for-v5.15-2021-10-16' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux
      Pull perf tools fixes from Arnaldo Carvalho de Melo:
       - Fix 'perf test evsel' build error on !x86 architectures
       - Fix libperf's test_stat_cpu mixup of CPU numbers and CPU indexes
       - Output offsets for decompressed records, not just useless zeros
      * tag 'perf-tools-fixes-for-v5.15-2021-10-16' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux:
        libperf tests: Fix test_stat_cpu
        libperf test evsel: Fix build error on !x86 architectures
        perf report: Output non-zero offset for decompressed records
    • Linus Torvalds's avatar
      Merge tag 'fixes-2021-10-16' of git://git.kernel.org/pub/scm/linux/kernel/git/rppt/memblock · ccfb5ceb
      Linus Torvalds authored
      Pull memblock fix from Mike Rapoport:
       "Fix handling of NOMAP regions with kmemleak.
        NOMAP regions don't have linear map entries so an attempt to scan
        these areas in kmemleak would fault.
        Prevent such faults by excluding NOMAP regions from kmemleak"
      * tag 'fixes-2021-10-16' of git://git.kernel.org/pub/scm/linux/kernel/git/rppt/memblock:
        memblock: exclude NOMAP regions from kmemleak
    • Linus Torvalds's avatar
      Merge tag 'trace-v5.15-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace · 368a978c
      Linus Torvalds authored
      Tracing fixes for 5.15:
       - Fix defined but not use warning/error for osnoise function
       - Fix memory leak in event probe
       - Fix memblock leak in bootconfig
       - Fix the API of event probes to be like kprobes
       - Added test to check removal of event probe API
       - Fix recordmcount.pl for nds32 failed build
      * tag 'trace-v5.15-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace:
        nds32/ftrace: Fix Error: invalid operands (*UND* and *UND* sections) for `^'
        selftests/ftrace: Update test for more eprobe removal process
        tracing: Fix event probe removal from dynamic events
        tracing: Fix missing * in comment block
        bootconfig: init: Fix memblock leak in xbc_make_cmdline()
        tracing: Fix memory leak in eprobe_register()
        tracing: Fix missing osnoise tracer on max_latency
    • Linus Torvalds's avatar
      Merge tag 'clk-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/clk/linux · 6985c40a
      Linus Torvalds authored
      Pull clk driver fixes from Stephen Boyd:
       "Clk driver fixes for critical issues found in the past few weeks:
         - Select gdsc config so qcom sm6350 driver probes
         - Fix a register offset in qcom gcc-sm6115 so the correct clk is
         - Fix inverted logic in Renesas RZ/G2L .is_enabled()
         - Mark some more clks critical in Renesas clk driver
         - Remove a duplicate clk in the agilex driver"
      * tag 'clk-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/clk/linux:
        clk: qcom: add select QCOM_GDSC for SM6350
        clk: qcom: gcc-sm6115: Fix offset for hlos1_vote_turing_mmu_tbu0_gdsc
        clk: socfpga: agilex: fix duplicate s2f_user0_clk
        clk: renesas: rzg2l: Fix clk status function
        clk: renesas: r9a07g044: Mark IA55_CLK and DMAC_ACLK critical
    • Linus Torvalds's avatar
      Merge tag 'for-5.15/dm-fixes' of... · dcd61984
      Linus Torvalds authored
      Merge tag 'for-5.15/dm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm
      Pull device mapper fixes from Mike Snitzer:
       - Fix DM verity target to skip redundant processing on I/O errors.
       - Fix request-based DM so that it doesn't queue request to blk-mq when
         DM device is suspended.
       - Fix DM core mempool NULL pointer race when completing IO.
       - Make DM clone target's 'descs' array static.
      * tag 'for-5.15/dm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm:
        dm: fix mempool NULL pointer race when completing IO
        dm rq: don't queue request to blk-mq during DM suspend
        dm clone: make array 'descs' static
        dm verity: skip redundant verity_handle_err() on I/O errors
    • Linus Torvalds's avatar
      Merge tag 's390-5.15-6' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux · 304040fb
      Linus Torvalds authored
      Pull s390 fixes from Vasily Gorbik:
       - Maintainers and reviewers changes:
          * Cornelia decided to free up her time and step down from vfio-ccw
            maintainer and s390 kvm reviewer duties
          * Add Alexander Gordeev as s390 arch code reviewer
       - Fix broken strrchr implementation
      * tag 's390-5.15-6' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux:
        s390: add Alexander Gordeev as reviewer
        s390: fix strrchr() implementation
        vfio-ccw: step down as maintainer
        KVM: s390: remove myself as reviewer
    • Linus Torvalds's avatar
      Merge tag 'csky-for-linus-5.15-rc6' of git://github.com/c-sky/csky-linux · c13f946b
      Linus Torvalds authored
      Pull csky fixes from Guo Ren:
       "Only 5 fixups:
         - Make HAVE_TCM depend on !COMPILE_TEST
         - bitops: Remove duplicate __clear_bit define
         - Select ARCH_WANT_FRAME_POINTERS only if compiler supports it
         - Fixup regs.sr broken in ptrace
         - don't let sigreturn play with priveleged bits of status register"
      * tag 'csky-for-linus-5.15-rc6' of git://github.com/c-sky/csky-linux:
        csky: Make HAVE_TCM depend on !COMPILE_TEST
        csky: bitops: Remove duplicate __clear_bit define
        csky: Select ARCH_WANT_FRAME_POINTERS only if compiler supports it
        csky: Fixup regs.sr broken in ptrace
        csky: don't let sigreturn play with priveleged bits of status register
    • Linus Torvalds's avatar
      Merge tag 'arc-5.15-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/vgupta/arc · 5fd01b72
      Linus Torvalds authored
      Pull ARC fix from Vineet Gupta:
       "Small fixlet for ARC"
      * tag 'arc-5.15-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/vgupta/arc:
        ARC: fix potential build snafu
    • Linus Torvalds's avatar
      Merge tag 'arm-soc-fixes-5.15-2' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc · f0429816
      Linus Torvalds authored
      Pull ARM SoC fixes from Arnd Bergmann:
       "A small number fixes this time, mostly touching actual code:
         - Add platform device for i.MX System Reset Controller (SRC) to
           fix a regression caused by fw_devlink change
         - A fixup for a boot regression caused by my own rework for the
           Qualcomm SCM driver
         - Multiple bugfixes for the Arm FFA and optee firmware drivers,
           addressing problems when they are built as a loadable module
         - Four dts bugfixes for the Broadcom SoC used in Raspberry pi,
           addressing VEC (video encoder), MDIO bus controller
           #address-cells/#size-cells, SDIO voltage and PCIe host bridge
           dtc warnings"
      * tag 'arm-soc-fixes-5.15-2' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc:
        ARM: imx: register reset controller from a platform driver
        iommu/arm: fix ARM_SMMU_QCOM compilation
        ARM: dts: bcm2711-rpi-4-b: Fix usb's unit address
        ARM: dts: bcm2711-rpi-4-b: Fix pcie0's unit address formatting
        tee: optee: Fix missing devices unregister during optee_remove
        ARM: dts: bcm2711-rpi-4-b: fix sd_io_1v8_reg regulator states
        ARM: dts: bcm2711: fix MDIO #address- and #size-cells
        ARM: dts: bcm283x: Fix VEC address for BCM2711
        firmware: arm_ffa: Fix __ffa_devices_unregister
        firmware: arm_ffa: Add missing remove callback to ffa_bus_type
    • Linus Torvalds's avatar
      Merge tag 'pci-v5.15-fixes-2' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci · 5a7ee55b
      Linus Torvalds authored
      Pull pci fix from Bjorn Helgaas:
       - Don't save msi_populate_sysfs() error code as dev->msi_irq_groups so
         we don't dereference the error code as a pointer (Wang Hai)
      * tag 'pci-v5.15-fixes-2' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci:
        PCI/MSI: Handle msi_populate_sysfs() errors correctly
    • Linus Torvalds's avatar
      Merge tag 'acpi-5.15-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm · 711c3686
      Linus Torvalds authored
      Pull ACPI fix from Rafael Wysocki:
       "Add a missing device ID to a quirk list in the suspend-to-idle support
      * tag 'acpi-5.15-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
        ACPI: PM: Include alternate AMDI0005 id in special behaviour
    • Steven Rostedt's avatar
      nds32/ftrace: Fix Error: invalid operands (*UND* and *UND* sections) for `^' · be358af1
      Steven Rostedt authored
      I received a build failure for a new patch I'm working on the nds32
      architecture, and when I went to test it, I couldn't get to my build error,
      because it failed to build with a bunch of:
        Error: invalid operands (*UND* and *UND* sections) for `^'
      issues with various files. Those files were temporary asm files that looked
      like:  kernel/.tmp_mc_fork.s
      I decided to look deeper, and found that the "mc" portion of that name
      stood for "mcount", and was created by the recordmcount.pl script. One that
      I wrote over a decade ago. Once I knew the source of the problem, I was
      able to investigate it further.
      The way the recordmcount.pl script works (BTW, there's a C version that
      simply modifies the ELF object) is by doing an "objdump" on the object
      file. Looks for all the calls to "mcount", and creates an offset of those
      locations from some global variable it can use (usually a global function
      name, found with <.*>:). Creates a asm file that is a table of references
      to these locations, using the found variable/function. Compiles it and
      links it back into the original object file. This asm file is called
      The problem here is that the objdump produced by the nds32 object file,
      contains things that look like:
       0000159a <.L3^B1>:
          159a:       c6 00           beqz38 $r6, 159a <.L3^B1>
                              159a: R_NDS32_9_PCREL_RELA      .text+0x159e
          159c:       84 d2           movi55 $r6, #-14
          159e:       80 06           mov55 $r0, $r6
          15a0:       ec 3c           addi10.sp #0x3c
      Where ".L3^B1 is somehow selected as the "global" variable to index off of.
      Then the assembly file that holds the mcount locations looks like this:
              .section __mcount_loc,"a",@progbits
              .align 2
              .long .L3^B1 + -5522
              .long .L3^B1 + -5384
              .long .L3^B1 + -5270
              .long .L3^B1 + -5098
              .long .L3^B1 + -4970
              .long .L3^B1 + -4758
              .long .L3^B1 + -4122
      And when it is compiled back to an object to link to the original object,
      the compile fails on the "^" symbol.
      Simple solution for now, is to have the perl script ignore using function
      symbols that have an "^" in the name.
      Link: https://lkml.kernel.org/r/20211014143507.4ad2c0f7@gandalf.local.home
      Cc: stable@vger.kernel.org
      Acked-by: default avatarGreentime Hu <green.hu@gmail.com>
      Fixes: fbf58a52
       ("nds32/ftrace: Add RECORD_MCOUNT support")
      Signed-off-by: default avatarSteven Rostedt (VMware) <rostedt@goodmis.org>
    • Vineet Gupta's avatar
      ARC: fix potential build snafu · c3ca31ce
      Vineet Gupta authored
      In the big pgtable header split, I inadvertently introduced a couple of
      duplicate symbols.
      Fixes: fe6cb7b0
       ("ARC: mm: disintegrate pgtable.h into levels and flags")
      Signed-off-by: default avatarVineet Gupta <vgupta@kernel.org>
  2. 15 Oct, 2021 21 commits
  3. 14 Oct, 2021 6 commits
    • Linus Torvalds's avatar
      Merge tag 'net-5.15-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net · ec681c53
      Linus Torvalds authored
      Pull networking fixes from Jakub Kicinski:
       "Quite calm.
        The noisy DSA driver (embedded switches) changes, and adjustment to
        IPv6 IOAM behavior add to diffstat's bottom line but are not scary.
        Current release - regressions:
         - af_unix: rename UNIX-DGRAM to UNIX to maintain backwards
         - procfs: revert "add seq_puts() statement for dev_mcast", minor
           format change broke user space
        Current release - new code bugs:
         - dsa: fix bridge_num not getting cleared after ports leaving the
           bridge, resource leak
         - dsa: tag_dsa: send packets with TX fwd offload from VLAN-unaware
           bridges using VID 0, prevent packet drops if pvid is removed
         - dsa: mv88e6xxx: keep the pvid at 0 when VLAN-unaware, prevent HW
           getting confused about station to VLAN mapping
        Previous releases - regressions:
         - virtio-net: fix for skb_over_panic inside big mode
         - phy: do not shutdown PHYs in READY state
         - dsa: mv88e6xxx: don't use PHY_DETECT on internal PHY's, fix link
           LED staying lit after ifdown
         - mptcp: fix possible infinite wait on recvmsg(MSG_WAITALL)
         - mqprio: Correct stats in mqprio_dump_class_stats()
         - ice: fix deadlock for Tx timestamp tracking flush
         - stmmac: fix feature detection on old hardware
        Previous releases - always broken:
         - sctp: account stream padding length for reconf chunk
         - icmp: fix icmp_ext_echo_iio parsing in icmp_build_probe()
         - isdn: cpai: check ctr->cnr to avoid array index out of bound
         - isdn: mISDN: fix sleeping function called from invalid context
         - nfc: nci: fix potential UAF of rf_conn_info object
         - dsa: microchip: prevent ksz_mib_read_work from kicking back in
           after it's canceled in .remove and crashing
         - dsa: mv88e6xxx: isolate the ATU databases of standalone and bridged
         - dsa: sja1105, ocelot: break circular dependency between switch and
           tag drivers
         - dsa: felix: improve timestamping in presence of packe loss
         - mlxsw: thermal: fix out-of-bounds memory accesses
         - ipv6: ioam: move the check for undefined bits to improve
      * tag 'net-5.15-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net: (60 commits)
        icmp: fix icmp_ext_echo_iio parsing in icmp_build_probe
        MAINTAINERS: Update the devicetree documentation path of imx fec driver
        sctp: account stream padding length for reconf chunk
        mlxsw: thermal: Fix out-of-bounds memory accesses
        ethernet: s2io: fix setting mac address during resume
        NFC: digital: fix possible memory leak in digital_in_send_sdd_req()
        NFC: digital: fix possible memory leak in digital_tg_listen_mdaa()
        nfc: fix error handling of nfc_proto_register()
        Revert "net: procfs: add seq_puts() statement for dev_mcast"
        net: encx24j600: check error in devm_regmap_init_encx24j600
        net: korina: select CRC32
        net: arc: select CRC32
        net: dsa: felix: break at first CPU port during init and teardown
        net: dsa: tag_ocelot_8021q: fix inability to inject STP BPDUs into BLOCKING ports
        net: dsa: felix: purge skb from TX timestamping queue if it cannot be sent
        net: dsa: tag_ocelot_8021q: break circular dependency with ocelot switch lib
        net: dsa: tag_ocelot: break circular dependency with ocelot switch lib driver
        net: mscc: ocelot: cross-check the sequence id from the timestamp FIFO with the skb PTP header
        net: mscc: ocelot: deny TX timestamping of non-PTP packets
        net: mscc: ocelot: warn when a PTP IRQ is raised for an unknown skb
    • Shunsuke Nakamura's avatar
      libperf tests: Fix test_stat_cpu · 3ff6d64e
      Shunsuke Nakamura authored
      The `cpu` argument of perf_evsel__read() must specify the cpu index.
      perf_cpu_map__for_each_cpu() is for iterating the cpu number (not index)
      and is thus not appropriate for use with perf_evsel__read().
      So, if there is an offline CPU, the cpu number specified in the argument
      may point out of range because the cpu number and the cpu index are
      Fix test_stat_cpu().
      Testing it:
        # make tests -C tools/lib/perf/
        make: Entering directory '/home/nakamura/kernel_src/linux-5.15-rc4_fix/tools/lib/perf'
        running static:
        - running tests/test-cpumap.c...OK
        - running tests/test-threadmap.c...OK
        - running tests/test-evlist.c...OK
        - running tests/test-evsel.c...OK
        running dynamic:
        - running tests/test-cpumap.c...OK
        - running tests/test-threadmap.c...OK
        - running tests/test-evlist.c...OK
        - running tests/test-evsel.c...OK
        make: Leaving directory '/home/nakamura/kernel_src/linux-5.15-rc4_fix/tools/lib/perf'
      Signed-off-by: default avatarShunsuke Nakamura <nakamura.shun@fujitsu.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>
      Link: http://lore.kernel.org/lkml/20211011083704.4108720-1-nakamura.shun@fujitsu.com
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
    • Shunsuke Nakamura's avatar
      libperf test evsel: Fix build error on !x86 architectures · f304c8d9
      Shunsuke Nakamura authored
      In test_stat_user_read, following build error occurs except i386 and
      x86_64 architectures:
      tests/test-evsel.c:129:31: error: variable 'pc' set but not used [-Werror=unused-but-set-variable]
        struct perf_event_mmap_page *pc;
      Fix build error.
      Signed-off-by: default avatarShunsuke Nakamura <nakamura.shun@fujitsu.com>
      Acked-by: default avatarJiri Olsa <jolsa@redhat.com>
      Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Link: https://lore.kernel.org/r/20211006095703.477826-1-nakamura.shun@fujitsu.com
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
    • Alexey Bayduraev's avatar
      perf report: Output non-zero offset for decompressed records · 8e820f96
      Alexey Bayduraev authored
      Print offset of PERF_RECORD_COMPRESSED record instead of zero for
      decompressed records in raw trace dump (-D option of perf-report):
        0x17cf08 [0x28]: event: 9
      instead of:
        0 [0x28]: event: 9
      The fix is not critical, because currently file_pos for compressed
      events is used in perf_session__process_event only to show offsets
      in the raw dump.
      This patch was separated from patchset:
      and was already rewieved.
      Reviewed-by: default avatarRiccardo Mancini <rickyman7@gmail.com>
      Signed-off-by: default avatarAlexey Bayduraev <alexey.v.bayduraev@linux.intel.com>
      Tested-by: default avatarRiccardo Mancini <rickyman7@gmail.com>
      Acked-by: default avatarAndi Kleen <ak@linux.intel.com>
      Acked-by: default avatarJiri Olsa <jolsa@redhat.com>
      Acked-by: default avatarNamhyung Kim <namhyung@kernel.org>
      Cc: Adrian Hunter <adrian.hunter@intel.com>
      Cc: Alexander Antonov <alexander.antonov@linux.intel.com>
      Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
      Cc: Alexei Budankov <abudankov@huawei.com>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Link: https://lore.kernel.org/r/20210929091445.18274-1-alexey.v.bayduraev@linux.intel.com
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
    • Xin Long's avatar
      icmp: fix icmp_ext_echo_iio parsing in icmp_build_probe · 1fcd7945
      Xin Long authored
      In icmp_build_probe(), the icmp_ext_echo_iio parsing should be done
      step by step and skb_header_pointer() return value should always be
      checked, this patch fixes 3 places in there:
        - On case ICMP_EXT_ECHO_CTYPE_NAME, it should only copy ident.name
          from skb by skb_header_pointer(), its len is ident_len. Besides,
          the return value of skb_header_pointer() should always be checked.
        - On case ICMP_EXT_ECHO_CTYPE_INDEX, move ident_len check ahead of
          skb_header_pointer(), and also do the return value check for
        - On case ICMP_EXT_ECHO_CTYPE_ADDR, before accessing iio->ident.addr.
          ctype3_hdr.addrlen, skb_header_pointer() should be called first,
          then check its return value and ident_len.
          On subcases ICMP_AFI_IP and ICMP_AFI_IP6, also do check for ident.
          addr.ctype3_hdr.addrlen and skb_header_pointer()'s return value.
          On subcase ICMP_AFI_IP, the len for skb_header_pointer() should be
          "sizeof(iio->extobj_hdr) + sizeof(iio->ident.addr.ctype3_hdr) +
          sizeof(struct in_addr)" or "ident_len".
        - To make it more clear, call skb_header_pointer() once only for
          iio->indent's parsing as Jakub Suggested.
        - The extobj_hdr.length check against sizeof(_iio) should be done
          before calling skb_header_pointer(), as Eric noticed.
      Fixes: d329ea5b
       ("icmp: add response to RFC 8335 PROBE messages")
      Reported-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
      Signed-off-by: default avatarXin Long <lucien.xin@gmail.com>
      Reviewed-by: default avatarEric Dumazet <edumazet@google.com>
      Link: https://lore.kernel.org/r/31628dd76657ea62f5cf78bb55da6b35240831f1.1634205050.git.lucien.xin@gmail.com
      Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
    • Cai Huoqing's avatar
      MAINTAINERS: Update the devicetree documentation path of imx fec driver · ea142b09
      Cai Huoqing authored
      Change the devicetree documentation path
      to "Documentation/devicetree/bindings/net/fsl,fec.yaml"
      since 'fsl-fec.txt' has been converted to 'fsl,fec.yaml' already.
      Signed-off-by: default avatarCai Huoqing <caihuoqing@baidu.com>
      Link: https://lore.kernel.org/r/20211014110214.3254-1-caihuoqing@baidu.com
      Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>