13 Dec, 2018

1 commit

  • This adds the build infrastructure for checking DT binding schema
    documents and validating dts files using the binding schema.

    Check DT binding schema documents:
    make dt_binding_check

    Build dts files and check using DT binding schema:
    make dtbs_check

    Optionally, DT_SCHEMA_FILES can be passed in with a schema file(s) to
    use for validation. This makes it easier to find and fix errors
    generated by a specific schema.

    Currently, the validation targets are separate from a normal build to
    avoid a hard dependency on the external DT schema project and because
    there are lots of warnings generated.

    Cc: Jonathan Corbet
    Cc: Mark Rutland
    Acked-by: Masahiro Yamada
    Cc: Michal Marek
    Cc: linux-doc@vger.kernel.org
    Cc: devicetree@vger.kernel.org
    Cc: linux-kbuild@vger.kernel.org
    Signed-off-by: Rob Herring

    Rob Herring
     

12 Nov, 2018

14 commits

  • Linus Torvalds
     
  • Pull networking fixes from David Miller:
    "One last pull request before heading to Vancouver for LPC, here we have:

    1) Don't forget to free VSI contexts during ice driver unload, from
    Victor Raj.

    2) Don't forget napi delete calls during device remove in ice driver,
    from Dave Ertman.

    3) Don't request VLAN tag insertion of ibmvnic device when SKB
    doesn't have VLAN tags at all.

    4) IPV4 frag handling code has to accomodate the situation where two
    threads try to insert the same fragment into the hash table at the
    same time. From Eric Dumazet.

    5) Relatedly, don't flow separate on protocol ports for fragmented
    frames, also from Eric Dumazet.

    6) Memory leaks in qed driver, from Denis Bolotin.

    7) Correct valid MTU range in smsc95xx driver, from Stefan Wahren.

    8) Validate cls_flower nested policies properly, from Jakub Kicinski.

    9) Clearing of stats counters in mc88e6xxx driver doesn't retain
    important bits in the G1_STATS_OP register causing the chip to
    hang. Fix from Andrew Lunn"

    * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net: (41 commits)
    act_mirred: clear skb->tstamp on redirect
    net: dsa: mv88e6xxx: Fix clearing of stats counters
    tipc: fix link re-establish failure
    net: sched: cls_flower: validate nested enc_opts_policy to avoid warning
    net: mvneta: correct typo
    flow_dissector: do not dissect l4 ports for fragments
    net: qualcomm: rmnet: Fix incorrect assignment of real_dev
    net: aquantia: allow rx checksum offload configuration
    net: aquantia: invalid checksumm offload implementation
    net: aquantia: fixed enable unicast on 32 macvlan
    net: aquantia: fix potential IOMMU fault after driver unbind
    net: aquantia: synchronized flow control between mac/phy
    net: smsc95xx: Fix MTU range
    net: stmmac: Fix RX packet size > 8191
    qed: Fix potential memory corruption
    qed: Fix SPQ entries not returned to pool in error flows
    qed: Fix blocking/unlimited SPQ entries leak
    qed: Fix memory/entry leak in qed_init_sp_request()
    inet: frags: better deal with smp races
    net: hns3: bugfix for not checking return value
    ...

    Linus Torvalds
     
  • …masahiroy/linux-kbuild

    Pull Kbuild fixes from Masahiro Yamada:

    - fix build errors in binrpm-pkg and bindeb-pkg targets

    - fix false positive matches in merge_config.sh

    - fix build version mismatch in deb-pkg target

    - fix dtbs_install handling in (bin)deb-pkg target

    - revert a commit that allows setlocalversion to write to source tree

    * tag 'kbuild-fixes-v4.20' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild:
    builddeb: Fix inclusion of dtbs in debian package
    Revert "scripts/setlocalversion: git: Make -dirty check more robust"
    kbuild: deb-pkg: fix too low build version number
    kconfig: merge_config: avoid false positive matches from comment lines
    kbuild: deb-pkg: fix bindeb-pkg breakage when O= is used
    kbuild: rpm-pkg: fix binrpm-pkg breakage when O= is used

    Linus Torvalds
     
  • Pull btrfs fixes from David Sterba:
    "Several fixes to recent release (4.19, fixes tagged for stable) and
    other fixes"

    * tag 'for-4.20-rc1-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux:
    Btrfs: fix missing delayed iputs on unmount
    Btrfs: fix data corruption due to cloning of eof block
    Btrfs: fix infinite loop on inode eviction after deduplication of eof block
    Btrfs: fix deadlock on tree root leaf when finding free extent
    btrfs: avoid link error with CONFIG_NO_AUTO_INLINE
    btrfs: tree-checker: Fix misleading group system information
    Btrfs: fix missing data checksums after a ranged fsync (msync)
    btrfs: fix pinned underflow after transaction aborted
    Btrfs: fix cur_offset in the error case for nocow

    Linus Torvalds
     
  • Pull ext4 fixes from Ted Ts'o:
    "A large number of ext4 bug fixes, mostly buffer and memory leaks on
    error return cleanup paths"

    * tag 'ext4_for_linus_stable' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4:
    ext4: missing !bh check in ext4_xattr_inode_write()
    ext4: fix buffer leak in __ext4_read_dirblock() on error path
    ext4: fix buffer leak in ext4_expand_extra_isize_ea() on error path
    ext4: fix buffer leak in ext4_xattr_move_to_block() on error path
    ext4: release bs.bh before re-using in ext4_xattr_block_find()
    ext4: fix buffer leak in ext4_xattr_get_block() on error path
    ext4: fix possible leak of s_journal_flag_rwsem in error path
    ext4: fix possible leak of sbi->s_group_desc_leak in error path
    ext4: remove unneeded brelse call in ext4_xattr_inode_update_ref()
    ext4: avoid possible double brelse() in add_new_gdb() on error path
    ext4: avoid buffer leak in ext4_orphan_add() after prior errors
    ext4: avoid buffer leak on shutdown in ext4_mark_iloc_dirty()
    ext4: fix possible inode leak in the retry loop of ext4_resize_fs()
    ext4: fix missing cleanup if ext4_alloc_flex_bg_array() fails while resizing
    ext4: add missing brelse() update_backups()'s error path
    ext4: add missing brelse() add_new_gdb_meta_bg()'s error path
    ext4: add missing brelse() in set_flexbg_block_bitmap()'s error path
    ext4: avoid potential extra brelse in setup_new_flex_group_blocks()

    Linus Torvalds
     
  • Pull x86 fixes from Thomas Gleixner:
    "A set of x86 fixes:

    - Cure the LDT remapping to user space on 5 level paging which ended
    up in the KASLR space

    - Remove LDT mapping before freeing the LDT pages

    - Make NFIT MCE handling more robust

    - Unbreak the VSMP build by removing the dependency on paravirt ops

    - Support broken PIT emulation on Microsoft hyperV

    - Don't trace vmware_sched_clock() to avoid tracer recursion

    - Remove -pipe from KBUILD CFLAGS which breaks clang and is also
    slower on GCC

    - Trivial coding style and typo fixes"

    * 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
    x86/cpu/vmware: Do not trace vmware_sched_clock()
    x86/vsmp: Remove dependency on pv_irq_ops
    x86/ldt: Remove unused variable in map_ldt_struct()
    x86/ldt: Unmap PTEs for the slot before freeing LDT pages
    x86/mm: Move LDT remap out of KASLR region on 5-level paging
    acpi/nfit, x86/mce: Validate a MCE's address before using it
    acpi/nfit, x86/mce: Handle only uncorrectable machine checks
    x86/build: Remove -pipe from KBUILD_CFLAGS
    x86/hyper-v: Fix indentation in hv_do_fast_hypercall16()
    Documentation/x86: Fix typo in zero-page.txt
    x86/hyper-v: Enable PIT shutdown quirk
    clockevents/drivers/i8253: Add support for PIT shutdown quirk

    Linus Torvalds
     
  • Pull perf fixes from Thomas Gleixner:
    "A bunch of perf tooling fixes:

    - Make the Intel PT SQL viewer more robust

    - Make the Intel PT debug log more useful

    - Support weak groups in perf record so it's behaving the same way as
    perf stat

    - Display the LBR stats in callchain entries properly in perf top

    - Handle different PMu names with common prefix properlin in pert
    stat

    - Start syscall augmenting in perf trace. Preparation for
    architecture independent eBPF instrumentation of syscalls.

    - Fix build breakage in JVMTI perf lib

    - Fix arm64 tools build failure wrt smp_load_{acquire,release}"

    * 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
    perf tools: Do not zero sample_id_all for group members
    perf tools: Fix undefined symbol scnprintf in libperf-jvmti.so
    perf beauty: Use SRCARCH, ARCH=x86_64 must map to "x86" to find the headers
    perf intel-pt: Add MTC and CYC timestamps to debug log
    perf intel-pt: Add more event information to debug log
    perf scripts python: exported-sql-viewer.py: Fix table find when table re-ordered
    perf scripts python: exported-sql-viewer.py: Add help window
    perf scripts python: exported-sql-viewer.py: Add Selected branches report
    perf scripts python: exported-sql-viewer.py: Fall back to /usr/local/lib/libxed.so
    perf top: Display the LBR stats in callchain entry
    perf stat: Handle different PMU names with common prefix
    perf record: Support weak groups
    perf evlist: Move perf_evsel__reset_weak_group into evlist
    perf augmented_syscalls: Start collecting pathnames in the BPF program
    perf trace: Fix setting of augmented payload when using eBPF + raw_syscalls
    perf trace: When augmenting raw_syscalls plug raw_syscalls:sys_exit too
    perf examples bpf: Start augmenting raw_syscalls:sys_{start,exit}
    tools headers barrier: Fix arm64 tools build failure wrt smp_load_{acquire,release}

    Linus Torvalds
     
  • Pull timer fix from Thomas Gleixner:
    "Just the removal of a redundant call into the sched deadline overrun
    check"

    * 'timers-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
    posix-cpu-timers: Remove useless call to check_dl_overrun()

    Linus Torvalds
     
  • Pull scheduler fixes from Thomas Gleixner:
    "Two small scheduler fixes:

    - Take hotplug lock in sched_init_smp(). Technically not really
    required, but lockdep will complain other.

    - Trivial comment fix in sched/fair"

    * 'sched/urgent' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
    sched/fair: Fix a comment in task_numa_fault()
    sched/core: Take the hotplug lock in sched_init_smp()

    Linus Torvalds
     
  • Pull locking build fix from Thomas Gleixner:
    "A single fix for a build fail with CONFIG_PROFILE_ALL_BRANCHES=y in
    the qspinlock code"

    * 'locking-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
    x86/qspinlock: Fix compile error

    Linus Torvalds
     
  • Pull core fixes from Thomas Gleixner:
    "A couple of fixlets for the core:

    - Kernel doc function documentation fixes

    - Missing prototypes for weak watchdog functions"

    * 'core-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
    resource/docs: Complete kernel-doc style function documentation
    watchdog/core: Add missing prototypes for weak functions
    resource/docs: Fix new kernel-doc warnings

    Linus Torvalds
     
  • If sch_fq is used at ingress, skbs that might have been
    timestamped by net_timestamp_set() if a packet capture
    is requesting timestamps could be delayed by arbitrary
    amount of time, since sch_fq time base is MONOTONIC.

    Fix this problem by moving code from sch_netem.c to act_mirred.c.

    Fixes: fb420d5d91c1 ("tcp/fq: move back to CLOCK_MONOTONIC")
    Signed-off-by: Eric Dumazet
    Signed-off-by: David S. Miller

    Eric Dumazet
     
  • The mv88e6161 would sometime fail to probe with a timeout waiting for
    the switch to complete an operation. This operation is supposed to
    clear the statistics counters. However, due to a read/modify/write,
    without the needed mask, the operation actually carried out was more
    random, with invalid parameters, resulting in the switch not
    responding. We need to preserve the histogram mode bits, so apply a
    mask to keep them.

    Reported-by: Chris Healy
    Fixes: 40cff8fca9e3 ("net: dsa: mv88e6xxx: Fix stats histogram mode")
    Signed-off-by: Andrew Lunn
    Signed-off-by: David S. Miller

    Andrew Lunn
     
  • When a link failure is detected locally, the link is reset, the flag
    link->in_session is set to false, and a RESET_MSG with the 'stopping'
    bit set is sent to the peer.

    The purpose of this bit is to inform the peer that this endpoint just
    is going down, and that the peer should handle the reception of this
    particular RESET message as a local failure. This forces the peer to
    accept another RESET or ACTIVATE message from this endpoint before it
    can re-establish the link. This again is necessary to ensure that
    link session numbers are properly exchanged before the link comes up
    again.

    If a failure is detected locally at the same time at the peer endpoint
    this will do the same, which is also a correct behavior.

    However, when receiving such messages, the endpoints will not
    distinguish between 'stopping' RESETs and ordinary ones when it comes
    to updating session numbers. Both endpoints will copy the received
    session number and set their 'in_session' flags to true at the
    reception, while they are still expecting another RESET from the
    peer before they can go ahead and re-establish. This is contradictory,
    since, after applying the validation check referred to below, the
    'in_session' flag will cause rejection of all such messages, and the
    link will never come up again.

    We now fix this by not only handling received RESET/STOPPING messages
    as a local failure, but also by omitting to set a new session number
    and the 'in_session' flag in such cases.

    Fixes: 7ea817f4e832 ("tipc: check session number before accepting link protocol messages")
    Signed-off-by: Jon Maloy
    Signed-off-by: David S. Miller

    Jon Maloy
     

