30 Dec, 2020

1 commit

  • commit cf48647243cc28d15280600292db5777592606c5 upstream.

    Sequence counters with an associated write serialization lock are called
    seqcount_LOCKNAME_t. Fix the documentation accordingly.

    While at it, remove a paragraph that inappropriately discussed a
    seqlock.h implementation detail.

    Fixes: 6dd699b13d53 ("seqlock: seqcount_LOCKNAME_t: Standardize naming convention")
    Signed-off-by: Ahmed S. Darwish
    Signed-off-by: Peter Zijlstra (Intel)
    Cc: stable@vger.kernel.org
    Link: https://lkml.kernel.org/r/20201206162143.14387-2-a.darwish@linutronix.de
    Signed-off-by: Greg Kroah-Hartman

    Ahmed S. Darwish
     

21 Dec, 2020

1 commit

  • commit 8010622c86ca5bb44bc98492f5968726fc7c7a21 upstream.

    UAS does not share the pessimistic assumption storage is making that
    devices cannot deal with WRITE_SAME. A few devices supported by UAS,
    are reported to not deal well with WRITE_SAME. Those need a quirk.

    Add it to the device that needs it.

    Reported-by: David C. Partridge
    Signed-off-by: Oliver Neukum
    Cc: stable
    Link: https://lore.kernel.org/r/20201209152639.9195-1-oneukum@suse.com
    Signed-off-by: Greg Kroah-Hartman

    Oliver Neukum
     

13 Dec, 2020

1 commit

  • Pull kvm fixes from Paolo Bonzini:
    "Bugfixes for ARM, x86 and tools"

    * tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm:
    tools/kvm_stat: Exempt time-based counters
    KVM: mmu: Fix SPTE encoding of MMIO generation upper half
    kvm: x86/mmu: Use cpuid to determine max gfn
    kvm: svm: de-allocate svm_cpu_data for all cpus in svm_cpu_uninit()
    selftests: kvm/set_memory_region_test: Fix race in move region test
    KVM: arm64: Add usage of stage 2 fault lookup level in user_mem_abort()
    KVM: arm64: Fix handling of merging tables into a block entry
    KVM: arm64: Fix memory leak on stage2 update of a valid PTE

    Linus Torvalds
     

12 Dec, 2020

1 commit

  • Commit cae7ed3c2cb0 ("KVM: x86: Refactor the MMIO SPTE generation handling")
    cleaned up the computation of MMIO generation SPTE masks, however it
    introduced a bug how the upper part was encoded:
    SPTE bits 52-61 were supposed to contain bits 10-19 of the current
    generation number, however a missing shift encoded bits 1-10 there instead
    (mostly duplicating the lower part of the encoded generation number that
    then consisted of bits 1-9).

    In the meantime, the upper part was shrunk by one bit and moved by
    subsequent commits to become an upper half of the encoded generation number
    (bits 9-17 of bits 0-17 encoded in a SPTE).

    In addition to the above, commit 56871d444bc4 ("KVM: x86: fix overlap between SPTE_MMIO_MASK and generation")
    has changed the SPTE bit range assigned to encode the generation number and
    the total number of bits encoded but did not update them in the comment
    attached to their defines, nor in the KVM MMU doc.
    Let's do it here, too, since it is too trivial thing to warrant a separate
    commit.

    Fixes: cae7ed3c2cb0 ("KVM: x86: Refactor the MMIO SPTE generation handling")
    Signed-off-by: Maciej S. Szmigiero
    Message-Id:
    Cc: stable@vger.kernel.org
    [Reorganize macros so that everything is computed from the bit ranges. - Paolo]
    Signed-off-by: Paolo Bonzini

    Maciej S. Szmigiero
     

04 Dec, 2020

