18 Aug, 2017

1 commit

  • Since blk_mq_ops.reinit_request is only called from inside
    blk_mq_reinit_tagset(), make this function pointer an argument of
    blk_mq_reinit_tagset() instead of a member of struct blk_mq_ops.
    This patch does not change any functionality but makes
    blk_mq_reinit_tagset() calls easier to read and to analyze.

    Signed-off-by: Bart Van Assche
    Reviewed-by: Hannes Reinecke
    Cc: Christoph Hellwig
    Cc: Sagi Grimberg
    Cc: James Smart
    Cc: Johannes Thumshirn
    Signed-off-by: Jens Axboe

    Bart Van Assche
     

10 Aug, 2017

4 commits


29 Jul, 2017

14 commits

  • Currently cfq/bfq/blk-throttle output cgroup info in trace in their own
    way. Now we have standard blktrace API for this, so convert them to use
    it.

    Note, this changes the behavior a little bit. cgroup info isn't output
    by default, we only do this with 'blk_cgroup' option enabled. cgroup
    info isn't output as a string by default too, we only do this with
    'blk_cgname' option enabled. Also cgroup info is output in different
    position of the note string. I think these behavior changes aren't a big
    issue (actually we make trace data shorter which is good), since the
    blktrace note is solely for debugging.

    Signed-off-by: Shaohua Li
    Signed-off-by: Jens Axboe

    Shaohua Li
     
  • By default we output cgroup id in blktrace. This adds an option to
    display cgroup path. Since get cgroup path is a relativly heavy
    operation, we don't enable it by default.

    with the option enabled, blktrace will output something like this:
    dd-1353 [007] d..2 293.015252: 8,0 /test/level D R 24 + 8 [dd]

    Signed-off-by: Shaohua Li
    Signed-off-by: Jens Axboe

    Shaohua Li
     
  • blkcg_bio_issue_check() already gets blkcg for a BIO.
    bio_associate_blkcg() uses a percpu refcounter, so it's a very cheap
    operation. There is no point we don't attach the cgroup info into bio at
    blkcg_bio_issue_check. This also makes blktrace outputs correct cgroup
    info.

    Acked-by: Tejun Heo
    Signed-off-by: Shaohua Li
    Signed-off-by: Jens Axboe

    Shaohua Li
     
  • Currently blktrace isn't cgroup aware. blktrace prints out task name of
    current context, but the task of current context isn't always in the
    cgroup where the BIO comes from. We can't use task name to find out IO
    cgroup. For example, Writeback BIOs always comes from flusher thread but
    the BIOs are for different blk cgroups. Request could be requeued and
    dispatched from completely different tasks. MD/DM are another examples.

    This patch tries to fix the gap. We print out cgroup fhandle info in
    blktrace. Userspace can use open_by_handle_at() syscall to find the
    cgroup by fhandle. Or userspace can use name_to_handle_at() syscall to
    find fhandle for a cgroup and use a BPF program to filter out blktrace
    for a specific cgroup.

    We add a new 'blk_cgroup' trace option for blk tracer. It's default off.
    Application which doesn't know the new option isn't affected. When it's
    on, we output fhandle info right after blk_io_trace with an extra bit
    set in event action. So from application point of view, blktrace with
    the option will output new actions.

    I didn't change blk trace event yet, since I'm not sure if changing the
    trace event output is an ABI issue. If not, I'll do it later.

    Acked-by: Steven Rostedt (VMware)
    Signed-off-by: Shaohua Li
    Signed-off-by: Jens Axboe

    Shaohua Li
     
  • Add an API to export cgroup fhandle info. We don't export a full 'struct
    file_handle', there are unrequired info. Sepcifically, cgroup is always
    a directory, so we don't need a 'FILEID_INO32_GEN_PARENT' type fhandle,
    we only need export the inode number and generation number just like
    what generic_fh_to_dentry does. And we can avoid the overhead of getting
    an inode too, since kernfs_node_id (ino and generation) has all the info
    required.

    Acked-by: Tejun Heo
    Signed-off-by: Shaohua Li
    Signed-off-by: Jens Axboe

    Shaohua Li
     
  • Now we have the facilities to implement exportfs operations. The idea is
    cgroup can export the fhandle info to userspace, then userspace uses
    fhandle to find the cgroup name. Another example is userspace can get
    fhandle for a cgroup and BPF uses the fhandle to filter info for the
    cgroup.

    Acked-by: Greg Kroah-Hartman
    Signed-off-by: Shaohua Li
    Signed-off-by: Jens Axboe

    Shaohua Li
     
  • inode number and generation can identify a kernfs node. We are going to
    export the identification by exportfs operations, so put ino and
    generation into a separate structure. It's convenient when later patches
    use the identification.

    Acked-by: Greg Kroah-Hartman
    Signed-off-by: Shaohua Li
    Signed-off-by: Jens Axboe

    Shaohua Li
     
  • Set i_generation for kernfs inode. This is required to implement
    exportfs operations. The generation is 32-bit, so it's possible the
    generation wraps up and we find stale files. To reduce the posssibility,
    we don't reuse inode numer immediately. When the inode number allocation
    wraps, we increase generation number. In this way generation/inode
    number consist of a 64-bit number which is unlikely duplicated. This
    does make the idr tree more sparse and waste some memory. Since idr
    manages 32-bit keys, idr uses a 6-level radix tree, each level covers 6
    bits of the key. In a 100k inode kernfs, the worst case will have around
    300k radix tree node. Each node is 576bytes, so the tree will use about
    ~150M memory. Sounds not too bad, if this really is a problem, we should
    find better data structure.

    Acked-by: Tejun Heo
    Acked-by: Greg Kroah-Hartman
    Signed-off-by: Shaohua Li
    Signed-off-by: Jens Axboe

    Shaohua Li
     
  • kernfs uses ida to manage inode number. The problem is we can't get
    kernfs_node from inode number with ida. Switching to use idr, next patch
    will add an API to get kernfs_node from inode number.

    Acked-by: Tejun Heo
    Acked-by: Greg Kroah-Hartman
    Signed-off-by: Shaohua Li
    Signed-off-by: Jens Axboe

    Shaohua Li
     
  • Pull KVM fixes from Paolo Bonzini:
    "s390:
    - SRCU fix

    PPC:
    - host crash fixes

    x86:
    - bugfixes, including making nested posted interrupts really work

    Generic:
    - tweaks to kvm_stat and to uevents"

    * tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm:
    KVM: LAPIC: Fix reentrancy issues with preempt notifiers
    tools/kvm_stat: add '-f help' to get the available event list
    tools/kvm_stat: use variables instead of hard paths in help output
    KVM: nVMX: Fix loss of L2's NMI blocking state
    KVM: nVMX: Fix posted intr delivery when vcpu is in guest mode
    x86: irq: Define a global vector for nested posted interrupts
    KVM: x86: do mask out upper bits of PAE CR3
    KVM: make pid available for uevents without debugfs
    KVM: s390: take srcu lock when getting/setting storage keys
    KVM: VMX: remove unused field
    KVM: PPC: Book3S HV: Fix host crash on changing HPT size
    KVM: PPC: Book3S HV: Enable TM before accessing TM registers

    Linus Torvalds
     
  • Pull arm64 fixes from Will Deacon:
    "I'd been collecting these whilst we debugged a CPU hotplug failure,
    but we ended up diagnosing that one to tglx, who has taken a fix via
    the -tip tree separately.

    We're seeing some NFS issues that we haven't gotten to the bottom of
    yet, and we've uncovered some issues with our backtracing too so there
    might be another fixes pull before we're done.

    Summary:

    - Ensure we have a guard page after the kernel image in vmalloc

    - Fix incorrect prefetch stride in copy_page

    - Ensure irqs are disabled in die()

    - Fix for event group validation in QCOM L2 PMU driver

    - Fix requesting of PMU IRQs on AMD Seattle

    - Minor cleanups and fixes"

    * tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux:
    arm64: mmu: Place guard page after mapping of kernel image
    drivers/perf: arm_pmu: Request PMU SPIs with IRQF_PER_CPU
    arm64: sysreg: Fix unprotected macro argmuent in write_sysreg
    perf: qcom_l2: fix column exclusion check
    arm64/lib: copy_page: use consistent prefetch stride
    arm64/numa: Drop duplicate message
    perf: Convert to using %pOF instead of full_name
    arm64: Convert to using %pOF instead of full_name
    arm64: traps: disable irq in die()
    arm64: atomics: Remove '&' from '+&' asm constraint in lse atomics
    arm64: uaccess: Remove redundant __force from addr cast in __range_ok

    Linus Torvalds
     
  • …evice-mapper/linux-dm

    Pull device mapper fixes from Mike Snitzer:

    - a few DM integrity fixes that improve performance. One that address
    inefficiencies in the on-disk journal device layout. Another that
    makes use of the block layer's on-stack plugging when writing the
    journal.

    - a dm-bufio fix for the blk_status_t conversion that went in during
    the merge window.

    - a few DM raid fixes that address correctness when suspending the
    device and a validation fix for validation that occurs during device
    activation.

    - a couple DM zoned target fixes. Important one being the fix to not
    use GFP_KERNEL in the IO path due to concerns about deadlock in
    low-memory conditions (e.g. swap over a DM zoned device, etc).

    - a DM DAX device fix to make sure dm_dax_flush() is called if the
    underlying DAX device is operating as a write cache.

    * tag 'for-4.13/dm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm:
    dm, dax: Make sure dm_dax_flush() is called if device supports it
    dm verity fec: fix GFP flags used with mempool_alloc()
    dm zoned: use GFP_NOIO in I/O path
    dm zoned: remove test for impossible REQ_OP_FLUSH conditions
    dm raid: bump target version
    dm raid: avoid mddev->suspended access
    dm raid: fix activation check in validate_raid_redundancy()
    dm raid: remove WARN_ON() in raid10_md_layout_to_format()
    dm bufio: fix error code in dm_bufio_write_dirty_buffers()
    dm integrity: test for corrupted disk format during table load
    dm integrity: WARN_ON if variables representing journal usage get out of sync
    dm integrity: use plugging when writing the journal
    dm integrity: fix inefficient allocation of journal space

    Linus Torvalds
     
  • Pull block fixes from Jens Axboe:
    "A small collection of fixes that should go into this series. This
    contains:

    - NVMe pull request from Christoph, with various fixes for nvme
    proper and nvme-fc.

    - disable runtime PM for blk-mq for now.

    With scsi now defaulting to using blk-mq, this reared its head as
    an issue. Longer term we'll fix up runtime PM for blk-mq, for now
    just disable it to prevent a hang on laptop resume for some folks.

    - blk-mq CPU hw queue map fix from Christoph.

    - xen/blkfront pull request from Konrad, with two small fixes for the
    blkfront driver.

    - a few fixups for nbd from Joseph.

    - a stable fix for pblk from Javier"

    * 'for-linus' of git://git.kernel.dk/linux-block:
    lightnvm: pblk: advance bio according to lba index
    nvme: validate admin queue before unquiesce
    nbd: clear disconnected on reconnect
    nvme-pci: fix HMB size calculation
    nvme-fc: revise TRADDR parsing
    nvme-fc: address target disconnect race conditions in fcp io submit
    nvme: fabrics commands should use the fctype field for data direction
    nvme: also provide a UUID in the WWID sysfs attribute
    xen/blkfront: always allocate grants first from per-queue persistent grants
    xen-blkfront: fix mq start/stop race
    blk-mq: map queues to all present CPUs
    block: disable runtime-pm for blk-mq
    xen-blkfront: Fix handling of non-supported operations
    nbd: only set sndtimeo if we have a timeout set
    nbd: take tx_lock before disconnecting
    nbd: allow multiple disconnects to be sent

    Linus Torvalds
     
  • Pull MMC fixes from Ulf Hansson:
    "Here are a couple of mmc fixes intended for v4.13-rc1.

    I have also included a couple of cleanup patches in this pull request
    for OMAP2+, related to the omap_hsmmc driver. The reason is because of
    the changes are also depending on OMAP SoC specific code, so this
    simplifies how to deal with this.

    Summary:

    MMC host:
    - sunxi: Correct time phase settings
    - omap_hsmmc: Clean up some dead code
    - dw_mmc: Fix message printed for deprecated num-slots DT binding
    - dw_mmc: Fix DT documentation"

    * tag 'mmc-v4.13-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc:
    Documentation: dw-mshc: deprecate num-slots
    mmc: dw_mmc: fix the wrong condition check of getting num-slots from DT
    mmc: host: omap_hsmmc: remove unused platform callbacks
    ARM: OMAP2+: hsmmc.c: Remove dead code
    mmc: sunxi: Keep default timing phase settings for new timing mode

    Linus Torvalds
     