11 Nov, 2018

12 commits

  • Commit 37c8a5fafa3b ("kbuild: consolidate Devicetree dtb build rules")
    moved the location of 'dtbs_install' target which caused dtbs to not be
    installed when building debian package with 'bindeb-pkg' target. Update
    the builddeb script to use the same logic that determines if there's a
    'dtbs_install' target which is presence of the arch dts directory. Also,
    use CONFIG_OF_EARLY_FLATTREE instead of CONFIG_OF as that's a better
    indication of whether we are building dtbs.

    This commit will also have the side effect of installing dtbs on any
    arch that has dts files. Previously, it was dependent on whether the
    arch defined 'dtbs_install'.

    Fixes: 37c8a5fafa3b ("kbuild: consolidate Devicetree dtb build rules")
    Reported-by: Nuno Gonçalves
    Signed-off-by: Rob Herring
    Signed-off-by: Masahiro Yamada

    Rob Herring
     
  • This reverts commit 6147b1cf19651c7de297e69108b141fb30aa2349.

    The reverted patch results in attempted write access to the source
    repository, even if that repository is mounted read-only.

    Output from "strace git status -uno --porcelain":

    getcwd("/tmp/linux-test", 129) = 16
    open("/tmp/linux-test/.git/index.lock", O_RDWR|O_CREAT|O_EXCL|O_CLOEXEC, 0666) =
    -1 EROFS (Read-only file system)

    While git appears to be able to handle this situation, a monitored
    build environment (such as the one used for Chrome OS kernel builds)
    may detect it and bail out with an access violation error. On top of
    that, the attempted write access suggests that git _will_ write to the
    file even if a build output directory is specified. Users may have the
    reasonable expectation that the source repository remains untouched in
    that situation.

    Fixes: 6147b1cf19651 ("scripts/setlocalversion: git: Make -dirty check more robust"
    Cc: Genki Sky
    Signed-off-by: Guenter Roeck
    Reviewed-by: Brian Norris
    Signed-off-by: Masahiro Yamada

    Guenter Roeck
     
  • Since commit b41d920acff8 ("kbuild: deb-pkg: split generating packaging
    and build"), the build version of the kernel contained in a deb package
    is too low by 1.

    Prior to the bad commit, the kernel was built first, then the number
    in .version file was read out, and written into the debian control file.

    Now, the debian control file is created before the kernel is actually
    compiled, which is causing the version number mismatch.

    Let the mkdebian script pass KBUILD_BUILD_VERSION=${revision} to require
    the build system to use the specified version number.

    Fixes: b41d920acff8 ("kbuild: deb-pkg: split generating packaging and build")
    Reported-by: Doug Smythies
    Signed-off-by: Masahiro Yamada
    Tested-by: Doug Smythies

    Masahiro Yamada
     
  • The current SED_CONFIG_EXP could match to comment lines in config
    fragment files, especially when CONFIG_PREFIX_ is empty. For example,
    Buildroot uses empty prefixing; starting symbols with BR2_ is just
    convention.

    Make the sed expression more robust against false positives from
    comment lines. The new sed expression matches to only valid patterns.

    Signed-off-by: Masahiro Yamada
    Reviewed-by: Petr Vorel
    Reviewed-by: Arnout Vandecappelle (Essensium/Mind)

    Masahiro Yamada
     
  • Pull tty/serial fixes from Greg KH:
    "Here are some small tty fixes for 4.20-rc2

    One of these missed the original 4.19-final release, I missed that I
    hadn't done a pull request for it as it was in linux-next and my
    branch for a long time, that's my fault.

    The others are small, fixing some reported issues and finally fixing
    the termios mess for alpha so that glibc has a chance to implement
    some missing functionality that has been pending for many years now.

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

    * tag 'tty-4.20-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty:
    serial: sh-sci: Fix could not remove dev_attr_rx_fifo_timeout
    arch/alpha, termios: implement BOTHER, IBSHIFT and termios2
    termios, tty/tty_baudrate.c: fix buffer overrun
    vt: fix broken display when running aptitude
    serial: sh-sci: Fix receive on SCIFA/SCIFB variants with DMA

    Linus Torvalds
     
  • Pull drm fixes from Dave Airlie:
    "drm: i915, amdgpu, sun4i, exynos and etnaviv fixes:

    - amdgpu has some display fixes, KFD ioctl fixes and a Vega20 bios
    interaction fix.

    - sun4i has some NULL checks added

    - i915 has a 32-bit system fix, LPE audio oops, and HDMI2.0 clock
    fixes.

    - Exynos has a 3 regression fixes (one frame counter, fbdev missing,
    dsi->panel check)

    - Etnaviv has a single fencing fix for GPU recovery"

    * tag 'drm-fixes-2018-11-11' of git://anongit.freedesktop.org/drm/drm: (39 commits)
    drm/amd/amdgpu/dm: Fix dm_dp_create_fake_mst_encoder()
    drm/amd/display: Drop reusing drm connector for MST
    drm/amd/display: Cleanup MST non-atomic code workaround
    drm/amd/powerplay: always use fast UCLK switching when UCLK DPM enabled
    drm/amd/powerplay: set a default fclk/gfxclk ratio
    drm/amdgpu/display/dce11: only enable FBC when selected
    drm/amdgpu/display/dm: handle FBC dc feature parameter
    drm/amdgpu/display/dc: add FBC to dc_config
    drm/amdgpu: add DC feature mask module parameter
    drm/amdgpu/display: check if fbc is available in set_static_screen_control (v2)
    drm/amdgpu/vega20: add CLK base offset
    drm/amd/display: Stop leaking planes
    drm/amd/display: Fix misleading buffer information
    Revert "drm/amd/display: set backlight level limit to 1"
    drm/amd: Update atom_smu_info_v3_3 structure
    drm/i915: Fix ilk+ watermarks when disabling pipes
    drm/sun4i: tcon: prevent tcon->panel dereference if NULL
    drm/sun4i: tcon: fix check of tcon->panel null pointer
    drm/i915: Don't oops during modeset shutdown after lpe audio deinit
    drm/i915: Mark pin flags as u64
    ...

    Linus Torvalds
     
  • Pull namespace fixes from Eric Biederman:
    "I believe all of these are simple obviously correct bug fixes. These
    fall into two groups:

    - Fixing the implementation of MNT_LOCKED which prevents lesser
    privileged users from seeing unders mounts created by more
    privileged users.

    - Fixing the extended uid and group mapping in user namespaces.

    As well as ensuring the code looks correct I have spot tested these
    changes as well and in my testing the fixes are working"

    * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace:
    mount: Prevent MNT_DETACH from disconnecting locked mounts
    mount: Don't allow copying MNT_UNBINDABLE|MNT_LOCKED mounts
    mount: Retest MNT_LOCKED in do_umount
    userns: also map extents in the reverse map to kernel IDs

    Linus Torvalds
     
  • Pull clk fixes from Stephen Boyd:
    "A small set of fixes for clk drivers.

    One to fix a DT refcount imbalance, two to mark some Amlogic clks as
    critical, and one final one that fixes a clk name for the Qualcomm
    driver merged this cycle"

    * tag 'clk-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/clk/linux:
    clk: qcom: gcc: Fix board clock node name
    clk: meson: axg: mark fdiv2 and fdiv3 as critical
    clk: meson-gxbb: set fclk_div3 as CLK_IS_CRITICAL
    clk: fixed-factor: fix of_node_get-put imbalance

    Linus Torvalds
     
  • Fixes for 4.20:
    - DC MST fixes
    - DC FBC fix
    - Vega20 updates to support the latest vbios
    - KFD type fixes for ioctl headers

    Signed-off-by: Dave Airlie
    From: Alex Deucher
    Link: https://patchwork.freedesktop.org/patch/msgid/20181108035551.2904-1-alexander.deucher@amd.com

    Dave Airlie
     
  • - sun4i: tcon->panel NULL deref protections (Giulio)

    Cc: Giulio Benetti
    Signed-off-by: Dave Airlie
    From: Sean Paul
    Link: https://patchwork.freedesktop.org/patch/msgid/20181107205051.GA27823@art_vandelay

    Dave Airlie
     
  • Bugzilla #108282 fixed: Avoid graphics corruption on 32-bit systems for Mesa 18.2.x
    Avoid OOPS on LPE audio deinit. Remove two unused W/As.
    Fix to correct HDMI 2.0 audio clock modes to spec.

    Signed-off-by: Dave Airlie
    From: Joonas Lahtinen
    Link: https://patchwork.freedesktop.org/patch/msgid/20181108134508.GA28466@jlahtine-desk.ger.corp.intel.com

    Dave Airlie
     
  • TCA_FLOWER_KEY_ENC_OPTS and TCA_FLOWER_KEY_ENC_OPTS_MASK can only
    currently contain further nested attributes, which are parsed by
    hand, so the policy is never actually used resulting in a W=1
    build warning:

    net/sched/cls_flower.c:492:1: warning: ‘enc_opts_policy’ defined but not used [-Wunused-const-variable=]
    enc_opts_policy[TCA_FLOWER_KEY_ENC_OPTS_MAX + 1] = {

    Add the validation anyway to avoid potential bugs when other
    attributes are added and to make the attribute structure slightly
    more clear. Validation will also set extact to point to bad
    attribute on error.

    Fixes: 0a6e77784f49 ("net/sched: allow flower to match tunnel options")
    Signed-off-by: Jakub Kicinski
    Acked-by: Simon Horman
    Acked-by: Jiri Pirko
    Signed-off-by: David S. Miller

    Jakub Kicinski
     

10 Nov, 2018

13 commits

  • Pull xen fixes from Juergen Gross:
    "Several fixes, mostly for rather recent regressions when running under
    Xen"

    * tag 'for-linus-4.20a-rc2-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip:
    xen: remove size limit of privcmd-buf mapping interface
    xen: fix xen_qlock_wait()
    x86/xen: fix pv boot
    xen-blkfront: fix kernel panic with negotiate_mq error path
    xen/grant-table: Fix incorrect gnttab_dma_free_pages() pr_debug message
    CONFIG_XEN_PV breaks xen_create_contiguous_region on ARM

    Linus Torvalds
     
  • Pull arm64 fixes from Catalin Marinas:

    - Fix occasional page fault during boot due to memblock resizing before
    the linear map is up.

    - Define NET_IP_ALIGN to 0 to improve the DMA performance on some
    platforms.

    - lib/raid6 test build fix.

    - .mailmap update for Punit Agrawal

    * tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux:
    arm64: memblock: don't permit memblock resizing until linear mapping is up
    arm64: mm: define NET_IP_ALIGN to 0
    lib/raid6: Fix arm64 test build
    mailmap: Update email for Punit Agrawal

    Linus Torvalds
     
  • Pull i2c updates from Wolfram Sang:
    "I2C has one bugfix (qcom-geni driver), one arch enablement (i2c-omap
    driver, no code change), and a new driver (nvidia-gpu) this time"

    * 'i2c/for-current' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux:
    usb: typec: ucsi: add support for Cypress CCGx
    i2c: nvidia-gpu: make pm_ops static
    i2c: add i2c bus driver for NVIDIA GPU
    i2c: qcom-geni: Fix runtime PM mismatch with child devices
    MAINTAINERS: Add entry for i2c-omap driver
    i2c: omap: Enable for ARCH_K3
    dt-bindings: i2c: omap: Add new compatible for AM654 SoCs

    Linus Torvalds
     
  • The reserved variable should be named reserved1.

    Signed-off-by: Alexandre Belloni
    Signed-off-by: David S. Miller

    Alexandre Belloni
     
  • Only first fragment has the sport/dport information,
    not the following ones.

    If we want consistent hash for all fragments, we need to
    ignore ports even for first fragment.

    This bug is visible for IPv6 traffic, if incoming fragments
    do not have a flow label, since skb_get_hash() will give
    different results for first fragment and following ones.

    It is also visible if any routing rule wants dissection
    and sport or dport.

    See commit 5e5d6fed3741 ("ipv6: route: dissect flow
    in input path if fib rules need it") for details.

    [edumazet] rewrote the changelog completely.

    Fixes: 06635a35d13d ("flow_dissect: use programable dissector in skb_flow_dissect and friends")
    Signed-off-by: 배석진
    Signed-off-by: Eric Dumazet
    Signed-off-by: David S. Miller

    배석진
     
  • A null dereference was observed when a sysctl was being set
    from userspace and rmnet was stuck trying to complete some actions
    in the NETDEV_REGISTER callback. This is because the real_dev is set
    only after the device registration handler completes.

    sysctl call stack -

    Unable to handle kernel NULL pointer dereference at
    virtual address 00000108
    pc : rmnet_vnd_get_iflink+0x1c/0x28
    lr : dev_get_iflink+0x2c/0x40
    rmnet_vnd_get_iflink+0x1c/0x28
    inet6_fill_ifinfo+0x15c/0x234
    inet6_ifinfo_notify+0x68/0xd4
    ndisc_ifinfo_sysctl_change+0x1b8/0x234
    proc_sys_call_handler+0xac/0x100
    proc_sys_write+0x3c/0x4c
    __vfs_write+0x54/0x14c
    vfs_write+0xcc/0x188
    SyS_write+0x60/0xc0
    el0_svc_naked+0x34/0x38

    device register call stack -

    notifier_call_chain+0x84/0xbc
    raw_notifier_call_chain+0x38/0x48
    call_netdevice_notifiers_info+0x40/0x70
    call_netdevice_notifiers+0x38/0x60
    register_netdevice+0x29c/0x3d8
    rmnet_vnd_newlink+0x68/0xe8
    rmnet_newlink+0xa0/0x160
    rtnl_newlink+0x57c/0x6c8
    rtnetlink_rcv_msg+0x1dc/0x328
    netlink_rcv_skb+0xac/0x118
    rtnetlink_rcv+0x24/0x30
    netlink_unicast+0x158/0x1f0
    netlink_sendmsg+0x32c/0x338
    sock_sendmsg+0x44/0x60
    SyS_sendto+0x150/0x1ac
    el0_svc_naked+0x34/0x38

    Fixes: b752eff5be24 ("net: qualcomm: rmnet: Implement ndo_get_iflink")
    Signed-off-by: Sean Tranchetti
    Signed-off-by: Subash Abhinov Kasiviswanathan
    Signed-off-by: David S. Miller

    Subash Abhinov Kasiviswanathan
     
  • Igor Russkikh says:

    ====================
    net: aquantia: 2018-11 bugfixes

    The patchset fixes a number of bugs found in various areas after
    driver validation.
    ====================

    Signed-off-by: David S. Miller

    David S. Miller
     
  • RX Checksum offloads could not be configured and ignored netdev features
    flag for checksumming.

    Signed-off-by: Igor Russkikh
    Signed-off-by: Dmitry Bogdanov
    Signed-off-by: David S. Miller

    Dmitry Bogdanov
     
  • Packets with marked invalid IP/UDP/TCP checksums were considered as good
    by the driver. The error was in a logic, processing offload bits in
    RX descriptor.

    Signed-off-by: Igor Russkikh
    Signed-off-by: Dmitry Bogdanov
    Signed-off-by: David S. Miller

    Dmitry Bogdanov
     
  • Fixed a condition mistake due to which macvlans unicast
    item number 32 was not added in the unicast filter.

    The consequence is that when exactly 32 macvlans are created
    on NIC, the last created macvlan receives no traffic because
    its MAC was not registered in HW.

    Fixes: 94b3b542303f ("net: aquantia: vlan unicast address list correct handling")
    Signed-off-by: Igor Russkikh
    Tested-by: Nikita Danilov
    Signed-off-by: David S. Miller

    Igor Russkikh
     
  • IOMMU fault may occurr on unbind/bind or if_down/if_up sequence.

    Although driver disables the rings on down, this is not enough.
    Due to internal HW design, during subsequent initialization
    NIC sometimes may reuse RX descriptors cache and write to the
    host memory from the descriptor cache.
    That's get catched by IOMMU on host.

    This patch invalidates the descriptor cache in NIC on interface down
    to prevent writing to the cached descriptors and to the memory pointed
    in those descriptors.

    Signed-off-by: Dmitry Bogdanov
    Signed-off-by: Igor Russkikh
    Signed-off-by: David S. Miller

    Dmitry Bogdanov
     
  • Flow control statuses were not synchronized between blocks,
    that caused packets/link drop on some corner cases, when
    MAC sent PFC although Phy was not expecting these to come.

    Driver should readout the negotiated FC from phy and
    configure RX block accordigly.

    This is done on each link change event with information from FW.

    Fixes: 288551de45aa ("net: aquantia: Implement rx/tx flow control ethtools callback")
    Signed-off-by: Igor Russkikh
    Signed-off-by: David S. Miller

    Igor Russkikh
     
  • Pull Devicetree fixes from Rob Herring:

    - Add validation of NUMA distance map to prevent crashes with bad map

    - Fix setting of dma_mask

    * tag 'devicetree-fixes-for-4.20-2' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux:
    of, numa: Validate some distance map rules
    of/device: Really only set bus DMA mask when appropriate

    Linus Torvalds