15 Apr, 2016

1 commit


30 Mar, 2016

2 commits


25 Mar, 2016

1 commit

  • Pull x86 fixes from Ingo Molnar:
    "Misc fixes:

    - fix hotplug bugs
    - fix irq live lock
    - fix various topology handling bugs
    - fix APIC ACK ordering
    - fix PV iopl handling
    - fix speling
    - fix/tweak memcpy_mcsafe() return value
    - fix fbcon bug
    - remove stray prototypes"

    * 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
    x86/msr: Remove unused native_read_tscp()
    x86/apic: Remove declaration of unused hw_nmi_is_cpu_stuck
    x86/oprofile/nmi: Add missing hotplug FROZEN handling
    x86/hpet: Use proper mask to modify hotplug action
    x86/apic/uv: Fix the hotplug notifier
    x86/apb/timer: Use proper mask to modify hotplug action
    x86/topology: Use total_cpus not nr_cpu_ids for logical packages
    x86/topology: Fix Intel HT disable
    x86/topology: Fix logical package mapping
    x86/irq: Cure live lock in fixup_irqs()
    x86/tsc: Prevent NULL pointer deref in calibrate_delay_is_known()
    x86/apic: Fix suspicious RCU usage in smp_trace_call_function_interrupt()
    x86/iopl: Fix iopl capability check on Xen PV
    x86/iopl/64: Properly context-switch IOPL on Xen PV
    selftests/x86: Add an iopl test
    x86/mm, x86/mce: Fix return type/value for memcpy_mcsafe()
    x86/video: Don't assume all FB devices are PCI devices
    arch/x86/irq: Purge useless handler declarations from hw_irq.h
    x86: Fix misspellings in comments

    Linus Torvalds
     

20 Mar, 2016