28 Jul, 2017

1 commit

  • Pull ACPI fixes from Rafael Wysocki:
    "These are two fixups for the suspend-to-idle handling in the ACPI
    subsystem after recent changes in that area and two simple fixes of
    the ACPI NUMA code.

    Specifics:

    - Add an ACPI module parameter to allow users to override the new
    default behavior on some systems where the EC GPE is not disabled
    during suspend-to-idle in case the EC on their systems generates
    excessive wakeup events and they want to sacrifice some
    functionality (like power button wakeups) for extra battery life
    while suspended (Rafael Wysocki).

    - Fix flushing of the outstanding EC work in the ACPI core
    suspend-to-idle code (Rafael Wysocki).

    - Add a missing include and fix a messed-up comment in the ACPI NUMA
    code (Ross Zwisler)"

    * tag 'acpi-4.13-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
    ACPI: NUMA: Fix typo in the full name of SRAT
    ACPI: NUMA: add missing include in acpi_numa.h
    ACPI / PM / EC: Flush all EC work in acpi_freeze_sync()
    ACPI / EC: Add parameter to force disable the GPE on suspend

    Linus Torvalds
     

27 Jul, 2017

3 commits

  • Since the PMU register interface is banked per CPU, CPU PMU interrrupts
    cannot be handled by a CPU other than the one with the PMU asserting the
    interrupt. This means that migrating PMU SPIs, as we do during a CPU
    hotplug operation doesn't make any sense and can lead to the IRQ being
    disabled entirely if we route a spurious IRQ to the new affinity target.

    This has been observed in practice on AMD Seattle, where CPUs on the
    non-boot cluster appear to take a spurious PMU IRQ when coming online,
    which is routed to CPU0 where it cannot be handled.

    This patch passes IRQF_PERCPU for PMU SPIs and forcefully sets their
    affinity prior to requesting them, ensuring that they cannot
    be migrated during hotplug events. This interacts badly with the DB8500
    erratum workaround that ping-pongs the interrupt affinity from the handler,
    so we avoid passing IRQF_PERCPU in that case by allowing the IRQ flags
    to be overridden in the platdata.

    Fixes: 3cf7ee98b848 ("drivers/perf: arm_pmu: move irq request/free into probe")
    Cc: Mark Rutland
    Cc: Linus Walleij
    Signed-off-by: Will Deacon

    Will Deacon
     
  • Currently dm_dax_flush() is not being called, even if underlying dax
    device supports write cache, because DAXDEV_WRITE_CACHE is not being
    propagated up to the DM dax device.

    If the underlying dax device supports write cache, set
    DAXDEV_WRITE_CACHE on the DM dax device. This will cause dm_dax_flush()
    to be called.

    Fixes: abebfbe2f7 ("dm: add ->flush() dax operation support")
    Signed-off-by: Vivek Goyal
    Acked-by: Dan Williams
    Signed-off-by: Mike Snitzer

    Vivek Goyal
     
  • Simplify and improve the code so that the PID is always available in
    the uevent even when debugfs is not available.

    This adds a userspace_pid field to struct kvm, as per Radim's
    suggestion, so that the PID can be retrieved on destruction too.

    Acked-by: Janosch Frank
    Fixes: 286de8f6ac9202 ("KVM: trigger uevents when creating or destroying a VM")
    Signed-off-by: Claudio Imbrenda
    Signed-off-by: Paolo Bonzini

    Claudio Imbrenda
     