1 commit

  • Pull networking fixes from Jakub Kicinski:
    "Networking fixes for 5.10-rc7, including fixes from bpf, netfilter,
    wireless drivers, wireless mesh and can.

    Current release - regressions:

    - mt76: usb: fix crash on device removal

    Current release - always broken:

    - xsk: Fix umem cleanup from wrong context in socket destruct

    Previous release - regressions:

    - net: ip6_gre: set dev->hard_header_len when using header_ops

    - ipv4: Fix TOS mask in inet_rtm_getroute()

    - net, xsk: Avoid taking multiple skbuff references

    Previous release - always broken:

    - net/x25: prevent a couple of overflows

    - netfilter: ipset: prevent uninit-value in hash_ip6_add

    - geneve: pull IP header before ECN decapsulation

    - mpls: ensure LSE is pullable in TC and openvswitch paths

    - vxlan: respect needed_headroom of lower device

    - batman-adv: Consider fragmentation for needed packet headroom

    - can: drivers: don't count arbitration loss as an error

    - netfilter: bridge: reset skb->pkt_type after POST_ROUTING traversal

    - inet_ecn: Fix endianness of checksum update when setting ECT(1)

    - ibmvnic: fix various corner cases around reset handling

    - net/mlx5: fix rejecting unsupported Connect-X6DX SW steering

    - net/mlx5: Enforce HW TX csum offload with kTLS"

    * tag 'net-5.10-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net: (62 commits)
    net/mlx5: DR, Proper handling of unsupported Connect-X6DX SW steering
    net/mlx5e: kTLS, Enforce HW TX csum offload with kTLS
    net: mlx5e: fix fs_tcp.c build when IPV6 is not enabled
    net/mlx5: Fix wrong address reclaim when command interface is down
    net/sched: act_mpls: ensure LSE is pullable before reading it
    net: openvswitch: ensure LSE is pullable before reading it
    net: skbuff: ensure LSE is pullable before decrementing the MPLS ttl
    net: mvpp2: Fix error return code in mvpp2_open()
    chelsio/chtls: fix a double free in chtls_setkey()
    rtw88: debug: Fix uninitialized memory in debugfs code
    vxlan: fix error return code in __vxlan_dev_create()
    net: pasemi: fix error return code in pasemi_mac_open()
    cxgb3: fix error return code in t3_sge_alloc_qset()
    net/x25: prevent a couple of overflows
    dpaa_eth: copy timestamp fields to new skb in A-050385 workaround
    net: ip6_gre: set dev->hard_header_len when using header_ops
    mt76: usb: fix crash on device removal
    iwlwifi: pcie: add some missing entries for AX210
    iwlwifi: pcie: invert values of NO_160 device config entries
    iwlwifi: pcie: add one missing entry for AX210
    ...

    Linus Torvalds
     

03 Dec, 2020

1 commit

  • …nel/git/rostedt/linux-trace

    Pull bootconfig fixes from Steven Rostedt:
    "Have bootconfig size and checksum be little endian

    In case the bootconfig is created on one kind of endian machine, and
    then read on the other kind of endian kernel, the size and checksum
    will be incorrect. Instead, have both the size and checksum always be
    little endian and have the tool and the kernel convert it from little
    endian to or from the host endian"

    * tag 'trace-v5.10-rc6-bootconfig' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace:
    docs: bootconfig: Add the endianness of fields
    tools/bootconfig: Store size and checksum in footer as le32
    bootconfig: Load size and checksum in the footer as le32

    Linus Torvalds
     

02 Dec, 2020

1 commit

  • Pull tracing fixes from Steven Rostedt:

    - Use correct timestamp variable for ring buffer write stamp update

    - Fix up before stamp and write stamp when crossing ring buffer sub
    buffers

    - Keep a zero delta in ring buffer in slow path if cmpxchg fails

    - Fix trace_printk static buffer for archs that care

    - Fix ftrace record accounting for ftrace ops with trampolines

    - Fix DYNAMIC_FTRACE_WITH_DIRECT_CALLS dependency

    - Remove WARN_ON in hwlat tracer that triggers on something that is OK

    - Make "my_tramp" trampoline in ftrace direct sample code global

    - Fixes in the bootconfig tool for better alignment management

    * tag 'trace-v5.10-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace:
    ring-buffer: Always check to put back before stamp when crossing pages
    ftrace: Fix DYNAMIC_FTRACE_WITH_DIRECT_CALLS dependency
    ftrace: Fix updating FTRACE_FL_TRAMP
    tracing: Fix alignment of static buffer
    tracing: Remove WARN_ON in start_thread()
    samples/ftrace: Mark my_tramp[12]? global
    ring-buffer: Set the right timestamp in the slow path of __rb_reserve_next()
    ring-buffer: Update write stamp with the correct ts
    docs: bootconfig: Update file format on initrd image
    tools/bootconfig: Align the bootconfig applied initrd image size to 4
    tools/bootconfig: Fix to check the write failure correctly
    tools/bootconfig: Fix errno reference after printf()

    Linus Torvalds
     

01 Dec, 2020

1 commit

  • Add a description about the endianness of the size and the checksum
    fields. Those must be stored as le32 instead of u32. This will allow
    us to apply bootconfig to the cross build initrd without caring
    the endianness.

    Link: https://lkml.kernel.org/r/160583936246.547349.10964204130590955409.stgit@devnote2

    Reported-by: Steven Rostedt
    Suggested-by: Linus Torvalds
    Signed-off-by: Masami Hiramatsu
    Signed-off-by: Steven Rostedt (VMware)

    Masami Hiramatsu
     

29 Nov, 2020

