1. 01 Apr, 2022 11 commits
  2. 30 Mar, 2022 3 commits
    • Linus Torvalds's avatar
      fs: fix fd table size alignment properly · d888c83f
      Linus Torvalds authored
      Jason Donenfeld reports that my commit 1c24a186 ("fs: fd tables have
      to be multiples of BITS_PER_LONG") doesn't work, and the reason is an
      embarrassing brown-paper-bag bug.
      
      Yes, we want to align the number of fds to BITS_PER_LONG, and yes, the
      reason they might not be aligned is because the incoming 'max_fd'
      argument might not be aligned.
      
      But aligining the argument - while simple - will cause a "infinitely
      big" maxfd (eg NR_OPEN_MAX) to just overflow to zero.  Which most
      definitely isn't what we want either.
      
      The obvious fix was always just to do the alignment last, but I had
      moved it earlier just to make the patch smaller and the code look
      simpler.  Duh.  It certainly made _me_ look simple.
      
      Fixes: 1c24a186 ("fs: fd tables have to be multiples of BITS_PER_LONG")
      Reported-and-tested-by: default avatarJason A. Donenfeld <Jason@zx2c4.com>
      Cc: Fedor Pchelkin <aissur0002@gmail.com>
      Cc: Alexey Khoroshilov <khoroshilov@ispras.ru>
      Cc: Christian Brauner <brauner@kernel.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      d888c83f
    • Linus Torvalds's avatar
      Merge tag 'nfs-for-5.18-1' of git://git.linux-nfs.org/projects/trondmy/linux-nfs · 965181d7
      Linus Torvalds authored
      Pull NFS client updates from Trond Myklebust:
       "Highlights include:
      
        Features:
      
         - Switch NFS to use readahead instead of the obsolete readpages.
      
         - Readdir fixes to improve cacheability of large directories when
           there are multiple readers and writers.
      
         - Readdir performance improvements when doing a seekdir() immediately
           after opening the directory (common when re-exporting NFS).
      
         - NFS swap improvements from Neil Brown.
      
         - Loosen up memory allocation to permit direct reclaim and write back
           in cases where there is no danger of deadlocking the writeback code
           or NFS swap.
      
         - Avoid sillyrename when the NFSv4 server claims to support the
           necessary features to recover the unlinked but open file after
           reboot.
      
        Bugfixes:
      
         - Patch from Olga to add a mount option to control NFSv4.1 session
           trunking discovery, and default it to being off.
      
         - Fix a lockup in nfs_do_recoalesce().
      
         - Two fixes for list iterator variables being used when pointing to
           the list head.
      
         - Fix a kernel memory scribble when reading from a non-socket
           transport in /sys/kernel/sunrpc.
      
         - Fix a race where reconnecting to a server could leave the TCP
           socket stuck forever in the connecting state.
      
         - Patch from Neil to fix a shutdown race which can leave the SUNRPC
           transport timer primed after we free the struct xprt itself.
      
         - Patch from Xin Xiong to fix reference count leaks in the NFSv4.2
           copy offload.
      
         - Sunrpc patch from Olga to avoid resending a task on an offlined
           transport.
      
        Cleanups:
      
         - Patches from Dave Wysochanski to clean up the fscache code"
      
      * tag 'nfs-for-5.18-1' of git://git.linux-nfs.org/projects/trondmy/linux-nfs: (91 commits)
        NFSv4/pNFS: Fix another issue with a list iterator pointing to the head
        NFS: Don't loop forever in nfs_do_recoalesce()
        SUNRPC: Don't return error values in sysfs read of closed files
        SUNRPC: Do not dereference non-socket transports in sysfs
        NFSv4.1: don't retry BIND_CONN_TO_SESSION on session error
        SUNRPC don't resend a task on an offlined transport
        NFS: replace usage of found with dedicated list iterator variable
        SUNRPC: avoid race between mod_timer() and del_timer_sync()
        pNFS/files: Ensure pNFS allocation modes are consistent with nfsiod
        pNFS/flexfiles: Ensure pNFS allocation modes are consistent with nfsiod
        NFSv4/pnfs: Ensure pNFS allocation modes are consistent with nfsiod
        NFS: Avoid writeback threads getting stuck in mempool_alloc()
        NFS: nfsiod should not block forever in mempool_alloc()
        SUNRPC: Make the rpciod and xprtiod slab allocation modes consistent
        SUNRPC: Fix unx_lookup_cred() allocation
        NFS: Fix memory allocation in rpc_alloc_task()
        NFS: Fix memory allocation in rpc_malloc()
        SUNRPC: Improve accuracy of socket ENOBUFS determination
        SUNRPC: Replace internal use of SOCKWQ_ASYNC_NOSPACE
        SUNRPC: Fix socket waits for write buffer space
        ...
      965181d7
    • Linus Torvalds's avatar
      Merge tag 'jfs-5.18' of https://github.com/kleikamp/linux-shaggy · 1ec48f95
      Linus Torvalds authored
      Pull jfs updates from Dave Kleikamp:
       "A couple bug fixes"
      
      * tag 'jfs-5.18' of https://github.com/kleikamp/linux-shaggy:
        jfs: prevent NULL deref in diFree
        jfs: fix divide error in dbNextAG
      1ec48f95
  3. 29 Mar, 2022 18 commits
    • Linus Torvalds's avatar
      fs: fd tables have to be multiples of BITS_PER_LONG · 1c24a186
      Linus Torvalds authored
      This has always been the rule: fdtables have several bitmaps in them,
      and as a result they have to be sized properly for bitmaps.  We walk
      those bitmaps in chunks of 'unsigned long' in serveral cases, but even
      when we don't, we use the regular kernel bitops that are defined to work
      on arrays of 'unsigned long', not on some byte array.
      
      Now, the distinction between arrays of bytes and 'unsigned long'
      normally only really ends up being noticeable on big-endian systems, but
      Fedor Pchelkin and Alexey Khoroshilov reported that copy_fd_bitmaps()
      could be called with an argument that wasn't even a multiple of
      BITS_PER_BYTE.  And then it fails to do the proper copy even on
      little-endian machines.
      
      The bug wasn't in copy_fd_bitmap(), but in sane_fdtable_size(), which
      didn't actually sanitize the fdtable size sufficiently, and never made
      sure it had the proper BITS_PER_LONG alignment.
      
      That's partly because the alignment historically came not from having to
      explicitly align things, but simply from previous fdtable sizes, and
      from count_open_files(), which counts the file descriptors by walking
      them one 'unsigned long' word at a time and thus naturally ends up doing
      sizing in the proper 'chunks of unsigned long'.
      
      But with the introduction of close_range(), we now have an external
      source of "this is how many files we want to have", and so
      sane_fdtable_size() needs to do a better job.
      
      This also adds that explicit alignment to alloc_fdtable(), although
      there it is mainly just for documentation at a source code level.  The
      arithmetic we do there to pick a reasonable fdtable size already aligns
      the result sufficiently.
      
      In fact,clang notices that the added ALIGN() in that function doesn't
      actually do anything, and does not generate any extra code for it.
      
      It turns out that gcc ends up confusing itself by combining a previous
      constant-sized shift operation with the variable-sized shift operations
      in roundup_pow_of_two().  And probably due to that doesn't notice that
      the ALIGN() is a no-op.  But that's a (tiny) gcc misfeature that doesn't
      matter.  Having the explicit alignment makes sense, and would actually
      matter on a 128-bit architecture if we ever go there.
      
      This also adds big comments above both functions about how fdtable sizes
      have to have that BITS_PER_LONG alignment.
      
      Fixes: 60997c3d ("close_range: add CLOSE_RANGE_UNSHARE")
      Reported-by: default avatarFedor Pchelkin <aissur0002@gmail.com>
      Reported-by: default avatarAlexey Khoroshilov <khoroshilov@ispras.ru>
      Link: https://lore.kernel.org/all/20220326114009.1690-1-aissur0002@gmail.com/Tested-and-acked-by: default avatarChristian Brauner <brauner@kernel.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      1c24a186
    • Linus Torvalds's avatar
      Merge tag 'devprop-5.18-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm · 13776ebb
      Linus Torvalds authored
      Pull device properties code update from Rafael Wysocki:
       "This is based on new i2c material for 5.18-rc1 and simply reorganizes
        the code on top of it so as to group similar functions together (Andy
        Shevchenko)"
      
      * tag 'devprop-5.18-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
        device property: Don't split fwnode_get_irq*() APIs in the code
      13776ebb
    • Linus Torvalds's avatar
      Merge tag 'pm-5.18-rc1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm · 1d59c3b6
      Linus Torvalds authored
      Pull more power management updates from Rafael Wysocki:
       "These update ARM cpufreq drivers, the OPP (Operating Performance
        Points) library and the power management documentation.
      
        Specifics:
      
         - Add per core DVFS support for QCom SoC (Bjorn Andersson), convert
           to yaml binding (Manivannan Sadhasivam) and various other fixes to
           the QCom drivers (Luca Weiss).
      
         - Add OPP table for imx7s SoC (Denys Drozdov) and minor fixes (Stefan
           Agner).
      
         - Fix CPPC driver's freq/performance conversions (Pierre Gondois).
      
         - Minor generic cleanups (Yury Norov).
      
         - Introduce opp-microwatt property to the OPP core, bindings, etc
           (Lukasz Luba).
      
         - Convert DT bindings to schema format and various related fixes
           (Yassine Oudjana).
      
         - Expose OPP's OF node in debugfs (Viresh Kumar).
      
         - Add Intel uncore frequency scaling documentation file to its
           MAINTAINERS entry (Srinivas Pandruvada).
      
         - Clean up the AMD P-state driver documentation (Jan Engelhardt)"
      
      * tag 'pm-5.18-rc1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm: (24 commits)
        Documentation: amd-pstate: grammar and sentence structure updates
        dt-bindings: cpufreq: cpufreq-qcom-hw: Convert to YAML bindings
        dt-bindings: dvfs: Use MediaTek CPUFREQ HW as an example
        Documentation: EM: Describe new registration method using DT
        OPP: Add support of "opp-microwatt" for EM registration
        PM: EM: add macro to set .active_power() callback conditionally
        OPP: Add "opp-microwatt" supporting code
        dt-bindings: opp: Add "opp-microwatt" entry in the OPP
        MAINTAINERS: Add additional file to uncore frequency control
        cpufreq: blocklist Qualcomm sc8280xp and sa8540p in cpufreq-dt-platdev
        cpufreq: qcom-hw: Add support for per-core-dcvs
        dt-bindings: power: avs: qcom,cpr: Convert to DT schema
        arm64: dts: qcom: qcs404: Rename CPU and CPR OPP tables
        arm64: dts: qcom: msm8996: Rename cluster OPP tables
        dt-bindings: opp: Convert qcom-nvmem-cpufreq to DT schema
        dt-bindings: opp: qcom-opp: Convert to DT schema
        arm64: dts: qcom: msm8996-mtp: Add msm8996 compatible
        dt-bindings: arm: qcom: Add msm8996 and apq8096 compatibles
        opp: Expose of-node's name in debugfs
        cpufreq: CPPC: Fix performance/frequency conversion
        ...
      1d59c3b6
    • Rafael J. Wysocki's avatar
      Merge branch 'pm-docs' · 3b65dd5b
      Rafael J. Wysocki authored
      Merge additional power management documentation udates for 5.18-rc1:
      
       - Add Intel uncore frequency scaling documentation file to its
         MAINTAINERS entry (Srinivas Pandruvada).
      
       - Clean up the AMD P-state driver documentation (Jan Engelhardt).
      
      * pm-docs:
        Documentation: amd-pstate: grammar and sentence structure updates
        MAINTAINERS: Add additional file to uncore frequency control
      3b65dd5b
    • Rafael J. Wysocki's avatar
      Merge branch 'pm-opp' · 79bc8bfa
      Rafael J. Wysocki authored
      Merge OPP (Operating Performance Points) changes for 5.18-rc1.
      
      * pm-opp:
        Documentation: EM: Describe new registration method using DT
        OPP: Add support of "opp-microwatt" for EM registration
        PM: EM: add macro to set .active_power() callback conditionally
        OPP: Add "opp-microwatt" supporting code
        dt-bindings: opp: Add "opp-microwatt" entry in the OPP
        dt-bindings: power: avs: qcom,cpr: Convert to DT schema
        arm64: dts: qcom: qcs404: Rename CPU and CPR OPP tables
        arm64: dts: qcom: msm8996: Rename cluster OPP tables
        dt-bindings: opp: Convert qcom-nvmem-cpufreq to DT schema
        dt-bindings: opp: qcom-opp: Convert to DT schema
        arm64: dts: qcom: msm8996-mtp: Add msm8996 compatible
        dt-bindings: arm: qcom: Add msm8996 and apq8096 compatibles
        opp: Expose of-node's name in debugfs
      79bc8bfa
    • Linus Torvalds's avatar
      Merge tag 'devicetree-fixes-for-5.18-1' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux · 5efabdad
      Linus Torvalds authored
      Pull devicetree fixes from Rob Herring:
      
       - Clean-up missing '/schemas' in $ref paths
      
       - Fix MediaTek Vcodec decoder example 'dma-ranges' errors
      
       - Expand available values of PBL for snps,dwmac to fix warnings in
         mediatek-dwmac.yaml example
      
       - Fix warnings in MediaTek display bindings
      
      * tag 'devicetree-fixes-for-5.18-1' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux:
        dt-bindings: Fix missing '/schemas' in $ref paths
        dt-bindings: media: mediatek,vcodec: Fix addressing cell sizes
        dt-bindings: net: snps,dwmac: modify available values of PBL
        dt-bindings: display: mediatek: Fix examples on new bindings
        dt-bindings: display: mediatek, ovl: Fix 'iommu' required property typo
        dt-bindings: display: mediatek, mutex: Fix mediatek, gce-events type
        Revert "dt-bindings: display: mediatek: add ethdr definition for mt8195"
      5efabdad
    • Linus Torvalds's avatar
      Merge tag 'dma-mapping-5.18' of git://git.infradead.org/users/hch/dma-mapping · 9ae2a143
      Linus Torvalds authored
      Pull dma-mapping updates from Christoph Hellwig:
      
       - do not zero buffer in set_memory_decrypted (Kirill A. Shutemov)
      
       - fix return value of dma-debug __setup handlers (Randy Dunlap)
      
       - swiotlb cleanups (Robin Murphy)
      
       - remove most remaining users of the pci-dma-compat.h API
         (Christophe JAILLET)
      
       - share the ABI header for the DMA map_benchmark with userspace
         (Tian Tao)
      
       - update the maintainer for DMA MAPPING BENCHMARK (Xiang Chen)
      
       - remove CONFIG_DMA_REMAP (me)
      
      * tag 'dma-mapping-5.18' of git://git.infradead.org/users/hch/dma-mapping:
        dma-mapping: benchmark: extract a common header file for map_benchmark definition
        dma-debug: fix return value of __setup handlers
        dma-mapping: remove CONFIG_DMA_REMAP
        media: v4l2-pci-skeleton: Remove usage of the deprecated "pci-dma-compat.h" API
        rapidio/tsi721: Remove usage of the deprecated "pci-dma-compat.h" API
        sparc: Remove usage of the deprecated "pci-dma-compat.h" API
        agp/intel: Remove usage of the deprecated "pci-dma-compat.h" API
        alpha: Remove usage of the deprecated "pci-dma-compat.h" API
        MAINTAINERS: update maintainer list of DMA MAPPING BENCHMARK
        swiotlb: simplify array allocation
        swiotlb: tidy up includes
        swiotlb: simplify debugfs setup
        swiotlb: do not zero buffer in set_memory_decrypted()
      9ae2a143
    • Geert Uytterhoeven's avatar
      phy: PHY_FSL_LYNX_28G should depend on ARCH_LAYERSCAPE · 37fcacb5
      Geert Uytterhoeven authored
      Freescale Layerscape Lynx 28G SerDes PHYs are only present on
      Freescale/NXP Layerscape SoCs.
      
      Move PHY_FSL_LYNX_28G outside the block for ARCH_MXC, as the latter
      is meant for i.MX8 SoCs, which is a different family than Layerscape.
      Add a dependency on ARCH_LAYERSCAPE, to prevent asking the user about
      this driver when configuring a kernel without Layerscape SoC support.
      
      Fixes: 02e2af20 ("Merge tag 'char-misc-5.18-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc")
      Fixes: 8f73b37c ("phy: add support for the Layerscape SerDes 28G")
      Signed-off-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      37fcacb5
    • Rob Herring's avatar
      dt-bindings: Fix missing '/schemas' in $ref paths · 22a41e9a
      Rob Herring authored
      Absolute paths in $ref should always begin with '/schemas'. The tools
      mostly work with it omitted, but for correctness the path should be
      everything except the hostname as that is taken from the schema's $id
      value. This scheme is defined in the json-schema spec.
      
      Cc: Hector Martin <marcan@marcan.st>
      Cc: Sven Peter <sven@svenpeter.dev>
      Cc: Andrew Lunn <andrew@lunn.ch>
      Cc: Vivien Didelot <vivien.didelot@gmail.com>
      Cc: Florian Fainelli <f.fainelli@gmail.com>
      Cc: Vladimir Oltean <olteanv@gmail.com>
      Cc: "David S. Miller" <davem@davemloft.net>
      Cc: Jakub Kicinski <kuba@kernel.org>
      Cc: Paolo Abeni <pabeni@redhat.com>
      Cc: Mark Brown <broonie@kernel.org>
      Cc: Chunfeng Yun <chunfeng.yun@mediatek.com>
      Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
      Cc: Mukesh Savaliya <msavaliy@codeaurora.org>
      Cc: Akash Asthana <akashast@codeaurora.org>
      Cc: Bayi Cheng <bayi.cheng@mediatek.com>
      Cc: Chuanhong Guo <gch981213@gmail.com>
      Cc: Min Guo <min.guo@mediatek.com>
      Cc: netdev@vger.kernel.org
      Cc: linux-spi@vger.kernel.org
      Cc: linux-usb@vger.kernel.org
      Signed-off-by: default avatarRob Herring <robh@kernel.org>
      Acked-by: default avatarJakub Kicinski <kuba@kernel.org>
      Acked-by: default avatarMark Brown <broonie@debian.org>
      Link: https://lore.kernel.org/r/20220325215652.525383-1-robh@kernel.org
      22a41e9a
    • Rob Herring's avatar
      dt-bindings: media: mediatek,vcodec: Fix addressing cell sizes · a50e431b
      Rob Herring authored
      'dma-ranges' in the example is written for cell sizes of 2 cells, but
      the schema and example specify sizes of 1 cell. As the h/w has a bus
      address of >32-bits, cell sizes of 2 is correct. Update the schema's
      '#address-cells' and '#size-cells' to be 2 and adjust the example
      throughout.
      
      There's no error currently because dtc only checks 'dma-ranges' is a
      correct multiple number of cells (3) and the schema checking is based on
      bracketing of entries.
      Signed-off-by: default avatarRob Herring <robh@kernel.org>
      Link: https://lore.kernel.org/r/20220301233501.2110047-1-robh@kernel.org
      a50e431b
    • Biao Huang's avatar
      dt-bindings: net: snps,dwmac: modify available values of PBL · 09a2fb41
      Biao Huang authored
      PBL can be any of the following values: 1, 2, 4, 8, 16 or 32
      according to the datasheet, so modify available values of PBL in
      snps,dwmac.yaml.
      Signed-off-by: default avatarBiao Huang <biao.huang@mediatek.com>
      Signed-off-by: default avatarRob Herring <robh@kernel.org>
      Link: https://lore.kernel.org/r/20220324012112.7016-2-biao.huang@mediatek.com
      09a2fb41
    • AngeloGioacchino Del Regno's avatar
      dt-bindings: display: mediatek: Fix examples on new bindings · bff4e302
      AngeloGioacchino Del Regno authored
      To avoid failure of dt_binding_check perform a slight refactoring
      of the examples: the main block is kept, but that required fixing
      the address and size cells, plus the inclusion of missing dt-bindings
      headers, required to parse some of the values assigned to various
      properties.
      
      Fixes: 4ed545e7 ("dt-bindings: display: mediatek: disp: split each block to individual yaml")
      Signed-off-by: default avatarAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
      Signed-off-by: default avatarjason-jh.lin <jason-jh.lin@mediatek.com>
      Reviewed-by: default avatarRob Herring <robh@kernel.org>
      Acked-by: default avatarChun-Kuang Hu <chunkuang.hu@kernel.org>
      Tested-by: default avatarjason-jh.lin <jason-jh.lin@medaitek.com>
      Signed-off-by: default avatarRob Herring <robh@kernel.org>
      Link: https://lore.kernel.org/r/20220309134702.9942-5-jason-jh.lin@mediatek.com
      bff4e302
    • AngeloGioacchino Del Regno's avatar
      dt-bindings: display: mediatek, ovl: Fix 'iommu' required property typo · 10f17b20
      AngeloGioacchino Del Regno authored
      The property is called 'iommus' and not 'iommu'. Fix this typo.
      
      Fixes: 4ed545e7 ("dt-bindings: display: mediatek: disp: split each block to individual yaml")
      Signed-off-by: default avatarAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
      Signed-off-by: default avatarjason-jh.lin <jason-jh.lin@mediatek.com>
      Acked-by: default avatarRob Herring <robh@kernel.org>
      Acked-by: default avatarChun-Kuang Hu <chunkuang.hu@kernel.org>
      Signed-off-by: default avatarRob Herring <robh@kernel.org>
      Link: https://lore.kernel.org/r/20220309134702.9942-4-jason-jh.lin@mediatek.com
      10f17b20
    • AngeloGioacchino Del Regno's avatar
      dt-bindings: display: mediatek, mutex: Fix mediatek, gce-events type · ab487888
      AngeloGioacchino Del Regno authored
      The mediatek,gce-events property needs as value an array of uint32
      corresponding to the CMDQ events to listen to, and not any phandle.
      
      Fixes: 4ed545e7 ("dt-bindings: display: mediatek: disp: split each block to individual yaml")
      Signed-off-by: default avatarAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
      Signed-off-by: default avatarjason-jh.lin <jason-jh.lin@mediatek.com>
      Acked-by: default avatarRob Herring <robh@kernel.org>
      Acked-by: default avatarChun-Kuang Hu <chunkuang.hu@kernel.org>
      Signed-off-by: default avatarRob Herring <robh@kernel.org>
      Link: https://lore.kernel.org/r/20220309134702.9942-3-jason-jh.lin@mediatek.com
      ab487888
    • jason-jh.lin's avatar
      Revert "dt-bindings: display: mediatek: add ethdr definition for mt8195" · dcb09a08
      jason-jh.lin authored
      This reverts commit e7dcfe64.
      
      Because examples property of mediatek,ethdr.yaml should base on [1][2].
      Reverting it until [1][2] are applied.
      
      [1] dt-bindings: mediatek: mt8195: Add binding for MM IOMMU
      https://patchwork.kernel.org/project/linux-mediatek/patch/20220217113453.13658-2-yong.wu@mediatek.com/
      [2] dt-bindings: reset: mt8195: add vdosys1 reset control bit
      https://patchwork.kernel.org/project/linux-mediatek/patch/20220222100741.30138-5-nancy.lin@mediatek.com/Signed-off-by: default avatarjason-jh.lin <jason-jh.lin@mediatek.com>
      Signed-off-by: default avatarRob Herring <robh@kernel.org>
      Link: https://lore.kernel.org/r/20220309134702.9942-2-jason-jh.lin@mediatek.com
      dcb09a08
    • Linus Torvalds's avatar
      Merge tag 'ptrace-cleanups-for-v5.18' of... · 1930a6e7
      Linus Torvalds authored
      Merge tag 'ptrace-cleanups-for-v5.18' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace
      
      Pull ptrace cleanups from Eric Biederman:
       "This set of changes removes tracehook.h, moves modification of all of
        the ptrace fields inside of siglock to remove races, adds a missing
        permission check to ptrace.c
      
        The removal of tracehook.h is quite significant as it has been a major
        source of confusion in recent years. Much of that confusion was around
        task_work and TIF_NOTIFY_SIGNAL (which I have now decoupled making the
        semantics clearer).
      
        For people who don't know tracehook.h is a vestiage of an attempt to
        implement uprobes like functionality that was never fully merged, and
        was later superseeded by uprobes when uprobes was merged. For many
        years now we have been removing what tracehook functionaly a little
        bit at a time. To the point where anything left in tracehook.h was
        some weird strange thing that was difficult to understand"
      
      * tag 'ptrace-cleanups-for-v5.18' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace:
        ptrace: Remove duplicated include in ptrace.c
        ptrace: Check PTRACE_O_SUSPEND_SECCOMP permission on PTRACE_SEIZE
        ptrace: Return the signal to continue with from ptrace_stop
        ptrace: Move setting/clearing ptrace_message into ptrace_stop
        tracehook: Remove tracehook.h
        resume_user_mode: Move to resume_user_mode.h
        resume_user_mode: Remove #ifdef TIF_NOTIFY_RESUME in set_notify_resume
        signal: Move set_notify_signal and clear_notify_signal into sched/signal.h
        task_work: Decouple TIF_NOTIFY_SIGNAL and task_work
        task_work: Call tracehook_notify_signal from get_signal on all architectures
        task_work: Introduce task_work_pending
        task_work: Remove unnecessary include from posix_timers.h
        ptrace: Remove tracehook_signal_handler
        ptrace: Remove arch_syscall_{enter,exit}_tracehook
        ptrace: Create ptrace_report_syscall_{entry,exit} in ptrace.h
        ptrace/arm: Rename tracehook_report_syscall report_syscall
        ptrace: Move ptrace_report_syscall into ptrace.h
      1930a6e7
    • Linus Torvalds's avatar
      Merge tag 'ucount-rlimit-for-v5.18' of... · 0a815d01
      Linus Torvalds authored
      Merge tag 'ucount-rlimit-for-v5.18' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace
      
      Pull shm ucounts fix from Eric Biederman:
       "The introduction of a new failure mode when the code was converted to
        ucounts resulted in user_shm_lock misbehaving.
      
        The change simplifies the code to make the code easier to follow and
        removes the known misbehaviors"
      
      * tag 'ucount-rlimit-for-v5.18' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace:
        mm/mlock: fix two bugs in user_shm_lock()
      0a815d01
    • Linus Torvalds's avatar
      Merge tag 'net-5.18-rc0' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net · d717e4ca
      Linus Torvalds authored
      Pull networking fixes from Jakub Kicinski:
       "Including fixes from netfilter.
      
        Current release - regressions:
      
         - llc: only change llc->dev when bind() succeeds, fix null-deref
      
        Current release - new code bugs:
      
         - smc: fix a memory leak in smc_sysctl_net_exit()
      
         - dsa: realtek: make interface drivers depend on OF
      
        Previous releases - regressions:
      
         - sched: act_ct: fix ref leak when switching zones
      
        Previous releases - always broken:
      
         - netfilter: egress: report interface as outgoing
      
         - vsock/virtio: enable VQs early on probe and finish the setup before
           using them
      
        Misc:
      
         - memcg: enable accounting for nft objects"
      
      * tag 'net-5.18-rc0' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net: (39 commits)
        Revert "selftests: net: Add tls config dependency for tls selftests"
        net/smc: Send out the remaining data in sndbuf before close
        net: move net_unlink_todo() out of the header
        net: dsa: bcm_sf2_cfp: fix an incorrect NULL check on list iterator
        net: bnxt_ptp: fix compilation error
        selftests: net: Add tls config dependency for tls selftests
        memcg: enable accounting for nft objects
        net/sched: act_ct: fix ref leak when switching zones
        net/smc: fix a memory leak in smc_sysctl_net_exit()
        selftests: tls: skip cmsg_to_pipe tests with TLS=n
        octeontx2-af: initialize action variable
        net: sparx5: switchdev: fix possible NULL pointer dereference
        net/x25: Fix null-ptr-deref caused by x25_disconnect
        qlcnic: dcb: default to returning -EOPNOTSUPP
        net: sparx5: depends on PTP_1588_CLOCK_OPTIONAL
        net: hns3: fix phy can not link up when autoneg off and reset
        net: hns3: add NULL pointer check for hns3_set/get_ringparam()
        net: hns3: add netdev reset check for hns3_set_tunable()
        net: hns3: clean residual vf config after disable sriov
        net: hns3: add max order judgement for tx spare buffer
        ...
      d717e4ca
  4. 28 Mar, 2022 8 commits