26 Jul, 2017

3 commits

  • Pull uuid fixes from Christoph Hellwig:

    - add a missing "!" in the uuid tests

    - remove the last remaining user of the uuid_be type, and then the type
    and its helpers

    * tag 'uuid-for-4.13-2' of git://git.infradead.org/users/hch/uuid:
    uuid: remove uuid_be
    thunderbolt: use uuid_t instead of uuid_be
    uuid: fix incorrect uuid_equal conversion in test_uuid_test

    Linus Torvalds
     
  • Pull dma mapping fixes from Christoph Hellwig:
    "split the global dma coherent pool from the per-device pool.

    This fixes a regression in the earlier 4.13 pull requests where the
    global pool would override a per-device CMA pool (Vladimir Murzin)"

    * tag 'dma-mapping-4.13-2' of git://git.infradead.org/users/hch/dma-mapping:
    ARM: NOMMU: Wire-up default DMA interface
    dma-coherent: introduce interface for default DMA pool

    Linus Torvalds
     
  • The FC-NVME spec hasn't locked down on the format string for TRADDR.
    Currently the spec is lobbying for "nn-:pn-"
    where the wwn's are hex values but not prefixed by 0x.

    Most implementations so far expect a string format of
    "nn-0x:pn-0x" to be used. The transport
    uses the match_u64 parser which requires a leading 0x prefix to set
    the base properly. If it's not there, a match will either fail or return
    a base 10 value.

    The resolution in T11 is pushing out. Therefore, to fix things now and
    to cover any eventuality and any implementations already in the field,
    this patch adds support for both formats.

    The change consists of replacing the token matching routine with a
    routine that validates the fixed string format, and then builds
    a local copy of the hex name with a 0x prefix before calling
    the system parser.

    Note: the same parser routine exists in both the initiator and target
    transports. Given this is about the only "shared" item, we chose to
    replicate rather than create an interdendency on some shared code.

    Signed-off-by: James Smart
    Signed-off-by: Christoph Hellwig

    James Smart
     