2 commits

  • GPIO_ACTIVE_x flags are not correct in the context of interrupt flags.
    These are simple defines so they could be used in DTS but they will not
    have the same meaning:
    1. GPIO_ACTIVE_HIGH = 0 = IRQ_TYPE_NONE
    2. GPIO_ACTIVE_LOW = 1 = IRQ_TYPE_EDGE_RISING

    Correct the interrupt flags, assuming the author of the code wanted same
    logical behavior behind the name "ACTIVE_xxx", this is:
    ACTIVE_LOW => IRQ_TYPE_LEVEL_LOW
    ACTIVE_HIGH => IRQ_TYPE_LEVEL_HIGH

    Fixes: a1a8b4594f8d ("NFC: pn544: i2c: Add DTS Documentation")
    Fixes: 6be88670fc59 ("NFC: nxp-nci_i2c: Add I2C support to NXP NCI driver")
    Fixes: e3b329221567 ("dt-bindings: can: tcan4x5x: Update binding to use interrupt property")
    Signed-off-by: Krzysztof Kozlowski
    Acked-by: Rob Herring
    Acked-by: Marc Kleine-Budde # for tcan4x5x.txt
    Link: https://lore.kernel.org/r/20201026153620.89268-1-krzk@kernel.org
    Signed-off-by: Jakub Kicinski

    Krzysztof Kozlowski
     
  • …masahiroy/linux-kbuild

    Pull Kbuild fixes from Masahiro Yamada:

    - Remove unused OBJSIZE variable.

    - Fix rootless deb-pkg build in a setgid directory.

    * tag 'kbuild-fixes-v5.10' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild:
    builddeb: Fix rootless build in setuid/setgid directory
    kbuild: remove unused OBJSIZE

    Linus Torvalds
     

28 Nov, 2020

2 commits

  • Pull networking fixes from Jakub Kicinski:
    "Networking fixes for 5.10-rc6, including fixes from the WiFi driver,
    and CAN subtrees.

    Current release - regressions:

    - gro_cells: reduce number of synchronize_net() calls

    - ch_ktls: release a lock before jumping to an error path

    Current release - always broken:

    - tcp: Allow full IP tos/IPv6 tclass to be reflected in L3 header

    Previous release - regressions:

    - net/tls: fix missing received data after fast remote close

    - vsock/virtio: discard packets only when socket is really closed

    - sock: set sk_err to ee_errno on dequeue from errq

    - cxgb4: fix the panic caused by non smac rewrite

    Previous release - always broken:

    - tcp: fix corner cases around setting ECN with BPF selection of
    congestion control

    - tcp: fix race condition when creating child sockets from syncookies
    on loopback interface

    - usbnet: ipheth: fix connectivity with iOS 14

    - tun: honor IOCB_NOWAIT flag

    - net/packet: fix packet receive on L3 devices without visible hard
    header

    - devlink: Make sure devlink instance and port are in same net
    namespace

    - net: openvswitch: fix TTL decrement action netlink message format

    - bonding: wait for sysfs kobject destruction before freeing struct
    slave

    - net: stmmac: fix upstream patch applied to the wrong context

    - bnxt_en: fix return value and unwind in probe error paths

    Misc:

    - devlink: add extra layer of categorization to the reload stats uAPI
    before it's released"

    * tag 'net-5.10-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net: (68 commits)
    sock: set sk_err to ee_errno on dequeue from errq
    mptcp: fix NULL ptr dereference on bad MPJ
    net: openvswitch: fix TTL decrement action netlink message format
    can: af_can: can_rx_unregister(): remove WARN() statement from list operation sanity check
    can: m_can: m_can_dev_setup(): add support for bosch mcan version 3.3.0
    can: m_can: fix nominal bitiming tseg2 min for version >= 3.1
    can: m_can: m_can_open(): remove IRQF_TRIGGER_FALLING from request_threaded_irq()'s flags
    can: mcp251xfd: mcp251xfd_probe(): bail out if no IRQ was given
    can: gs_usb: fix endianess problem with candleLight firmware
    ch_ktls: lock is not freed
    net/tls: Protect from calling tls_dev_del for TLS RX twice
    devlink: Make sure devlink instance and port are in same net namespace
    devlink: Hold rtnl lock while reading netdev attributes
    ptp: clockmatrix: bug fix for idtcm_strverscmp
    enetc: Let the hardware auto-advance the taprio base-time of 0
    gro_cells: reduce number of synchronize_net() calls
    net: stmmac: fix incorrect merge of patch upstream
    ipv6: addrlabel: fix possible memory leak in ip6addrlbl_net_init
    Documentation: netdev-FAQ: suggest how to post co-dependent series
    ibmvnic: enhance resetting status check during module exit
    ...

    Linus Torvalds
     
  • Pull virtual digital TV driver fixes from Mauro Carvalho Chehab:
    "A series of fixes for the new virtual digital TV driver (vidtv), which
    is meant to help doing tests with the digital TV core and media
    userspace apps and libraries.

    They cover a series of issues I found on it, together with a few new
    things in order to make it easier to detect problems at the DVB core"

    * tag 'media/v5.10-3' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media: (36 commits)
    media: vidtv.rst: add kernel-doc markups
    media: vidtv.rst: update vidtv documentation
    media: vidtv: simplify EIT write function
    media: vidtv: simplify NIT write function
    media: vidtv: simplify SDT write function
    media: vidtv: cleanup PMT write table function
    media: vidtv: cleanup PAT write function
    media: vidtv: cleanup PSI table header function
    media: vidtv: cleanup PSI descriptor write function
    media: vidtv: simplify the crc writing logic
    media: vidtv: simplify PSI write function
    media: vidtv: add date to the current event
    media: vidtv: fix service_id at SDT table
    media: vidtv: fix service type
    media: vidtv: add a PID entry for the NIT table
    media: vidtv: properly fill EIT service_id
    media: vidtv: fix the network ID range
    media: vidtv: improve EIT data
    media: vidtv: cleanup null packet initialization logic
    media: vidtv: pre-initialize mux arrays
    ...

    Linus Torvalds
     

