1. 10 Dec, 2019 10 commits
  2. 09 Dec, 2019 1 commit
    • Greg Kroah-Hartman's avatar
      Merge tag 'iio-fixes-for-5.5a' of... · 7347f09a
      Greg Kroah-Hartman authored
      Merge tag 'iio-fixes-for-5.5a' of git://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio into staging-linus
      
      Jonathan writes:
      
      First set of fixes for IIO in the 5.5 cycle.
      
      Mixture of old things people have just hit, and a few late breaking
      issues with things that went in during the merge window.
      
      Being sent promptly to resolve potential DT breakage causing
      issues for binding test builds.
      
      * ad7606
        - Avoid reading extra data from the device over what was intended.
      * ad7124
        - Enable the internal reference when in use.
      * ad7292
        - Fix up license for newly added binding.  Better to not have this go
          out in a release with more limited header than intended.
        - Fix a constraint on number of channels.
      * ad7949
        - Fix an issue which can result in readouts being from the wrong channel.
      * hdc100x
        - Fix wrong ABI usage (units) for relative humidity channel.
      * intel mrfld
        - Allocate right amount of private data (currently allocating too much).
      * ltc2983
        - Avoid a potential issue with machine endianness and wrong length device
          tree read.
      * max1027
        - Clean up leak of an iio_trigger on probe failure.
      * max9611
        - Ensure we sleep long enough to successfully initialize the sensor.
      * mpu6050
        - Fix wrong ABI usage (units) for temperature channel.
      * st_accel
        - Fix an unused variable warning.
      * st_lsm6dsx
        - Fix decimation factor issue that can lead to missaligned datasets
          (and hence garbage)
        - Fix an issue with how we track enabled fifo channels.
        - Avoid powering off the device if wake up events are enabled.
      
      * tag 'iio-fixes-for-5.5a' of git://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio:
        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
        iio: adc: max1027: fix not unregistered iio trigger
        iio: adc: intel_mrfld_adc: Allocating too much data in probe()
        iio: adc: ad7124: Enable internal reference
        dt-bindings: iio: adc: ad7292: fix constraint over channel quantity
        dt-bindings: iio: adc: ad7292: Update SPDX identifier
        iio: temperature: ltc2983: fix u32 read into a unsigned long long
        iio: st_accel: Fix unused variable warning
        iio: adc: ad7606: fix reading unnecessary data from device
      7347f09a
  3. 08 Dec, 2019 27 commits
    • Linus Torvalds's avatar
      Linux 5.5-rc1 · e42617b8
      Linus Torvalds authored
      e42617b8
    • Linus Torvalds's avatar
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net · 95e6ba51
      Linus Torvalds authored
      Pull networking fixes from David Miller:
      
       1) More jumbo frame fixes in r8169, from Heiner Kallweit.
      
       2) Fix bpf build in minimal configuration, from Alexei Starovoitov.
      
       3) Use after free in slcan driver, from Jouni Hogander.
      
       4) Flower classifier port ranges don't work properly in the HW offload
          case, from Yoshiki Komachi.
      
       5) Use after free in hns3_nic_maybe_stop_tx(), from Yunsheng Lin.
      
       6) Out of bounds access in mqprio_dump(), from Vladyslav Tarasiuk.
      
       7) Fix flow dissection in dsa TX path, from Alexander Lobakin.
      
       8) Stale syncookie timestampe fixes from Guillaume Nault.
      
      [ Did an evil merge to silence a warning introduced by this pull - Linus ]
      
      * git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net: (84 commits)
        r8169: fix rtl_hw_jumbo_disable for RTL8168evl
        net_sched: validate TCA_KIND attribute in tc_chain_tmplt_add()
        r8169: add missing RX enabling for WoL on RTL8125
        vhost/vsock: accept only packets with the right dst_cid
        net: phy: dp83867: fix hfs boot in rgmii mode
        net: ethernet: ti: cpsw: fix extra rx interrupt
        inet: protect against too small mtu values.
        gre: refetch erspan header from skb->data after pskb_may_pull()
        pppoe: remove redundant BUG_ON() check in pppoe_pernet
        tcp: Protect accesses to .ts_recent_stamp with {READ,WRITE}_ONCE()
        tcp: tighten acceptance of ACKs not matching a child socket
        tcp: fix rejected syncookies due to stale timestamps
        lpc_eth: kernel BUG on remove
        tcp: md5: fix potential overestimation of TCP option space
        net: sched: allow indirect blocks to bind to clsact in TC
        net: core: rename indirect block ingress cb function
        net-sysfs: Call dev_hold always in netdev_queue_add_kobject
        net: dsa: fix flow dissection on Tx path
        net/tls: Fix return values to avoid ENOTSUPP
        net: avoid an indirect call in ____sys_recvmsg()
        ...
      95e6ba51
    • Linus Torvalds's avatar
      Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi · 138f371d
      Linus Torvalds authored
      Pull more SCSI updates from James Bottomley:
       "Eleven patches, all in drivers (no core changes) that are either minor
        cleanups or small fixes.
      
        They were late arriving, but still safe for -rc1"
      
      * tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi:
        scsi: MAINTAINERS: Add the linux-scsi mailing list to the ISCSI entry
        scsi: megaraid_sas: Make poll_aen_lock static
        scsi: sd_zbc: Improve report zones error printout
        scsi: qla2xxx: Fix qla2x00_request_irqs() for MSI
        scsi: qla2xxx: unregister ports after GPN_FT failure
        scsi: qla2xxx: fix rports not being mark as lost in sync fabric scan
        scsi: pm80xx: Remove unused include of linux/version.h
        scsi: pm80xx: fix logic to break out of loop when register value is 2 or 3
        scsi: scsi_transport_sas: Fix memory leak when removing devices
        scsi: lpfc: size cpu map by last cpu id set
        scsi: ibmvscsi_tgt: Remove unneeded variable rc
      138f371d
    • Linus Torvalds's avatar
      Merge tag '5.5-rc-smb3-fixes-part2' of git://git.samba.org/sfrench/cifs-2.6 · a78f7cdd
      Linus Torvalds authored
      Pull cifs fixes from Steve French:
       "Nine cifs/smb3 fixes:
      
         - one fix for stable (oops during oplock break)
      
         - two timestamp fixes including important one for updating mtime at
           close to avoid stale metadata caching issue on dirty files (also
           improves perf by using SMB2_CLOSE_FLAG_POSTQUERY_ATTRIB over the
           wire)
      
         - two fixes for "modefromsid" mount option for file create (now
           allows mode bits to be set more atomically and accurately on create
           by adding "sd_context" on create when modefromsid specified on
           mount)
      
         - two fixes for multichannel found in testing this week against
           different servers
      
         - two small cleanup patches"
      
      * tag '5.5-rc-smb3-fixes-part2' of git://git.samba.org/sfrench/cifs-2.6:
        smb3: improve check for when we send the security descriptor context on create
        smb3: fix mode passed in on create for modetosid mount option
        cifs: fix possible uninitialized access and race on iface_list
        cifs: Fix lookup of SMB connections on multichannel
        smb3: query attributes on file close
        smb3: remove unused flag passed into close functions
        cifs: remove redundant assignment to pointer pneg_ctxt
        fs: cifs: Fix atime update check vs mtime
        CIFS: Fix NULL-pointer dereference in smb2_push_mandatory_locks
      a78f7cdd
    • Linus Torvalds's avatar
      Merge branch 'work.misc' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs · 5bf9a06a
      Linus Torvalds authored
      Pull misc vfs cleanups from Al Viro:
       "No common topic, just three cleanups".
      
      * 'work.misc' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs:
        make __d_alloc() static
        fs/namespace: add __user to open_tree and move_mount syscalls
        fs/fnctl: fix missing __user in fcntl_rw_hint()
      5bf9a06a
    • Geert Uytterhoeven's avatar
      iio: adc: max9611: Fix too short conversion time delay · 9fd229c4
      Geert Uytterhoeven authored
      As of commit b9ddd509 ("iio: adc: max9611: Fix temperature
      reading in probe"), max9611 initialization sometimes fails on the
      Salvator-X(S) development board with:
      
          max9611 4-007f: Invalid value received from ADC 0x8000: aborting
          max9611: probe of 4-007f failed with error -5
      
      The max9611 driver tests communications with the chip by reading the die
      temperature during the probe function, which returns an invalid value.
      
      According to the datasheet, the typical ADC conversion time is 2 ms, but
      no minimum or maximum values are provided.  Maxim Technical Support
      confirmed this was tested with temperature Ta=25 degreeC, and promised
      to inform me if a maximum/minimum value is available (they didn't get
      back to me, so I assume it is not).
      
      However, the driver assumes a 1 ms conversion time.  Usually the
      usleep_range() call returns after more than 1.8 ms, hence it succeeds.
      When it returns earlier, the data register may be read too early, and
      the previous measurement value will be returned.  After boot, this is
      the temperature POR (power-on reset) value, causing the failure above.
      
      Fix this by increasing the delay from 1000-2000 µs to 3000-3300 µs.
      
      Note that this issue has always been present, but it was exposed by the
      aformentioned commit.
      
      Fixes: 69780a3b ("iio: adc: Add Maxim max9611 ADC driver")
      Signed-off-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
      Reviewed-by: default avatarJacopo Mondi <jacopo+renesas@jmondi.org>
      Reviewed-by: default avatarWolfram Sang <wsa+renesas@sang-engineering.com>
      Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
      9fd229c4
    • Andrea Merello's avatar
      iio: ad7949: fix channels mixups · 3b71f6b5
      Andrea Merello authored
      Each time we need to read a sample (from the sysfs interface, since the
      driver supports only it) the driver writes the configuration register
      with the proper settings needed to perform the said read, then it runs
      another xfer to actually read the resulting value. Most notably the
      configuration register is updated to set the ADC internal MUX depending by
      which channel the read targets.
      
      Unfortunately this seems not enough to ensure correct operation because
      the ADC works in a pipelined-like fashion and the new configuration isn't
      applied in time.
      
      The ADC alternates two phases: acquisition and conversion. During the
      acquisition phase the ADC samples the analog signal in an internal
      capacitor; in the conversion phase the ADC performs the actual analog to
      digital conversion of the stored voltage. Note that of course the MUX
      needs to be set to the proper channel when the acquisition phase is
      performed.
      
      Once the conversion phase has been completed, the device automatically
      switches back to a new acquisition; on the other hand the device switches
      from acquisition to conversion on the rising edge of SPI cs signal (that
      is when the xfer finishes).
      
      Only after both two phases have been completed (with the proper settings
      already written in the configuration register since the beginning) it is
      possible to read the outcome from SPI bus.
      
      With the current driver implementation, we end up in the following
      situation:
      
              _______  1st xfer ____________  2nd xfer ___________________
      SPI cs..       \_________/            \_________/
      SPI rd.. idle  |(val N-2)+    idle    | val N-1 +   idle ...
      SPI wr.. idle  |  cfg N  +    idle    |   (X)   +   idle ...
      ------------------------ + -------------------- + ------------------
        AD  ..   acq  N-1      + cnv N-1 |  acq N     +  cnv N  | acq N+1
      
      As shown in the diagram above, the value we read in the Nth read belongs
      to configuration setting N-1.
      
      In case the configuration is not changed (config[N] == config[N-1]), then
      we still get correct data, but in case the configuration changes (i.e.
      switching the MUX on another channel), we get wrong data (data from the
      previously selected channel).
      
      This patch fixes this by performing one more "dummy" transfer in order to
      ending up in reading the data when it's really ready, as per the following
      timing diagram.
      
              _______  1st xfer ____________  2nd xfer ___________  3rd xfer ___
      SPI cs..       \_________/            \_________/           \_________/
      SPI rd.. idle  |(val N-2)+    idle    |(val N-1)+    idle   |  val N  + ..
      SPI wr.. idle  |  cfg N  +    idle    |   (X)   +    idle   |   (X)   + ..
      ------------------------ + -------------------- + ------------------- + --
        AD  ..   acq  N-1      + cnv N-1 |  acq N     +  cnv N  | acq N+1   | ..
      
      NOTE: in the latter case (cfg changes), the acquisition phase for the
      value to be read begins after the 1st xfer, that is after the read request
      has been issued on sysfs. On the other hand, if the cfg doesn't change,
      then we can refer to the fist diagram assuming N == (N - 1); the
      acquisition phase _begins_ before the 1st xfer (potentially a lot of time
      before the read has been issued via sysfs, but it _ends_ after the 1st
      xfer, that is _after_ the read has started. This should guarantee a
      reasonably fresh data, which value represents the voltage that the sampled
      signal has after the read start or maybe just around it.
      Signed-off-by: default avatarAndrea Merello <andrea.merello@gmail.com>
      Reviewed-by: default avatarCharles-Antoine Couret <charles-antoine.couret@essensium.com>
      Cc: <Stable@vger.kernel.org>
      Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
      3b71f6b5
    • Lorenzo Bianconi's avatar
      iio: imu: st_lsm6dsx: do not power-off accel if events are enabled · bd41c445
      Lorenzo Bianconi authored
      Do not power-off accel unconditionally if wake-up events are enabled
      powering off the hw FIFO. At the same time do not power-off the accel
      sensor if it is 'batched' in the hw FIFO disabling sensor events
      
      Fixes: b5969abf ("iio: imu: st_lsm6dsx: add motion events")
      Tested-by: default avatarSean Nyekjaer <sean@geanix.com>
      Signed-off-by: default avatarLorenzo Bianconi <lorenzo@kernel.org>
      Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
      bd41c445
    • Lorenzo Bianconi's avatar
      iio: imu: st_lsm6dsx: track hw FIFO buffering with fifo_mask · c2686eb2
      Lorenzo Bianconi authored
      Track hw FIFO state introducing fifo_mask since now the accel sensor
      can be enabled during suspend/resume in order to trigger the wake-up
      enabling the FIFO in st_lsm6dsx_resume even if it was disabled before
      the suspend.  Hence we must separately track the fifo state.
      
      Fixes: 4c997dfa ("iio: imu: st_lsm6dsx: add wakeup-source option")
      Signed-off-by: default avatarLorenzo Bianconi <lorenzo@kernel.org>
      Tested-by: default avatarSean Nyekjaer <sean@geanix.com>
      Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
      c2686eb2
    • Lorenzo Bianconi's avatar
      iio: imu: st_lsm6dsx: fix decimation factor estimation · 5685b145
      Lorenzo Bianconi authored
      Fix decimation factor and sip estimation for LSM6DSM series
      (max value for decimation factor is 32).
      If gyro and accel sensors are enabled at 12.5Hz and 416Hz
      respectively, decimation factor lookup will fail, producing
      unaligned data.
      Remove unused decimator filed in st_lsm6dsx_sensor structure.
      
      Fixes: f8710f03 ("iio: imu: st_lsm6dsx: express odr in mHZ")
      Signed-off-by: default avatarLorenzo Bianconi <lorenzo@kernel.org>
      Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
      5685b145
    • Jean-Baptiste Maneyrol's avatar
      iio: imu: inv_mpu6050: fix temperature reporting using bad unit · 53eaa9c2
      Jean-Baptiste Maneyrol authored
      Temperature should be reported in milli-degrees, not degrees. Fix
      scale and offset values to use the correct unit.
      
      This is a fix for an issue that has been present for a long time.
      The fixes tag reflects the point at which the code last changed in a
      fashion that would make this fix patch no longer apply.  Backports
      will be necessary to fix those elements that predate that patch.
      
      Fixes: 1615fe41 ("iio: imu: mpu6050: Fix FIFO layout for ICM20602")
      Cc: stable@vger.kernel.org
      Signed-off-by: default avatarJean-Baptiste Maneyrol <jmaneyrol@invensense.com>
      Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
      53eaa9c2
    • Chris Lesiak's avatar
      iio: humidity: hdc100x: fix IIO_HUMIDITYRELATIVE channel reporting · 342a6928
      Chris Lesiak authored
      The IIO_HUMIDITYRELATIVE channel was being incorrectly reported back
      as percent when it should have been milli percent. This is via an
      incorrect scale value being returned to userspace.
      Signed-off-by: default avatarChris Lesiak <chris.lesiak@licor.com>
      Acked-by: default avatarMatt Ranostay <matt.ranostay@konsulko.com>
      Cc: <Stable@vger.kernel.org>
      Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
      342a6928
    • Chuhong Yuan's avatar
      iio: adc: max1027: fix not unregistered iio trigger · c41d79b7
      Chuhong Yuan authored
      The driver forgets to unregister the iio trigger in probe failure and
      remove.
      Use devm API to fix it.
      Signed-off-by: default avatarChuhong Yuan <hslester96@gmail.com>
      Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
      c41d79b7
    • Dan Carpenter's avatar
      iio: adc: intel_mrfld_adc: Allocating too much data in probe() · 1f310f77
      Dan Carpenter authored
      This probe function is passing the wrong size to devm_iio_device_alloc().
      It is supposed to be the size of the private data.  Fortunately,
      sizeof(*indio_dev) is larger than sizeof(struct mrfld_adc) so it doesn't
      cause a runtime problem.
      
      Fixes: a7118662 ("iio: adc: intel_mrfld_adc: Add Basin Cove ADC driver")
      Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
      Reviewed-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
      Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
      1f310f77
    • Mircea Caprioru's avatar
      iio: adc: ad7124: Enable internal reference · 11d7c8d3
      Mircea Caprioru authored
      When the internal reference was selected by a channel it was not enabled.
      This patch fixes that and enables it.
      
      Fixes: b3af341b ("iio: adc: Add ad7124 support")
      Signed-off-by: default avatarMircea Caprioru <mircea.caprioru@analog.com>
      Cc: <Stable@vger.kernel.org>
      Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
      11d7c8d3
    • Marcelo Schmitt's avatar
      dt-bindings: iio: adc: ad7292: fix constraint over channel quantity · ada971cb
      Marcelo Schmitt authored
      Change items property of AD7292 channels to correctly constrain their
      quantity.
      Signed-off-by: default avatarMarcelo Schmitt <marcelo.schmitt1@gmail.com>
      Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
      ada971cb
    • Marcelo Schmitt's avatar
      dt-bindings: iio: adc: ad7292: Update SPDX identifier · dd587a7f
      Marcelo Schmitt authored
      Update SPDX identifier to the preferred dual GPL-2.0 OR BSD-2-Clause
      licensing.
      Signed-off-by: default avatarMarcelo Schmitt <marcelo.schmitt1@gmail.com>
      Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
      dd587a7f
    • Colin Ian King's avatar
      iio: temperature: ltc2983: fix u32 read into a unsigned long long · 2e19b6c3
      Colin Ian King authored
      Currently the read of temp using of_property_read_u32_index is reading
      a u32 value into a unsigned long long.  This relies on machine endianness
      to work correctly, so fix this by reading a u32 value and setting temp
      to this value.
      
      Addresses-Coverity: ("Reliance on integer endianness")
      Fixes: f110f318 ("iio: temperature: Add support for LTC2983")
      Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
      Acked-by: default avatarNuno Sá <nuno.sa@analog.com>
      Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
      2e19b6c3
    • YueHaibing's avatar
      iio: st_accel: Fix unused variable warning · 0163c1c5
      YueHaibing authored
      drivers/iio/accel/st_accel_core.c:1005:44: warning:
       mount_matrix_ext_info defined but not used [-Wunused-const-variable=]
      
      Using stub helper while CONFIG_ACPI is disabled to fix it.
      Suggested-by: default avatarLadislav Michl <ladis@linux-mips.org>
      Signed-off-by: default avatarYueHaibing <yuehaibing@huawei.com>
      Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
      0163c1c5
    • Beniamin Bia's avatar
      iio: adc: ad7606: fix reading unnecessary data from device · 341826a0
      Beniamin Bia authored
      When a conversion result is being read from ADC, the driver reads the
      number of channels + 1 because it thinks that IIO_CHAN_SOFT_TIMESTAMP
      is also a physical channel. This patch fixes this issue.
      
      Fixes: 2985a5d8 ("staging: iio: adc: ad7606: Move out of staging")
      Reported-by: default avatarRobert Wörle <rwoerle@mibtec.de>
      Signed-off-by: default avatarBeniamin Bia <beniamin.bia@analog.com>
      Cc: <Stable@vger.kernel.org>
      Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
      341826a0
    • Linus Torvalds's avatar
      Merge tag 'ntb-5.5' of git://github.com/jonmason/ntb · 9455d25f
      Linus Torvalds authored
      Pull NTB update from Jon Mason:
       "Just a simple patch to add a new Hygon Device ID to the AMD NTB device
        driver"
      
      * tag 'ntb-5.5' of git://github.com/jonmason/ntb:
        NTB: Add Hygon Device ID
      9455d25f
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input · 73721451
      Linus Torvalds authored
      Pull more input updates from Dmitry Torokhov:
      
       - fixups for Synaptics RMI4 driver
      
       - a quirk for Goodinx touchscreen on Teclast tablet
      
       - a new keycode definition for activating privacy screen feature found
         on a few "enterprise" laptops
      
       - updates to snvs_pwrkey driver
      
       - polling uinput device for writing (which is always allowed) now works
      
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input:
        Input: synaptics-rmi4 - don't increment rmiaddr for SMBus transfers
        Input: synaptics-rmi4 - re-enable IRQs in f34v7_do_reflash
        Input: goodix - add upside-down quirk for Teclast X89 tablet
        Input: add privacy screen toggle keycode
        Input: uinput - fix returning EPOLLOUT from uinput_poll
        Input: snvs_pwrkey - remove gratuitous NULL initializers
        Input: snvs_pwrkey - send key events for i.MX6 S, DL and Q
      73721451
    • Linus Torvalds's avatar
      Merge tag 'iomap-5.5-merge-14' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux · 95207d55
      Linus Torvalds authored
      Pull iomap fixes from Darrick Wong:
       "Fix a race condition and a use-after-free error:
      
         - Fix a UAF when reporting writeback errors
      
         - Fix a race condition when handling page uptodate on fragmented file
           with blocksize < pagesize"
      
      * tag 'iomap-5.5-merge-14' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux:
        iomap: stop using ioend after it's been freed in iomap_finish_ioend()
        iomap: fix sub-page uptodate handling
      95207d55
    • Linus Torvalds's avatar
      Merge tag 'xfs-5.5-merge-17' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux · 50caca9d
      Linus Torvalds authored
      Pull xfs fixes from Darrick Wong:
       "Fix a couple of resource management errors and a hang:
      
         - fix a crash in the log setup code when log mounting fails
      
         - fix a hang when allocating space on the realtime device
      
         - fix a block leak when freeing space on the realtime device"
      
      * tag 'xfs-5.5-merge-17' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux:
        xfs: fix mount failure crash on invalid iclog memory access
        xfs: don't check for AG deadlock for realtime files in bunmapi
        xfs: fix realtime file data space leak
      50caca9d
    • Linus Torvalds's avatar
      Merge tag 'for-linus-5.5-ofs1' of git://git.kernel.org/pub/scm/linux/kernel/git/hubcap/linux · 316933cf
      Linus Torvalds authored
      Pull orangefs update from Mike Marshall:
       "orangefs: posix open permission checking...
      
        Orangefs has no open, and orangefs checks file permissions on each
        file access. Posix requires that file permissions be checked on open
        and nowhere else. Orangefs-through-the-kernel needs to seem posix
        compliant.
      
        The VFS opens files, even if the filesystem provides no method. We can
        see if a file was successfully opened for read and or for write by
        looking at file->f_mode.
      
        When writes are flowing from the page cache, file is no longer
        available. We can trust the VFS to have checked file->f_mode before
        writing to the page cache.
      
        The mode of a file might change between when it is opened and IO
        commences, or it might be created with an arbitrary mode.
      
        We'll make sure we don't hit EACCES during the IO stage by using
        UID 0"
      
      [ This is "posixish", but not a great solution in the long run, since a
        proper secure network server shouldn't really trust the client like this.
        But proper and secure POSIX behavior requires an open method and a
        resulting cookie for IO of some kind, or similar.    - Linus ]
      
      * tag 'for-linus-5.5-ofs1' of git://git.kernel.org/pub/scm/linux/kernel/git/hubcap/linux:
        orangefs: posix open permission checking...
      316933cf
    • Linus Torvalds's avatar
      Merge tag 'nfsd-5.5' of git://linux-nfs.org/~bfields/linux · 911d137a
      Linus Torvalds authored
      Pull nfsd updates from Bruce Fields:
       "This is a relatively quiet cycle for nfsd, mainly various bugfixes.
      
        Possibly most interesting is Trond's fixes for some callback races
        that were due to my incomplete understanding of rpc client shutdown.
        Unfortunately at the last minute I've started noticing a new
        intermittent failure to send callbacks. As the logic seems basically
        correct, I'm leaving Trond's patches in for now, and hope to find a
        fix in the next week so I don't have to revert those patches"
      
      * tag 'nfsd-5.5' of git://linux-nfs.org/~bfields/linux: (24 commits)
        nfsd: depend on CRYPTO_MD5 for legacy client tracking
        NFSD fixing possible null pointer derefering in copy offload
        nfsd: check for EBUSY from vfs_rmdir/vfs_unink.
        nfsd: Ensure CLONE persists data and metadata changes to the target file
        SUNRPC: Fix backchannel latency metrics
        nfsd: restore NFSv3 ACL support
        nfsd: v4 support requires CRYPTO_SHA256
        nfsd: Fix cld_net->cn_tfm initialization
        lockd: remove __KERNEL__ ifdefs
        sunrpc: remove __KERNEL__ ifdefs
        race in exportfs_decode_fh()
        nfsd: Drop LIST_HEAD where the variable it declares is never used.
        nfsd: document callback_wq serialization of callback code
        nfsd: mark cb path down on unknown errors
        nfsd: Fix races between nfsd4_cb_release() and nfsd4_shutdown_callback()
        nfsd: minor 4.1 callback cleanup
        SUNRPC: Fix svcauth_gss_proxy_init()
        SUNRPC: Trace gssproxy upcall results
        sunrpc: fix crash when cache_head become valid before update
        nfsd: remove private bin2hex implementation
        ...
      911d137a
    • Linus Torvalds's avatar
      Merge tag 'nfs-for-5.5-1' of git://git.linux-nfs.org/projects/trondmy/linux-nfs · fb9bf40c
      Linus Torvalds authored
      Pull NFS client updates from Trond Myklebust:
       "Highlights include:
      
        Features:
      
         - NFSv4.2 now supports cross device offloaded copy (i.e. offloaded
           copy of a file from one source server to a different target
           server).
      
         - New RDMA tracepoints for debugging congestion control and Local
           Invalidate WRs.
      
        Bugfixes and cleanups
      
         - Drop the NFSv4.1 session slot if nfs4_delegreturn_prepare waits for
           layoutreturn
      
         - Handle bad/dead sessions correctly in nfs41_sequence_process()
      
         - Various bugfixes to the delegation return operation.
      
         - Various bugfixes pertaining to delegations that have been revoked.
      
         - Cleanups to the NFS timespec code to avoid unnecessary conversions
           between timespec and timespec64.
      
         - Fix unstable RDMA connections after a reconnect
      
         - Close race between waking an RDMA sender and posting a receive
      
         - Wake pending RDMA tasks if connection fails
      
         - Fix MR list corruption, and clean up MR usage
      
         - Fix another RPCSEC_GSS issue with MIC buffer space"
      
      * tag 'nfs-for-5.5-1' of git://git.linux-nfs.org/projects/trondmy/linux-nfs: (79 commits)
        SUNRPC: Capture completion of all RPC tasks
        SUNRPC: Fix another issue with MIC buffer space
        NFS4: Trace lock reclaims
        NFS4: Trace state recovery operation
        NFSv4.2 fix memory leak in nfs42_ssc_open
        NFSv4.2 fix kfree in __nfs42_copy_file_range
        NFS: remove duplicated include from nfs4file.c
        NFSv4: Make _nfs42_proc_copy_notify() static
        NFS: Fallocate should use the nfs4_fattr_bitmap
        NFS: Return -ETXTBSY when attempting to write to a swapfile
        fs: nfs: sysfs: Remove NULL check before kfree
        NFS: remove unneeded semicolon
        NFSv4: add declaration of current_stateid
        NFSv4.x: Drop the slot if nfs4_delegreturn_prepare waits for layoutreturn
        NFSv4.x: Handle bad/dead sessions correctly in nfs41_sequence_process()
        nfsv4: Move NFSPROC4_CLNT_COPY_NOTIFY to end of list
        SUNRPC: Avoid RPC delays when exiting suspend
        NFS: Add a tracepoint in nfs_fh_to_dentry()
        NFSv4: Don't retry the GETATTR on old stateid in nfs4_delegreturn_done()
        NFSv4: Handle NFS4ERR_OLD_STATEID in delegreturn
        ...
      fb9bf40c
  4. 07 Dec, 2019 2 commits