1. 22 Jan, 2020 4 commits
    • Thomas Richter's avatar
      s390/cpum_sf: Use kzalloc and minor changes · 32dab682
      Thomas Richter authored
      Use kzalloc() to allocate auxiliary buffer structure initialized
      with all zeroes to avoid random value in trace output.
      
      Avoid double access to SBD hardware flags.
      Signed-off-by: default avatarThomas Richter <tmricht@linux.ibm.com>
      Signed-off-by: default avatarVasily Gorbik <gor@linux.ibm.com>
      32dab682
    • Thomas Richter's avatar
      s390/cpum_sf: Convert debug trace to common layout · ee5c4ccf
      Thomas Richter authored
      Convert debug traces to print the head/alert/empty marks
      consistently as decimal numbers. Add some trace statements
      to enable easier debugging during auxiliary tracing.
      Signed-off-by: default avatarThomas Richter <tmricht@linux.ibm.com>
      Signed-off-by: default avatarVasily Gorbik <gor@linux.ibm.com>
      ee5c4ccf
    • Niklas Schnelle's avatar
      s390/pci: Fix possible deadlock in recover_store() · 576c75e3
      Niklas Schnelle authored
      With zpci_disable() working, lockdep detected a potential deadlock
      (lockdep output at the end).
      
      The deadlock is between recovering a PCI function via the
      
      /sys/bus/pci/devices/<dev>/recover
      
      attribute vs powering it off via
      
      /sys/bus/pci/slots/<slot>/power.
      
      The fix is analogous to the changes in commit 0ee223b2 ("scsi: core:
      Avoid that SCSI device removal through sysfs triggers a deadlock")
      that fixed a potential deadlock on removing a SCSI device via sysfs.
      
      [  204.830107] ======================================================
      [  204.830109] WARNING: possible circular locking dependency detected
      [  204.830111] 5.5.0-rc2-06072-gbc03ecc9a672 #6 Tainted: G        W
      [  204.830112] ------------------------------------------------------
      [  204.830113] bash/1034 is trying to acquire lock:
      [  204.830115] 0000000192a1a610 (kn->count#200){++++}, at: kernfs_remove_by_name_ns+0x5c/0xa8
      [  204.830122]
                     but task is already holding lock:
      [  204.830123] 00000000c16134a8 (pci_rescan_remove_lock){+.+.}, at: pci_stop_and_remove_bus_device_locked+0x26/0x48
      [  204.830128]
                     which lock already depends on the new lock.
      
      [  204.830129]
                     the existing dependency chain (in reverse order) is:
      [  204.830130]
                     -> #1 (pci_rescan_remove_lock){+.+.}:
      [  204.830134]        validate_chain+0x93a/0xd08
      [  204.830136]        __lock_acquire+0x4ae/0x9d0
      [  204.830137]        lock_acquire+0x114/0x280
      [  204.830140]        __mutex_lock+0xa2/0x960
      [  204.830142]        mutex_lock_nested+0x32/0x40
      [  204.830145]        recover_store+0x4c/0xa8
      [  204.830147]        kernfs_fop_write+0xe6/0x218
      [  204.830151]        vfs_write+0xb0/0x1b8
      [  204.830152]        ksys_write+0x6c/0xf8
      [  204.830154]        system_call+0xd8/0x2d8
      [  204.830155]
                     -> #0 (kn->count#200){++++}:
      [  204.830187]        check_noncircular+0x1e6/0x240
      [  204.830189]        check_prev_add+0xfc/0xdb0
      [  204.830190]        validate_chain+0x93a/0xd08
      [  204.830192]        __lock_acquire+0x4ae/0x9d0
      [  204.830193]        lock_acquire+0x114/0x280
      [  204.830194]        __kernfs_remove.part.0+0x2e4/0x360
      [  204.830196]        kernfs_remove_by_name_ns+0x5c/0xa8
      [  204.830198]        remove_files.isra.0+0x4c/0x98
      [  204.830199]        sysfs_remove_group+0x66/0xc8
      [  204.830201]        sysfs_remove_groups+0x46/0x68
      [  204.830204]        device_remove_attrs+0x52/0x90
      [  204.830207]        device_del+0x182/0x418
      [  204.830208]        pci_remove_bus_device+0x8a/0x130
      [  204.830210]        pci_stop_and_remove_bus_device_locked+0x3a/0x48
      [  204.830212]        disable_slot+0x68/0x100
      [  204.830213]        power_write_file+0x7c/0x130
      [  204.830215]        kernfs_fop_write+0xe6/0x218
      [  204.830217]        vfs_write+0xb0/0x1b8
      [  204.830218]        ksys_write+0x6c/0xf8
      [  204.830220]        system_call+0xd8/0x2d8
      [  204.830221]
                     other info that might help us debug this:
      
      [  204.830223]  Possible unsafe locking scenario:
      
      [  204.830224]        CPU0                    CPU1
      [  204.830225]        ----                    ----
      [  204.830226]   lock(pci_rescan_remove_lock);
      [  204.830227]                                lock(kn->count#200);
      [  204.830229]                                lock(pci_rescan_remove_lock);
      [  204.830231]   lock(kn->count#200);
      [  204.830233]
                      *** DEADLOCK ***
      
      [  204.830234] 4 locks held by bash/1034:
      [  204.830235]  #0: 00000001b6fbc498 (sb_writers#4){.+.+}, at: vfs_write+0x158/0x1b8
      [  204.830239]  #1: 000000018c9f5090 (&of->mutex){+.+.}, at: kernfs_fop_write+0xaa/0x218
      [  204.830242]  #2: 00000001f7da0810 (kn->count#235){.+.+}, at: kernfs_fop_write+0xb6/0x218
      [  204.830245]  #3: 00000000c16134a8 (pci_rescan_remove_lock){+.+.}, at: pci_stop_and_remove_bus_device_locked+0x26/0x48
      [  204.830248]
                     stack backtrace:
      [  204.830250] CPU: 2 PID: 1034 Comm: bash Tainted: G        W         5.5.0-rc2-06072-gbc03ecc9a672 #6
      [  204.830252] Hardware name: IBM 8561 T01 703 (LPAR)
      [  204.830253] Call Trace:
      [  204.830257]  [<00000000c05e10c0>] show_stack+0x88/0xf0
      [  204.830260]  [<00000000c112dca4>] dump_stack+0xa4/0xe0
      [  204.830261]  [<00000000c0694c06>] check_noncircular+0x1e6/0x240
      [  204.830263]  [<00000000c0695bec>] check_prev_add+0xfc/0xdb0
      [  204.830264]  [<00000000c06971da>] validate_chain+0x93a/0xd08
      [  204.830266]  [<00000000c06994c6>] __lock_acquire+0x4ae/0x9d0
      [  204.830267]  [<00000000c069867c>] lock_acquire+0x114/0x280
      [  204.830269]  [<00000000c09ca15c>] __kernfs_remove.part.0+0x2e4/0x360
      [  204.830270]  [<00000000c09cb5c4>] kernfs_remove_by_name_ns+0x5c/0xa8
      [  204.830272]  [<00000000c09cee14>] remove_files.isra.0+0x4c/0x98
      [  204.830274]  [<00000000c09cf2ae>] sysfs_remove_group+0x66/0xc8
      [  204.830276]  [<00000000c09cf356>] sysfs_remove_groups+0x46/0x68
      [  204.830278]  [<00000000c0e3dfe2>] device_remove_attrs+0x52/0x90
      [  204.830280]  [<00000000c0e40382>] device_del+0x182/0x418
      [  204.830281]  [<00000000c0dcfd7a>] pci_remove_bus_device+0x8a/0x130
      [  204.830283]  [<00000000c0dcfe92>] pci_stop_and_remove_bus_device_locked+0x3a/0x48
      [  204.830285]  [<00000000c0de7190>] disable_slot+0x68/0x100
      [  204.830286]  [<00000000c0de6514>] power_write_file+0x7c/0x130
      [  204.830288]  [<00000000c09cc846>] kernfs_fop_write+0xe6/0x218
      [  204.830290]  [<00000000c08f3480>] vfs_write+0xb0/0x1b8
      [  204.830291]  [<00000000c08f378c>] ksys_write+0x6c/0xf8
      [  204.830293]  [<00000000c1154374>] system_call+0xd8/0x2d8
      [  204.830294] INFO: lockdep is turned off.
      Signed-off-by: default avatarNiklas Schnelle <schnelle@linux.ibm.com>
      Reviewed-by: default avatarPeter Oberparleiter <oberpar@linux.ibm.com>
      Signed-off-by: default avatarVasily Gorbik <gor@linux.ibm.com>
      576c75e3
    • Niklas Schnelle's avatar
      s390/pci: Recover handle in clp_set_pci_fn() · 17cdec96
      Niklas Schnelle authored
      When we try to recover a PCI function using
      
          echo 1 > /sys/bus/pci/devices/<id>/recover
      
      or manually with
      
          echo 1 > /sys/bus/pci/devices/<id>/remove
          echo 0 > /sys/bus/pci/slots/<slot>/power
          echo 1 > /sys/bus/pci/slots/<slot>/power
      
      clp_disable_fn() / clp_enable_fn() call clp_set_pci_fn() to first
      disable and then reenable the function.
      
      When the function is already in the requested state we may be left with
      an invalid function handle.
      
      To get a new valid handle we do a clp_list_pci() call. For this we need
      both the function ID and function handle in clp_set_pci_fn() so pass the
      zdev and get both.
      
      To simplify things also pull setting the refreshed function handle into
      clp_set_pci_fn()
      Signed-off-by: default avatarNiklas Schnelle <schnelle@linux.ibm.com>
      Reviewed-by: default avatarPeter Oberparleiter <oberpar@linux.ibm.com>
      Signed-off-by: default avatarVasily Gorbik <gor@linux.ibm.com>
      17cdec96
  2. 15 Dec, 2019 6 commits
    • Linus Torvalds's avatar
      Linux 5.5-rc2 · d1eef1c6
      Linus Torvalds authored
      d1eef1c6
    • Linus Torvalds's avatar
      Merge tag 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma · 9603e221
      Linus Torvalds authored
      Pull rdma fixes from Doug Ledford:
       "A small collection of -rc fixes. Mostly. One API addition, but that's
        because we wanted to use it in a fix. There's also a bug fix that is
        going to render the 5.5 kernel's soft-RoCE driver incompatible with
        all soft-RoCE versions prior, but it's required to actually implement
        the protocol according to the RoCE spec and required in order for the
        soft-RoCE driver to be able to successfully work with actual RoCE
        hardware.
      
        Summary:
      
         - Update Steve Wise info
      
         - Fix for soft-RoCE crc calculations (will break back compatibility,
           but only with the soft-RoCE driver, which has had this bug since it
           was introduced and it is an on-the-wire bug, but will make
           soft-RoCE fully compatible with real RoCE hardware)
      
         - cma init fixup
      
         - counters oops fix
      
         - fix for mlx4 init/teardown sequence
      
         - fix for mkx5 steering rules
      
         - introduce a cleanup API, which isn't a fix, but we want to use it
           in the next fix
      
         - fix for mlx5 memory management that uses API in previous patch"
      
      * tag 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma:
        IB/mlx5: Fix device memory flows
        IB/core: Introduce rdma_user_mmap_entry_insert_range() API
        IB/mlx5: Fix steering rule of drop and count
        IB/mlx4: Follow mirror sequence of device add during device removal
        RDMA/counter: Prevent auto-binding a QP which are not tracked with res
        rxe: correctly calculate iCRC for unaligned payloads
        Update mailmap info for Steve Wise
        RDMA/cma: add missed unregister_pernet_subsys in init failure
      9603e221
    • Linus Torvalds's avatar
      Merge tag 'riscv/for-v5.5-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux · 1522d9da
      Linus Torvalds authored
      Pull RISC-V fixes from Paul Walmsley:
       "Two minor build fixes:
      
         - Fix builds of the ELF loader when built with 'make -j1' (nommu
           only)
      
         - Fix CONFIG_SOC_SIFIVE builds when CONFIG_TTY is disabled (found
           during randconfig testing)"
      
      * tag 'riscv/for-v5.5-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux:
        riscv: only select serial sifive if TTY is enabled
        riscv: Fix build dependency for loader
      1522d9da
    • Linus Torvalds's avatar
      Merge tag 'for-linus-5.5b-rc2-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip · b01d7cb4
      Linus Torvalds authored
      Pull xen fixes from Juergen Gross:
       "Two fixes: one for a resource accounting bug in some configurations
        and a fix for another patch which went into rc1"
      
      * tag 'for-linus-5.5b-rc2-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip:
        xen/balloon: fix ballooned page accounting without hotplug enabled
        xen-blkback: prevent premature module unload
      b01d7cb4
    • Linus Torvalds's avatar
      Merge branch 'remove-ksys-mount-dup' of git://git.kernel.org/pub/scm/linux/kernel/git/brodo/linux · 2e6d3045
      Linus Torvalds authored
      Pull ksys_mount() and ksys_dup() removal from Dominik Brodowski:
       "This small series replaces all in-kernel calls to the
        userspace-focused ksys_mount() and ksys_dup() with calls to
        kernel-centric functions:
      
        For each replacement of ksys_mount() with do_mount(), one needs to
        verify that the first and third parameter (char *dev_name, char *type)
        are strings allocated in kernelspace and that the fifth parameter
        (void *data) is either NULL or refers to a full page (only occurence
        in init/do_mounts.c::do_mount_root()). The second and fourth
        parameters (char *dir_name, unsigned long flags) are passed by
        ksys_mount() to do_mount() unchanged, and therefore do not require
        particular care.
      
        Moreover, instead of pretending to be userspace, the opening of
        /dev/console as stdin/stdout/stderr can be implemented using in-kernel
        functions as well. Thereby, ksys_dup() can be removed for good"
      
      [ This doesn't get rid of the special "kernel init runs with KERNEL_DS"
        case, but it at least removes _some_ of the users of "treat kernel
        pointers as user pointers for our magical init sequence".
      
        One day we'll hopefully be rid of it all, and can initialize our
        init_thread addr_limit to USER_DS.    - Linus ]
      
      * 'remove-ksys-mount-dup' of git://git.kernel.org/pub/scm/linux/kernel/git/brodo/linux:
        fs: remove ksys_dup()
        init: unify opening /dev/console as stdin/stdout/stderr
        init: use do_mount() instead of ksys_mount()
        initrd: use do_mount() instead of ksys_mount()
        devtmpfs: use do_mount() instead of ksys_mount()
      2e6d3045
    • Linus Torvalds's avatar
      Merge tag 'Wimplicit-fallthrough-5.5-rc2' of... · 510c9788
      Linus Torvalds authored
      Merge tag 'Wimplicit-fallthrough-5.5-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/gustavoars/linux
      
      Pull fall through fix from Gustavo Silva:
       "Fix compile error on sh by marking expected switch fall-through"
      
      * tag 'Wimplicit-fallthrough-5.5-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/gustavoars/linux:
        sh: kgdb: Mark expected switch fall-throughs
      510c9788
  3. 14 Dec, 2019 10 commits
    • Linus Torvalds's avatar
      Merge tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi · 07c4b9e9
      Linus Torvalds authored
      Pull SCSI fixes from James Bottomley:
       "24 fixes, all in drivers. The lion's share (16) are qla2xxx and the
        rest are iscsi (3), ufs (2), smarpqi, lpfc and libsas"
      
      * tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi: (24 commits)
        scsi: iscsi: Avoid potential deadlock in iscsi_if_rx func
        scsi: iscsi: Fix a potential deadlock in the timeout handler
        scsi: smartpqi: Update attribute name to `driver_version`
        scsi: libsas: stop discovering if oob mode is disconnected
        scsi: ufs: Disable autohibern8 feature in Cadence UFS
        scsi: iscsi: qla4xxx: fix double free in probe
        scsi: ufs: Give an unique ID to each ufs-bsg
        scsi: qla2xxx: Add debug dump of LOGO payload and ELS IOCB
        scsi: qla2xxx: Ignore PORT UPDATE after N2N PLOGI
        scsi: qla2xxx: Don't defer relogin unconditonally
        scsi: qla2xxx: Send Notify ACK after N2N PLOGI
        scsi: qla2xxx: Configure local loop for N2N target
        scsi: qla2xxx: Fix PLOGI payload and ELS IOCB dump length
        scsi: qla2xxx: Don't call qlt_async_event twice
        scsi: qla2xxx: Allow PLOGI in target mode
        scsi: qla2xxx: Change discovery state before PLOGI
        scsi: qla2xxx: Drop superfluous INIT_WORK of del_work
        scsi: qla2xxx: Initialize free_work before flushing it
        scsi: qla2xxx: Use explicit LOGO in target mode
        scsi: qla2xxx: Ignore NULL pointer in tcm_qla2xxx_free_mcmd
        ...
      07c4b9e9
    • Linus Torvalds's avatar
      Merge tag 'char-misc-5.5-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc · f61cf8de
      Linus Torvalds authored
      Pull char/misc driver fixes from Greg KH:
       "Here are six small fixes for some reported char/misc driver issues:
      
         - fix build warnings with new 'awk' with the raid6 code
      
         - four interconnect driver bugfixes
      
         - binder fix for reported problem
      
        All of these except the binder fix have been in linux-next with no
        reported issues. The binder fix is "new" but Todd says it is good as
        he has tested it :)"
      
      * tag 'char-misc-5.5-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc:
        binder: fix incorrect calculation for num_valid
        interconnect: qcom: msm8974: Walk the list safely on node removal
        interconnect: qcom: qcs404: Walk the list safely on node removal
        interconnect: qcom: sdm845: Walk the list safely on node removal
        interconnect: qcom: Fix Kconfig indentation
        lib: raid6: fix awk build warnings
      f61cf8de
    • Linus Torvalds's avatar
      Merge tag 'driver-core-5.5-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core · 894554c1
      Linus Torvalds authored
      Pull driver core fixes from Greg KH:
       "Here are two small driver core fixes to resolve some reported issues
      
        The first is to handle the much-reported (by the build systems)
        problem that superH does not boot anymore.
      
        The second handles an issue in the new platform logic that a number of
        people ran into with the automated tests in kbuild
      
        Both of these have been in linux-next with no reported issues"
      
      * tag 'driver-core-5.5-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core:
        drivers: Fix boot problem on SuperH
        of/platform: Unconditionally pause/resume sync state during kernel init
      894554c1
    • Linus Torvalds's avatar
      Merge tag 'staging-5.5-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging · aff2a525
      Linus Torvalds authored
      Pull staging/IIO fixes from Greg KH:
       "Here are a number of small staging and IIO driver fixes for reported
        issues for 5.5-rc2
      
        Nothing major, a bunch of tiny IIO driver issues resolved, and some
        staging driver fixes for things that people ran into with 5.5-rc1.
        Full details are in the shortlog.
      
        All of these have been in linux-next with no reported issues"
      
      * tag 'staging-5.5-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging: (28 commits)
        fbtft: Fix the initialization from property algorithm
        staging: rtl8712: fix interface sanity check
        staging: rtl8188eu: fix interface sanity check
        staging: gigaset: add endpoint-type sanity check
        staging: gigaset: fix illegal free on probe errors
        staging: gigaset: fix general protection fault on probe
        staging: vchiq: call unregister_chrdev_region() when driver registration fails
        staging: exfat: fix multiple definition error of `rename_file'
        staging/wlan-ng: add CRC32 dependency in Kconfig
        staging: hp100: Fix build error without ETHERNET
        staging: fbtft: Do not hardcode SPI CS polarity inversion
        staging: exfat: properly support discard in clr_alloc_bitmap()
        staging/octeon: Mark Ethernet driver as BROKEN
        iio: adc: max9611: Fix too short conversion time delay
        iio: ad7949: fix channels mixups
        iio: imu: st_lsm6dsx: do not power-off accel if events are enabled
        iio: imu: st_lsm6dsx: track hw FIFO buffering with fifo_mask
        iio: imu: st_lsm6dsx: fix decimation factor estimation
        iio: imu: inv_mpu6050: fix temperature reporting using bad unit
        iio: humidity: hdc100x: fix IIO_HUMIDITYRELATIVE channel reporting
        ...
      aff2a525
    • Linus Torvalds's avatar
      Merge tag 'usb-5.5-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb · a1b85b3b
      Linus Torvalds authored
      Pull USB fixes from Greg KH:
       "Here are some small USB driver fixes for reported issues for 5.5-rc2
      
        There's the usual gadget and xhci fixes, as well as some other
        problems that syzbot has been finding during it's fuzzing runs. Full
        details are in the shortlog.
      
        All of these have been in linux-next with no reported issues"
      
      * tag 'usb-5.5-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb: (21 commits)
        usb: dwc3: pci: add ID for the Intel Comet Lake -H variant
        xhci: make sure interrupts are restored to correct state
        xhci: handle some XHCI_TRUST_TX_LENGTH quirks cases as default behaviour.
        xhci: Increase STS_HALT timeout in xhci_suspend()
        usb: xhci: only set D3hot for pci device
        xhci: fix USB3 device initiated resume race with roothub autosuspend
        xhci: Fix memory leak in xhci_add_in_port()
        USB: Fix incorrect DMA allocations for local memory pool drivers
        usb: gadget: fix wrong endpoint desc
        usb: dwc3: ep0: Clear started flag on completion
        usb: dwc3: gadget: Clear started flag for non-IOC
        usb: dwc3: gadget: Fix logical condition
        USB: atm: ueagle-atm: add missing endpoint check
        USB: adutux: fix interface sanity check
        USB: idmouse: fix interface sanity checks
        USB: serial: io_edgeport: fix epic endpoint lookup
        usb: mon: Fix a deadlock in usbmon between mmap and read
        usb: common: usb-conn-gpio: Don't log an error on probe deferral
        usb: core: urb: fix URB structure initialization function
        usb: typec: fix use after free in typec_register_port()
        ...
      a1b85b3b
    • Linus Torvalds's avatar
      Merge tag 's390-5.5-3' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux · 81d55984
      Linus Torvalds authored
      Pull s390 updates from Vasily Gorbik:
      
       - Add support for KASAN_VMALLOC feature.
      
       - Remove the last user of problematic diag 0x44 call.
      
       - Adjust sampling interval and avoid sample data block overflow
         condition on pressure in perf code.
      
       - Prefer EOPNOTSUPP over ENOTSUPP and comments fixes.
      
      * tag 's390-5.5-3' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux:
        s390/kasan: add KASAN_VMALLOC support
        s390: remove last diag 0x44 caller
        s390/uv: use EOPNOTSUPP instead of ENOTSUPP
        s390/cpum_sf: Avoid SBD overflow condition in irq handler
        s390/cpum_sf: Adjust sampling interval to avoid hitting sample limits
        s390/test_unwind: fix spelling mistake "reqister" -> "register"
        s390/spinlock: remove confusing comment in arch_spin_lock_wait
      81d55984
    • Linus Torvalds's avatar
      Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6 · f791ede3
      Linus Torvalds authored
      Pull crypto fix from Herbert Xu:
       "Fix another build problem for Wireguard without Crypto"
      
      * 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6:
        crypto: arm/curve25519 - add arch-specific key generation function
      f791ede3
    • Linus Torvalds's avatar
      Merge tag '5.5-rc1-smb3-fixes' of git://git.samba.org/sfrench/cifs-2.6 · 103a022d
      Linus Torvalds authored
      Pull cfis fixes from Steve French:
       "Three small smb3 fixes: this addresses two recent issues reported in
        additional testing during rc1, a refcount underflow and a problem with
        an intermittent crash in SMB2_open_init"
      
      * tag '5.5-rc1-smb3-fixes' of git://git.samba.org/sfrench/cifs-2.6:
        CIFS: Close cached root handle only if it has a lease
        SMB3: Fix crash in SMB2_open_init due to uninitialized field in compounding path
        smb3: fix refcount underflow warning on unmount when no directory leases
      103a022d
    • Linus Torvalds's avatar
      Merge tag 'ovl-fixes-5.5-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/vfs · 81c64b0b
      Linus Torvalds authored
      Pull overlayfs fixes from Miklos Szeredi:
       "Fix some bugs and documentation"
      
      * tag 'ovl-fixes-5.5-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/vfs:
        docs: filesystems: overlayfs: Fix restview warnings
        docs: filesystems: overlayfs: Rename overlayfs.txt to .rst
        ovl: relax WARN_ON() on rename to self
        ovl: fix corner case of non-unique st_dev;st_ino
        ovl: don't use a temp buf for encoding real fh
        ovl: make sure that real fid is 32bit aligned in memory
        ovl: fix lookup failure on multi lower squashfs
      81c64b0b
    • Todd Kjos's avatar
      binder: fix incorrect calculation for num_valid · 16981742
      Todd Kjos authored
      For BINDER_TYPE_PTR and BINDER_TYPE_FDA transactions, the
      num_valid local was calculated incorrectly causing the
      range check in binder_validate_ptr() to miss out-of-bounds
      offsets.
      
      Fixes: bde4a19f ("binder: use userspace pointer as base of buffer space")
      Signed-off-by: default avatarTodd Kjos <tkjos@google.com>
      Cc: stable <stable@vger.kernel.org>
      Link: https://lore.kernel.org/r/20191213202531.55010-1-tkjos@google.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      16981742
  4. 13 Dec, 2019 20 commits
    • Linus Torvalds's avatar
      Merge tag 'nios2-v5.5-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/lftan/nios2 · e31736d9
      Linus Torvalds authored
      Pull nios2 fix from Ley Foon Tan:
       "Fix nios2 ioremap regression"
      
      * tag 'nios2-v5.5-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/lftan/nios2:
        nios2: Fix ioremap
      e31736d9
    • Linus Torvalds's avatar
      Merge tag 'devicetree-fixes-for-5.5' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux · 1482e664
      Linus Torvalds authored
      Pull Devicetree fixes from Rob Herring:
      
       - Fix for dependency tracking caused by unittest interaction
      
       - Fix some schema errors in Tegra memory controller schema
      
       - Update Maxime Ripard's email address
      
       - Review fixes to TI cpsw-switch
      
       - Add wakeup-source prop for STM32 rproc. Got dropped in the schema
         conversion.
      
      * tag 'devicetree-fixes-for-5.5' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux:
        of/platform: Unconditionally pause/resume sync state during kernel init
        dt-bindings: memory-controllers: tegra: Fix type references
        dt-bindings: Change maintainer address
        dt-bindings: net: ti: cpsw-switch: update to fix comments
        dt-bindings: remoteproc: stm32: add wakeup-source property
      1482e664
    • Linus Torvalds's avatar
      Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost · dd79b536
      Linus Torvalds authored
      Pull virtio fixes from Michael Tsirkin:
       "Some fixes and cleanup patches"
      
      * tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost:
        virtio_balloon: divide/multiply instead of shifts
        virtio_balloon: name cleanups
        virtio-balloon: fix managed page counts when migrating pages between zones
      dd79b536
    • Linus Torvalds's avatar
      Merge tag 'pci-v5.5-fixes-1' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci · 1d76c079
      Linus Torvalds authored
      Pull PCI fix from Bjorn Helgaas:
       "Fix rockchip outbound ATU issue that prevented Google Kevin
        Chromebooks from booting (Enric Balletbo i Serra)"
      
      * tag 'pci-v5.5-fixes-1' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci:
        PCI: rockchip: Fix IO outbound ATU register number
      1d76c079
    • Linus Torvalds's avatar
      Merge branch 'i2c/for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux · 3b2ee614
      Linus Torvalds authored
      Pull i2c updates from Wolfram Sang:
      
       - removal of an old API where all in-kernel users have been converted
         as of this merge window.
      
       - a kdoc fix
      
       - a new helper that will make dependencies for the next API conversion
         a tad easier
      
      * 'i2c/for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux:
        i2c: add helper to check if a client has a driver attached
        i2c: fix header file kernel-doc warning
        i2c: remove i2c_new_dummy() API
      3b2ee614
    • Linus Torvalds's avatar
      Merge tag 'pm-5.5-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm · 6bd2c87a
      Linus Torvalds authored
      Pull power management fixes from Rafael Wysocki:
       "These add PM QoS support to devfreq and fix a few issues in that
        subsystem, fix two cpuidle issues and do one minor cleanup in there,
        and address an ACPI power management problem related to devices with
        special power management requirements, like fans.
      
        Specifics:
      
         - Add PM QoS support, based on the frequency QoS introduced during
           the 5.4 cycle, to devfreq (Leonard Crestez).
      
         - Fix some assorted devfreq issues (Leonard Crestez).
      
         - Fix an unintentional cpuidle behavior change (introduced during the
           5.4 cycle) related to the active polling time limit (Marcelo
           Tosatti).
      
         - Fix a recently introduced cpuidle helper function and do a minor
           cleanup in the cpuidle core (Rafael Wysocki).
      
         - Avoid adding devices with special power management requirements,
           like fans, to the generic ACPI PM domain (Rafael Wysocki)"
      
      * tag 'pm-5.5-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
        cpuidle: Drop unnecessary type cast in cpuidle_poll_time()
        cpuidle: Fix cpuidle_driver_state_disabled()
        ACPI: PM: Avoid attaching ACPI PM domain to certain devices
        cpuidle: use first valid target residency as poll time
        PM / devfreq: Use PM QoS for sysfs min/max_freq
        PM / devfreq: Add PM QoS support
        PM / devfreq: Don't fail devfreq_dev_release if not in list
        PM / devfreq: Introduce get_freq_range helper
        PM / devfreq: Set scaling_max_freq to max on OPP notifier error
        PM / devfreq: Fix devfreq_notifier_call returning errno
      6bd2c87a
    • Linus Torvalds's avatar
      Merge tag 'sound-5.5-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound · b61c5622
      Linus Torvalds authored
      Pull sound fixes from Takashi Iwai:
       "A small collection of fixes.
      
        The main changes are fixes for a couple of regressions in AMD HD-audio
        and FireWire that were introduced in 5.5-rc1. The rest are small fixes
        for echoaudio and FireWire, as well as a usual Dell HD-audio fixup"
      
      * tag 'sound-5.5-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound:
        ALSA: hda/realtek - Line-out jack doesn't work on a Dell AIO
        ALSA: hda/hdmi - Fix duplicate unref of pci_dev
        ALSA: fireface: fix return value in error path of isochronous resources reservation
        ALSA: oxfw: fix return value in error path of isochronous resources reservation
        ALSA: firewire-motu: fix double unlocked 'motu->mutex'
        ALSA: echoaudio: simplify get_audio_levels
      b61c5622
    • Linus Torvalds's avatar
      Merge tag 'drm-fixes-2019-12-13' of git://anongit.freedesktop.org/drm/drm · b2cb931d
      Linus Torvalds authored
      Pull drm fixes from Dave Airlie:
       "Usual round of rc2 fixes.
      
        i915 and amdgpu leading the charge, but a few others in here,
        including some nouveau fixes, all seems pretty for rc2, but hey it's a
        Fri 13th pull so I'm sure it'll cause untold bad fortune.
      
        dma-buf:
         - memory leak fix
         - expand MAINTAINERS scope
      
        core:
         - fix mode matching for drivers not using picture_aspect_ratio
      
        nouveau:
         - panel scaling fix
         - MST BPC fix
         - atomic fixes
      
        i915:
         - GPU hang on idle transition
         - GLK+ FBC corruption fix
         - non-priv OA access on Tigerlake
         - HDCP state fix
         - CI found race fixes
      
        amdgpu:
         - renoir DC fixes
         - GFX8 fence flush alignment with userspace
         - Arcturus power profile fix
         - DC aux + i2c over aux fixes
         - GPUVM invalidation semaphore fixes
         - gfx10 golden registers update
      
        mgag200:
         - expand startadd fix
      
        panfrost:
         - devfreq fix
         - memory fixes
      
        mcde:
         - DSI pointer deref fix"
      
      * tag 'drm-fixes-2019-12-13' of git://anongit.freedesktop.org/drm/drm: (51 commits)
        drm/amdgpu: add invalidate semaphore limit for SRIOV in gmc10
        drm/amdgpu: add invalidate semaphore limit for SRIOV and picasso in gmc9
        drm/amdgpu: avoid using invalidate semaphore for picasso
        Revert "drm/amdgpu: dont schedule jobs while in reset"
        drm/amdgpu: fix license on Kconfig and Makefiles
        drm/amdgpu/gfx10: update gfx golden settings for navi14
        drm/amdgpu/gfx10: update gfx golden settings
        drm/amdgpu/gfx10: update gfx golden settings for navi14
        drm/amdgpu/gfx10: update gfx golden settings
        drm/i915: Serialise with remote retirement
        drm/amd/display: include linux/slab.h where needed
        drm/amd/display: fix undefined struct member reference
        drm/nouveau/kms/nv50-: fix panel scaling
        drm/nouveau/kms/nv50-: Limit MST BPC to 8
        drm/nouveau/kms/nv50-: Store the bpc we're using in nv50_head_atom
        drm/nouveau/kms/nv50-: Call outp_atomic_check_view() before handling PBN
        drm/nouveau: Fix drm-core using atomic code-paths on pre-nv50 hardware
        drm/nouveau: Move the declaration of struct nouveau_conn_atom up a bit
        drm/i915/gt: Detect if we miss WaIdleLiteRestore
        drm/i915/hdcp: Nuke intel_hdcp_transcoder_config()
        ...
      b2cb931d
    • Linus Torvalds's avatar
      Merge tag 'for-linus-20191212' of git://git.kernel.dk/linux-block · f1fcd778
      Linus Torvalds authored
      Pull block fixes from Jens Axboe:
      
       - stable fix for the bi_size overflow. Not a corruption issue, but a
         case wher we could merge but disallowed (Andreas)
      
       - NVMe pull request via Keith, with various fixes.
      
       - MD pull request from Song.
      
       - Merge window regression fix for the rq passthrough stats (Logan)
      
       - Remove unused blkcg_drain_queue() function (Guoqing)
      
      * tag 'for-linus-20191212' of git://git.kernel.dk/linux-block:
        blk-cgroup: remove blkcg_drain_queue
        block: fix NULL pointer dereference in account statistics with IDE
        md: make sure desc_nr less than MD_SB_DISKS
        md: raid1: check rdev before reference in raid1_sync_request func
        raid5: need to set STRIPE_HANDLE for batch head
        block: fix "check bi_size overflow before merge"
        nvme/pci: Fix read queue count
        nvme/pci Limit write queue sizes to possible cpus
        nvme/pci: Fix write and poll queue types
        nvme/pci: Remove last_cq_head
        nvme: Namepace identification descriptor list is optional
        nvme-fc: fix double-free scenarios on hw queues
        nvme: else following return is not needed
        nvme: add error message on mismatching controller ids
        nvme_fc: add module to ops template to allow module references
        nvmet-loop: Avoid preallocating big SGL for data
        nvme-fc: Avoid preallocating big SGL for data
        nvme-rdma: Avoid preallocating big SGL for data
      f1fcd778
    • Linus Torvalds's avatar
      Merge tag 'io_uring-5.5-20191212' of git://git.kernel.dk/linux-block · 5bd831a4
      Linus Torvalds authored
      Pull io_uring fixes from Jens Axboe:
      
       - A tweak to IOSQE_IO_LINK (also marked for stable) to allow links that
         don't sever if the result is < 0.
      
         This is mostly for linked timeouts, where if we ask for a pure
         timeout we always get -ETIME. This makes links useless for that case,
         hence allow a case where it works.
      
       - Five minor optimizations to fix and improve cases that regressed
         since v5.4.
      
       - An SQTHREAD locking fix.
      
       - A sendmsg/recvmsg iov assignment fix.
      
       - Net fix where read_iter/write_iter don't honor IOCB_NOWAIT, and
         subsequently ensuring that works for io_uring.
      
       - Fix a case where for an invalid opcode we might return -EBADF instead
         of -EINVAL, if the ->fd of that sqe was set to an invalid fd value.
      
      * tag 'io_uring-5.5-20191212' of git://git.kernel.dk/linux-block:
        io_uring: ensure we return -EINVAL on unknown opcode
        io_uring: add sockets to list of files that support non-blocking issue
        net: make socket read/write_iter() honor IOCB_NOWAIT
        io_uring: only hash regular files for async work execution
        io_uring: run next sqe inline if possible
        io_uring: don't dynamically allocate poll data
        io_uring: deferred send/recvmsg should assign iov
        io_uring: sqthread should grab ctx->uring_lock for submissions
        io-wq: briefly spin for new work after finishing work
        io-wq: remove worker->wait waitqueue
        io_uring: allow unbreakable links
      5bd831a4
    • Linus Torvalds's avatar
      Merge tag 'for-5.5/dm-fixes' of... · 15da849c
      Linus Torvalds authored
      Merge tag 'for-5.5/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 multipath by restoring full path selector functionality for
         bio-based configurations that don't haave a SCSI device handler.
      
       - Fix dm-btree removal to ensure non-root btree nodes have at least
         (max_entries / 3) entries. This resolves userspace thin_check
         utility's report of "too few entries in btree_node".
      
       - Fix both the DM thin-provisioning and dm-clone targets to properly
         flush the data device prior to metadata commit. This resolves the
         potential for inconsistency across a power loss event when the data
         device has a volatile writeback cache.
      
       - Small documentation fixes to dm-clone and dm-integrity.
      
      * tag 'for-5.5/dm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm:
        docs: dm-integrity: remove reference to ARC4
        dm thin: Flush data device before committing metadata
        dm thin metadata: Add support for a pre-commit callback
        dm clone: Flush destination device before committing metadata
        dm clone metadata: Use a two phase commit
        dm clone metadata: Track exact changes per transaction
        dm btree: increase rebalance threshold in __rebalance2()
        dm: add dm-clone to the documentation index
        dm mpath: remove harmful bio-based optimization
      15da849c
    • Linus Torvalds's avatar
      Merge tag 'sizeof_field-v5.5-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux · 22ff311a
      Linus Torvalds authored
      Pull FIELD_SIZEOF conversion from Kees Cook:
       "A mostly mechanical treewide conversion from FIELD_SIZEOF() to
        sizeof_field(). This avoids the redundancy of having 2 macros
        (actually 3) doing the same thing, and consolidates on sizeof_field().
        While "field" is not an accurate name, it is the common name used in
        the kernel, and doesn't result in any unintended innuendo.
      
        As there are still users of FIELD_SIZEOF() in -next, I will clean up
        those during this coming development cycle and send the final old
        macro removal patch at that time"
      
      * tag 'sizeof_field-v5.5-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux:
        treewide: Use sizeof_field() macro
        MIPS: OCTEON: Replace SIZEOF_FIELD() macro
      22ff311a
    • Rafael J. Wysocki's avatar
      Merge branches 'pm-cpuidle' and 'acpi-pm' · 4c84515d
      Rafael J. Wysocki authored
      * pm-cpuidle:
        cpuidle: Drop unnecessary type cast in cpuidle_poll_time()
        cpuidle: Fix cpuidle_driver_state_disabled()
        cpuidle: use first valid target residency as poll time
      
      * acpi-pm:
        ACPI: PM: Avoid attaching ACPI PM domain to certain devices
      4c84515d
    • Juergen Gross's avatar
      xen/balloon: fix ballooned page accounting without hotplug enabled · c673ec61
      Juergen Gross authored
      When CONFIG_XEN_BALLOON_MEMORY_HOTPLUG is not defined
      reserve_additional_memory() will set balloon_stats.target_pages to a
      wrong value in case there are still some ballooned pages allocated via
      alloc_xenballooned_pages().
      
      This will result in balloon_process() no longer be triggered when
      ballooned pages are freed in batches.
      Reported-by: default avatarNicholas Tsirakis <niko.tsirakis@gmail.com>
      Signed-off-by: default avatarJuergen Gross <jgross@suse.com>
      Reviewed-by: default avatarBoris Ostrovsky <boris.ostrovsky@oracle.com>
      Signed-off-by: default avatarJuergen Gross <jgross@suse.com>
      c673ec61
    • Paul Durrant's avatar
      xen-blkback: prevent premature module unload · fa2ac657
      Paul Durrant authored
      Objects allocated by xen_blkif_alloc come from the 'blkif_cache' kmem
      cache. This cache is destoyed when xen-blkif is unloaded so it is
      necessary to wait for the deferred free routine used for such objects to
      complete. This necessity was missed in commit 14855954 "xen-blkback:
      allow module to be cleanly unloaded". This patch fixes the problem by
      taking/releasing extra module references in xen_blkif_alloc/free()
      respectively.
      Signed-off-by: default avatarPaul Durrant <pdurrant@amazon.com>
      Reviewed-by: default avatarRoger Pau Monné <roger.pau@citrix.com>
      Signed-off-by: default avatarJuergen Gross <jgross@suse.com>
      fa2ac657
    • Pavel Shilovsky's avatar
      CIFS: Close cached root handle only if it has a lease · d9191319
      Pavel Shilovsky authored
      SMB2_tdis() checks if a root handle is valid in order to decide
      whether it needs to close the handle or not. However if another
      thread has reference for the handle, it may end up with putting
      the reference twice. The extra reference that we want to put
      during the tree disconnect is the reference that has a directory
      lease. So, track the fact that we have a directory lease and
      close the handle only in that case.
      Signed-off-by: default avatarPavel Shilovsky <pshilov@microsoft.com>
      Reviewed-by: default avatarRonnie Sahlberg <lsahlber@redhat.com>
      Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
      d9191319
    • Steve French's avatar
      SMB3: Fix crash in SMB2_open_init due to uninitialized field in compounding path · e0fc5b11
      Steve French authored
      Ran into an intermittent crash in
      	SMB2_open_init+0x2f6/0x970
      due to oparms.cifs_sb not being initialized when called from:
      	smb2_compound_op+0x45d/0x1690
      Zero the whole oparms struct in the compounding path before setting up the
      oparms so we don't risk any uninitialized fields.
      
      Fixes: fdef665b ("smb3: fix mode passed in on create for modetosid mount option")
      Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
      Acked-by: default avatarRonnie Sahlberg <lsahlber@redhat.com>
      Reviewed-by: default avatarPavel Shilovsky <pshilov@microsoft.com>
      e0fc5b11
    • Dave Airlie's avatar
      Merge tag 'drm-fixes-5.5-2019-12-12' of git://people.freedesktop.org/~agd5f/linux into drm-fixes · d16f0f61
      Dave Airlie authored
      drm-fixes-5.5-2019-12-12:
      
      amdgpu:
      - DC fixes for renoir
      - Gfx8 fence flush align with mesa
      - Power profile fix for arcturus
      - Freesync fix
      - DC I2c over aux fix
      - DC aux defer fix
      - GPU reset fix
      - GPUVM invalidation semaphore fixes for PCO and SR-IOV
      - Golden settings updates for gfx10
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      From: Alex Deucher <alexdeucher@gmail.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20191212223211.8034-1-alexander.deucher@amd.com
      d16f0f61
    • Dave Airlie's avatar
      Merge tag 'drm-intel-fixes-2019-12-12' of... · 82e50ec8
      Dave Airlie authored
      Merge tag 'drm-intel-fixes-2019-12-12' of git://anongit.freedesktop.org/drm/drm-intel into drm-fixes
      
      - Fix user reported issue #673: GPU hang on transition to idle
      - Avoid corruption on the top of the screen on GLK+ by disabling FBC
      - Fix non-privileged access to OA on Tigerlake
      - Fix HDCP code not to touch global state when just computing commit
      - Fix CI splat by saving irqstate around virtual_context_destroy
      - Serialise context retirement possibly on another CPU
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      From: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20191212100759.GA22260@jlahtine-desk.ger.corp.intel.com
      82e50ec8
    • Dave Airlie's avatar
      Merge tag 'drm-misc-next-fixes-2019-12-12' of... · 7315c0ed
      Dave Airlie authored
      Merge tag 'drm-misc-next-fixes-2019-12-12' of git://anongit.freedesktop.org/drm/drm-misc into drm-fixes
      
      -mgag200: more startadd mitigation (Thomas)
      -panfrost: devfreq fix + several memory fixes (Steven, Boris)
      
      Cc: Boris Brezillon <boris.brezillon@collabora.com>
      Cc: Steven Price <steven.price@arm.com>
      Cc: Thomas Zimmermann <tzimmermann@suse.de>
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      
      From: Sean Paul <sean@poorly.run>
      Link: https://patchwork.freedesktop.org/patch/msgid/20191212140145.GA145200@art_vandelay
      7315c0ed