27 Nov, 2020

1 commit


26 Nov, 2020

4 commits


25 Nov, 2020

1 commit


23 Nov, 2020

1 commit

  • Pull staging and IIO fixes from Greg KH:
    "Here are some small Staging and IIO driver fixes for 5.10-rc5. They
    include:

    - IIO fixes for reported regressions and problems

    - new device ids for IIO drivers

    - new device id for rtl8723bs driver

    - staging ralink driver Kconfig dependency fix

    - staging mt7621-pci bus resource fix

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

    * tag 'staging-5.10-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging:
    iio: accel: kxcjk1013: Add support for KIOX010A ACPI DSM for setting tablet-mode
    iio: accel: kxcjk1013: Replace is_smo8500_device with an acpi_type enum
    docs: ABI: testing: iio: stm32: remove re-introduced unsupported ABI
    iio: light: fix kconfig dependency bug for VCNL4035
    iio/adc: ingenic: Fix AUX/VBAT readings when touchscreen is used
    iio/adc: ingenic: Fix battery VREF for JZ4770 SoC
    staging: rtl8723bs: Add 024c:0627 to the list of SDIO device-ids
    staging: ralink-gdma: fix kconfig dependency bug for DMA_RALINK
    staging: mt7621-pci: avoid to request pci bus resources
    iio: imu: st_lsm6dsx: set 10ms as min shub slave timeout
    counter/ti-eqep: Fix regmap max_register
    iio: adc: stm32-adc: fix a regression when using dma and irq
    iio: adc: mediatek: fix unset field
    iio: cros_ec: Use default frequencies when EC returns invalid information

    Linus Torvalds
     

21 Nov, 2020

1 commit

  • Pull sound fixes from Takashi Iwai:
    "A collection of small fixes: the only core change is a minor error
    code handling in the control API, and all the rest are device-specific
    fixes, mostly quirks, fixups and ASoC Intel fixes.

    It looks boring, and good so"

    * tag 'sound-5.10-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound:
    ALSA: mixart: Fix mutex deadlock
    ALSA: hda/ca0132: Fix compile warning without PCI
    ASOC: Intel: kbl_rt5663_rt5514_max98927: Do not try to disable disabled clock
    ALSA: usb-audio: Add delay quirk for all Logitech USB devices
    ASoC: Intel: catpt: Correct clock selection for dai trigger
    ASoC: Intel: catpt: Skip position update for unprepared streams
    ASoC: qcom: lpass-platform: Fix memory leak
    ASoC: Intel: KMB: Fix S24_LE configuration
    ALSA: hda: Add Alderlake-S PCI ID and HDMI codec vid
    ALSA: usb-audio: Use ALC1220-VB-DT mapping for ASUS ROG Strix TRX40 mobo
    ALSA: firewire: Clean up a locking issue in copy_resp_to_buf()
    ASoC: rt1015: increase the time to detect BCLK
    ALSA: ctl: fix error path at adding user-defined element set
    ALSA: hda/realtek - HP Headset Mic can't detect after boot
    ALSA: hda/realtek - Add supported mute Led for HP
    ALSA: hda/realtek: Add some Clove SSID in the ALC293(ALC1220)
    ALSA: hda/realtek - Add supported for Lenovo ThinkPad Headset Button
    ASoC: rt1015: add delay to fix pop noise from speaker

    Linus Torvalds
     

20 Nov, 2020