25 Jul, 2017

2 commits


24 Jul, 2017

1 commit


23 Jul, 2017

2 commits

  • When setting up the Xenstore watch for the memory target size the new
    watch will fire at once. Don't try to reach the configured target size
    by onlining new memory in this case, as the current memory size will
    be smaller in almost all cases due to e.g. BIOS reserved pages.

    Onlining new memory will lead to more problems e.g. undesired conflicts
    with NVMe devices meant to be operated as block devices.

    Instead remember the difference between target size and current size
    when the watch fires for the first time and apply it to any further
    size changes, too.

    In order to avoid races between balloon.c and xen-balloon.c init calls
    do the xen-balloon.c initialization from balloon.c.

    Signed-off-by: Juergen Gross
    Reviewed-by: Boris Ostrovsky
    Signed-off-by: Juergen Gross

    Juergen Gross
     
  • Pull tty/serial fixes from Greg KH:
    "Here are some small tty and serial driver fixes for 4.13-rc2. Nothing
    huge at all, a revert of a patch that turned out to break things, a
    fix up for a new tty ioctl we added in 4.13-rc1 to get the uapi
    definition correct, and a few minor serial driver fixes for reported
    issues.

    All of these have been in linux-next for a while with no reported
    issues"

    * tag 'tty-4.13-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty:
    tty: Fix TIOCGPTPEER ioctl definition
    tty: hide unused pty_get_peer function
    tty: serial: lpuart: Fix the logic for detecting the 32-bit type UART
    serial: imx: Prevent TX buffer PIO write when a DMA has been started
    Revert "serial: imx-serial - move DMA buffer configuration to DT"
    serial: sh-sci: Uninitialized variables in sysfs files
    serial: st-asc: Potential error pointer dereference

    Linus Torvalds
     