2 commits

  • Pull powerpc updates from Michael Ellerman:
    "This was delayed a day or two by some build-breakage on old toolchains
    which we've now fixed.

    There's two PCI commits both acked by Bjorn.

    There's one commit to mm/hugepage.c which is (co)authored by Kirill.

    Highlights:
    - Restructure Linux PTE on Book3S/64 to Radix format from Paul
    Mackerras
    - Book3s 64 MMU cleanup in preparation for Radix MMU from Aneesh
    Kumar K.V
    - Add POWER9 cputable entry from Michael Neuling
    - FPU/Altivec/VSX save/restore optimisations from Cyril Bur
    - Add support for new ftrace ABI on ppc64le from Torsten Duwe

    Various cleanups & minor fixes from:
    - Adam Buchbinder, Andrew Donnellan, Balbir Singh, Christophe Leroy,
    Cyril Bur, Luis Henriques, Madhavan Srinivasan, Pan Xinhui, Russell
    Currey, Sukadev Bhattiprolu, Suraj Jitindar Singh.

    General:
    - atomics: Allow architectures to define their own __atomic_op_*
    helpers from Boqun Feng
    - Implement atomic{, 64}_*_return_* variants and acquire/release/
    relaxed variants for (cmp)xchg from Boqun Feng
    - Add powernv_defconfig from Jeremy Kerr
    - Fix BUG_ON() reporting in real mode from Balbir Singh
    - Add xmon command to dump OPAL msglog from Andrew Donnellan
    - Add xmon command to dump process/task similar to ps(1) from Douglas
    Miller
    - Clean up memory hotplug failure paths from David Gibson

    pci/eeh:
    - Redesign SR-IOV on PowerNV to give absolute isolation between VFs
    from Wei Yang.
    - EEH Support for SRIOV VFs from Wei Yang and Gavin Shan.
    - PCI/IOV: Rename and export virtfn_{add, remove} from Wei Yang
    - PCI: Add pcibios_bus_add_device() weak function from Wei Yang
    - MAINTAINERS: Update EEH details and maintainership from Russell
    Currey

    cxl:
    - Support added to the CXL driver for running on both bare-metal and
    hypervisor systems, from Christophe Lombard and Frederic Barrat.
    - Ignore probes for virtual afu pci devices from Vaibhav Jain

    perf:
    - Export Power8 generic and cache events to sysfs from Sukadev
    Bhattiprolu
    - hv-24x7: Fix usage with chip events, display change in counter
    values, display domain indices in sysfs, eliminate domain suffix in
    event names, from Sukadev Bhattiprolu

    Freescale:
    - Updates from Scott: "Highlights include 8xx optimizations, 32-bit
    checksum optimizations, 86xx consolidation, e5500/e6500 cpu
    hotplug, more fman and other dt bits, and minor fixes/cleanup"

    * tag 'powerpc-4.6-1' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux: (179 commits)
    powerpc: Fix unrecoverable SLB miss during restore_math()
    powerpc/8xx: Fix do_mtspr_cpu6() build on older compilers
    powerpc/rcpm: Fix build break when SMP=n
    powerpc/book3e-64: Use hardcoded mttmr opcode
    powerpc/fsl/dts: Add "jedec,spi-nor" flash compatible
    powerpc/T104xRDB: add tdm riser card node to device tree
    powerpc32: PAGE_EXEC required for inittext
    powerpc/mpc85xx: Add pcsphy nodes to FManV3 device tree
    powerpc/mpc85xx: Add MDIO bus muxing support to the board device tree(s)
    powerpc/86xx: Introduce and use common dtsi
    powerpc/86xx: Update device tree
    powerpc/86xx: Move dts files to fsl directory
    powerpc/86xx: Switch to kconfig fragments approach
    powerpc/86xx: Update defconfigs
    powerpc/86xx: Consolidate common platform code
    powerpc32: Remove one insn in mulhdu
    powerpc32: small optimisation in flush_icache_range()
    powerpc: Simplify test in __dma_sync()
    powerpc32: move xxxxx_dcache_range() functions inline
    powerpc32: Remove clear_pages() and define clear_page() inline
    ...

    Linus Torvalds
     
  • Pull networking updates from David Miller:
    "Highlights:

    1) Support more Realtek wireless chips, from Jes Sorenson.

    2) New BPF types for per-cpu hash and arrap maps, from Alexei
    Starovoitov.

    3) Make several TCP sysctls per-namespace, from Nikolay Borisov.

    4) Allow the use of SO_REUSEPORT in order to do per-thread processing
    of incoming TCP/UDP connections. The muxing can be done using a
    BPF program which hashes the incoming packet. From Craig Gallek.

    5) Add a multiplexer for TCP streams, to provide a messaged based
    interface. BPF programs can be used to determine the message
    boundaries. From Tom Herbert.

    6) Add 802.1AE MACSEC support, from Sabrina Dubroca.

    7) Avoid factorial complexity when taking down an inetdev interface
    with lots of configured addresses. We were doing things like
    traversing the entire address less for each address removed, and
    flushing the entire netfilter conntrack table for every address as
    well.

    8) Add and use SKB bulk free infrastructure, from Jesper Brouer.

    9) Allow offloading u32 classifiers to hardware, and implement for
    ixgbe, from John Fastabend.

    10) Allow configuring IRQ coalescing parameters on a per-queue basis,
    from Kan Liang.

    11) Extend ethtool so that larger link mode masks can be supported.
    From David Decotigny.

    12) Introduce devlink, which can be used to configure port link types
    (ethernet vs Infiniband, etc.), port splitting, and switch device
    level attributes as a whole. From Jiri Pirko.

    13) Hardware offload support for flower classifiers, from Amir Vadai.

    14) Add "Local Checksum Offload". Basically, for a tunneled packet
    the checksum of the outer header is 'constant' (because with the
    checksum field filled into the inner protocol header, the payload
    of the outer frame checksums to 'zero'), and we can take advantage
    of that in various ways. From Edward Cree"

    * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next: (1548 commits)
    bonding: fix bond_get_stats()
    net: bcmgenet: fix dma api length mismatch
    net/mlx4_core: Fix backward compatibility on VFs
    phy: mdio-thunder: Fix some Kconfig typos
    lan78xx: add ndo_get_stats64
    lan78xx: handle statistics counter rollover
    RDS: TCP: Remove unused constant
    RDS: TCP: Add sysctl tunables for sndbuf/rcvbuf on rds-tcp socket
    net: smc911x: convert pxa dma to dmaengine
    team: remove duplicate set of flag IFF_MULTICAST
    bonding: remove duplicate set of flag IFF_MULTICAST
    net: fix a comment typo
    ethernet: micrel: fix some error codes
    ip_tunnels, bpf: define IP_TUNNEL_OPTS_MAX and use it
    bpf, dst: add and use dst_tclassid helper
    bpf: make skb->tc_classid also readable
    net: mvneta: bm: clarify dependencies
    cls_bpf: reset class and reuse major in da
    ldmvsw: Checkpatch sunvnet.c and sunvnet_common.c
    ldmvsw: Add ldmvsw.c driver code
    ...

    Linus Torvalds
     