2 commits

  • Pull powerpc fixes from Michael Ellerman:
    "Fixes for CVE-2020-4788.

    From Daniel's cover letter:

    IBM Power9 processors can speculatively operate on data in the L1
    cache before it has been completely validated, via a way-prediction
    mechanism. It is not possible for an attacker to determine the
    contents of impermissible memory using this method, since these
    systems implement a combination of hardware and software security
    measures to prevent scenarios where protected data could be leaked.

    However these measures don't address the scenario where an attacker
    induces the operating system to speculatively execute instructions
    using data that the attacker controls. This can be used for example to
    speculatively bypass "kernel user access prevention" techniques, as
    discovered by Anthony Steinhauser of Google's Safeside Project. This
    is not an attack by itself, but there is a possibility it could be
    used in conjunction with side-channels or other weaknesses in the
    privileged code to construct an attack.

    This issue can be mitigated by flushing the L1 cache between privilege
    boundaries of concern.

    This patch series flushes the L1 cache on kernel entry (patch 2) and
    after the kernel performs any user accesses (patch 3). It also adds a
    self-test and performs some related cleanups"

    * tag 'powerpc-cve-2020-4788' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux:
    powerpc/64s: rename pnv|pseries_setup_rfi_flush to _setup_security_mitigations
    selftests/powerpc: refactor entry and rfi_flush tests
    selftests/powerpc: entry flush test
    powerpc: Only include kup-radix.h for 64-bit Book3S
    powerpc/64s: flush L1D after user accesses
    powerpc/64s: flush L1D on kernel entry
    selftests/powerpc: rfi_flush: disable entry flush if present

    Linus Torvalds
     
  • Pull xtensa fixes from Max Filippov:

    - fix placement of cache alias remapping area

    - disable preemption around cache alias management calls

    - add missing __user annotation to strncpy_from_user argument

    * tag 'xtensa-20201119' of git://github.com/jcmvbkbc/linux-xtensa:
    xtensa: uaccess: Add missing __user to strncpy_from_user() prototype
    xtensa: disable preemption around cache alias management calls
    xtensa: fix TLBTEMP area placement

    Linus Torvalds
     

19 Nov, 2020

5 commits

  • The RaspberryPi4 has both a WiFi chip and HDMI outputs capable of doing
    4k. Unfortunately, the 1440p resolution at 60Hz has a TMDS rate on the
    HDMI cable right in the middle of the first Wifi channel.

    Add a property to our HDMI controller, that could be reused by other
    similar HDMI controllers, to allow the OS to take whatever measure is
    necessary to avoid that crosstalk.

    Signed-off-by: Maxime Ripard
    Reviewed-by: Nicolas Saenz Julienne
    Reviewed-by: Rob Herring
    Link: https://patchwork.freedesktop.org/patch/msgid/20201029134018.1948636-1-maxime@cerno.tech

    Maxime Ripard
     
  • To align the total file size, add padding null character when appending
    the bootconfig to initrd image.

    Link: https://lkml.kernel.org/r/160576522916.320071.4145530996151028855.stgit@devnote2

    Signed-off-by: Masami Hiramatsu
    Signed-off-by: Steven Rostedt (VMware)

    Masami Hiramatsu
     
  • IBM Power9 processors can speculatively operate on data in the L1 cache
    before it has been completely validated, via a way-prediction mechanism. It
    is not possible for an attacker to determine the contents of impermissible
    memory using this method, since these systems implement a combination of
    hardware and software security measures to prevent scenarios where
    protected data could be leaked.

    However these measures don't address the scenario where an attacker induces
    the operating system to speculatively execute instructions using data that
    the attacker controls. This can be used for example to speculatively bypass
    "kernel user access prevention" techniques, as discovered by Anthony
    Steinhauser of Google's Safeside Project. This is not an attack by itself,
    but there is a possibility it could be used in conjunction with
    side-channels or other weaknesses in the privileged code to construct an
    attack.

    This issue can be mitigated by flushing the L1 cache between privilege
    boundaries of concern. This patch flushes the L1 cache after user accesses.

    This is part of the fix for CVE-2020-4788.

    Signed-off-by: Nicholas Piggin
    Signed-off-by: Daniel Axtens
    Signed-off-by: Michael Ellerman

    Nicholas Piggin
     
  • IBM Power9 processors can speculatively operate on data in the L1 cache
    before it has been completely validated, via a way-prediction mechanism. It
    is not possible for an attacker to determine the contents of impermissible
    memory using this method, since these systems implement a combination of
    hardware and software security measures to prevent scenarios where
    protected data could be leaked.

    However these measures don't address the scenario where an attacker induces
    the operating system to speculatively execute instructions using data that
    the attacker controls. This can be used for example to speculatively bypass
    "kernel user access prevention" techniques, as discovered by Anthony
    Steinhauser of Google's Safeside Project. This is not an attack by itself,
    but there is a possibility it could be used in conjunction with
    side-channels or other weaknesses in the privileged code to construct an
    attack.

    This issue can be mitigated by flushing the L1 cache between privilege
    boundaries of concern. This patch flushes the L1 cache on kernel entry.

    This is part of the fix for CVE-2020-4788.

    Signed-off-by: Nicholas Piggin
    Signed-off-by: Daniel Axtens
    Signed-off-by: Michael Ellerman

    Nicholas Piggin
     
  • …/linux/kernel/git/shuah/linux-kselftest

    Pull Kunit fixes from Shuah Khan:
    "Several fixes to Kunit documentation and tools, and to not pollute
    the source directory.

    Also remove the incorrect kunit .gitattributes file"

    * tag 'linux-kselftest-kunit-fixes-5.10-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest:
    kunit: fix display of failed expectations for strings
    kunit: tool: fix extra trailing \n in raw + parsed test output
    kunit: tool: print out stderr from make (like build warnings)
    KUnit: Docs: usage: wording fixes
    KUnit: Docs: style: fix some Kconfig example issues
    KUnit: Docs: fix a wording typo
    kunit: Do not pollute source directory with generated files (test.log)
    kunit: Do not pollute source directory with generated files (.kunitconfig)
    kunit: tool: fix pre-existing python type annotation errors
    kunit: Fix kunit.py parse subcommand (use null build_dir)
    kunit: tool: unmark test_data as binary blobs

    Linus Torvalds
     