22 Jul, 2017

6 commits

  • Pull USB fixes from Greg KH:
    "Here are some small USB fixes for 4.13-rc2.

    The usual batch, gadget fixes for reported issues, as well as xhci
    fixes, and a small random collection of other fixes for reported
    issues.

    All have been in linux-next with no reported issues"

    * tag 'usb-4.13-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb: (25 commits)
    xhci: fix memleak in xhci_run()
    usb: xhci: fix spinlock recursion for USB2 test mode
    xhci: fix 20000ms port resume timeout
    usb: xhci: Issue stop EP command only when the EP state is running
    xhci: Bad Ethernet performance plugged in ASM1042A host
    xhci: Fix NULL pointer dereference when cleaning up streams for removed host
    usb: renesas_usbhs: gadget: disable all eps when the driver stops
    usb: renesas_usbhs: fix usbhsc_resume() for !USBHSF_RUNTIME_PWCTRL
    usb: gadget: udc: renesas_usb3: protect usb3_ep->started in usb3_start_pipen()
    usb: gadget: udc: renesas_usb3: fix zlp transfer by the dmac
    usb: gadget: udc: renesas_usb3: fix free size in renesas_usb3_dma_free_prd()
    usb: gadget: f_uac2: endianness fixes.
    usb: gadget: f_uac1: endianness fixes.
    include: usb: audio: specify exact endiannes of descriptors
    usb: gadget: udc: start_udc() can be static
    usb: dwc2: gadget: On USB RESET reset device address to zero
    usb: storage: return on error to avoid a null pointer dereference
    usb: typec: include linux/device.h in ucsi.h
    USB: cdc-acm: add device-id for quirky printer
    usb: dwc3: gadget: only unmap requests from DMA if mapped
    ...

    Linus Torvalds
     
  • Pull NFS client bugfixes from Anna Schumaker:
    "Stable bugfix:
    - Fix error reporting regression

    Bugfixes:
    - Fix setting filelayout ds address race
    - Fix subtle access bug when using ACLs
    - Fix setting mnt3_counts array size
    - Fix a couple of pNFS commit races"

    * tag 'nfs-for-4.13-2' of git://git.linux-nfs.org/projects/anna/linux-nfs:
    NFS/filelayout: Fix racy setting of fl->dsaddr in filelayout_check_deviceid()
    NFS: Be more careful about mapping file permissions
    NFS: Store the raw NFS access mask in the inode's access cache
    NFSv3: Convert nfs3_proc_access() to use nfs_access_set_mask()
    NFS: Refactor NFS access to kernel access mask calculation
    net/sunrpc/xprt_sock: fix regression in connection error reporting.
    nfs: count correct array for mnt3_counts array size
    Revert commit 722f0b891198 ("pNFS: Don't send COMMITs to the DSes if...")
    pNFS/flexfiles: Handle expired layout segments in ff_layout_initiate_commit()
    NFS: Fix another COMMIT race in pNFS
    NFS: Fix a COMMIT race in pNFS
    mount: copy the port field into the cloned nfs_server structure.
    NFS: Don't run wake_up_bit() when nobody is waiting...
    nfs: add export operations

    Linus Torvalds
     
  • Pull block fixes from Jens Axboe:
    "A small set of fixes for -rc2 - two fixes for BFQ, documentation and
    code, and a removal of an unused variable in nbd. Outside of that, a
    small collection of fixes from the usual crew on the nvme side"

    * 'for-linus' of git://git.kernel.dk/linux-block:
    nvmet: don't report 0-bytes in serial number
    nvmet: preserve controller serial number between reboots
    nvmet: Move serial number from controller to subsystem
    nvmet: prefix version configfs file with attr
    nvme-pci: Fix an error handling path in 'nvme_probe()'
    nvme-pci: Remove nvme_setup_prps BUG_ON
    nvme-pci: add another device ID with stripe quirk
    nvmet-fc: fix byte swapping in nvmet_fc_ls_create_association
    nvme: fix byte swapping in the streams code
    nbd: kill unused ret in recv_work
    bfq: dispatch request to prevent queue stalling after the request completion
    bfq: fix typos in comments about B-WF2Q+ algorithm

    Linus Torvalds
     
  • Pull more rdma fixes from Doug Ledford:
    "As per my previous pull request, there were two drivers that each had
    a rather large number of legitimate fixes still to be sent.

    As it turned out, I also missed a reasonably large set of fixes from
    one person across the stack that are all important fixes. All in all,
    the bnxt_re, i40iw, and Dan Carpenter are 3/4 to 2/3rds of this pull
    request.

    There were some other random fixes that I didn't send in the last pull
    request that I added to this one. This catches the rdma stack up to
    the fixes from up to about the beginning of this week. Any more fixes
    I'll wait and batch up later in the -rc cycle. This will give us a
    good base to start with for basing a for-next branch on -rc2.

    Summary:

    - i40iw fixes

    - bnxt_re fixes

    - Dan Carpenter bugfixes across stack

    - ten more random fixes, no more than two from any one person"

    * tag 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dledford/rdma: (37 commits)
    RDMA/core: Initialize port_num in qp_attr
    RDMA/uverbs: Fix the check for port number
    IB/cma: Fix reference count leak when no ipv4 addresses are set
    RDMA/iser: don't send an rkey if all data is written as immadiate-data
    rxe: fix broken receive queue draining
    RDMA/qedr: Prevent memory overrun in verbs' user responses
    iw_cxgb4: don't use WR keys/addrs for 0 byte reads
    IB/mlx4: Fix CM REQ retries in paravirt mode
    IB/rdmavt: Setting of QP timeout can overflow jiffies computation
    IB/core: Fix sparse warnings
    RDMA/bnxt_re: Fix the value reported for local ack delay
    RDMA/bnxt_re: Report MISSED_EVENTS in req_notify_cq
    RDMA/bnxt_re: Fix return value of poll routine
    RDMA/bnxt_re: Enable atomics only if host bios supports
    RDMA/bnxt_re: Specify RDMA component when allocating stats context
    RDMA/bnxt_re: Fixed the max_rd_atomic support for initiator and destination QP
    RDMA/bnxt_re: Report supported value to IB stack in query_device
    RDMA/bnxt_re: Do not free the ctx_tbl entry if delete GID fails
    RDMA/bnxt_re: Fix WQE Size posted to HW to prevent it from throwing error
    RDMA/bnxt_re: Free doorbell page index (DPI) during dealloc ucontext
    ...

    Linus Torvalds
     
  • Pull drm fixes from Dave Airlie:
    "A bunch of fixes for rc2: two imx regressions, vc4 fix, dma-buf fix,
    some displayport mst fixes, and an amdkfd fix.

    Nothing too crazy, I assume we just haven't see much rc1 testing yet"

    * tag 'drm-fixes-for-v4.13-rc2' of git://people.freedesktop.org/~airlied/linux:
    drm/mst: Avoid processing partially received up/down message transactions
    drm/mst: Avoid dereferencing a NULL mstb in drm_dp_mst_handle_up_req()
    drm/mst: Fix error handling during MST sideband message reception
    drm/imx: parallel-display: Accept drm_of_find_panel_or_bridge failure
    drm/imx: fix typo in ipu_plane_formats[]
    drm/vc4: Fix VBLANK handling in crtc->enable() path
    dma-buf/fence: Avoid use of uninitialised timestamp
    drm/amdgpu: Remove unused field kgd2kfd_shared_resources.num_mec
    drm/radeon: Remove initialization of shared_resources.num_mec
    drm/amdkfd: Remove unused references to shared_resources.num_mec
    drm/amdgpu: Fix KFD oversubscription by tracking queues correctly

    Linus Torvalds
     
  • Pull tracing fixes from Steven Rostedt:
    "Three minor updates

    - Use the new GFP_RETRY_MAYFAIL to be more aggressive in allocating
    memory for the ring buffer without causing OOMs

    - Fix a memory leak in adding and removing instances

    - Add __rcu annotation to be able to debug RCU usage of function
    tracing a bit better"

    * tag 'trace-v4.13-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace:
    trace: fix the errors caused by incompatible type of RCU variables
    tracing: Fix kmemleak in instance_rmdir
    tracing/ring_buffer: Try harder to allocate

    Linus Torvalds
     