19 Mar, 2016

1 commit

  • Merge second patch-bomb from Andrew Morton:

    - a couple of hotfixes

    - the rest of MM

    - a new timer slack control in procfs

    - a couple of procfs fixes

    - a few misc things

    - some printk tweaks

    - lib/ updates, notably to radix-tree.

    - add my and Nick Piggin's old userspace radix-tree test harness to
    tools/testing/radix-tree/. Matthew said it was a godsend during the
    radix-tree work he did.

    - a few code-size improvements, switching to __always_inline where gcc
    screwed up.

    - partially implement character sets in sscanf

    * emailed patches from Andrew Morton : (118 commits)
    sscanf: implement basic character sets
    lib/bug.c: use common WARN helper
    param: convert some "on"/"off" users to strtobool
    lib: add "on"/"off" support to kstrtobool
    lib: update single-char callers of strtobool()
    lib: move strtobool() to kstrtobool()
    include/linux/unaligned: force inlining of byteswap operations
    include/uapi/linux/byteorder, swab: force inlining of some byteswap operations
    include/asm-generic/atomic-long.h: force inlining of some atomic_long operations
    usb: common: convert to use match_string() helper
    ide: hpt366: convert to use match_string() helper
    ata: hpt366: convert to use match_string() helper
    power: ab8500: convert to use match_string() helper
    power: charger_manager: convert to use match_string() helper
    drm/edid: convert to use match_string() helper
    pinctrl: convert to use match_string() helper
    device property: convert to use match_string() helper
    lib/string: introduce match_string() helper
    radix-tree tests: add test for radix_tree_iter_next
    radix-tree tests: add regression3 test
    ...

    Linus Torvalds
     

18 Mar, 2016

6 commits

  • Pull trivial tree updates from Jiri Kosina.

    * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial:
    drivers/rtc: broken link fix
    drm/i915 Fix typos in i915_gem_fence.c
    Docs: fix missing word in REPORTING-BUGS
    lib+mm: fix few spelling mistakes
    MAINTAINERS: add git URL for APM driver
    treewide: Fix typo in printk

    Linus Torvalds
     
  • …/git/shuah/linux-kselftest

    Pull Kselftest updates from Shuah Khan:
    "This update for Kselftest adds:

    - A new feature to create test-specific kconfig fragments. This
    feature helps configure Kselftests to test specific Kernel
    Configuration options as opposed to defconfig.

    - A new test for Media Controller API

    - A few fixes"

    * tag 'linux-kselftest-4.6-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest:
    selftests: media_dcevice_test fix usage information
    selftests: media_dcevice_test fix to handle ioctl failure case
    selftests: add missing .gitignore file or entry
    Makefile: add kselftest-merge
    selftests: create test-specific kconfig fragments
    selftests: breakpoint: add step_after_suspend_test
    selftests: add a new test for Media Controller API

    Linus Torvalds
     
  • Without fix test crashes inside tagged iteration.

    Signed-off-by: Konstantin Khlebnikov
    Cc: Matthew Wilcox
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Konstantin Khlebnikov
     
  • After calling radix_tree_iter_retry(), 'slot' will be set to NULL. This
    can cause radix_tree_next_slot() to dereference the NULL pointer. Add
    Konstantin Khlebnikov's test to the regression framework.

    Signed-off-by: Matthew Wilcox
    Reported-by: Konstantin Khlebnikov
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Konstantin Khlebnikov
     
  • Set the 'indirect_ptr' bit on all the pointers to internal nodes, not
    just on the root node. This enables the following patches to support
    multi-order entries in the radix tree. This patch is split out for ease
    of bisection.

    Signed-off-by: Matthew Wilcox
    Cc: Johannes Weiner
    Cc: Matthew Wilcox
    Cc: "Kirill A. Shutemov"
    Cc: Ross Zwisler
    Cc: Hugh Dickins
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Matthew Wilcox
     
  • This code is mostly from Andrew Morton and Nick Piggin; tarball downloaded
    from http://ozlabs.org/~akpm/rtth.tar.gz with sha1sum
    0ce679db9ec047296b5d1ff7a1dfaa03a7bef1bd

    Some small modifications were necessary to the test harness to fix the
    build with the current Linux source code.

    I also made minor modifications to automatically test the radix-tree.c
    and radix-tree.h files that are in the current source tree, as opposed
    to a copied and slightly modified version. I am sure more could be done
    to tidy up the harness, as well as adding more tests.

    [koct9i@gmail.com: fix compilation]
    Signed-off-by: Matthew Wilcox
    Cc: Shuah Khan
    Cc: Johannes Weiner
    Cc: Matthew Wilcox
    Cc: "Kirill A. Shutemov"
    Cc: Ross Zwisler
    Cc: Hugh Dickins
    Signed-off-by: Konstantin Khlebnikov
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Matthew Wilcox
     

