1. 10 Jun, 2020 4 commits
  2. 09 Jun, 2020 13 commits
  3. 08 Jun, 2020 7 commits
  4. 07 Jun, 2020 16 commits
    • Vadim Pasternak's avatar
      mlxsw: core: Use different get_trend() callbacks for different thermal zones · 2dc2f760
      Vadim Pasternak authored
      The driver registers three different types of thermal zones: For the
      ASIC itself, for port modules and for gearboxes.
      
      Currently, all three types use the same get_trend() callback which does
      not work correctly for the ASIC thermal zone. The callback assumes that
      the device data is of type 'struct mlxsw_thermal_module', whereas for
      the ASIC thermal zone 'struct mlxsw_thermal' is passed as device data.
      
      Fix this by using one get_trend() callback for the ASIC thermal zone and
      another for the other two types.
      
      Fixes: 6f73862f ("mlxsw: core: Add the hottest thermal zone detection")
      Signed-off-by: default avatarVadim Pasternak <vadimp@mellanox.com>
      Reviewed-by: default avatarJiri Pirko <jiri@mellanox.com>
      Signed-off-by: default avatarIdo Schimmel <idosch@mellanox.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      2dc2f760
    • David S. Miller's avatar
    • Linus Torvalds's avatar
      Merge tag 'pinctrl-v5.8-1' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl · cf0c97f1
      Linus Torvalds authored
      Pull pin control updates from Linus Walleij:
       "This is the bulk of pin control changes for the v5.8 kernel cycle.
      
        It's just really boring this time. Zero core changes. Just linear
        development, cleanups and misc noncritical fixes. Some new drivers for
        very new Qualcomm and Intel chips.
      
        New drivers:
      
         - Intel Jasper Lake support.
      
         - NXP Freescale i.MX8DXL support.
      
         - Qualcomm SM8250 support.
      
         - Renesas R8A7742 SH-PFC support.
      
        Driver improvements:
      
         - Severe cleanup and modernization of the MCP23s08 driver.
      
         - Mediatek driver modularized.
      
         - Setting config supported in the Meson driver.
      
         - Wakeup support for the Broadcom BCM7211"
      
      * tag 'pinctrl-v5.8-1' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl: (72 commits)
        pinctrl: sprd: Fix the incorrect pull-up definition
        pinctrl: pxa: pxa2xx: Remove 'pxa2xx_pinctrl_exit()' which is unused and broken
        pinctrl: freescale: imx: Use 'devm_of_iomap()' to avoid a resource leak in case of error in 'imx_pinctrl_probe()'
        pinctrl: freescale: imx: Fix an error handling path in 'imx_pinctrl_probe()'
        pinctrl: sirf: add missing put_device() call in sirfsoc_gpio_probe()
        pinctrl: imxl: Fix an error handling path in 'imx1_pinctrl_core_probe()'
        pinctrl: bcm2835: Add support for wake-up interrupts
        pinctrl: bcm2835: Match BCM7211 compatible string
        dt-bindings: pinctrl: Document optional BCM7211 wake-up interrupts
        dt-bindings: pinctrl: Document 7211 compatible for brcm, bcm2835-gpio.txt
        dt-bindings: pinctrl: stm32: Add missing interrupts property
        pinctrl: at91-pio4: Add COMPILE_TEST support
        pinctrl: Fix return value about devm_platform_ioremap_resource()
        MAINTAINERS: Renesas Pin Controllers are supported
        dt-bindings: pinctrl: ocelot: Add Sparx5 SoC support
        pinctrl: ocelot: Fix GPIO interrupt decoding on Jaguar2
        pinctrl: ocelot: Remove instance number from pin functions
        pinctrl: ocelot: Always register GPIO driver
        dt-bindings: pinctrl: rockchip: update example
        pinctrl: amd: Add ACPI dependency
        ...
      cf0c97f1
    • Linus Torvalds's avatar
      Merge tag 'rtc-5.8' of git://git.kernel.org/pub/scm/linux/kernel/git/abelloni/linux · e8dff03a
      Linus Torvalds authored
      Pull RTC updates from Alexandre Belloni:
       "Not much this cycle apart from the ingenic rtc driver rework.
      
        The fixes are mainly minor issues reported by coccinelle rather than
        real world issues.
      
        Subsystem:
      
         - new VL flag for backup switch over
      
        Drivers:
      
         - ingenic: only support device tree
      
         - pcf2127: report battery switch over, handle nowayout"
      
      * tag 'rtc-5.8' of git://git.kernel.org/pub/scm/linux/kernel/git/abelloni/linux: (29 commits)
        rtc: pcf2127: watchdog: handle nowayout feature
        rtc: fsl-ftm-alarm: fix freeze(s2idle) failed to wake
        rtc: abx80x: Provide debug feedback for invalid dt properties
        rtc: abx80x: Add Device Tree matching table
        rtc: rv3028: Add missed check for devm_regmap_init_i2c()
        rtc: mpc5121: Use correct return value for mpc5121_rtc_probe()
        rtc: goldfish: Use correct return value for goldfish_rtc_probe()
        rtc: snvs: Add necessary clock operations for RTC APIs
        rtc: snvs: Make SNVS clock always prepared
        rtc: ingenic: Reset regulator register in probe
        rtc: ingenic: Fix masking of error code
        rtc: ingenic: Remove unused fields from private structure
        rtc: ingenic: Set wakeup params in probe
        rtc: ingenic: Enable clock in probe
        rtc: ingenic: Use local 'dev' variable in probe
        rtc: ingenic: Only support probing from devicetree
        rtc: mc13xxx: fix a double-unlock issue
        rtc: stmp3xxx: update contact email
        rtc: max77686: Use single-byte writes on MAX77620
        rtc: pcf2127: report battery switch over
        ...
      e8dff03a
    • Linus Torvalds's avatar
      Merge tag 'ntb-5.8' of git://github.com/jonmason/ntb · 787f74fc
      Linus Torvalds authored
      Pull NTB updates from Jon Mason:
       "Intel Icelake NTB support, Intel driver bug fixes, and lots of bug
        fixes for ntb tests"
      
      * tag 'ntb-5.8' of git://github.com/jonmason/ntb:
        NTB: ntb_test: Fix bug when counting remote files
        NTB: perf: Fix race condition when run with ntb_test
        NTB: perf: Fix support for hardware that doesn't have port numbers
        NTB: perf: Don't require one more memory window than number of peers
        NTB: ntb_pingpong: Choose doorbells based on port number
        NTB: Fix the default port and peer numbers for legacy drivers
        NTB: Revert the change to use the NTB device dev for DMA allocations
        NTB: ntb_tool: reading the link file should not end in a NULL byte
        ntb_perf: avoid false dma unmap of destination address
        ntb_perf: increase sleep time from one milli sec to one sec
        ntb_tool: pass correct struct device to dma_alloc_coherent
        ntb_perf: pass correct struct device to dma_alloc_coherent
        ntb: hw: remove the code that sets the DMA mask
        NTB: correct ntb_peer_spad_addr and ntb_peer_spad_read comment typos
        ntb: intel: fix static declaration
        ntb: intel: add hw workaround for NTB BAR alignment
        ntb: intel: Add Icelake (gen4) support for Intel NTB
        NTB: Fix static check warning in perf_clear_test
        include/ntb: Fix typo in ntb_unregister_device description
      787f74fc
    • Linus Torvalds's avatar
      Merge tag 'apparmor-pr-2020-06-07' of... · a2b44706
      Linus Torvalds authored
      Merge tag 'apparmor-pr-2020-06-07' of git://git.kernel.org/pub/scm/linux/kernel/git/jj/linux-apparmor
      
      Pull apparmor updates from John Johansen:
       "Features:
         - Replace zero-length array with flexible-array
         - add a valid state flags check
         - add consistency check between state and dfa diff encode flags
         - add apparmor subdir to proc attr interface
         - fail unpack if profile mode is unknown
         - add outofband transition and use it in xattr match
         - ensure that dfa state tables have entries
      
        Cleanups:
         - Use true and false for bool variable
         - Remove semicolon
         - Clean code by removing redundant instructions
         - Replace two seq_printf() calls by seq_puts() in aa_label_seq_xprint()
         - remove duplicate check of xattrs on profile attachment
         - remove useless aafs_create_symlink
      
        Bug fixes:
         - Fix memory leak of profile proxy
         - fix introspection of of task mode for unconfined tasks
         - fix nnp subset test for unconfined
         - check/put label on apparmor_sk_clone_security()"
      
      * tag 'apparmor-pr-2020-06-07' of git://git.kernel.org/pub/scm/linux/kernel/git/jj/linux-apparmor:
        apparmor: Fix memory leak of profile proxy
        apparmor: fix introspection of of task mode for unconfined tasks
        apparmor: check/put label on apparmor_sk_clone_security()
        apparmor: Use true and false for bool variable
        security/apparmor/label.c: Clean code by removing redundant instructions
        apparmor: Replace zero-length array with flexible-array
        apparmor: ensure that dfa state tables have entries
        apparmor: remove duplicate check of xattrs on profile attachment.
        apparmor: add outofband transition and use it in xattr match
        apparmor: fail unpack if profile mode is unknown
        apparmor: fix nnp subset test for unconfined
        apparmor: remove useless aafs_create_symlink
        apparmor: add proc subdir to attrs
        apparmor: add consistency check between state and dfa diff encode flags
        apparmor: add a valid state flags check
        AppArmor: Remove semicolon
        apparmor: Replace two seq_printf() calls by seq_puts() in aa_label_seq_xprint()
      a2b44706
    • Roberto Sassu's avatar
      ima: Remove __init annotation from ima_pcrread() · 8b8c704d
      Roberto Sassu authored
      Commit 6cc7c266 ("ima: Call ima_calc_boot_aggregate() in
      ima_eventdigest_init()") added a call to ima_calc_boot_aggregate() so that
      the digest can be recalculated for the boot_aggregate measurement entry if
      the 'd' template field has been requested. For the 'd' field, only SHA1 and
      MD5 digests are accepted.
      
      Given that ima_eventdigest_init() does not have the __init annotation, all
      functions called should not have it. This patch removes __init from
      ima_pcrread().
      
      Cc: stable@vger.kernel.org
      Fixes:  6cc7c266 ("ima: Call ima_calc_boot_aggregate() in ima_eventdigest_init()")
      Reported-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      Signed-off-by: default avatarRoberto Sassu <roberto.sassu@huawei.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      8b8c704d
    • John Johansen's avatar
      apparmor: Fix memory leak of profile proxy · 3622ad25
      John Johansen authored
      When the proxy isn't replaced and the profile is removed, the proxy
      is being leaked resulting in a kmemleak check message of
      
      unreferenced object 0xffff888077a3a490 (size 16):
        comm "apparmor_parser", pid 128041, jiffies 4322684109 (age 1097.028s)
        hex dump (first 16 bytes):
          03 00 00 00 00 00 00 00 b0 92 fd 4b 81 88 ff ff  ...........K....
        backtrace:
          [<0000000084d5daf2>] aa_alloc_proxy+0x58/0xe0
          [<00000000ecc0e21a>] aa_alloc_profile+0x159/0x1a0
          [<000000004cc9ce15>] unpack_profile+0x275/0x1c40
          [<000000007332b3ca>] aa_unpack+0x1e7/0x7e0
          [<00000000e25e31bd>] aa_replace_profiles+0x18a/0x1d10
          [<00000000350d9415>] policy_update+0x237/0x650
          [<000000003fbf934e>] profile_load+0x122/0x160
          [<0000000047f7b781>] vfs_write+0x139/0x290
          [<000000008ad12358>] ksys_write+0xcd/0x170
          [<000000001a9daa7b>] do_syscall_64+0x70/0x310
          [<00000000b9efb0cf>] entry_SYSCALL_64_after_hwframe+0x49/0xb3
      
      Make sure to cleanup the profile's embedded label which will result
      on the proxy being properly freed.
      
      Fixes: 637f688d ("apparmor: switch from profiles to using labels on contexts")
      Signed-off-by: default avatarJohn Johansen <john.johansen@canonical.com>
      3622ad25
    • John Johansen's avatar
      apparmor: fix introspection of of task mode for unconfined tasks · dd2569fb
      John Johansen authored
      Fix two issues with introspecting the task mode.
      
      1. If a task is attached to a unconfined profile that is not the
         ns->unconfined profile then. Mode the mode is always reported
         as -
      
            $ ps -Z
            LABEL                               PID TTY          TIME CMD
            unconfined                         1287 pts/0    00:00:01 bash
            test (-)                           1892 pts/0    00:00:00 ps
      
         instead of the correct value of (unconfined) as shown below
      
            $ ps -Z
            LABEL                               PID TTY          TIME CMD
            unconfined                         2483 pts/0    00:00:01 bash
            test (unconfined)                  3591 pts/0    00:00:00 ps
      
      2. if a task is confined by a stack of profiles that are unconfined
         the output of label mode is again the incorrect value of (-) like
         above, instead of (unconfined). This is because the visibile
         profile count increment is skipped by the special casing of
         unconfined.
      
      Fixes: f1bd9041 ("apparmor: add the base fns() for domain labels")
      Signed-off-by: default avatarJohn Johansen <john.johansen@canonical.com>
      dd2569fb
    • Mauricio Faria de Oliveira's avatar
      apparmor: check/put label on apparmor_sk_clone_security() · 3b646abc
      Mauricio Faria de Oliveira authored
      Currently apparmor_sk_clone_security() does not check for existing
      label/peer in the 'new' struct sock; it just overwrites it, if any
      (with another reference to the label of the source sock.)
      
          static void apparmor_sk_clone_security(const struct sock *sk,
                                                 struct sock *newsk)
          {
                  struct aa_sk_ctx *ctx = SK_CTX(sk);
                  struct aa_sk_ctx *new = SK_CTX(newsk);
      
                  new->label = aa_get_label(ctx->label);
                  new->peer = aa_get_label(ctx->peer);
          }
      
      This might leak label references, which might overflow under load.
      Thus, check for and put labels, to prevent such errors.
      
      Note this is similarly done on:
      
          static int apparmor_socket_post_create(struct socket *sock, ...)
          ...
                  if (sock->sk) {
                          struct aa_sk_ctx *ctx = SK_CTX(sock->sk);
      
                          aa_put_label(ctx->label);
                          ctx->label = aa_get_label(label);
                  }
          ...
      
      Context:
      -------
      
      The label reference count leak is observed if apparmor_sock_graft()
      is called previously: this sets the 'ctx->label' field by getting
      a reference to the current label (later overwritten, without put.)
      
          static void apparmor_sock_graft(struct sock *sk, ...)
          {
                  struct aa_sk_ctx *ctx = SK_CTX(sk);
      
                  if (!ctx->label)
                          ctx->label = aa_get_current_label();
          }
      
      And that is the case on crypto/af_alg.c:af_alg_accept():
      
          int af_alg_accept(struct sock *sk, struct socket *newsock, ...)
          ...
                  struct sock *sk2;
                  ...
                  sk2 = sk_alloc(...);
                  ...
                  security_sock_graft(sk2, newsock);
                  security_sk_clone(sk, sk2);
          ...
      
      Apparently both calls are done on their own right, especially for
      other LSMs, being introduced in 2010/2014, before apparmor socket
      mediation in 2017 (see commits [1,2,3,4]).
      
      So, it looks OK there! Let's fix the reference leak in apparmor.
      
      Test-case:
      ---------
      
      Exercise that code path enough to overflow label reference count.
      
          $ cat aa-refcnt-af_alg.c
          #include <stdio.h>
          #include <string.h>
          #include <unistd.h>
          #include <sys/socket.h>
          #include <linux/if_alg.h>
      
          int main() {
                  int sockfd;
                  struct sockaddr_alg sa;
      
                  /* Setup the crypto API socket */
                  sockfd = socket(AF_ALG, SOCK_SEQPACKET, 0);
                  if (sockfd < 0) {
                          perror("socket");
                          return 1;
                  }
      
                  memset(&sa, 0, sizeof(sa));
                  sa.salg_family = AF_ALG;
                  strcpy((char *) sa.salg_type, "rng");
                  strcpy((char *) sa.salg_name, "stdrng");
      
                  if (bind(sockfd, (struct sockaddr *) &sa, sizeof(sa)) < 0) {
                          perror("bind");
                          return 1;
                  }
      
                  /* Accept a "connection" and close it; repeat. */
                  while (!close(accept(sockfd, NULL, 0)));
      
                  return 0;
          }
      
          $ gcc -o aa-refcnt-af_alg aa-refcnt-af_alg.c
      
          $ ./aa-refcnt-af_alg
          <a few hours later>
      
          [ 9928.475953] refcount_t overflow at apparmor_sk_clone_security+0x37/0x70 in aa-refcnt-af_alg[1322], uid/euid: 1000/1000
          ...
          [ 9928.507443] RIP: 0010:apparmor_sk_clone_security+0x37/0x70
          ...
          [ 9928.514286]  security_sk_clone+0x33/0x50
          [ 9928.514807]  af_alg_accept+0x81/0x1c0 [af_alg]
          [ 9928.516091]  alg_accept+0x15/0x20 [af_alg]
          [ 9928.516682]  SYSC_accept4+0xff/0x210
          [ 9928.519609]  SyS_accept+0x10/0x20
          [ 9928.520190]  do_syscall_64+0x73/0x130
          [ 9928.520808]  entry_SYSCALL_64_after_hwframe+0x3d/0xa2
      
      Note that other messages may be seen, not just overflow, depending on
      the value being incremented by kref_get(); on another run:
      
          [ 7273.182666] refcount_t: saturated; leaking memory.
          ...
          [ 7273.185789] refcount_t: underflow; use-after-free.
      
      Kprobes:
      -------
      
      Using kprobe events to monitor sk -> sk_security -> label -> count (kref):
      
      Original v5.7 (one reference leak every iteration)
      
       ... (af_alg_accept+0x0/0x1c0) label=0xffff8a0f36c25eb0 label_refcnt=0x11fd2
       ... (af_alg_release_parent+0x0/0xd0) label=0xffff8a0f36c25eb0 label_refcnt=0x11fd4
       ... (af_alg_accept+0x0/0x1c0) label=0xffff8a0f36c25eb0 label_refcnt=0x11fd3
       ... (af_alg_release_parent+0x0/0xd0) label=0xffff8a0f36c25eb0 label_refcnt=0x11fd5
       ... (af_alg_accept+0x0/0x1c0) label=0xffff8a0f36c25eb0 label_refcnt=0x11fd4
       ... (af_alg_release_parent+0x0/0xd0) label=0xffff8a0f36c25eb0 label_refcnt=0x11fd6
      
      Patched v5.7 (zero reference leak per iteration)
      
       ... (af_alg_accept+0x0/0x1c0) label=0xffff9ff376c25eb0 label_refcnt=0x593
       ... (af_alg_release_parent+0x0/0xd0) label=0xffff9ff376c25eb0 label_refcnt=0x594
       ... (af_alg_accept+0x0/0x1c0) label=0xffff9ff376c25eb0 label_refcnt=0x593
       ... (af_alg_release_parent+0x0/0xd0) label=0xffff9ff376c25eb0 label_refcnt=0x594
       ... (af_alg_accept+0x0/0x1c0) label=0xffff9ff376c25eb0 label_refcnt=0x593
       ... (af_alg_release_parent+0x0/0xd0) label=0xffff9ff376c25eb0 label_refcnt=0x594
      
      Commits:
      -------
      
      [1] commit 507cad35 ("crypto: af_alg - Make sure sk_security is initialized on accept()ed sockets")
      [2] commit 4c63f83c ("crypto: af_alg - properly label AF_ALG socket")
      [3] commit 2acce6aa ("Networking") a.k.a ("crypto: af_alg - Avoid sock_graft call warning)
      [4] commit 56974a6f ("apparmor: add base infastructure for socket mediation")
      
      Fixes: 56974a6f ("apparmor: add base infastructure for socket mediation")
      Reported-by: default avatarBrian Moyles <bmoyles@netflix.com>
      Signed-off-by: default avatarMauricio Faria de Oliveira <mfo@canonical.com>
      Signed-off-by: default avatarJohn Johansen <john.johansen@canonical.com>
      3b646abc
    • Linus Torvalds's avatar
      Merge tag 'char-misc-5.8-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc · 9aa900c8
      Linus Torvalds authored
      Pull char/misc driver updates from Greg KH:
       "Here is the large set of char/misc driver patches for 5.8-rc1
      
        Included in here are:
      
         - habanalabs driver updates, loads
      
         - mhi bus driver updates
      
         - extcon driver updates
      
         - clk driver updates (approved by the clock maintainer)
      
         - firmware driver updates
      
         - fpga driver updates
      
         - gnss driver updates
      
         - coresight driver updates
      
         - interconnect driver updates
      
         - parport driver updates (it's still alive!)
      
         - nvmem driver updates
      
         - soundwire driver updates
      
         - visorbus driver updates
      
         - w1 driver updates
      
         - various misc driver updates
      
        In short, loads of different driver subsystem updates along with the
        drivers as well.
      
        All have been in linux-next for a while with no reported issues"
      
      * tag 'char-misc-5.8-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc: (233 commits)
        habanalabs: correctly cast u64 to void*
        habanalabs: initialize variable to default value
        extcon: arizona: Fix runtime PM imbalance on error
        extcon: max14577: Add proper dt-compatible strings
        extcon: adc-jack: Fix an error handling path in 'adc_jack_probe()'
        extcon: remove redundant assignment to variable idx
        w1: omap-hdq: print dev_err if irq flags are not cleared
        w1: omap-hdq: fix interrupt handling which did show spurious timeouts
        w1: omap-hdq: fix return value to be -1 if there is a timeout
        w1: omap-hdq: cleanup to add missing newline for some dev_dbg
        /dev/mem: Revoke mappings when a driver claims the region
        misc: xilinx-sdfec: convert get_user_pages() --> pin_user_pages()
        misc: xilinx-sdfec: cleanup return value in xsdfec_table_write()
        misc: xilinx-sdfec: improve get_user_pages_fast() error handling
        nvmem: qfprom: remove incorrect write support
        habanalabs: handle MMU cache invalidation timeout
        habanalabs: don't allow hard reset with open processes
        habanalabs: GAUDI does not support soft-reset
        habanalabs: add print for soft reset due to event
        habanalabs: improve MMU cache invalidation code
        ...
      9aa900c8
    • Linus Torvalds's avatar
      Merge tag 'driver-core-5.8-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core · f558b836
      Linus Torvalds authored
      Pull driver core updates from Greg KH:
       "Here is the set of driver core patches for 5.8-rc1.
      
        Not all that huge this release, just a number of small fixes and
        updates:
      
         - software node fixes
      
         - kobject now sends KOBJ_REMOVE when it is removed from sysfs, not
           when it is removed from memory (which could come much later)
      
         - device link additions and fixes based on testing on more devices
      
         - firmware core cleanups
      
         - other minor changes, full details in the shortlog
      
        All have been in linux-next for a while with no reported issues"
      
      * tag 'driver-core-5.8-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core: (23 commits)
        driver core: Update device link status correctly for SYNC_STATE_ONLY links
        firmware_loader: change enum fw_opt to u32
        software node: implement software_node_unregister()
        kobject: send KOBJ_REMOVE uevent when the object is removed from sysfs
        driver core: Remove unnecessary is_fwnode_dev variable in device_add()
        drivers property: When no children in primary, try secondary
        driver core: platform: Fix spelling errors in platform.c
        driver core: Remove check in driver_deferred_probe_force_trigger()
        of: platform: Batch fwnode parsing when adding all top level devices
        driver core: fw_devlink: Add support for batching fwnode parsing
        driver core: Look for waiting consumers only for a fwnode's primary device
        driver core: Move code to the right part of the file
        Revert "Revert "driver core: Set fw_devlink to "permissive" behavior by default""
        drivers: base: Fix NULL pointer exception in __platform_driver_probe() if a driver developer is foolish
        firmware_loader: move fw_fallback_config to a private kernel symbol namespace
        driver core: Add missing '\n' in log messages
        driver/base/soc: Use kobj_to_dev() API
        Add documentation on meaning of -EPROBE_DEFER
        driver core: platform: remove redundant assignment to variable ret
        debugfs: Use the correct style for SPDX License Identifier
        ...
      f558b836
    • Linus Torvalds's avatar
      Merge tag 'staging-5.8-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging · 80ef846e
      Linus Torvalds authored
      Pull staging/IIO driver updates from Greg KH:
       "Here is the large set of staging and IIO driver changes for 5.8-rc1
      
        Nothing major, but a lot of new IIO drivers are included in here,
        along with other core iio cleanups and changes.
      
        On the staging driver front, again, nothing noticable. No new
        deletions or additions, just a ton of tiny cleanups all over the tree
        done by a lot of different people. Most coding style, but many actual
        real fixes and cleanups that are nice to see.
      
        All of these have been in linux-next for a while with no reported
        issues"
      
      * tag 'staging-5.8-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging: (618 commits)
        staging: rtl8723bs: Use common packet header constants
        staging: sm750fb: Add names to proc_setBLANK args
        staging: most: usb: init return value in default path of switch/case expression
        staging: vchiq: Get rid of VCHIQ_SERVICE_OPENEND callback reason
        staging: vchiq: move vchiq_release_message() into vchiq
        staging: vchi: Get rid of C++ guards
        staging: vchi: Get rid of not implemented function declarations
        staging: vchi: Get rid of vchiq_status_to_vchi()
        staging: vchi: Get rid of vchi_service_set_option()
        staging: vchi: Merge vchi_msg_queue() into vchi_queue_kernel_message()
        staging: vchiq: Move copy callback handling into vchiq
        staging: vchi: Get rid of vchi_queue_user_message()
        staging: vchi: Get rid of vchi_service_destroy()
        staging: most: usb: use function sysfs_streq
        staging: most: usb: add missing put_device calls
        staging: most: usb: use correct error codes
        staging: most: usb: replace code to calculate array index
        staging: most: usb: don't use error path to exit function on success
        staging: most: usb: move allocation of URB out of critical section
        staging: most: usb: return 0 instead of variable
        ...
      80ef846e
    • Linus Torvalds's avatar
      Merge tag 'tty-5.8-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty · 081096d9
      Linus Torvalds authored
      Pull tty/serial driver updates from Greg KH:
       "Here is the tty and serial driver updates for 5.8-rc1
      
        Nothing huge at all, just a lot of little serial driver fixes, updates
        for new devices and features, and other small things. Full details are
        in the shortlog.
      
        All of these have been in linux-next with no issues for a while"
      
      * tag 'tty-5.8-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty: (67 commits)
        tty: serial: qcom_geni_serial: Add 51.2MHz frequency support
        tty: serial: imx: clear Ageing Timer Interrupt in handler
        serial: 8250_fintek: Add F81966 Support
        sc16is7xx: Add flag to activate IrDA mode
        dt-bindings: sc16is7xx: Add flag to activate IrDA mode
        serial: 8250: Support rs485 bus termination GPIO
        serial: 8520_port: Fix function param documentation
        dt-bindings: serial: Add binding for rs485 bus termination GPIO
        vt: keyboard: avoid signed integer overflow in k_ascii
        serial: 8250: Enable 16550A variants by default on non-x86
        tty: hvc_console, fix crashes on parallel open/close
        serial: imx: Initialize lock for non-registered console
        sc16is7xx: Read the LSR register for basic device presence check
        sc16is7xx: Allow sharing the IRQ line
        sc16is7xx: Use threaded IRQ
        sc16is7xx: Always use falling edge IRQ
        tty: n_gsm: Fix bogus i++ in gsm_data_kick
        tty: n_gsm: Remove unnecessary test in gsm_print_packet()
        serial: stm32: add no_console_suspend support
        tty: serial: fsl_lpuart: Use __maybe_unused instead of #if CONFIG_PM_SLEEP
        ...
      081096d9
    • Linus Torvalds's avatar
      Merge tag 'usb-5.8-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb · e611c0fe
      Linus Torvalds authored
      Pull USB/PHY driver updates from Greg KH:
       "Here are the large set of USB and PHY driver updates for 5.8-rc1.
      
        Nothing huge, just lots of little things:
      
         - USB gadget fixes and additions all over the place
      
         - new PHY drivers
      
         - PHY driver fixes and updates
      
         - XHCI driver updates
      
         - musb driver updates
      
         - more USB-serial driver ids added
      
         - various USB quirks added
      
         - thunderbolt minor updates and fixes
      
         - typec updates and additions
      
        All of these have been in linux-next for a while with no reported
        issues"
      
      * tag 'usb-5.8-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb: (245 commits)
        usb: dwc3: meson-g12a: fix USB2 PHY initialization on G12A and A1 SoCs
        usb: dwc3: meson-g12a: fix error path when fetching the reset line fails
        Revert "dt-bindings: usb: qcom,dwc3: Convert USB DWC3 bindings"
        Revert "dt-bindings: usb: qcom,dwc3: Add compatible for SC7180"
        Revert "dt-bindings: usb: qcom,dwc3: Introduce interconnect properties for Qualcomm DWC3 driver"
        USB: serial: ch341: fix lockup of devices with limited prescaler
        USB: serial: ch341: add basis for quirk detection
        CDC-ACM: heed quirk also in error handling
        USB: serial: option: add Telit LE910C1-EUX compositions
        usb: musb: Fix runtime PM imbalance on error
        usb: musb: jz4740: Prevent lockup when CONFIG_SMP is set
        usb: musb: mediatek: add reset FADDR to zero in reset interrupt handle
        usb: musb: use true for 'use_dma'
        usb: musb: start session in resume for host port
        usb: musb: return -ESHUTDOWN in urb when three-strikes error happened
        USB: serial: qcserial: add DW5816e QDL support
        thunderbolt: Add trivial .shutdown
        usb: dwc3: keystone: Turn on USB3 PHY before controller
        dt-bindings: usb: ti,keystone-dwc3.yaml: Add USB3.0 PHY property
        dt-bindings: usb: convert keystone-usb.txt to YAML
        ...
      e611c0fe
    • Al Viro's avatar
      fix a braino in "sparc32: fix register window handling in genregs32_[gs]et()" · 9d964e1b
      Al Viro authored
      lost npc in PTRACE_SETREGSET, breaking PTRACE_SETREGS as well
      
      Fixes: cf51e129 "sparc32: fix register window handling in genregs32_[gs]et()"
      Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
      9d964e1b