21 Jul, 2017

3 commits

  • Signed-off-by: Trond Myklebust
    Signed-off-by: Anna Schumaker

    Trond Myklebust
     
  • Core Changes:
    - fence: Introduce new fence flag to signify timestamp is populated (Chris)
    - mst: Avoid processing incomplete data + fix NULL dereference (Imre)

    Driver Changes:
    - vc4: Avoid WARN from grabbing a ref from vblank that's not on (Boris)

    Cc: Chris Wilson
    Cc: Boris Brezillon
    Cc: Imre Deak

    * tag 'drm-misc-fixes-2017-07-20' of git://anongit.freedesktop.org/git/drm-misc:
    drm/mst: Avoid processing partially received up/down message transactions
    drm/mst: Avoid dereferencing a NULL mstb in drm_dp_mst_handle_up_req()
    drm/mst: Fix error handling during MST sideband message reception
    drm/vc4: Fix VBLANK handling in crtc->enable() path
    dma-buf/fence: Avoid use of uninitialised timestamp

    Dave Airlie
     
  • Pull networking fixes from David Miller:

    1) BPF verifier signed/unsigned value tracking fix, from Daniel
    Borkmann, Edward Cree, and Josef Bacik.

    2) Fix memory allocation length when setting up calls to
    ->ndo_set_mac_address, from Cong Wang.

    3) Add a new cxgb4 device ID, from Ganesh Goudar.

    4) Fix FIB refcount handling, we have to set it's initial value before
    the configure callback (which can bump it). From David Ahern.

    5) Fix double-free in qcom/emac driver, from Timur Tabi.

    6) A bunch of gcc-7 string format overflow warning fixes from Arnd
    Bergmann.

    7) Fix link level headroom tests in ip_do_fragment(), from Vasily
    Averin.

    8) Fix chunk walking in SCTP when iterating over error and parameter
    headers. From Alexander Potapenko.

    9) TCP BBR congestion control fixes from Neal Cardwell.

    10) Fix SKB fragment handling in bcmgenet driver, from Doug Berger.

    11) BPF_CGROUP_RUN_PROG_SOCK_OPS needs to check for null __sk, from Cong
    Wang.

    12) xmit_recursion in ppp driver needs to be per-device not per-cpu,
    from Gao Feng.

    13) Cannot release skb->dst in UDP if IP options processing needs it.
    From Paolo Abeni.

    14) Some netdev ioctl ifr_name[] NULL termination fixes. From Alexander
    Levin and myself.

    15) Revert some rtnetlink notification changes that are causing
    regressions, from David Ahern.

    * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net: (83 commits)
    net: bonding: Fix transmit load balancing in balance-alb mode
    rds: Make sure updates to cp_send_gen can be observed
    net: ethernet: ti: cpsw: Push the request_irq function to the end of probe
    ipv4: initialize fib_trie prior to register_netdev_notifier call.
    rtnetlink: allocate more memory for dev_set_mac_address()
    net: dsa: b53: Add missing ARL entries for BCM53125
    bpf: more tests for mixed signed and unsigned bounds checks
    bpf: add test for mixed signed and unsigned bounds checks
    bpf: fix up test cases with mixed signed/unsigned bounds
    bpf: allow to specify log level and reduce it for test_verifier
    bpf: fix mixed signed/unsigned derived min/max value bounds
    ipv6: avoid overflow of offset in ip6_find_1stfragopt
    net: tehuti: don't process data if it has not been copied from userspace
    Revert "rtnetlink: Do not generate notifications for CHANGEADDR event"
    net: dsa: mv88e6xxx: Enable CMODE config support for 6390X
    dt-binding: ptp: Add SoC compatibility strings for dte ptp clock
    NET: dwmac: Make dwmac reset unconditional
    net: Zero terminate ifr_name in dev_ifname().
    wireless: wext: terminate ifr name coming from userspace
    netfilter: fix netfilter_net_init() return
    ...

    Linus Torvalds