17 Mar, 2016

2 commits

  • This exercises two cases that are known to be buggy on Xen PV right
    now.

    Signed-off-by: Andy Lutomirski
    Cc: Andrew Cooper
    Cc: Andy Lutomirski
    Cc: Boris Ostrovsky
    Cc: Borislav Petkov
    Cc: Brian Gerst
    Cc: David Vrabel
    Cc: Denys Vlasenko
    Cc: H. Peter Anvin
    Cc: Jan Beulich
    Cc: Linus Torvalds
    Cc: Peter Zijlstra
    Cc: Thomas Gleixner
    Link: http://lkml.kernel.org/r/61afe904c95c92abb29cd075b51e10e7feb0f774.1458162709.git.luto@kernel.org
    Signed-off-by: Ingo Molnar

    Andy Lutomirski
     
  • Pull libnvdimm updates from Dan Williams:

    - Asynchronous address range scrub:

    Given the capacities of next generation persistent memory devices a
    scrub operation to find all poison may take 10s of seconds. We
    want this scrub work to be done asynchronously with the rest of
    system initialization, so we move it out of line from the NFIT
    probing, i.e. acpi_nfit_add().

    - Clear poison:

    ACPI 6.1 introduces the ability to send "clear error" commands to
    the ACPI0012:00 device representing the root of an "nvdimm bus".
    Similar to relocating a bad block on a disk, this support clears
    media errors in response to a write.

    - Persistent memory resource tracking:

    A persistent memory range may be designated as simply "reserved" by
    platform firmware in the efi/e820 memory map. Later when the NFIT
    driver loads it discovers that the range is "Persistent Memory".

    The NFIT bus driver inserts a resource to advertise that
    "persistent" attribute in the system resource tree for /proc/iomem
    and kernel-internal usages.

    - Miscellaneous cleanups and fixes:

    Workaround section misaligned pmem ranges when allocating a struct
    page memmap, fix handling of the read-only case in the ioctl path,
    and clean up block device major number allocation.

    * tag 'libnvdimm-for-4.6' of git://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm: (26 commits)
    libnvdimm, pmem: clear poison on write
    libnvdimm, pmem: fix kmap_atomic() leak in error path
    nvdimm/btt: don't allocate unused major device number
    nvdimm/blk: don't allocate unused major device number
    pmem: don't allocate unused major device number
    ACPI: Change NFIT driver to insert new resource
    resource: Export insert_resource and remove_resource
    resource: Add remove_resource interface
    resource: Change __request_region to inherit from immediate parent
    libnvdimm, pmem: fix ia64 build, use PHYS_PFN
    nfit, libnvdimm: clear poison command support
    libnvdimm, pfn: 'resource'-address and 'size' attributes for pfn devices
    libnvdimm, pmem: adjust for section collisions with 'System RAM'
    libnvdimm, pmem: fix 'pfn' support for section-misaligned namespaces
    libnvdimm: Fix security issue with DSM IOCTL.
    libnvdimm: Clean-up access mode check.
    tools/testing/nvdimm: expand ars unit testing
    nfit: disable userspace initiated ars during scrub
    nfit: scrub and register regions in a workqueue
    nfit, libnvdimm: async region scrub workqueue
    ...

    Linus Torvalds
     

16 Mar, 2016