16 Nov, 2020

1 commit

  • fast_second_level_miss handler for the TLBTEMP area has an assumption
    that page table directory entry for the TLBTEMP address range is 0. For
    it to be true the TLBTEMP area must be aligned to 4MB boundary and not
    share its 4MB region with anything that may use a page table. This is
    not true currently: TLBTEMP shares space with vmalloc space which
    results in the following kinds of runtime errors when
    fast_second_level_miss loads page table directory entry for the vmalloc
    space instead of fixing up the TLBTEMP area:

    Unable to handle kernel paging request at virtual address c7ff0e00
    pc = d0009275, ra = 90009478
    Oops: sig: 9 [#1] PREEMPT
    CPU: 1 PID: 61 Comm: kworker/u9:2 Not tainted 5.10.0-rc3-next-20201110-00007-g1fe4962fa983-dirty #58
    Workqueue: xprtiod xs_stream_data_receive_workfn
    a00: 90009478 d11e1dc0 c7ff0e00 00000020 c7ff0000 00000001 7f8b8107 00000000
    a08: 900c5992 d11e1d90 d0cc88b8 5506e97c 00000000 5506e97c d06c8074 d11e1d90
    pc: d0009275, ps: 00060310, depc: 00000014, excvaddr: c7ff0e00
    lbeg: d0009275, lend: d0009287 lcount: 00000003, sar: 00000010
    Call Trace:
    xs_stream_data_receive_workfn+0x43c/0x770
    process_one_work+0x1a1/0x324
    worker_thread+0x1cc/0x3c0
    kthread+0x10d/0x124
    ret_from_kernel_thread+0xc/0x18

    Cc: stable@vger.kernel.org
    Signed-off-by: Max Filippov

    Max Filippov
     

14 Nov, 2020

1 commit


13 Nov, 2020

5 commits

  • Remove unsupported ABI that has been re-introduced due to a rebase hunk.
    This ABI has been moved in the past in commit b299d00420e2
    ("IIO: stm32: Remove quadrature related functions from trigger driver")

    This also fixes a couple of warnings seen with:
    ./scripts/get_abi.pl validate 2>&1|grep iio

    Fixes: 34433332841d ("docs: ABI: testing: make the files compatible with ReST output")
    Acked-by: Jonathan Cameron
    Signed-off-by: Fabrice Gasnier
    Link: https://lore.kernel.org/r/1604685016-2434-1-git-send-email-fabrice.gasnier@st.com
    Signed-off-by: Greg Kroah-Hartman

    Fabrice Gasnier
     
  • Since commit:

    0e030a373df3 ("can: flexcan: fix endianess detection")

    the fsl,imx53-flexcan isn't compatible with the fsl,p1010-flexcan any more. As
    the former accesses the IP core in Little Endian mode and the latter uses Big
    Endian mode.

    With the conversion of the flexcan DT bindings to yaml, the dt_binding_check
    this throws the following error:

    Documentation/devicetree/bindings/clock/imx5-clock.example.dt.yaml: can@53fc8000: compatible: 'oneOf' conditional failed, one must be fixed:
    ['fsl,imx53-flexcan', 'fsl,p1010-flexcan'] is too long
    Additional items are not allowed ('fsl,p1010-flexcan' was unexpected)
    'fsl,imx53-flexcan' is not one of ['fsl,imx7d-flexcan', 'fsl,imx6ul-flexcan', 'fsl,imx6sx-flexcan']
    'fsl,imx53-flexcan' is not one of ['fsl,ls1028ar1-flexcan']
    'fsl,imx6q-flexcan' was expected
    'fsl,lx2160ar1-flexcan' was expected
    From schema: /builds/robherring/linux-dt-bindings/Documentation/devicetree/bindings/net/can/fsl,flexcan.yaml

    The error is fixed by replacing the "fsl,p1010-flexcan" compatible
    (which turned out the be incompatible) with "fsl,imx25-flexcan" in the
    binding example.

    Reported-by: Rob Herring
    Cc: Fabio Estevam
    Signed-off-by: Marc Kleine-Budde
    Link: https://lore.kernel.org/r/20201111213548.1621094-1-mkl@pengutronix.de
    [robh: Add "fsl,imx25-flexcan" as fallback]
    Signed-off-by: Rob Herring

    Marc Kleine-Budde
     
  • As both the i.MX35 and i.MX53 flexcan IP cores are compatible to the i.MX25,
    they are listed as:

    compatible = "fsl,imx35-flexcan", "fsl,imx25-flexcan";

    and:

    compatible = "fsl,imx53-flexcan", "fsl,imx25-flexcan";

    in the SoC device trees.

    This patch fixes the following errors, which shows up during a dtbs_check:

    arch/arm/boot/dts/imx53-ard.dt.yaml: can@53fc8000: compatible: 'oneOf' conditional failed, one must be fixed:
    ['fsl,imx53-flexcan', 'fsl,imx25-flexcan'] is too long
    Additional items are not allowed ('fsl,imx25-flexcan' was unexpected)
    'fsl,imx53-flexcan' is not one of ['fsl,imx7d-flexcan', 'fsl,imx6ul-flexcan', 'fsl,imx6sx-flexcan']
    'fsl,imx53-flexcan' is not one of ['fsl,ls1028ar1-flexcan']
    'fsl,imx6q-flexcan' was expected
    'fsl,lx2160ar1-flexcan' was expected
    From schema: Documentation/devicetree/bindings/net/can/fsl,flexcan.yaml

    Fixes: e5ab9aa7e49b ("dt-bindings: can: flexcan: convert fsl,*flexcan bindings to yaml")
    Reported-by: Rob Herring
    Cc: Oleksij Rempel
    Signed-off-by: Marc Kleine-Budde
    Link: https://lore.kernel.org/r/20201111130507.1560881-4-mkl@pengutronix.de
    [robh: drop singular fsl,imx53-flexcan and fsl,imx35-flexcan]
    Signed-off-by: Rob Herring

    Marc Kleine-Budde
     
  • Pull networking fixes from Jakub Kicinski:
    "Current release - regressions:

    - arm64: dts: fsl-ls1028a-kontron-sl28: specify in-band mode for
    ENETC

    Current release - bugs in new features:

    - mptcp: provide rmem[0] limit offset to fix oops

    Previous release - regressions:

    - IPv6: Set SIT tunnel hard_header_len to zero to fix path MTU
    calculations

    - lan743x: correctly handle chips with internal PHY

    - bpf: Don't rely on GCC __attribute__((optimize)) to disable GCSE

    - mlx5e: Fix VXLAN port table synchronization after function reload

    Previous release - always broken:

    - bpf: Zero-fill re-used per-cpu map element

    - fix out-of-order UDP packets when forwarding with UDP GSO fraglists
    turned on:
    - fix UDP header access on Fast/frag0 UDP GRO
    - fix IP header access and skb lookup on Fast/frag0 UDP GRO

    - ethtool: netlink: add missing netdev_features_change() call

    - net: Update window_clamp if SOCK_RCVBUF is set

    - igc: Fix returning wrong statistics

    - ch_ktls: fix multiple leaks and corner cases in Chelsio TLS offload

    - tunnels: Fix off-by-one in lower MTU bounds for ICMP/ICMPv6 replies

    - r8169: disable hw csum for short packets on all chip versions

    - vrf: Fix fast path output packet handling with async Netfilter
    rules"

    * tag 'net-5.10-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net: (65 commits)
    lan743x: fix use of uninitialized variable
    net: udp: fix IP header access and skb lookup on Fast/frag0 UDP GRO
    net: udp: fix UDP header access on Fast/frag0 UDP GRO
    devlink: Avoid overwriting port attributes of registered port
    vrf: Fix fast path output packet handling with async Netfilter rules
    cosa: Add missing kfree in error path of cosa_write
    net: switch to the kernel.org patchwork instance
    ch_ktls: stop the txq if reaches threshold
    ch_ktls: tcb update fails sometimes
    ch_ktls/cxgb4: handle partial tag alone SKBs
    ch_ktls: don't free skb before sending FIN
    ch_ktls: packet handling prior to start marker
    ch_ktls: Correction in middle record handling
    ch_ktls: missing handling of header alone
    ch_ktls: Correction in trimmed_len calculation
    cxgb4/ch_ktls: creating skbs causes panic
    ch_ktls: Update cheksum information
    ch_ktls: Correction in finding correct length
    cxgb4/ch_ktls: decrypted bit is not enough
    net/x25: Fix null-ptr-deref in x25_connect
    ...

    Linus Torvalds
     
  • Pull ACPI fixes from Rafael Wysocki:
    "These are mostly docmentation fixes and janitorial changes plus some
    new device IDs and a new quirk.

    Specifics:

    - Fix documentation regarding GPIO properties (Andy Shevchenko)

    - Fix spelling mistakes in ACPI documentation (Flavio Suligoi)

    - Fix white space inconsistencies in ACPI code (Maximilian Luz)

    - Fix string formatting in the ACPI Generic Event Device (GED) driver
    (Nick Desaulniers)

    - Add Intel Alder Lake device IDs to the ACPI drivers used by the
    Dynamic Platform and Thermal Framework (Srinivas Pandruvada)

    - Add lid-related DMI quirk for Medion Akoya E2228T to the ACPI
    button driver (Hans de Goede)"

    * tag 'acpi-5.10-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
    ACPI: DPTF: Support Alder Lake
    Documentation: ACPI: fix spelling mistakes
    ACPI: button: Add DMI quirk for Medion Akoya E2228T
    ACPI: GED: fix -Wformat
    ACPI: Fix whitespace inconsistencies
    ACPI: scan: Fix acpi_dma_configure_id() kerneldoc name
    Documentation: firmware-guide: gpio-properties: Clarify initial output state
    Documentation: firmware-guide: gpio-properties: active_low only for GpioIo()
    Documentation: firmware-guide: gpio-properties: Fix factual mistakes

    Linus Torvalds
     

12 Nov, 2020

2 commits

  • Move to the kernel.org patchwork instance, it has significantly
    lower latency for accessing from Europe and the US. Other quirks
    include the reply bot.

    Link: https://lore.kernel.org/r/20201110035120.642746-1-kuba@kernel.org
    Signed-off-by: Jakub Kicinski

    Jakub Kicinski
     
  • The fsl,stop-mode property is a phandle-array and should consist of one phandle
    and two 32 bit integers, e.g.:

    fsl,stop-mode = ;

    This patch fixes the following errors, which shows up during a dtbs_check:

    arch/arm/boot/dts/imx6dl-apf6dev.dt.yaml: can@2090000: fsl,stop-mode: [[1, 52, 28]] is too short
    From schema: Documentation/devicetree/bindings/net/can/fsl,flexcan.yaml

    Fixes: e5ab9aa7e49b ("dt-bindings: can: flexcan: convert fsl,*flexcan bindings to yaml")
    Reported-by: Rob Herring
    Cc: Oleksij Rempel
    Signed-off-by: Marc Kleine-Budde
    Link: https://lore.kernel.org/r/20201111130507.1560881-5-mkl@pengutronix.de
    Signed-off-by: Rob Herring

    Marc Kleine-Budde
     

11 Nov, 2020

4 commits

  • Fix minor grammar and punctutation glitches.
    Hyphenate "architecture-specific" instances.

    Signed-off-by: Randy Dunlap
    Cc: David Gow
    Cc: linux-kselftest@vger.kernel.org
    Cc: kunit-dev@googlegroups.com
    Cc: Shuah Khan
    Cc: Shuah Khan
    Cc: Brendan Higgins
    Reviewed-by: David Gow
    Signed-off-by: Shuah Khan

    Randy Dunlap
     
  • Fix the Kconfig example to be closer to Kconfig coding style.

    Also add punctuation and a trailing slash ('/') to a sub-directory
    name -- this is how the text mostly appears in other Kconfig files.

    Signed-off-by: Randy Dunlap
    Cc: David Gow
    Cc: linux-kselftest@vger.kernel.org
    Cc: kunit-dev@googlegroups.com
    Cc: Shuah Khan
    Cc: Shuah Khan
    Cc: Brendan Higgins
    Reviewed-by: David Gow
    Signed-off-by: Shuah Khan

    Randy Dunlap
     
  • Fix a wording typo (keyboard glitch).

    Signed-off-by: Randy Dunlap
    Cc: David Gow
    Cc: linux-kselftest@vger.kernel.org
    Cc: kunit-dev@googlegroups.com
    Cc: Shuah Khan
    Cc: Shuah Khan
    Cc: Brendan Higgins
    Reviewed-by: David Gow
    Signed-off-by: Shuah Khan

    Randy Dunlap
     
  • Signed-off-by: Flavio Suligoi
    Signed-off-by: Rafael J. Wysocki

    Flavio Suligoi