1 commit

  • Pull RCU updates from Ingo Molnar:
    "The main changes in this cycle were:

    - Miscellaneous fixes, cleanups, restructuring.

    - RCU torture-test updates"

    * 'core-rcu-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
    rcu: Export rcu_gp_is_normal()
    rcu: Remove rcu_user_hooks_switch
    rcu: Catch up rcu_report_qs_rdp() comment with reality
    rcu: Document unique-name limitation for DEFINE_STATIC_SRCU()
    rcu: Make rcu/tiny_plugin.h explicitly non-modular
    irq: Privatize irq_common_data::state_use_accessors
    RCU: Privatize rcu_node::lock
    sparse: Add __private to privatize members of structs
    rcu: Remove useless rcu_data_p when !PREEMPT_RCU
    rcutorture: Correct no-expedite console messages
    rcu: Set rdp->gpwrap when CPU is idle
    rcu: Stop treating in-kernel CPU-bound workloads as errors
    rcu: Update rcu_report_qs_rsp() comment
    rcu: Assign false instead of 0 for ->core_needs_qs
    rcutorture: Check for self-detected stalls
    rcutorture: Don't keep empty console.log.diags files
    rcutorture: Add checks for rcutorture writer starvation

    Linus Torvalds
     

15 Mar, 2016

1 commit


10 Mar, 2016

1 commit

  • Setting TF prevents fastpath returns in most cases, which causes the
    test to fail on 32-bit kernels because 32-bit kernels do not, in
    fact, handle NT correctly on SYSENTER entries.

    The next patch will fix 32-bit kernels.

    Signed-off-by: Andy Lutomirski
    Cc: Andrew Cooper
    Cc: Andy Lutomirski
    Cc: Borislav Petkov
    Cc: Brian Gerst
    Cc: Denys Vlasenko
    Cc: H. Peter Anvin
    Cc: Linus Torvalds
    Cc: Oleg Nesterov
    Cc: Peter Zijlstra
    Cc: Thomas Gleixner
    Link: http://lkml.kernel.org/r/bd4bb48af6b10c0dc84aec6dbcf487ed25683495.1457578375.git.luto@kernel.org
    Signed-off-by: Ingo Molnar

    Andy Lutomirski
     

09 Mar, 2016

1 commit


07 Mar, 2016

1 commit


06 Mar, 2016

6 commits


02 Mar, 2016

5 commits

  • Load up the non volatile FPU and VMX regs and ensure that they are the
    expected value in a signal handler

    Signed-off-by: Cyril Bur
    Signed-off-by: Michael Ellerman

    Cyril Bur
     
  • Loop in assembly checking the registers with many threads.

    Signed-off-by: Cyril Bur
    Signed-off-by: Michael Ellerman

    Cyril Bur
     
  • Test that the non volatile floating point and Altivec registers get
    correctly preserved across the fork() syscall.

    fork() works nicely for this purpose, the registers should be the same for
    both parent and child

    Signed-off-by: Cyril Bur
    [mpe: Add include guards to basic_asm.h, minor formatting]
    Signed-off-by: Michael Ellerman

    Cyril Bur
     
  • LTO can cause GCC to inline some functions which have attributes set.
    The act of inlining the functions can lead to GCC forgetting about the
    attributes which leads to incorrect tests.

    Notable example being: __attribute__((__target__("no-vsx")))

    LTO can also interact strangely with custom assembly functions and cause
    tests to intermittently fail.

    Both these cases are hard to detect and require manual inspection of
    binaries which is unlikely to happen for all tests. Furthermore, LTO
    optimisations are not necessary for selftests and correctness is
    paramount and as such it is best to disable LTO.

    LTO can be enabled on a per test basis.

    A pseries_le_defconfig kernel on a POWER8 was used to determine that the
    same subset of selftests pass and fail with and without -flto in the
    common Makefile.

    Signed-off-by: Suraj Jitindar Singh
    Reviewed-by: Cyril Bur
    Signed-off-by: Michael Ellerman

    Suraj Jitindar Singh
     
  • Gcc helpfully points out that we're accessing past the end of the gprs
    array:

    tm-signal-msr-resv.c: In function 'signal_usr1':
    tm-signal-msr-resv.c:43:37: error: array subscript is above array bounds [-Werror=array-bounds]
    ucp->uc_mcontext.regs->gpr[PT_MSR] |= (7ULL);

    We haven't noticed previously because -flto was hiding it somehow.

    The code is confused, PT_MSR isn't a gpr, instead it's in
    uc_regs->gregs, so fix it.

    Signed-off-by: Michael Ellerman

    Michael Ellerman
     

26 Feb, 2016

7 commits

  • Pull libnvdimm fixes from Dan Williams:

    - Two fixes for compatibility with the ACPI 6.1 specification.

    Without these fixes multi-interface DIMMs will fail to be probed, and
    address range scrub commands to find memory errors will give results
    that the kernel will mis-interpret. For multi-interface DIMMs Linux
    will accept either the original 6.0 implementation or 6.1.

    For address range scrub we'll only support 6.1 since ACPI formalized
    this DSM differently than the original example [1] implemented in
    v4.2. The expectation is that production systems will only ever ship
    the ACPI 6.1 address range scrub command definition.

    - The wider async address range scrub work targeting 4.6 discovered
    that the original synchronous implementation in 4.5 is not sizing its
    return buffer correctly.

    - Arnd caught that my recent fix to the size of the pfn_t flags missed
    updating the flags variable used in the pmem driver.

    - Toshi found that we mishandle the memremap() return value in
    devm_memremap().

    * 'libnvdimm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm:
    nvdimm: use 'u64' for pfn flags
    devm_memremap: Fix error value when memremap failed
    nfit: update address range scrub commands to the acpi 6.1 format
    libnvdimm, tools/testing/nvdimm: fix 'ars_status' output buffer sizing
    nfit: fix multi-interface dimm handling, acpi6.1 compatibility

    Linus Torvalds
     
  • Fix the incorrect usage information.

    Signed-off-by: Shuah Khan

    Shuah Khan
     
  • Fix to print information returned by ioctl only when
    it returns success.

    Signed-off-by: Shuah Khan

    Shuah Khan
     
  • Only IPC selftest is missing the .gitignore file, so add it.
    Also step_after_suspend_test is missing in breakpoints selftest
    .gitignore file

    Signed-off-by: Sudeep Holla
    Signed-off-by: Shuah Khan

    Sudeep Holla
     
  • Create the config file in each directory of testcase which need
    more kernel configuration than the default defconfig. User could
    use these configs with merge_config.sh script:

    Enable config for specific testcase:
    (export ARCH=xxx #for cross compiling)
    ./scripts/kconfig/merge_config.sh .config \
    tools/testing/selftests/xxx/config

    Enable configs for all testcases:
    (export ARCH=xxx #for cross compiling)
    ./scripts/kconfig/merge_config.sh .config \
    tools/testing/selftests/*/config

    Signed-off-by: Bamvor Jian Zhang
    Reviewed-by: Shuah Khan
    Signed-off-by: Shuah Khan

    Bamvor Jian Zhang
     
  • Commit e56d82a11617 ("arm64: cpu hotplug: ensure we mask out
    CPU_TASKS_FROZEN in notifiers") fixed a long-standing ARM64 bug that
    broke single-stepping after a suspend/resume cycle. Add a kernel
    selftest to make sure this doesn't regress or affect other platforms.

    Signed-off-by: Greg Hackmann
    Signed-off-by: Shuah Khan

    Greg Hackmann
     
  • This test opens user specified Media Device and calls
    MEDIA_IOC_DEVICE_INFO ioctl in a loop once every 10
    seconds. This test is for detecting errors in device
    removal path.

    Usage:
    sudo ./media_device_test -d /dev/mediaX

    While test is running, remove the device and
    ensure there are no use after free errors and
    other Oops in the dmesg. Enable KaSan kernel
    config option for use-after-free error detection.

    Signed-off-by: Shuah Khan

    Shuah Khan
     

23 Feb, 2016

2 commits

  • Conflicts:
    drivers/net/phy/bcm7xxx.c
    drivers/net/phy/marvell.c
    drivers/net/vxlan.c

    All three conflicts were cases of simple overlapping changes.

    Signed-off-by: David S. Miller

    David S. Miller
     
  • …t/rostedt/linux-trace

    Pull tracing fixes from Steven Rostedt:
    "Two more small fixes.

    One is by Yang Shi who added a READ_ONCE_NOCHECK() to the scan of the
    stack made by the stack tracer. As the stack tracer scans the entire
    kernel stack, KASAN triggers seeing it as a "stack out of bounds"
    error. As the scan is looking at the contents of the stack from
    parent functions. The NOCHECK() tells KASAN that this is done on
    purpose, and is not some kind of stack overflow.

    The second fix is to the ftrace selftests, to retrieve the PID of
    executed commands from the shell with '$!' and not by parsing 'jobs'"

    * tag 'trace-fixes-v4.5-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace:
    tracing, kasan: Silence Kasan warning in check_stack of stack_tracer
    ftracetest: Fix instance test to use proper shell command for pids

    Linus Torvalds