Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Khadas vims 4.9.y #15

Open
wants to merge 10,000 commits into
base: khadas-vims-nougat
Choose a base branch
from
Open

Khadas vims 4.9.y #15

wants to merge 10,000 commits into from
This pull request is big! We’re only showing the most recent 250 commits.

Commits on Oct 29, 2020

  1. cifs: remove bogus debug code

    commit d367cb9 upstream.
    
    The "end" pointer is either NULL or it points to the next byte to parse.
    If there isn't a next byte then dereferencing "end" is an off-by-one out
    of bounds error.  And, of course, if it's NULL that leads to an Oops.
    Printing "*end" doesn't seem very useful so let's delete this code.
    
    Also for the last debug statement, I noticed that it should be printing
    "sequence_end" instead of "end" so fix that as well.
    
    Reported-by: Dominik Maier <[email protected]>
    Signed-off-by: Dan Carpenter <[email protected]>
    Signed-off-by: Steve French <[email protected]>
    Signed-off-by: Greg Kroah-Hartman <[email protected]>
    Dan Carpenter authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    f379026 View commit details
    Browse the repository at this point in the history
  2. KVM: x86/mmu: Commit zap of remaining invalid pages when recovering l…

    …pages
    
    commit e895056 upstream.
    
    Call kvm_mmu_commit_zap_page() after exiting the "prepare zap" loop in
    kvm_recover_nx_lpages() to finish zapping pages in the unlikely event
    that the loop exited due to lpage_disallowed_mmu_pages being empty.
    Because the recovery thread drops mmu_lock() when rescheduling, it's
    possible that lpage_disallowed_mmu_pages could be emptied by a different
    thread without to_zap reaching zero despite to_zap being derived from
    the number of disallowed lpages.
    
    Fixes: 1aa9b95 ("kvm: x86: mmu: Recovery of shattered NX large pages")
    Cc: Junaid Shahid <[email protected]>
    Cc: [email protected]
    Signed-off-by: Sean Christopherson <[email protected]>
    Message-Id: <[email protected]>
    Signed-off-by: Paolo Bonzini <[email protected]>
    Signed-off-by: Greg Kroah-Hartman <[email protected]>
    Sean Christopherson authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    6049f7d View commit details
    Browse the repository at this point in the history
  3. ima: Don't ignore errors from crypto_shash_update()

    commit 60386b8 upstream.
    
    Errors returned by crypto_shash_update() are not checked in
    ima_calc_boot_aggregate_tfm() and thus can be overwritten at the next
    iteration of the loop. This patch adds a check after calling
    crypto_shash_update() and returns immediately if the result is not zero.
    
    Cc: [email protected]
    Fixes: 3323eec ("integrity: IMA as an integrity service provider")
    Signed-off-by: Roberto Sassu <[email protected]>
    Signed-off-by: Mimi Zohar <[email protected]>
    Signed-off-by: Greg Kroah-Hartman <[email protected]>
    robertosassu authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    ff0ad9d View commit details
    Browse the repository at this point in the history
  4. crypto: algif_aead - Do not set MAY_BACKLOG on the async path

    commit cbdad1f upstream.
    
    The async path cannot use MAY_BACKLOG because it is not meant to
    block, which is what MAY_BACKLOG does.  On the other hand, both
    the sync and async paths can make use of MAY_SLEEP.
    
    Fixes: 83094e5 ("crypto: af_alg - add async support to...")
    Cc: <[email protected]>
    Signed-off-by: Herbert Xu <[email protected]>
    Signed-off-by: Greg Kroah-Hartman <[email protected]>
    herbertx authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    f46af0e View commit details
    Browse the repository at this point in the history
  5. EDAC/i5100: Fix error handling order in i5100_init_one()

    [ Upstream commit 857a313 ]
    
    When pci_get_device_func() fails, the driver doesn't need to execute
    pci_dev_put(). mci should still be freed, though, to prevent a memory
    leak. When pci_enable_device() fails, the error injection PCI device
    "einj" doesn't need to be disabled either.
    
     [ bp: Massage commit message, rename label to "bail_mc_free". ]
    
    Fixes: 52608ba ("i5100_edac: probe for device 19 function 0")
    Signed-off-by: Dinghao Liu <[email protected]>
    Signed-off-by: Borislav Petkov <[email protected]>
    Link: https://lkml.kernel.org/r/[email protected]
    Signed-off-by: Sasha Levin <[email protected]>
    dinghaoliu authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    d463e4b View commit details
    Browse the repository at this point in the history
  6. crypto: ixp4xx - Fix the size used in a 'dma_free_coherent()' call

    [ Upstream commit f7ade9a ]
    
    Update the size used in 'dma_free_coherent()' in order to match the one
    used in the corresponding 'dma_alloc_coherent()', in 'setup_crypt_desc()'.
    
    Fixes: 81bef01 ("crypto: ixp4xx - Hardware crypto support for IXP4xx CPUs")
    Signed-off-by: Christophe JAILLET <[email protected]>
    Signed-off-by: Herbert Xu <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>
    tititiou36 authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    fb6fe0e View commit details
    Browse the repository at this point in the history
  7. media: Revert "media: exynos4-is: Add missed check for pinctrl_lookup…

    …_state()"
    
    [ Upstream commit 00d21f3 ]
    
    The "idle" pinctrl state is optional as documented in the DT binding.
    The change introduced by the commit being reverted makes that pinctrl state
    mandatory and breaks initialization of the whole media driver, since the
    "idle" state is not specified in any mainline dts.
    
    This reverts commit 18ffec7 ("media: exynos4-is: Add missed check for pinctrl_lookup_state()")
    to fix the regression.
    
    Fixes: 18ffec7 ("media: exynos4-is: Add missed check for pinctrl_lookup_state()")
    Signed-off-by: Sylwester Nawrocki <[email protected]>
    Signed-off-by: Hans Verkuil <[email protected]>
    Signed-off-by: Mauro Carvalho Chehab <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>
    Sylwester Nawrocki authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    8e3f751 View commit details
    Browse the repository at this point in the history
  8. media: m5mols: Check function pointer in m5mols_sensor_power

    [ Upstream commit 52438c4 ]
    
    clang static analysis reports this error
    
    m5mols_core.c:767:4: warning: Called function pointer
      is null (null dereference) [core.CallAndMessage]
        info->set_power(&client->dev, 0);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    In other places, the set_power ptr is checked.
    So add a check.
    
    Fixes: bc12510 ("[media] Add support for M-5MOLS 8 Mega Pixel camera ISP")
    Signed-off-by: Tom Rix <[email protected]>
    Signed-off-by: Sakari Ailus <[email protected]>
    Signed-off-by: Mauro Carvalho Chehab <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>
    Tom Rix authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    55d6b85 View commit details
    Browse the repository at this point in the history
  9. media: omap3isp: Fix memleak in isp_probe

    [ Upstream commit d8fc21c ]
    
    When devm_ioremap_resource() fails, isp should be
    freed just like other error paths in isp_probe.
    
    Fixes: 8644cdf ("[media] omap3isp: Replace many MMIO regions by two")
    Signed-off-by: Dinghao Liu <[email protected]>
    Signed-off-by: Sakari Ailus <[email protected]>
    Signed-off-by: Mauro Carvalho Chehab <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>
    dinghaoliu authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    3ff3459 View commit details
    Browse the repository at this point in the history
  10. crypto: omap-sham - fix digcnt register handling with export/import

    [ Upstream commit 3faf757 ]
    
    Running export/import for hashes in peculiar order (mostly done by
    openssl) can mess up the internal book keeping of the OMAP SHA core.
    Fix by forcibly writing the correct DIGCNT back to hardware. This issue
    was noticed while transitioning to openssl 1.1 support.
    
    Fixes: 0d373d6 ("crypto: omap-sham - Add OMAP4/AM33XX SHAM Support")
    Signed-off-by: Tero Kristo <[email protected]>
    Signed-off-by: Herbert Xu <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>
    Tero Kristo authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    a966fde View commit details
    Browse the repository at this point in the history
  11. media: tc358743: initialize variable

    [ Upstream commit 274cf92 ]
    
    clang static analysis flags this error
    
    tc358743.c:1468:9: warning: Branch condition evaluates
      to a garbage value
            return handled ? IRQ_HANDLED : IRQ_NONE;
                   ^~~~~~~
    handled should be initialized to false.
    
    Fixes: d747b80 ("[media] tc358743: add direct interrupt handling")
    Signed-off-by: Tom Rix <[email protected]>
    Signed-off-by: Hans Verkuil <[email protected]>
    Signed-off-by: Mauro Carvalho Chehab <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>
    Tom Rix authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    59409de View commit details
    Browse the repository at this point in the history
  12. media: platform: fcp: Fix a reference count leak.

    [ Upstream commit 63e36a3 ]
    
    pm_runtime_get_sync() increments the runtime PM usage counter even
    when it returns an error code, causing incorrect ref count if
    pm_runtime_put_noidle() is not called in error handling paths.
    Thus call pm_runtime_put_noidle() if pm_runtime_get_sync() fails.
    
    Fixes: 6eaafbd ("[media] v4l: rcar-fcp: Keep the coding style consistent")
    Signed-off-by: Qiushi Wu <[email protected]>
    Signed-off-by: Hans Verkuil <[email protected]>
    Signed-off-by: Mauro Carvalho Chehab <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>
    QiushiWu authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    3af1815 View commit details
    Browse the repository at this point in the history
  13. media: ti-vpe: Fix a missing check and reference count leak

    [ Upstream commit 7dae2aa ]
    
    pm_runtime_get_sync() increments the runtime PM usage counter even
    when it returns an error code, causing incorrect ref count if
    pm_runtime_put_noidle() is not called in error handling paths.
    And also, when the call of function vpe_runtime_get() failed,
    we won't call vpe_runtime_put().
    Thus call pm_runtime_put_noidle() if pm_runtime_get_sync() fails
    inside vpe_runtime_get().
    
    Fixes: 4571912 ("[media] v4l: ti-vpe: Add VPE mem to mem driver")
    Signed-off-by: Qiushi Wu <[email protected]>
    Signed-off-by: Hans Verkuil <[email protected]>
    Signed-off-by: Mauro Carvalho Chehab <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>
    QiushiWu authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    c772cb1 View commit details
    Browse the repository at this point in the history
  14. regulator: resolve supply after creating regulator

    [ Upstream commit aea6cb9 ]
    
    When creating a new regulator its supply cannot create the sysfs link
    because the device is not yet published. Remove early supply resolving
    since it will be done later anyway. This makes the following error
    disappear and the symlinks get created instead.
    
      DCDC_REG1: supplied by VSYS
      VSYS: could not add device link regulator.3 err -2
    
    Note: It doesn't fix the problem for bypassed regulators, though.
    
    Fixes: 45389c4 ("regulator: core: Add early supply resolution for regulators")
    Signed-off-by: Michał Mirosław <[email protected]>
    Link: https://lore.kernel.org/r/ba09e0a8617ffeeb25cb4affffe6f3149319cef8.1601155770.git.mirq-linux@rere.qmqm.pl
    Signed-off-by: Mark Brown <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>
    osctobe authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    1d58235 View commit details
    Browse the repository at this point in the history
  15. ath10k: provide survey info as accumulated data

    [ Upstream commit 720e5c0 ]
    
    It is expected that the returned counters by .get_survey are monotonic
    increasing. But the data from ath10k gets reset to zero regularly. Channel
    active/busy time are then showing incorrect values (less than previous or
    sometimes zero) for the currently active channel during successive survey
    dump commands.
    
    example:
    
      $ iw dev wlan0 survey dump
      Survey data from wlan0
      	frequency:                      5180 MHz [in use]
      	channel active time:            54995 ms
      	channel busy time:              432 ms
      	channel receive time:           0 ms
      	channel transmit time:          59 ms
      ...
    
      $ iw dev wlan0 survey dump
      Survey data from wlan0
      	frequency:                      5180 MHz [in use]
      	channel active time:            32592 ms
      	channel busy time:              254 ms
      	channel receive time:           0 ms
      	channel transmit time:          0 ms
      ...
    
    The correct way to handle this is to use the non-clearing
    WMI_BSS_SURVEY_REQ_TYPE_READ wmi_bss_survey_req_type. The firmware will
    then accumulate the survey data and handle wrap arounds.
    
    Tested-on: QCA9984 hw1.0 10.4-3.5.3-00057
    Tested-on: QCA988X hw2.0 10.2.4-1.0-00047
    Tested-on: QCA9888 hw2.0 10.4-3.9.0.2-00024
    Tested-on: QCA4019 hw1.0 10.4-3.6-00140
    
    Fixes: fa7937e ("ath10k: update bss channel survey information")
    Signed-off-by: Venkateswara Naralasetty <[email protected]>
    Tested-by: Markus Theil <[email protected]>
    Tested-by: John Deere <[email protected]>
    [[email protected]: adjust commit message]
    Signed-off-by: Sven Eckelmann <[email protected]>
    Signed-off-by: Kalle Valo <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Sasha Levin <[email protected]>
    Venkateswara Naralasetty authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    ddfa081 View commit details
    Browse the repository at this point in the history
  16. ath6kl: prevent potential array overflow in ath6kl_add_new_sta()

    [ Upstream commit 54f9ab7 ]
    
    The value for "aid" comes from skb->data so Smatch marks it as
    untrusted.  If it's invalid then it can result in an out of bounds array
    access in ath6kl_add_new_sta().
    
    Fixes: 572e27c ("ath6kl: Fix AP mode connect event parsing and TIM updates")
    Signed-off-by: Dan Carpenter <[email protected]>
    Signed-off-by: Kalle Valo <[email protected]>
    Link: https://lore.kernel.org/r/20200813141315.GB457408@mwanda
    Signed-off-by: Sasha Levin <[email protected]>
    Dan Carpenter authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    f4731aa View commit details
    Browse the repository at this point in the history
  17. ath9k: Fix potential out of bounds in ath9k_htc_txcompletion_cb()

    [ Upstream commit 2705cd7 ]
    
    The value of "htc_hdr->endpoint_id" comes from skb->data so Smatch marks
    it as untrusted so we have to check it before using it as an array
    offset.
    
    This is similar to a bug that syzkaller found in commit e4ff08a
    ("ath9k: Fix use-after-free Write in ath9k_htc_rx_msg") so it is
    probably a real issue.
    
    Fixes: fb9987d ("ath9k_htc: Support for AR9271 chipset.")
    Signed-off-by: Dan Carpenter <[email protected]>
    Signed-off-by: Kalle Valo <[email protected]>
    Link: https://lore.kernel.org/r/20200813141253.GA457408@mwanda
    Signed-off-by: Sasha Levin <[email protected]>
    Dan Carpenter authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    b692da1 View commit details
    Browse the repository at this point in the history
  18. wcn36xx: Fix reported 802.11n rx_highest rate wcn3660/wcn3680

    [ Upstream commit 3b9fb67 ]
    
    Qualcomm's document "80-WL007-1 Rev. J" states that the highest rx rate for
    the WCN3660 and WCN3680 on MCS 7 is 150 Mbps not the 72 Mbps stated here.
    
    This patch fixes the data-rate declared in the 5GHz table.
    
    Fixes: 8e84c25 ("wcn36xx: mac80211 driver for Qualcomm WCN3660/WCN3680
    hardware")
    
    Signed-off-by: Bryan O'Donoghue <[email protected]>
    Signed-off-by: Kalle Valo <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Sasha Levin <[email protected]>
    0xB0D authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    f1eab39 View commit details
    Browse the repository at this point in the history
  19. ASoC: qcom: lpass-platform: fix memory leak

    [ Upstream commit 5fd1882 ]
    
    lpass_pcm_data is never freed. Free it in close
    ops to avoid memory leak.
    
    Fixes: 022d00e ("ASoC: lpass-platform: Fix broken pcm data usage")
    Signed-off-by: Rohit kumar <[email protected]>
    Reviewed-by: Srinivas Kandagatla <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Mark Brown <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>
    rohkkumar authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    f9745e6 View commit details
    Browse the repository at this point in the history
  20. mwifiex: Do not use GFP_KERNEL in atomic context

    [ Upstream commit d2ab7f0 ]
    
    A possible call chain is as follow:
      mwifiex_sdio_interrupt                            (sdio.c)
        --> mwifiex_main_process                        (main.c)
          --> mwifiex_process_cmdresp                   (cmdevt.c)
            --> mwifiex_process_sta_cmdresp             (sta_cmdresp.c)
              --> mwifiex_ret_802_11_scan               (scan.c)
                --> mwifiex_parse_single_response_buf   (scan.c)
    
    'mwifiex_sdio_interrupt()' is an interrupt function.
    
    Also note that 'mwifiex_ret_802_11_scan()' already uses GFP_ATOMIC.
    
    So use GFP_ATOMIC instead of GFP_KERNEL when memory is allocated in
    'mwifiex_parse_single_response_buf()'.
    
    Fixes: 7c6fa2a ("mwifiex: use cfg80211 dynamic scan table and cfg80211_get_bss API")
    or
    Fixes: 601216e ("mwifiex: process RX packets in SDIO IRQ thread directly")
    Signed-off-by: Christophe JAILLET <[email protected]>
    Signed-off-by: Kalle Valo <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Sasha Levin <[email protected]>
    tititiou36 authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    7e97b80 View commit details
    Browse the repository at this point in the history
  21. drm/gma500: fix error check

    [ Upstream commit cdd296c ]
    
    Reviewing this block of code in cdv_intel_dp_init()
    
    ret = cdv_intel_dp_aux_native_read(gma_encoder, DP_DPCD_REV, ...
    
    cdv_intel_edp_panel_vdd_off(gma_encoder);
    if (ret == 0) {
    	/* if this fails, presume the device is a ghost */
    	DRM_INFO("failed to retrieve link info, disabling eDP\n");
    	drm_encoder_cleanup(encoder);
    	cdv_intel_dp_destroy(connector);
    	goto err_priv;
    } else {
    
    The (ret == 0) is not strict enough.
    cdv_intel_dp_aux_native_read() returns > 0 on success
    otherwise it is failure.
    
    So change to <=
    
    Fixes: d112a81 ("gma500/cdv: Add eDP support")
    
    Signed-off-by: Tom Rix <[email protected]>
    Signed-off-by: Patrik Jakobsson <[email protected]>
    Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
    Signed-off-by: Sasha Levin <[email protected]>
    Tom Rix authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    3f93125 View commit details
    Browse the repository at this point in the history
  22. scsi: qla4xxx: Fix an error handling path in 'qla4xxx_get_host_stats()'

    [ Upstream commit 574918e ]
    
    Update the size used in 'dma_free_coherent()' in order to match the one
    used in the corresponding 'dma_alloc_coherent()'.
    
    Link: https://lore.kernel.org/r/[email protected]
    Fixes: 4161cee ("[SCSI] qla4xxx: Add host statistics support")
    Signed-off-by: Christophe JAILLET <[email protected]>
    Signed-off-by: Martin K. Petersen <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>
    tititiou36 authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    b723f1a View commit details
    Browse the repository at this point in the history
  23. scsi: csiostor: Fix wrong return value in csio_hw_prep_fw()

    [ Upstream commit 44f4daf ]
    
    On an error exit path, a negative error code should be returned instead of
    a positive return value.
    
    Link: https://lore.kernel.org/r/[email protected]
    Fixes: f40e74f ("csiostor:firmware upgrade fix")
    Cc: Praveen Madhavan <[email protected]>
    Signed-off-by: Tianjia Zhang <[email protected]>
    Signed-off-by: Martin K. Petersen <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>
    uudiin authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    263a2c1 View commit details
    Browse the repository at this point in the history
  24. backlight: sky81452-backlight: Fix refcount imbalance on error

    [ Upstream commit b7a4f80 ]
    
    When of_property_read_u32_array() returns an error code, a
    pairing refcount decrement is needed to keep np's refcount
    balanced.
    
    Fixes: f705806 ("backlight: Add support Skyworks SKY81452 backlight driver")
    Signed-off-by: Dinghao Liu <[email protected]>
    Reviewed-by: Daniel Thompson <[email protected]>
    Signed-off-by: Lee Jones <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>
    dinghaoliu authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    7256a2f View commit details
    Browse the repository at this point in the history
  25. VMCI: check return value of get_user_pages_fast() for errors

    [ Upstream commit 90ca633 ]
    
    In a couple of places in qp_host_get_user_memory(),
    get_user_pages_fast() is called without properly checking for errors. If
    e.g. -EFAULT is returned, this negative value will then be passed on to
    qp_release_pages(), which expects a u64 as input.
    
    Fix this by only calling qp_release_pages() when we have a positive
    number returned.
    
    Fixes: 06164d2 ("VMCI: queue pairs implementation.")
    Signed-off-by: Alex Dewar <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Greg Kroah-Hartman <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>
    alexdewar authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    7c37fbe View commit details
    Browse the repository at this point in the history
  26. tty: serial: earlycon dependency

    [ Upstream commit 0fb9342 ]
    
    parse_options() in drivers/tty/serial/earlycon.c calls uart_parse_earlycon
    in drivers/tty/serial/serial_core.c therefore selecting SERIAL_EARLYCON
    should automatically select SERIAL_CORE, otherwise will result in symbol
    not found error during linking if SERIAL_CORE is not configured as builtin
    
    Fixes: 9aac588 ("tty/serial: add generic serial earlycon")
    Signed-off-by: Tong Zhang <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Greg Kroah-Hartman <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>
    lzto authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    d45b828 View commit details
    Browse the repository at this point in the history
  27. tty: hvcs: Don't NULL tty->driver_data until hvcs_cleanup()

    [ Upstream commit 63ffcbd ]
    
    The code currently NULLs tty->driver_data in hvcs_close() with the
    intent of informing the next call to hvcs_open() that device needs to be
    reconfigured. However, when hvcs_cleanup() is called we copy hvcsd from
    tty->driver_data which was previoulsy NULLed by hvcs_close() and our
    call to tty_port_put(&hvcsd->port) doesn't actually do anything since
    &hvcsd->port ends up translating to NULL by chance. This has the side
    effect that when hvcs_remove() is called we have one too many port
    references preventing hvcs_destuct_port() from ever being called. This
    also prevents us from reusing the /dev/hvcsX node in a future
    hvcs_probe() and we can eventually run out of /dev/hvcsX devices.
    
    Fix this by waiting to NULL tty->driver_data in hvcs_cleanup().
    
    Fixes: 27bf7c4 ("TTY: hvcs, add tty install")
    Signed-off-by: Tyrel Datwyler <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Greg Kroah-Hartman <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>
    tyreld authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    caf2cc4 View commit details
    Browse the repository at this point in the history
  28. pty: do tty_flip_buffer_push without port->lock in pty_write

    [ Upstream commit 71a174b ]
    
    b6da31b "tty: Fix data race in tty_insert_flip_string_fixed_flag"
    puts tty_flip_buffer_push under port->lock introducing the following
    possible circular locking dependency:
    
    [30129.876566] ======================================================
    [30129.876566] WARNING: possible circular locking dependency detected
    [30129.876567] 5.9.0-rc2+ #3 Tainted: G S      W
    [30129.876568] ------------------------------------------------------
    [30129.876568] sysrq.sh/1222 is trying to acquire lock:
    [30129.876569] ffffffff92c39480 (console_owner){....}-{0:0}, at: console_unlock+0x3fe/0xa90
    
    [30129.876572] but task is already holding lock:
    [30129.876572] ffff888107cb9018 (&pool->lock/1){-.-.}-{2:2}, at: show_workqueue_state.cold.55+0x15b/0x6ca
    
    [30129.876576] which lock already depends on the new lock.
    
    [30129.876577] the existing dependency chain (in reverse order) is:
    
    [30129.876578] -> #3 (&pool->lock/1){-.-.}-{2:2}:
    [30129.876581]        _raw_spin_lock+0x30/0x70
    [30129.876581]        __queue_work+0x1a3/0x10f0
    [30129.876582]        queue_work_on+0x78/0x80
    [30129.876582]        pty_write+0x165/0x1e0
    [30129.876583]        n_tty_write+0x47f/0xf00
    [30129.876583]        tty_write+0x3d6/0x8d0
    [30129.876584]        vfs_write+0x1a8/0x650
    
    [30129.876588] -> #2 (&port->lock#2){-.-.}-{2:2}:
    [30129.876590]        _raw_spin_lock_irqsave+0x3b/0x80
    [30129.876591]        tty_port_tty_get+0x1d/0xb0
    [30129.876592]        tty_port_default_wakeup+0xb/0x30
    [30129.876592]        serial8250_tx_chars+0x3d6/0x970
    [30129.876593]        serial8250_handle_irq.part.12+0x216/0x380
    [30129.876593]        serial8250_default_handle_irq+0x82/0xe0
    [30129.876594]        serial8250_interrupt+0xdd/0x1b0
    [30129.876595]        __handle_irq_event_percpu+0xfc/0x850
    
    [30129.876602] -> #1 (&port->lock){-.-.}-{2:2}:
    [30129.876605]        _raw_spin_lock_irqsave+0x3b/0x80
    [30129.876605]        serial8250_console_write+0x12d/0x900
    [30129.876606]        console_unlock+0x679/0xa90
    [30129.876606]        register_console+0x371/0x6e0
    [30129.876607]        univ8250_console_init+0x24/0x27
    [30129.876607]        console_init+0x2f9/0x45e
    
    [30129.876609] -> #0 (console_owner){....}-{0:0}:
    [30129.876611]        __lock_acquire+0x2f70/0x4e90
    [30129.876612]        lock_acquire+0x1ac/0xad0
    [30129.876612]        console_unlock+0x460/0xa90
    [30129.876613]        vprintk_emit+0x130/0x420
    [30129.876613]        printk+0x9f/0xc5
    [30129.876614]        show_pwq+0x154/0x618
    [30129.876615]        show_workqueue_state.cold.55+0x193/0x6ca
    [30129.876615]        __handle_sysrq+0x244/0x460
    [30129.876616]        write_sysrq_trigger+0x48/0x4a
    [30129.876616]        proc_reg_write+0x1a6/0x240
    [30129.876617]        vfs_write+0x1a8/0x650
    
    [30129.876619] other info that might help us debug this:
    
    [30129.876620] Chain exists of:
    [30129.876621]   console_owner --> &port->lock#2 --> &pool->lock/1
    
    [30129.876625]  Possible unsafe locking scenario:
    
    [30129.876626]        CPU0                    CPU1
    [30129.876626]        ----                    ----
    [30129.876627]   lock(&pool->lock/1);
    [30129.876628]                                lock(&port->lock#2);
    [30129.876630]                                lock(&pool->lock/1);
    [30129.876631]   lock(console_owner);
    
    [30129.876633]  *** DEADLOCK ***
    
    [30129.876634] 5 locks held by sysrq.sh/1222:
    [30129.876634]  #0: ffff8881d3ce0470 (sb_writers#3){.+.+}-{0:0}, at: vfs_write+0x359/0x650
    [30129.876637]  #1: ffffffff92c612c0 (rcu_read_lock){....}-{1:2}, at: __handle_sysrq+0x4d/0x460
    [30129.876640]  #2: ffffffff92c612c0 (rcu_read_lock){....}-{1:2}, at: show_workqueue_state+0x5/0xf0
    [30129.876642]  #3: ffff888107cb9018 (&pool->lock/1){-.-.}-{2:2}, at: show_workqueue_state.cold.55+0x15b/0x6ca
    [30129.876645]  #4: ffffffff92c39980 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x123/0x420
    
    [30129.876648] stack backtrace:
    [30129.876649] CPU: 3 PID: 1222 Comm: sysrq.sh Tainted: G S      W         5.9.0-rc2+ #3
    [30129.876649] Hardware name: Intel Corporation 2012 Client Platform/Emerald Lake 2, BIOS ACRVMBY1.86C.0078.P00.1201161002 01/16/2012
    [30129.876650] Call Trace:
    [30129.876650]  dump_stack+0x9d/0xe0
    [30129.876651]  check_noncircular+0x34f/0x410
    [30129.876653]  __lock_acquire+0x2f70/0x4e90
    [30129.876656]  lock_acquire+0x1ac/0xad0
    [30129.876658]  console_unlock+0x460/0xa90
    [30129.876660]  vprintk_emit+0x130/0x420
    [30129.876660]  printk+0x9f/0xc5
    [30129.876661]  show_pwq+0x154/0x618
    [30129.876662]  show_workqueue_state.cold.55+0x193/0x6ca
    [30129.876664]  __handle_sysrq+0x244/0x460
    [30129.876665]  write_sysrq_trigger+0x48/0x4a
    [30129.876665]  proc_reg_write+0x1a6/0x240
    [30129.876666]  vfs_write+0x1a8/0x650
    
    It looks like the commit was aimed to protect tty_insert_flip_string and
    there is no need for tty_flip_buffer_push to be under this lock.
    
    Fixes: b6da31b ("tty: Fix data race in tty_insert_flip_string_fixed_flag")
    Signed-off-by: Artem Savkov <[email protected]>
    Acked-by: Jiri Slaby <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Greg Kroah-Hartman <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>
    sm00th authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    3070d0f View commit details
    Browse the repository at this point in the history
  29. drivers/virt/fsl_hypervisor: Fix error handling path

    [ Upstream commit 7f360be ]
    
    First, when memory allocation for sg_list_unaligned failed, there
    is a bug of calling put_pages() as we haven't pinned any pages.
    
    Second, if get_user_pages_fast() failed we should unpin num_pinned
    pages.
    
    This will address both.
    
    As part of these changes, minor update in documentation.
    
    Fixes: 6db7199 ("drivers/virt: introduce Freescale hypervisor management driver")
    Signed-off-by: Souptick Joarder <[email protected]>
    Reviewed-by: Dan Carpenter <[email protected]>
    Reviewed-by: John Hubbard <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Greg Kroah-Hartman <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>
    Souptick Joarder authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    4a9f8c3 View commit details
    Browse the repository at this point in the history
  30. video: fbdev: vga16fb: fix setting of pixclock because a pass-by-valu…

    …e error
    
    [ Upstream commit c72fab8 ]
    
    The pixclock is being set locally because it is being passed as a
    pass-by-value argument rather than pass-by-reference, so the computed
    pixclock is never being set in var->pixclock. Fix this by passing
    by reference.
    
    [This dates back to 2002, I found the offending commit from the git
    history git://git.kernel.org/pub/scm/linux/kernel/git/tglx/history.git ]
    
    Addresses-Coverity: ("Unused value")
    Signed-off-by: Colin Ian King <[email protected]>
    Cc: Daniel Vetter <[email protected]>
    Cc: Jani Nikula <[email protected]>
    [b.zolnierkie: minor patch summary fixup]
    [b.zolnierkie: removed "Fixes:" tag (not in upstream tree)]
    Signed-off-by: Bartlomiej Zolnierkiewicz <[email protected]>
    Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
    Signed-off-by: Sasha Levin <[email protected]>
    Colin Ian King authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    ca04bea View commit details
    Browse the repository at this point in the history
  31. video: fbdev: sis: fix null ptr dereference

    [ Upstream commit ad6f93e ]
    
    Clang static analysis reports this representative error
    
    init.c:2501:18: warning: Array access (from variable 'queuedata') results
      in a null pointer dereference
          templ |= ((queuedata[i] & 0xc0) << 3);
    
    This is the problem block of code
    
       if(ModeNo > 0x13) {
          ...
          if(SiS_Pr->ChipType == SIS_730) {
    	 queuedata = &FQBQData730[0];
          } else {
    	 queuedata = &FQBQData[0];
          }
       } else {
    
       }
    
    queuedata is not set in the else block
    
    Reviewing the old code, the arrays FQBQData730 and FQBQData were
    used directly.
    
    So hoist the setting of queuedata out of the if-else block.
    
    Fixes: 544393f ("[PATCH] sisfb update")
    Signed-off-by: Tom Rix <[email protected]>
    Cc: Thomas Winischhofer <[email protected]>
    Cc: Andrew Morton <[email protected]>
    Signed-off-by: Bartlomiej Zolnierkiewicz <[email protected]>
    Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
    Signed-off-by: Sasha Levin <[email protected]>
    Tom Rix authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    18d2b4b View commit details
    Browse the repository at this point in the history
  32. HID: roccat: add bounds checking in kone_sysfs_write_settings()

    [ Upstream commit d4f98db ]
    
    This code doesn't check if "settings->startup_profile" is within bounds
    and that could result in an out of bounds array access.  What the code
    does do is it checks if the settings can be written to the firmware, so
    it's possible that the firmware has a bounds check?  It's safer and
    easier to verify when the bounds checking is done in the kernel.
    
    Fixes: 14bf62c ("HID: add driver for Roccat Kone gaming mouse")
    Signed-off-by: Dan Carpenter <[email protected]>
    Signed-off-by: Jiri Kosina <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>
    Dan Carpenter authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    341746d View commit details
    Browse the repository at this point in the history
  33. ath6kl: wmi: prevent a shift wrapping bug in ath6kl_wmi_delete_pstrea…

    …m_cmd()
    
    [ Upstream commit 6a95075 ]
    
    The "tsid" is a user controlled u8 which comes from debugfs.  Values
    more than 15 are invalid because "active_tsids" is a 16 bit variable.
    If the value of "tsid" is more than 31 then that leads to a shift
    wrapping bug.
    
    Fixes: 8fffd9e ("ath6kl: Implement support for QOS-enable and QOS-disable from userspace")
    Signed-off-by: Dan Carpenter <[email protected]>
    Signed-off-by: Kalle Valo <[email protected]>
    Link: https://lore.kernel.org/r/20200918142732.GA909725@mwanda
    Signed-off-by: Sasha Levin <[email protected]>
    Dan Carpenter authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    e2635d5 View commit details
    Browse the repository at this point in the history
  34. misc: mic: scif: Fix error handling path

    [ Upstream commit a81072a ]
    
    Inside __scif_pin_pages(), when map_flags != SCIF_MAP_KERNEL it
    will call pin_user_pages_fast() to map nr_pages. However,
    pin_user_pages_fast() might fail with a return value -ERRNO.
    
    The return value is stored in pinned_pages->nr_pages. which in
    turn is passed to unpin_user_pages(), which expects
    pinned_pages->nr_pages >=0, else disaster.
    
    Fix this by assigning pinned_pages->nr_pages to 0 if
    pin_user_pages_fast() returns -ERRNO.
    
    Fixes: ba612aa ("misc: mic: SCIF memory registration and unregistration")
    Cc: John Hubbard <[email protected]>
    Cc: Ira Weiny <[email protected]>
    Cc: Dan Carpenter <[email protected]>
    Reviewed-by: John Hubbard <[email protected]>
    Signed-off-by: Souptick Joarder <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Greg Kroah-Hartman <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>
    Souptick Joarder authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    162c508 View commit details
    Browse the repository at this point in the history
  35. ALSA: seq: oss: Avoid mutex lock for a long-time ioctl

    [ Upstream commit 2759caa ]
    
    Recently we applied a fix to cover the whole OSS sequencer ioctls with
    the mutex for dealing with the possible races.  This works fine in
    general, but in theory, this may lead to unexpectedly long stall if an
    ioctl like SNDCTL_SEQ_SYNC is issued and an event with the far future
    timestamp was queued.
    
    For fixing such a potential stall, this patch changes the mutex lock
    applied conditionally excluding such an ioctl command.  Also, change
    the mutex_lock() with the interruptible version for user to allow
    escaping from the big-hammer mutex.
    
    Fixes: 80982c7 ("ALSA: seq: oss: Serialize ioctls")
    Suggested-by: Pavel Machek <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Takashi Iwai <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>
    tiwai authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    2d0f391 View commit details
    Browse the repository at this point in the history
  36. quota: clear padding in v2r1_mem2diskdqb()

    [ Upstream commit 3d3dc27 ]
    
    Freshly allocated memory contains garbage, better make sure
    to init all struct v2r1_disk_dqblk fields to avoid KMSAN report:
    
    BUG: KMSAN: uninit-value in qtree_entry_unused+0x137/0x1b0 fs/quota/quota_tree.c:218
    CPU: 0 PID: 23373 Comm: syz-executor.1 Not tainted 5.9.0-rc4-syzkaller #0
    Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
    Call Trace:
     __dump_stack lib/dump_stack.c:77 [inline]
     dump_stack+0x21c/0x280 lib/dump_stack.c:118
     kmsan_report+0xf7/0x1e0 mm/kmsan/kmsan_report.c:122
     __msan_warning+0x58/0xa0 mm/kmsan/kmsan_instr.c:219
     qtree_entry_unused+0x137/0x1b0 fs/quota/quota_tree.c:218
     v2r1_mem2diskdqb+0x43d/0x710 fs/quota/quota_v2.c:285
     qtree_write_dquot+0x226/0x870 fs/quota/quota_tree.c:394
     v2_write_dquot+0x1ad/0x280 fs/quota/quota_v2.c:333
     dquot_commit+0x4af/0x600 fs/quota/dquot.c:482
     ext4_write_dquot fs/ext4/super.c:5934 [inline]
     ext4_mark_dquot_dirty+0x4d8/0x6a0 fs/ext4/super.c:5985
     mark_dquot_dirty fs/quota/dquot.c:347 [inline]
     mark_all_dquot_dirty fs/quota/dquot.c:385 [inline]
     dquot_alloc_inode+0xc05/0x12b0 fs/quota/dquot.c:1755
     __ext4_new_inode+0x8204/0x9d70 fs/ext4/ialloc.c:1155
     ext4_tmpfile+0x41a/0x850 fs/ext4/namei.c:2686
     vfs_tmpfile+0x2a2/0x570 fs/namei.c:3283
     do_tmpfile fs/namei.c:3316 [inline]
     path_openat+0x4035/0x6a90 fs/namei.c:3359
     do_filp_open+0x2b8/0x710 fs/namei.c:3395
     do_sys_openat2+0xa88/0x1140 fs/open.c:1168
     do_sys_open fs/open.c:1184 [inline]
     __do_compat_sys_openat fs/open.c:1242 [inline]
     __se_compat_sys_openat+0x2a4/0x310 fs/open.c:1240
     __ia32_compat_sys_openat+0x56/0x70 fs/open.c:1240
     do_syscall_32_irqs_on arch/x86/entry/common.c:80 [inline]
     __do_fast_syscall_32+0x129/0x180 arch/x86/entry/common.c:139
     do_fast_syscall_32+0x6a/0xc0 arch/x86/entry/common.c:162
     do_SYSENTER_32+0x73/0x90 arch/x86/entry/common.c:205
     entry_SYSENTER_compat_after_hwframe+0x4d/0x5c
    RIP: 0023:0xf7ff4549
    Code: b8 01 10 06 03 74 b4 01 10 07 03 74 b0 01 10 08 03 74 d8 01 00 00 00 00 00 00 00 00 00 00 00 00 00 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 eb 0d 90 90 90 90 90 90 90 90 90 90 90 90
    RSP: 002b:00000000f55cd0cc EFLAGS: 00000296 ORIG_RAX: 0000000000000127
    RAX: ffffffffffffffda RBX: 00000000ffffff9c RCX: 0000000020000000
    RDX: 0000000000410481 RSI: 0000000000000000 RDI: 0000000000000000
    RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
    R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
    R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
    
    Uninit was created at:
     kmsan_save_stack_with_flags mm/kmsan/kmsan.c:143 [inline]
     kmsan_internal_poison_shadow+0x66/0xd0 mm/kmsan/kmsan.c:126
     kmsan_slab_alloc+0x8a/0xe0 mm/kmsan/kmsan_hooks.c:80
     slab_alloc_node mm/slub.c:2907 [inline]
     slab_alloc mm/slub.c:2916 [inline]
     __kmalloc+0x2bb/0x4b0 mm/slub.c:3982
     kmalloc include/linux/slab.h:559 [inline]
     getdqbuf+0x56/0x150 fs/quota/quota_tree.c:52
     qtree_write_dquot+0xf2/0x870 fs/quota/quota_tree.c:378
     v2_write_dquot+0x1ad/0x280 fs/quota/quota_v2.c:333
     dquot_commit+0x4af/0x600 fs/quota/dquot.c:482
     ext4_write_dquot fs/ext4/super.c:5934 [inline]
     ext4_mark_dquot_dirty+0x4d8/0x6a0 fs/ext4/super.c:5985
     mark_dquot_dirty fs/quota/dquot.c:347 [inline]
     mark_all_dquot_dirty fs/quota/dquot.c:385 [inline]
     dquot_alloc_inode+0xc05/0x12b0 fs/quota/dquot.c:1755
     __ext4_new_inode+0x8204/0x9d70 fs/ext4/ialloc.c:1155
     ext4_tmpfile+0x41a/0x850 fs/ext4/namei.c:2686
     vfs_tmpfile+0x2a2/0x570 fs/namei.c:3283
     do_tmpfile fs/namei.c:3316 [inline]
     path_openat+0x4035/0x6a90 fs/namei.c:3359
     do_filp_open+0x2b8/0x710 fs/namei.c:3395
     do_sys_openat2+0xa88/0x1140 fs/open.c:1168
     do_sys_open fs/open.c:1184 [inline]
     __do_compat_sys_openat fs/open.c:1242 [inline]
     __se_compat_sys_openat+0x2a4/0x310 fs/open.c:1240
     __ia32_compat_sys_openat+0x56/0x70 fs/open.c:1240
     do_syscall_32_irqs_on arch/x86/entry/common.c:80 [inline]
     __do_fast_syscall_32+0x129/0x180 arch/x86/entry/common.c:139
     do_fast_syscall_32+0x6a/0xc0 arch/x86/entry/common.c:162
     do_SYSENTER_32+0x73/0x90 arch/x86/entry/common.c:205
     entry_SYSENTER_compat_after_hwframe+0x4d/0x5c
    
    Fixes: 498c601 ("quota: Implement quota format with 64-bit space and inode limits")
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Eric Dumazet <[email protected]>
    Cc: Jan Kara <[email protected]>
    Signed-off-by: Jan Kara <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>
    Eric Dumazet authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    eb4a9aa View commit details
    Browse the repository at this point in the history
  37. net: enic: Cure the enic api locking trainwreck

    [ Upstream commit a53b59e ]
    
    enic_dev_wait() has a BUG_ON(in_interrupt()).
    
    Chasing the callers of enic_dev_wait() revealed the gems of enic_reset()
    and enic_tx_hang_reset() which are both invoked through work queues in
    order to be able to call rtnl_lock(). So far so good.
    
    After locking rtnl both functions acquire enic::enic_api_lock which
    serializes against the (ab)use from infiniband. This is where the
    trainwreck starts.
    
    enic::enic_api_lock is a spin_lock() which implicitly disables preemption,
    but both functions invoke a ton of functions under that lock which can
    sleep. The BUG_ON(in_interrupt()) does not trigger in that case because it
    can't detect the preempt disabled condition.
    
    This clearly has never been tested with any of the mandatory debug options
    for 7+ years, which would have caught that for sure.
    
    Cure it by adding a enic_api_busy member to struct enic, which is modified
    and evaluated with enic::enic_api_lock held.
    
    If enic_api_devcmd_proxy_by_index() observes enic::enic_api_busy as true,
    it drops enic::enic_api_lock and busy waits for enic::enic_api_busy to
    become false.
    
    It would be smarter to wait for a completion of that busy period, but
    enic_api_devcmd_proxy_by_index() is called with other spin locks held which
    obviously can't sleep.
    
    Remove the BUG_ON(in_interrupt()) check as well because it's incomplete and
    with proper debugging enabled the problem would have been caught from the
    debug checks in schedule_timeout().
    
    Fixes: 0b03856 ("drivers/net: enic: Add an interface for USNIC to interact with firmware")
    Signed-off-by: Thomas Gleixner <[email protected]>
    Signed-off-by: David S. Miller <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>
    KAGA-KOKO authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    ca14d2a View commit details
    Browse the repository at this point in the history
  38. mfd: sm501: Fix leaks in probe()

    [ Upstream commit 8ce24f8 ]
    
    This code should clean up if sm501_init_dev() fails.
    
    Fixes: b6d6454 ("[PATCH] mfd: SM501 core driver")
    Signed-off-by: Dan Carpenter <[email protected]>
    Signed-off-by: Lee Jones <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>
    Dan Carpenter authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    ea3e6aa View commit details
    Browse the repository at this point in the history
  39. iwlwifi: mvm: split a print to avoid a WARNING in ROC

    [ Upstream commit 903b3f9 ]
    
    A print in the remain on channel code was too long and caused
    a WARNING, split it.
    
    Signed-off-by: Emmanuel Grumbach <[email protected]>
    Fixes: dc28e12 ("iwlwifi: mvm: ROC: Extend the ROC max delay duration & limit ROC duration")
    Signed-off-by: Luca Coelho <[email protected]>
    Link: https://lore.kernel.org/r/iwlwifi.20200930102759.58d57c0bdc68.Ib06008665e7bf1199c360aa92691d9c74fb84990@changeid
    Signed-off-by: Luca Coelho <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>
    egrumbach authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    367a51a View commit details
    Browse the repository at this point in the history
  40. usb: gadget: f_ncm: fix ncm_bitrate for SuperSpeed and above.

    [ Upstream commit 986499b ]
    
    Currently, SuperSpeed NCM gadgets report a speed of 851 Mbps
    in USB_CDC_NOTIFY_SPEED_CHANGE. But the calculation appears to
    assume 16 packets per microframe, and USB 3 and above no longer
    use microframes.
    
    Maximum speed is actually much higher. On a direct connection,
    theoretical throughput is at most 3.86 Gbps for gen1x1 and
    9.36 Gbps for gen2x1, and I have seen gadget->host iperf
    throughput of >2 Gbps for gen1x1 and >4 Gbps for gen2x1.
    
    Unfortunately the ConnectionSpeedChange defined in the CDC spec
    only uses 32-bit values, so we can't report accurate numbers for
    10Gbps and above. So, report 3.75Gbps for SuperSpeed (which is
    roughly maximum theoretical performance) and 4.25Gbps for
    SuperSpeed Plus (which is close to the maximum that we can report
    in a 32-bit unsigned integer).
    
    This results in:
    
    [50879.191272] cdc_ncm 2-2:1.0 enx228b127e050c: renamed from usb0
    [50879.234778] cdc_ncm 2-2:1.0 enx228b127e050c: 3750 mbit/s downlink 3750 mbit/s uplink
    
    on SuperSpeed and:
    
    [50798.434527] cdc_ncm 8-2:1.0 enx228b127e050c: renamed from usb0
    [50798.524278] cdc_ncm 8-2:1.0 enx228b127e050c: 4250 mbit/s downlink 4250 mbit/s uplink
    
    on SuperSpeed Plus.
    
    Fixes: 1650113 ("usb: gadget: f_ncm: add SuperSpeed descriptors for CDC NCM")
    Reviewed-by: Maciej Żenczykowski <[email protected]>
    Signed-off-by: Lorenzo Colitti <[email protected]>
    Signed-off-by: Felipe Balbi <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>
    lcolitti authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    528808a View commit details
    Browse the repository at this point in the history
  41. usb: gadget: u_ether: enable qmult on SuperSpeed Plus as well

    [ Upstream commit 4eea21d ]
    
    The u_ether driver has a qmult setting that multiplies the
    transmit queue length (which by default is 2).
    
    The intent is that it should be enabled at high/super speed, but
    because the code does not explicitly check for USB_SUPER_PLUS,
    it is disabled at that speed.
    
    Fix this by ensuring that the queue multiplier is enabled for any
    wired link at high speed or above. Using >= for USB_SPEED_*
    constants seems correct because it is what the gadget_is_xxxspeed
    functions do.
    
    The queue multiplier substantially helps performance at higher
    speeds. On a direct SuperSpeed Plus link to a Linux laptop,
    iperf3 single TCP stream:
    
    Before (qmult=1): 1.3 Gbps
    After  (qmult=5): 3.2 Gbps
    
    Fixes: 04617db ("usb: gadget: add SS descriptors to Ethernet gadget")
    Reviewed-by: Maciej Żenczykowski <[email protected]>
    Signed-off-by: Lorenzo Colitti <[email protected]>
    Signed-off-by: Felipe Balbi <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>
    lcolitti authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    d09f63a View commit details
    Browse the repository at this point in the history
  42. nl80211: fix non-split wiphy information

    [ Upstream commit ab10c22 ]
    
    When dumping wiphy information, we try to split the data into
    many submessages, but for old userspace we still support the
    old mode where this doesn't happen.
    
    However, in this case we were not resetting our state correctly
    and dumping multiple messages for each wiphy, which would have
    broken such older userspace.
    
    This was broken pretty much immediately afterwards because it
    only worked in the original commit where non-split dumps didn't
    have any more data than split dumps...
    
    Fixes: fe1abaf ("nl80211: re-add channel width and extended capa advertising")
    Signed-off-by: Johannes Berg <[email protected]>
    Link: https://lore.kernel.org/r/20200928130717.3e6d9c6bada2.Ie0f151a8d0d00a8e1e18f6a8c9244dd02496af67@changeid
    Signed-off-by: Johannes Berg <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>
    jmberg-intel authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    bce746a View commit details
    Browse the repository at this point in the history
  43. scsi: be2iscsi: Fix a theoretical leak in beiscsi_create_eqs()

    [ Upstream commit 38b2db5 ]
    
    The be_fill_queue() function can only fail when "eq_vaddress" is NULL and
    since it's non-NULL here that means the function call can't fail.  But
    imagine if it could, then in that situation we would want to store the
    "paddr" so that dma memory can be released.
    
    Link: https://lore.kernel.org/r/20200928091300.GD377727@mwanda
    Fixes: bfead3b ("[SCSI] be2iscsi: Adding msix and mcc_rings V3")
    Signed-off-by: Dan Carpenter <[email protected]>
    Signed-off-by: Martin K. Petersen <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>
    Dan Carpenter authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    35f80ca View commit details
    Browse the repository at this point in the history
  44. mwifiex: fix double free

    [ Upstream commit 53708f4 ]
    
    clang static analysis reports this problem:
    
    sdio.c:2403:3: warning: Attempt to free released memory
            kfree(card->mpa_rx.buf);
            ^~~~~~~~~~~~~~~~~~~~~~~
    
    When mwifiex_init_sdio() fails in its first call to
    mwifiex_alloc_sdio_mpa_buffer, it falls back to calling it
    again.  If the second alloc of mpa_tx.buf fails, the error
    handler will try to free the old, previously freed mpa_rx.buf.
    Reviewing the code, it looks like a second double free would
    happen with mwifiex_cleanup_sdio().
    
    So set both pointers to NULL when they are freed.
    
    Fixes: 5e6e3a9 ("wireless: mwifiex: initial commit for Marvell mwifiex driver")
    Signed-off-by: Tom Rix <[email protected]>
    Reviewed-by: Brian Norris <[email protected]>
    Signed-off-by: Kalle Valo <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Sasha Levin <[email protected]>
    Tom Rix authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    788ecf7 View commit details
    Browse the repository at this point in the history
  45. net: korina: fix kfree of rx/tx descriptor array

    [ Upstream commit 3af5f0f ]
    
    kmalloc returns KSEG0 addresses so convert back from KSEG1
    in kfree. Also make sure array is freed when the driver is
    unloaded from the kernel.
    
    Fixes: ef11291 ("Add support the Korina (IDT RC32434) Ethernet MAC")
    Signed-off-by: Valentin Vidic <[email protected]>
    Acked-by: Willem de Bruijn <[email protected]>
    Signed-off-by: Jakub Kicinski <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>
    vvidic authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    53a6960 View commit details
    Browse the repository at this point in the history
  46. IB/mlx4: Fix starvation in paravirt mux/demux

    [ Upstream commit 7fd1507 ]
    
    The mlx4 driver will proxy MAD packets through the PF driver. A VM or an
    instantiated VF will send its MAD packets to the PF driver using
    loop-back. The PF driver will be informed by an interrupt, but defer the
    handling and polling of CQEs to a worker thread running on an ordered
    work-queue.
    
    Consider the following scenario: the VMs will in short proximity in time,
    for example due to a network event, send many MAD packets to the PF
    driver. Lets say there are K VMs, each sending N packets.
    
    The interrupt from the first VM will start the worker thread, which will
    poll N CQEs. A common case here is where the PF driver will multiplex the
    packets received from the VMs out on the wire QP.
    
    But before the wire QP has returned a send CQE and associated interrupt,
    the other K - 1 VMs have sent their N packets as well.
    
    The PF driver has to multiplex K * N packets out on the wire QP. But the
    send-queue on the wire QP has a finite capacity.
    
    So, in this scenario, if K * N is larger than the send-queue capacity of
    the wire QP, we will get MAD packets dropped on the floor with this
    dynamic debug message:
    
    mlx4_ib_multiplex_mad: failed sending GSI to wire on behalf of slave 2 (-11)
    
    and this despite the fact that the wire send-queue could have capacity,
    but the PF driver isn't aware, because the wire send CQEs have not yet
    been polled.
    
    We can also have a similar scenario inbound, with a wire recv-queue larger
    than the tunnel QP's send-queue. If many remote peers send MAD packets to
    the very same VM, the tunnel send-queue destined to the VM could allegedly
    be construed to be full by the PF driver.
    
    This starvation is fixed by introducing separate work queues for the wire
    QPs vs. the tunnel QPs.
    
    With this fix, using a dual ported HCA, 8 VFs instantiated, we could run
    cmtime on each of the 18 interfaces towards a similar configured peer,
    each cmtime instance with 800 QPs (all in all 14400 QPs) without a single
    CM packet getting lost.
    
    Fixes: 3cf69cc ("IB/mlx4: Add CM paravirtualization")
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Håkon Bugge <[email protected]>
    Signed-off-by: Jason Gunthorpe <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>
    Hakon-Bugge authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    16fc7bf View commit details
    Browse the repository at this point in the history
  47. IB/mlx4: Adjust delayed work when a dup is observed

    [ Upstream commit 785167a ]
    
    When scheduling delayed work to clean up the cache, if the entry already
    has been scheduled for deletion, we adjust the delay.
    
    Fixes: 3cf69cc ("IB/mlx4: Add CM paravirtualization")
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Håkon Bugge <[email protected]>
    Signed-off-by: Jason Gunthorpe <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>
    Hakon-Bugge authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    998ed46 View commit details
    Browse the repository at this point in the history
  48. powerpc/pseries: Fix missing of_node_put() in rng_init()

    [ Upstream commit 67c3e59 ]
    
    The call to of_find_compatible_node() returns a node pointer with
    refcount incremented thus it must be explicitly decremented here
    before returning.
    
    Fixes: a489043 ("powerpc/pseries: Implement arch_get_random_long() based on H_RANDOM")
    Signed-off-by: Nicholas Mc Guire <[email protected]>
    Signed-off-by: Michael Ellerman <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Sasha Levin <[email protected]>
    Nicholas Mc Guire authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    0edc849 View commit details
    Browse the repository at this point in the history
  49. powerpc/icp-hv: Fix missing of_node_put() in success path

    [ Upstream commit d3e669f ]
    
    Both of_find_compatible_node() and of_find_node_by_type() will return
    a refcounted node on success - thus for the success path the node must
    be explicitly released with a of_node_put().
    
    Fixes: 0b05ac6 ("powerpc/xics: Rewrite XICS driver")
    Signed-off-by: Nicholas Mc Guire <[email protected]>
    Signed-off-by: Michael Ellerman <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Sasha Levin <[email protected]>
    Nicholas Mc Guire authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    fb752fe View commit details
    Browse the repository at this point in the history
  50. mtd: lpddr: fix excessive stack usage with clang

    [ Upstream commit 3e1b646 ]
    
    Building lpddr2_nvm with clang can result in a giant stack usage
    in one function:
    
    drivers/mtd/lpddr/lpddr2_nvm.c:399:12: error: stack frame size of 1144 bytes in function 'lpddr2_nvm_probe' [-Werror,-Wframe-larger-than=]
    
    The problem is that clang decides to build a copy of the mtd_info
    structure on the stack and then do a memcpy() into the actual version. It
    shouldn't really do it that way, but it's not strictly a bug either.
    
    As a workaround, use a static const version of the structure to assign
    most of the members upfront and then only set the few members that
    require runtime knowledge at probe time.
    
    Fixes: 96ba9dd ("mtd: lpddr: add driver for LPDDR2-NVM PCM memories")
    Signed-off-by: Arnd Bergmann <[email protected]>
    Reviewed-by: Nathan Chancellor <[email protected]>
    Acked-by: Miquel Raynal <[email protected]>
    Signed-off-by: Miquel Raynal <[email protected]>
    Link: https://lore.kernel.org/linux-mtd/[email protected]
    Signed-off-by: Sasha Levin <[email protected]>
    arndb authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    1cd9b63 View commit details
    Browse the repository at this point in the history
  51. mtd: mtdoops: Don't write panic data twice

    [ Upstream commit c1cf1d5 ]
    
    If calling mtdoops_write, don't also schedule work to be done later.
    
    Although this appears to not be causing an issue, possibly because the
    scheduled work will never get done, it is confusing.
    
    Fixes: 016c129 ("mtd: mtdoops: do not use mtd->panic_write directly")
    Signed-off-by: Mark Tomlinson <[email protected]>
    Signed-off-by: Miquel Raynal <[email protected]>
    Link: https://lore.kernel.org/linux-mtd/[email protected]
    Signed-off-by: Sasha Levin <[email protected]>
    Mark Tomlinson authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    92f337c View commit details
    Browse the repository at this point in the history
  52. ARM: 9007/1: l2c: fix prefetch bits init in L2X0_AUX_CTRL using DT va…

    …lues
    
    [ Upstream commit 8e007b3 ]
    
    The L310_PREFETCH_CTRL register bits 28 and 29 to enable data and
    instruction prefetch respectively can also be accessed via the
    L2X0_AUX_CTRL register.  They appear to be actually wired together in
    hardware between the registers.  Changing them in the prefetch
    register only will get undone when restoring the aux control register
    later on.  For this reason, set these bits in both registers during
    initialisation according to the devicetree property values.
    
    Link: https://lore.kernel.org/lkml/76f2f3ad5e77e356e0a5b99ceee1e774a2842c25.1597061474.git.guillaume.tucker@collabora.com/
    
    Fixes: ec3bd0e ("ARM: 8391/1: l2c: add options to overwrite prefetching behavior")
    Signed-off-by: Guillaume Tucker <[email protected]>
    Signed-off-by: Russell King <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>
    gctucker authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    bf5faae View commit details
    Browse the repository at this point in the history
  53. RDMA/qedr: Fix use of uninitialized field

    [ Upstream commit a379ad5 ]
    
    dev->attr.page_size_caps was used uninitialized when setting device
    attributes
    
    Fixes: ec72fce ("qedr: Add support for RoCE HW init")
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Michal Kalderon <[email protected]>
    Signed-off-by: Jason Gunthorpe <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>
    Michal Kalderon authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    8bcbb7e View commit details
    Browse the repository at this point in the history
  54. powerpc/tau: Use appropriate temperature sample interval

    [ Upstream commit 6694300 ]
    
    According to the MPC750 Users Manual, the SITV value in Thermal
    Management Register 3 is 13 bits long. The present code calculates the
    SITV value as 60 * 500 cycles. This would overflow to give 10 us on
    a 500 MHz CPU rather than the intended 60 us. (But according to the
    Microprocessor Datasheet, there is also a factor of 266 that has to be
    applied to this value on certain parts i.e. speed sort above 266 MHz.)
    Always use the maximum cycle count, as recommended by the Datasheet.
    
    Fixes: 1da177e ("Linux-2.6.12-rc2")
    Signed-off-by: Finn Thain <[email protected]>
    Tested-by: Stan Johnson <[email protected]>
    Signed-off-by: Michael Ellerman <[email protected]>
    Link: https://lore.kernel.org/r/896f542e5f0f1d6cf8218524c2b67d79f3d69b3c.1599260540.git.fthain@telegraphics.com.au
    Signed-off-by: Sasha Levin <[email protected]>
    Finn Thain authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    f4c7896 View commit details
    Browse the repository at this point in the history
  55. powerpc/tau: Remove duplicated set_thresholds() call

    [ Upstream commit 420ab2b ]
    
    The commentary at the call site seems to disagree with the code. The
    conditional prevents calling set_thresholds() via the exception handler,
    which appears to crash. Perhaps that's because it immediately triggers
    another TAU exception. Anyway, calling set_thresholds() from TAUupdate()
    is redundant because tau_timeout() does so.
    
    Fixes: 1da177e ("Linux-2.6.12-rc2")
    Signed-off-by: Finn Thain <[email protected]>
    Tested-by: Stan Johnson <[email protected]>
    Signed-off-by: Michael Ellerman <[email protected]>
    Link: https://lore.kernel.org/r/d7c7ee33232cf72a6a6bbb6ef05838b2e2b113c0.1599260540.git.fthain@telegraphics.com.au
    Signed-off-by: Sasha Levin <[email protected]>
    Finn Thain authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    9f7cb67 View commit details
    Browse the repository at this point in the history
  56. powerpc/tau: Disable TAU between measurements

    [ Upstream commit e63d6fb ]
    
    Enabling CONFIG_TAU_INT causes random crashes:
    
    Unrecoverable exception 1700 at c0009414 (msr=1000)
    Oops: Unrecoverable exception, sig: 6 [#1]
    BE PAGE_SIZE=4K MMU=Hash SMP NR_CPUS=2 PowerMac
    Modules linked in:
    CPU: 0 PID: 0 Comm: swapper/0 Not tainted 5.7.0-pmac-00043-gd5f545e1a8593 #5
    NIP:  c0009414 LR: c0009414 CTR: c00116fc
    REGS: c0799eb8 TRAP: 1700   Not tainted  (5.7.0-pmac-00043-gd5f545e1a8593)
    MSR:  00001000 <ME>  CR: 22000228  XER: 00000100
    
    GPR00: 00000000 c0799f70 c076e300 00800000 0291c0ac 00e00000 c076e300 00049032
    GPR08: 00000001 c00116fc 00000000 dfbd3200 ffffffff 007f80a8 00000000 00000000
    GPR16: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 c075ce04
    GPR24: c075ce04 dfff8880 c07b0000 c075ce04 00080000 00000001 c079ef98 c079ef5c
    NIP [c0009414] arch_cpu_idle+0x24/0x6c
    LR [c0009414] arch_cpu_idle+0x24/0x6c
    Call Trace:
    [c0799f70] [00000001] 0x1 (unreliable)
    [c0799f80] [c0060990] do_idle+0xd8/0x17c
    [c0799fa0] [c0060ba4] cpu_startup_entry+0x20/0x28
    [c0799fb0] [c072d220] start_kernel+0x434/0x44c
    [c0799ff0] [00003860] 0x3860
    Instruction dump:
    XXXXXXXX XXXXXXXX XXXXXXXX 3d20c07b XXXXXXXX XXXXXXXX XXXXXXXX 7c0802a6
    XXXXXXXX XXXXXXXX XXXXXXXX 4e800421 XXXXXXXX XXXXXXXX XXXXXXXX 7d2000a6
    ---[ end trace 3a0c9b5cb216db6b ]---
    
    Resolve this problem by disabling each THRMn comparator when handling
    the associated THRMn interrupt and by disabling the TAU entirely when
    updating THRMn thresholds.
    
    Fixes: 1da177e ("Linux-2.6.12-rc2")
    Signed-off-by: Finn Thain <[email protected]>
    Tested-by: Stan Johnson <[email protected]>
    Signed-off-by: Michael Ellerman <[email protected]>
    Link: https://lore.kernel.org/r/5a0ba3dc5612c7aac596727331284a3676c08472.1599260540.git.fthain@telegraphics.com.au
    Signed-off-by: Sasha Levin <[email protected]>
    Finn Thain authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    2341366 View commit details
    Browse the repository at this point in the history
  57. perf intel-pt: Fix "context_switch event has no tid" error

    [ Upstream commit 7d537a8 ]
    
    A context_switch event can have no tid because pids can be detached from
    a task while the task is still running (in do_exit()). Note this won't
    happen with per-task contexts because then tracing stops at
    perf_event_exit_task()
    
    If a task with no tid gets preempted, or a dying task gets preempted and
    its parent releases it, when it subsequently gets switched back in,
    Intel PT will not be able to determine what task is running and prints
    an error "context_switch event has no tid". However, it is not really an
    error because the task is in kernel space and the decoder can continue
    to decode successfully. Fix by changing the error to be only a logged
    message, and make allowance for tid == -1.
    
    Example:
    
      Using 5.9-rc4 with Preemptible Kernel (Low-Latency Desktop) e.g.
      $ uname -r
      5.9.0-rc4
      $ grep PREEMPT .config
      # CONFIG_PREEMPT_NONE is not set
      # CONFIG_PREEMPT_VOLUNTARY is not set
      CONFIG_PREEMPT=y
      CONFIG_PREEMPT_COUNT=y
      CONFIG_PREEMPTION=y
      CONFIG_PREEMPT_RCU=y
      CONFIG_PREEMPT_NOTIFIERS=y
      CONFIG_DRM_I915_PREEMPT_TIMEOUT=640
      CONFIG_DEBUG_PREEMPT=y
      # CONFIG_PREEMPT_TRACER is not set
      # CONFIG_PREEMPTIRQ_DELAY_TEST is not set
    
    Before:
    
      $ cat forkit.c
    
      #include <sys/types.h>
      #include <unistd.h>
      #include <sys/wait.h>
    
      int main()
      {
              pid_t child;
              int status = 0;
    
              child = fork();
              if (child == 0)
                      return 123;
              wait(&status);
              return 0;
      }
    
      $ gcc -o forkit forkit.c
      $ sudo ~/bin/perf record --kcore -a -m,64M -e intel_pt/cyc/k &
      [1] 11016
      $ taskset 2 ./forkit
      $ sudo pkill perf
      $ [ perf record: Woken up 1 times to write data ]
      [ perf record: Captured and wrote 17.262 MB perf.data ]
    
      [1]+  Terminated              sudo ~/bin/perf record --kcore -a -m,64M -e intel_pt/cyc/k
      $ sudo ~/bin/perf script --show-task-events --show-switch-events --itrace=iqqe-o -C 1 --ns | grep -C 2 forkit
      context_switch event has no tid
               taskset 11019 [001] 66663.270045029:          1 instructions:k:  ffffffffb1d9f844 strnlen_user+0xb4 ([kernel.kallsyms])
               taskset 11019 [001] 66663.270201816:          1 instructions:k:  ffffffffb1a83121 unmap_page_range+0x561 ([kernel.kallsyms])
                forkit 11019 [001] 66663.270327553: PERF_RECORD_COMM exec: forkit:11019/11019
                forkit 11019 [001] 66663.270420028:          1 instructions:k:  ffffffffb1db9537 __clear_user+0x27 ([kernel.kallsyms])
                forkit 11019 [001] 66663.270648704:          1 instructions:k:  ffffffffb18829e6 do_user_addr_fault+0xf6 ([kernel.kallsyms])
                forkit 11019 [001] 66663.270833163:          1 instructions:k:  ffffffffb230a825 irqentry_exit_to_user_mode+0x15 ([kernel.kallsyms])
                forkit 11019 [001] 66663.271092359:          1 instructions:k:  ffffffffb1aea3d9 lock_page_memcg+0x9 ([kernel.kallsyms])
                forkit 11019 [001] 66663.271207092: PERF_RECORD_FORK(11020:11020):(11019:11019)
                forkit 11019 [001] 66663.271234775: PERF_RECORD_SWITCH_CPU_WIDE OUT          next pid/tid: 11020/11020
                forkit 11020 [001] 66663.271238407: PERF_RECORD_SWITCH_CPU_WIDE IN           prev pid/tid: 11019/11019
                forkit 11020 [001] 66663.271312066:          1 instructions:k:  ffffffffb1a88140 handle_mm_fault+0x10 ([kernel.kallsyms])
                forkit 11020 [001] 66663.271476225: PERF_RECORD_EXIT(11020:11020):(11019:11019)
                forkit 11020 [001] 66663.271497488: PERF_RECORD_SWITCH_CPU_WIDE OUT preempt  next pid/tid: 11019/11019
                forkit 11019 [001] 66663.271500523: PERF_RECORD_SWITCH_CPU_WIDE IN           prev pid/tid: 11020/11020
                forkit 11019 [001] 66663.271517241:          1 instructions:k:  ffffffffb24012cd error_entry+0x6d ([kernel.kallsyms])
                forkit 11019 [001] 66663.271664080: PERF_RECORD_EXIT(11019:11019):(1386:1386)
    
    After:
    
      $ sudo ~/bin/perf script --show-task-events --show-switch-events --itrace=iqqe-o -C 1 --ns | grep -C 2 forkit
               taskset 11019 [001] 66663.270045029:          1 instructions:k:  ffffffffb1d9f844 strnlen_user+0xb4 ([kernel.kallsyms])
               taskset 11019 [001] 66663.270201816:          1 instructions:k:  ffffffffb1a83121 unmap_page_range+0x561 ([kernel.kallsyms])
                forkit 11019 [001] 66663.270327553: PERF_RECORD_COMM exec: forkit:11019/11019
                forkit 11019 [001] 66663.270420028:          1 instructions:k:  ffffffffb1db9537 __clear_user+0x27 ([kernel.kallsyms])
                forkit 11019 [001] 66663.270648704:          1 instructions:k:  ffffffffb18829e6 do_user_addr_fault+0xf6 ([kernel.kallsyms])
                forkit 11019 [001] 66663.270833163:          1 instructions:k:  ffffffffb230a825 irqentry_exit_to_user_mode+0x15 ([kernel.kallsyms])
                forkit 11019 [001] 66663.271092359:          1 instructions:k:  ffffffffb1aea3d9 lock_page_memcg+0x9 ([kernel.kallsyms])
                forkit 11019 [001] 66663.271207092: PERF_RECORD_FORK(11020:11020):(11019:11019)
                forkit 11019 [001] 66663.271234775: PERF_RECORD_SWITCH_CPU_WIDE OUT          next pid/tid: 11020/11020
                forkit 11020 [001] 66663.271238407: PERF_RECORD_SWITCH_CPU_WIDE IN           prev pid/tid: 11019/11019
                forkit 11020 [001] 66663.271312066:          1 instructions:k:  ffffffffb1a88140 handle_mm_fault+0x10 ([kernel.kallsyms])
                forkit 11020 [001] 66663.271476225: PERF_RECORD_EXIT(11020:11020):(11019:11019)
                forkit 11020 [001] 66663.271497488: PERF_RECORD_SWITCH_CPU_WIDE OUT preempt  next pid/tid: 11019/11019
                forkit 11019 [001] 66663.271500523: PERF_RECORD_SWITCH_CPU_WIDE IN           prev pid/tid: 11020/11020
                forkit 11019 [001] 66663.271517241:          1 instructions:k:  ffffffffb24012cd error_entry+0x6d ([kernel.kallsyms])
                forkit 11019 [001] 66663.271664080: PERF_RECORD_EXIT(11019:11019):(1386:1386)
                forkit 11019 [001] 66663.271688752: PERF_RECORD_SWITCH_CPU_WIDE OUT          next pid/tid:    -1/-1
                   :-1    -1 [001] 66663.271692086: PERF_RECORD_SWITCH_CPU_WIDE IN           prev pid/tid: 11019/11019
                    :-1    -1 [001] 66663.271707466:          1 instructions:k:  ffffffffb18eb096 update_load_avg+0x306 ([kernel.kallsyms])
    
    Fixes: 86c2786 ("perf intel-pt: Add support for PERF_RECORD_SWITCH")
    Signed-off-by: Adrian Hunter <[email protected]>
    Cc: Andi Kleen <[email protected]>
    Cc: Jiri Olsa <[email protected]>
    Cc: Yu-cheng Yu <[email protected]>
    Link: http://lore.kernel.org/lkml/[email protected]
    Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>
    ahunter6 authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    56b2b64 View commit details
    Browse the repository at this point in the history
  58. RDMA/hns: Set the unsupported wr opcode

    [ Upstream commit 22d3e1e ]
    
    hip06 does not support IB_WR_LOCAL_INV, so the ps_opcode should be set to
    an invalid value instead of being left uninitialized.
    
    Fixes: 9a44353 ("IB/hns: Add driver files for hns RoCE driver")
    Fixes: a2f3d44 ("RDMA/hns: Avoid unncessary initialization")
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Lijun Ou <[email protected]>
    Signed-off-by: Jason Gunthorpe <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>
    oulijun authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    60fd498 View commit details
    Browse the repository at this point in the history
  59. kdb: Fix pager search for multi-line strings

    [ Upstream commit d081a6e ]
    
    Currently using forward search doesn't handle multi-line strings correctly.
    The search routine replaces line breaks with \0 during the search and, for
    regular searches ("help | grep Common\n"), there is code after the line
    has been discarded or printed to replace the break character.
    
    However during a pager search ("help\n" followed by "/Common\n") when the
    string is matched we will immediately return to normal output and the code
    that should restore the \n becomes unreachable. Fix this by restoring the
    replaced character when we disable the search mode and update the comment
    accordingly.
    
    Fixes: fb6daa7 ("kdb: Provide forward search at more prompt")
    Link: https://lore.kernel.org/r/[email protected]
    Reviewed-by: Douglas Anderson <[email protected]>
    Signed-off-by: Daniel Thompson <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>
    daniel-thompson authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    6c21439 View commit details
    Browse the repository at this point in the history
  60. overflow: Include header file with SIZE_MAX declaration

    [ Upstream commit a4947e8 ]
    
    The various array_size functions use SIZE_MAX define, but missed limits.h
    causes to failure to compile code that needs overflow.h.
    
     In file included from drivers/infiniband/core/uverbs_std_types_device.c:6:
     ./include/linux/overflow.h: In function 'array_size':
     ./include/linux/overflow.h:258:10: error: 'SIZE_MAX' undeclared (first use in this function)
       258 |   return SIZE_MAX;
           |          ^~~~~~~~
    
    Fixes: 610b15c ("overflow.h: Add allocation size calculation helpers")
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Leon Romanovsky <[email protected]>
    Signed-off-by: Jason Gunthorpe <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>
    rleon authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    ef058c0 View commit details
    Browse the repository at this point in the history
  61. powerpc/perf: Exclude pmc5/6 from the irrelevant PMU group constraints

    [ Upstream commit 3b6c3ad ]
    
    PMU counter support functions enforces event constraints for group of
    events to check if all events in a group can be monitored. Incase of
    event codes using PMC5 and PMC6 ( 500fa and 600f4 respectively ), not
    all constraints are applicable, say the threshold or sample bits. But
    current code includes pmc5 and pmc6 in some group constraints (like
    IC_DC Qualifier bits) which is actually not applicable and hence
    results in those events not getting counted when scheduled along with
    group of other events. Patch fixes this by excluding PMC5/6 from
    constraints which are not relevant for it.
    
    Fixes: 7ffd948 ("powerpc/perf: factor out power8 pmu functions")
    Signed-off-by: Athira Rajeev <[email protected]>
    Reviewed-by: Madhavan Srinivasan <[email protected]>
    Signed-off-by: Michael Ellerman <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Sasha Levin <[email protected]>
    athira-rajeev authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    471c280 View commit details
    Browse the repository at this point in the history
  62. powerpc/perf/hv-gpci: Fix starting index value

    [ Upstream commit 0f9866f ]
    
    Commit 9e9f601 ("powerpc/perf/{hv-gpci, hv-common}: generate
    requests with counters annotated") adds a framework for defining
    gpci counters.
    In this patch, they adds starting_index value as '0xffffffffffffffff'.
    which is wrong as starting_index is of size 32 bits.
    
    Because of this, incase we try to run hv-gpci event we get error.
    
    In power9 machine:
    
    command#: perf stat -e hv_gpci/system_tlbie_count_and_time_tlbie_instructions_issued/
              -C 0 -I 1000
    event syntax error: '..bie_count_and_time_tlbie_instructions_issued/'
                                      \___ value too big for format, maximum is 4294967295
    
    This patch fix this issue and changes starting_index value to '0xffffffff'
    
    After this patch:
    
    command#: perf stat -e hv_gpci/system_tlbie_count_and_time_tlbie_instructions_issued/ -C 0 -I 1000
         1.000085786              1,024      hv_gpci/system_tlbie_count_and_time_tlbie_instructions_issued/
         2.000287818              1,024      hv_gpci/system_tlbie_count_and_time_tlbie_instructions_issued/
         2.439113909             17,408      hv_gpci/system_tlbie_count_and_time_tlbie_instructions_issued/
    
    Fixes: 9e9f601 ("powerpc/perf/{hv-gpci, hv-common}: generate requests with counters annotated")
    Signed-off-by: Kajol Jain <[email protected]>
    Signed-off-by: Michael Ellerman <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Sasha Levin <[email protected]>
    kjain101 authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    0fbdf9f View commit details
    Browse the repository at this point in the history
  63. cpufreq: powernv: Fix frame-size-overflow in powernv_cpufreq_reboot_n…

    …otifier
    
    [ Upstream commit a2d0230 ]
    
    The patch avoids allocating cpufreq_policy on stack hence fixing frame
    size overflow in 'powernv_cpufreq_reboot_notifier':
    
      drivers/cpufreq/powernv-cpufreq.c: In function powernv_cpufreq_reboot_notifier:
      drivers/cpufreq/powernv-cpufreq.c:906:1: error: the frame size of 2064 bytes is larger than 2048 bytes
    
    Fixes: cf30af7 ("cpufreq: powernv: Set the cpus to nominal frequency during reboot/kexec")
    Signed-off-by: Srikar Dronamraju <[email protected]>
    Reviewed-by: Daniel Axtens <[email protected]>
    Signed-off-by: Michael Ellerman <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Sasha Levin <[email protected]>
    srikard authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    897f33d View commit details
    Browse the repository at this point in the history
  64. IB/rdmavt: Fix sizeof mismatch

    [ Upstream commit 8e71f69 ]
    
    An incorrect sizeof is being used, struct rvt_ibport ** is not correct, it
    should be struct rvt_ibport *. Note that since ** is the same size as
    * this is not causing any issues.  Improve this fix by using
    sizeof(*rdi->ports) as this allows us to not even reference the type
    of the pointer.  Also remove line breaks as the entire statement can
    fit on one line.
    
    Link: https://lore.kernel.org/r/[email protected]
    Addresses-Coverity: ("Sizeof not portable (SIZEOF_MISMATCH)")
    Fixes: ff6acd6 ("IB/rdmavt: Add device structure allocation")
    Signed-off-by: Colin Ian King <[email protected]>
    Reviewed-by: Ira Weiny <[email protected]>
    Acked-by: Dennis Dalessandro <[email protected]>
    Signed-off-by: Jason Gunthorpe <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>
    Colin Ian King authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    8004161 View commit details
    Browse the repository at this point in the history
  65. lib/crc32.c: fix trivial typo in preprocessor condition

    [ Upstream commit 904542d ]
    
    Whether crc32_be needs a lookup table is chosen based on CRC_LE_BITS.
    Obviously, the _be function should be governed by the _BE_ define.
    
    This probably never pops up as it's hard to come up with a configuration
    where CRC_BE_BITS isn't the same as CRC_LE_BITS and as nobody is using
    bitwise CRC anyway.
    
    Fixes: 46c5801 ("crc32: bolt on crc32c")
    Signed-off-by: Tobias Jordan <[email protected]>
    Signed-off-by: Andrew Morton <[email protected]>
    Cc: Krzysztof Kozlowski <[email protected]>
    Cc: Jonathan Corbet <[email protected]>
    Cc: Mauro Carvalho Chehab <[email protected]>
    Link: https://lkml.kernel.org/r/[email protected]
    Signed-off-by: Linus Torvalds <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>
    Tobias Jordan authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    2de51c9 View commit details
    Browse the repository at this point in the history
  66. rapidio: fix error handling path

    [ Upstream commit fa63f08 ]
    
    rio_dma_transfer() attempts to clamp the return value of
    pin_user_pages_fast() to be >= 0.  However, the attempt fails because
    nr_pages is overridden a few lines later, and restored to the undesirable
    -ERRNO value.
    
    The return value is ultimately stored in nr_pages, which in turn is passed
    to unpin_user_pages(), which expects nr_pages >= 0, else, disaster.
    
    Fix this by fixing the nesting of the assignment to nr_pages: nr_pages
    should be clamped to zero if pin_user_pages_fast() returns -ERRNO, or set
    to the return value of pin_user_pages_fast(), otherwise.
    
    [[email protected]: new changelog]
    
    Fixes: e8de370 ("rapidio: add mport char device driver")
    Signed-off-by: Souptick Joarder <[email protected]>
    Signed-off-by: Andrew Morton <[email protected]>
    Reviewed-by: Ira Weiny <[email protected]>
    Reviewed-by: John Hubbard <[email protected]>
    Cc: Matthew Wilcox <[email protected]>
    Cc: Matt Porter <[email protected]>
    Cc: Alexandre Bounine <[email protected]>
    Cc: Gustavo A. R. Silva <[email protected]>
    Cc: Madhuparna Bhowmik <[email protected]>
    Cc: Dan Carpenter <[email protected]>
    Link: https://lkml.kernel.org/r/[email protected]
    Signed-off-by: Linus Torvalds <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>
    Souptick Joarder authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    d8623ba View commit details
    Browse the repository at this point in the history
  67. rapidio: fix the missed put_device() for rio_mport_add_riodev

    [ Upstream commit 85094c0 ]
    
    rio_mport_add_riodev() misses to call put_device() when the device already
    exists.  Add the missed function call to fix it.
    
    Fixes: e8de370 ("rapidio: add mport char device driver")
    Signed-off-by: Jing Xiangfeng <[email protected]>
    Signed-off-by: Andrew Morton <[email protected]>
    Reviewed-by: Dan Carpenter <[email protected]>
    Cc: Matt Porter <[email protected]>
    Cc: Alexandre Bounine <[email protected]>
    Cc: Gustavo A. R. Silva <[email protected]>
    Cc: John Hubbard <[email protected]>
    Cc: Kees Cook <[email protected]>
    Cc: Madhuparna Bhowmik <[email protected]>
    Link: https://lkml.kernel.org/r/[email protected]
    Signed-off-by: Linus Torvalds <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>
    hiss2018 authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    c6f85c6 View commit details
    Browse the repository at this point in the history
  68. clk: at91: clk-main: update key before writing AT91_CKGR_MOR

    [ Upstream commit 85d071e ]
    
    SAMA5D2 datasheet specifies on chapter 33.22.8 (PMC Clock Generator
    Main Oscillator Register) that writing any value other than
    0x37 on KEY field aborts the write operation. Use the key when
    selecting main clock parent.
    
    Fixes: 27cb1c2 ("clk: at91: rework main clk implementation")
    Signed-off-by: Claudiu Beznea <[email protected]>
    Reviewed-by: Alexandre Belloni <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Stephen Boyd <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>
    claudiubeznea authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    66a761e View commit details
    Browse the repository at this point in the history
  69. clk: bcm2835: add missing release if devm_clk_hw_register fails

    [ Upstream commit f6c992c ]
    
    In the implementation of bcm2835_register_pll(), the allocated pll is
    leaked if devm_clk_hw_register() fails to register hw. Release pll if
    devm_clk_hw_register() fails.
    
    Signed-off-by: Navid Emamdoost <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    Fixes: 41691b8 ("clk: bcm2835: Add support for programming the audio domain clocks")
    Signed-off-by: Stephen Boyd <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>
    Navidem authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    4e504a7 View commit details
    Browse the repository at this point in the history
  70. vfio/pci: Clear token on bypass registration failure

    [ Upstream commit 852b1be ]
    
    The eventfd context is used as our irqbypass token, therefore if an
    eventfd is re-used, our token is the same.  The irqbypass code will
    return an -EBUSY in this case, but we'll still attempt to unregister
    the producer, where if that duplicate token still exists, results in
    removing the wrong object.  Clear the token of failed producers so
    that they harmlessly fall out when unregistered.
    
    Fixes: 6d7425f ("vfio: Register/unregister irq_bypass_producer")
    Reported-by: guomin chen <[email protected]>
    Tested-by: guomin chen <[email protected]>
    Signed-off-by: Alex Williamson <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>
    awilliam authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    d4a7dbb View commit details
    Browse the repository at this point in the history
  71. Input: imx6ul_tsc - clean up some errors in imx6ul_tsc_resume()

    [ Upstream commit 30df23c ]
    
    If imx6ul_tsc_init() fails then we need to clean up the clocks.
    
    I reversed the "if (input_dev->users) {" condition to make the code a
    bit simpler.
    
    Fixes: 6cc527b ("Input: imx6ul_tsc - propagate the errors")
    Signed-off-by: Dan Carpenter <[email protected]>
    Link: https://lore.kernel.org/r/20200905124942.GC183976@mwanda
    Signed-off-by: Dmitry Torokhov <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>
    Dan Carpenter authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    f360398 View commit details
    Browse the repository at this point in the history
  72. Input: ep93xx_keypad - fix handling of platform_get_irq() error

    [ Upstream commit 7d50f66 ]
    
    platform_get_irq() returns -ERRNO on error.  In such case comparison
    to 0 would pass the check.
    
    Fixes: 60214f0 ("Input: ep93xx_keypad - update driver to new core support")
    Signed-off-by: Krzysztof Kozlowski <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Dmitry Torokhov <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>
    krzk authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    98ecef7 View commit details
    Browse the repository at this point in the history
  73. Input: omap4-keypad - fix handling of platform_get_irq() error

    [ Upstream commit 4738dd1 ]
    
    platform_get_irq() returns -ERRNO on error.  In such case comparison
    to 0 would pass the check.
    
    Fixes: f3a1ba6 ("Input: omap4-keypad - use platform device helpers")
    Signed-off-by: Krzysztof Kozlowski <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Dmitry Torokhov <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>
    krzk authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    e1182c3 View commit details
    Browse the repository at this point in the history
  74. Input: twl4030_keypad - fix handling of platform_get_irq() error

    [ Upstream commit c277e1f ]
    
    platform_get_irq() returns -ERRNO on error.  In such case casting to
    unsigned and comparing to 0 would pass the check.
    
    Fixes: 7abf38d ("Input: twl4030-keypad - add device tree support")
    Reported-by: kernel test robot <[email protected]>
    Signed-off-by: Krzysztof Kozlowski <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Dmitry Torokhov <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>
    krzk authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    eacec05 View commit details
    Browse the repository at this point in the history
  75. Input: sun4i-ps2 - fix handling of platform_get_irq() error

    [ Upstream commit cafb3ab ]
    
    platform_get_irq() returns -ERRNO on error.  In such case comparison
    to 0 would pass the check.
    
    Fixes: e443631 ("Input: serio - add support for Alwinner A10/A20 PS/2 controller")
    Signed-off-by: Krzysztof Kozlowski <[email protected]>
    Acked-by: Chen-Yu Tsai <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Dmitry Torokhov <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>
    krzk authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    a7a63e5 View commit details
    Browse the repository at this point in the history
  76. KVM: x86: emulating RDPID failure shall return #UD rather than #GP

    [ Upstream commit a9e2e0a ]
    
    Per Intel's SDM, RDPID takes a #UD if it is unsupported, which is more or
    less what KVM is emulating when MSR_TSC_AUX is not available.  In fact,
    there are no scenarios in which RDPID is supposed to #GP.
    
    Fixes: fb6d4d3 ("KVM: x86: emulate RDPID")
    Signed-off-by: Robert Hoo <[email protected]>
    Message-Id: <[email protected]>
    Reviewed-by: Jim Mattson <[email protected]>
    Signed-off-by: Paolo Bonzini <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>
    robert-hoo authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    f90c8dd View commit details
    Browse the repository at this point in the history
  77. memory: omap-gpmc: Fix a couple off by ones

    [ Upstream commit 4c54228 ]
    
    These comparisons should be >= instead of > to prevent reading one
    element beyond the end of the gpmc_cs[] array.
    
    Fixes: cdd6928 ("ARM: OMAP2+: Add device-tree support for NOR flash")
    Fixes: f37e458 ("ARM: OMAP2: Dynamic allocator for GPMC memory space")
    Signed-off-by: Dan Carpenter <[email protected]>
    Acked-by: Roger Quadros <[email protected]>
    Link: https://lore.kernel.org/r/20200825104707.GB278587@mwanda
    Signed-off-by: Krzysztof Kozlowski <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>
    Dan Carpenter authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    412349b View commit details
    Browse the repository at this point in the history
  78. memory: fsl-corenet-cf: Fix handling of platform_get_irq() error

    [ Upstream commit dd85345 ]
    
    platform_get_irq() returns -ERRNO on error.  In such case comparison
    to 0 would pass the check.
    
    Fixes: 54afbec ("memory: Freescale CoreNet Coherency Fabric error reporting driver")
    Signed-off-by: Krzysztof Kozlowski <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Sasha Levin <[email protected]>
    krzk authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    f589675 View commit details
    Browse the repository at this point in the history
  79. arm64: dts: qcom: msm8916: Fix MDP/DSI interrupts

    [ Upstream commit 027cca9 ]
    
    The mdss node sets #interrupt-cells = <1>, so its interrupts
    should be referenced using a single cell (in this case: only the
    interrupt number).
    
    However, right now the mdp/dsi node both have two interrupt cells
    set, e.g. interrupts = <4 0>. The 0 is probably meant to say
    IRQ_TYPE_NONE (= 0), but with #interrupt-cells = <1> this is
    actually interpreted as a second interrupt line.
    
    Remove the IRQ flags from both interrupts to fix this.
    
    Fixes: 305410f ("arm64: dts: msm8916: Add display support")
    Signed-off-by: Stephan Gerhold <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Bjorn Andersson <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>
    stephan-gh authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    886ce82 View commit details
    Browse the repository at this point in the history
  80. arm64: dts: zynqmp: Remove additional compatible string for i2c IPs

    [ Upstream commit 3529251 ]
    
    DT binding permits only one compatible string which was decribed in past by
    commit 63cab19 ("i2c: removed work arounds in i2c driver for Zynq
    Ultrascale+ MPSoC").
    The commit aea3700 ("dt-bindings: i2c: cadence: Migrate i2c-cadence
    documentation to YAML") has converted binding to yaml and the following
    issues is reported:
    ...: i2c@ff030000: compatible: Additional items are not allowed
    ('cdns,i2c-r1p10' was unexpected)
    	From schema:
    .../Documentation/devicetree/bindings/i2c/cdns,i2c-r1p10.yaml fds
    ...: i2c@ff030000: compatible: ['cdns,i2c-r1p14', 'cdns,i2c-r1p10'] is too
    long
    
    The commit c415f9e ("ARM64: zynqmp: Fix i2c node's compatible string")
    has added the second compatible string but without removing origin one.
    The patch is only keeping one compatible string "cdns,i2c-r1p14".
    
    Fixes: c415f9e ("ARM64: zynqmp: Fix i2c node's compatible string")
    Signed-off-by: Michal Simek <[email protected]>
    Link: https://lore.kernel.org/r/cc294ae1a79ef845af6809ddb4049f0c0f5bb87a.1598259551.git.michal.simek@xilinx.com
    Reviewed-by: Krzysztof Kozlowski <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>
    Michal Simek authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    56da795 View commit details
    Browse the repository at this point in the history
  81. powerpc/powernv/dump: Fix race while processing OPAL dump

    [ Upstream commit 0a43ae3 ]
    
    Every dump reported by OPAL is exported to userspace through a sysfs
    interface and notified using kobject_uevent(). The userspace daemon
    (opal_errd) then reads the dump and acknowledges that the dump is
    saved safely to disk. Once acknowledged the kernel removes the
    respective sysfs file entry causing respective resources to be
    released including kobject.
    
    However it's possible the userspace daemon may already be scanning
    dump entries when a new sysfs dump entry is created by the kernel.
    User daemon may read this new entry and ack it even before kernel can
    notify userspace about it through kobject_uevent() call. If that
    happens then we have a potential race between
    dump_ack_store->kobject_put() and kobject_uevent which can lead to
    use-after-free of a kernfs object resulting in a kernel crash.
    
    This patch fixes this race by protecting the sysfs file
    creation/notification by holding a reference count on kobject until we
    safely send kobject_uevent().
    
    The function create_dump_obj() returns the dump object which if used
    by caller function will end up in use-after-free problem again.
    However, the return value of create_dump_obj() function isn't being
    used today and there is no need as well. Hence change it to return
    void to make this fix complete.
    
    Fixes: c7e64b9 ("powerpc/powernv Platform dump interface")
    Signed-off-by: Vasant Hegde <[email protected]>
    Signed-off-by: Michael Ellerman <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Sasha Levin <[email protected]>
    Vasant Hegde authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    aa3c879 View commit details
    Browse the repository at this point in the history
  82. nvmet: fix uninitialized work for zero kato

    [ Upstream commit 85bd23f ]
    
    When connecting a controller with a zero kato value using the following
    command line
    
       nvme connect -t tcp -n NQN -a ADDR -s PORT --keep-alive-tmo=0
    
    the warning below can be reproduced:
    
    WARNING: CPU: 1 PID: 241 at kernel/workqueue.c:1627 __queue_delayed_work+0x6d/0x90
    with trace:
      mod_delayed_work_on+0x59/0x90
      nvmet_update_cc+0xee/0x100 [nvmet]
      nvmet_execute_prop_set+0x72/0x80 [nvmet]
      nvmet_tcp_try_recv_pdu+0x2f7/0x770 [nvmet_tcp]
      nvmet_tcp_io_work+0x63f/0xb2d [nvmet_tcp]
      ...
    
    This is caused by queuing up an uninitialized work.  Althrough the
    keep-alive timer is disabled during allocating the controller (fixed in
    0d3b6a8), ka_work still has a chance to run (called by
    nvmet_start_ctrl).
    
    Fixes: 0d3b6a8 ("nvmet: Disable keep-alive timer when kato is cleared to 0h")
    Signed-off-by: zhenwei pi <[email protected]>
    Signed-off-by: Christoph Hellwig <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>
    pizhenwei authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    482851c View commit details
    Browse the repository at this point in the history
  83. NTB: hw: amd: fix an issue about leak system resources

    [ Upstream commit 44a0a3c ]
    
    The related system resources were not released when pci_set_dma_mask(),
    pci_set_consistent_dma_mask(), or pci_iomap() return error in the
    amd_ntb_init_pci() function. Add pci_release_regions() to fix it.
    
    Fixes: a1b3695 ("NTB: Add support for AMD PCI-Express Non-Transparent Bridge")
    Signed-off-by: Kaige Li <[email protected]>
    Signed-off-by: Jon Mason <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>
    Kaige Li authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    bd332ce View commit details
    Browse the repository at this point in the history
  84. crypto: ccp - fix error handling

    [ Upstream commit e356c49 ]
    
    Fix resource leak in error handling.
    
    Signed-off-by: Pavel Machek (CIP) <[email protected]>
    Acked-by: John Allen <[email protected]>
    Signed-off-by: Herbert Xu <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>
    Pavel Machek authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    60f4aa0 View commit details
    Browse the repository at this point in the history
  85. media: firewire: fix memory leak

    [ Upstream commit b28e327 ]
    
    Fix memory leak in node_probe.
    
    Signed-off-by: Pavel Machek (CIP) <[email protected]>
    Signed-off-by: Hans Verkuil <[email protected]>
    Signed-off-by: Mauro Carvalho Chehab <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>
    pavelmachek authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    13713d6 View commit details
    Browse the repository at this point in the history
  86. media: ati_remote: sanity check for both endpoints

    [ Upstream commit a8be800 ]
    
    If you do sanity checks, you should do them for both endpoints.
    Hence introduce checking for endpoint type for the output
    endpoint, too.
    
    Reported-by: [email protected]
    Signed-off-by: Oliver Neukum <[email protected]>
    Signed-off-by: Sean Young <[email protected]>
    Signed-off-by: Mauro Carvalho Chehab <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>
    oneukum authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    40dbafa View commit details
    Browse the repository at this point in the history
  87. media: exynos4-is: Fix several reference count leaks due to pm_runtim…

    …e_get_sync
    
    [ Upstream commit 7ef64ce ]
    
    On calling pm_runtime_get_sync() the reference count of the device
    is incremented. In case of failure, decrement the
    reference count before returning the error.
    
    Signed-off-by: Qiushi Wu <[email protected]>
    Signed-off-by: Hans Verkuil <[email protected]>
    Signed-off-by: Mauro Carvalho Chehab <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>
    QiushiWu authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    3450996 View commit details
    Browse the repository at this point in the history
  88. media: exynos4-is: Fix a reference count leak due to pm_runtime_get_sync

    [ Upstream commit c47f7c7 ]
    
    On calling pm_runtime_get_sync() the reference count of the device
    is incremented. In case of failure, decrement the
    reference count before returning the error.
    
    Signed-off-by: Qiushi Wu <[email protected]>
    Signed-off-by: Hans Verkuil <[email protected]>
    Signed-off-by: Mauro Carvalho Chehab <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>
    QiushiWu authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    6e8429c View commit details
    Browse the repository at this point in the history
  89. media: exynos4-is: Fix a reference count leak

    [ Upstream commit 64157b2 ]
    
    pm_runtime_get_sync() increments the runtime PM usage counter even
    when it returns an error code, causing incorrect ref count if
    pm_runtime_put_noidle() is not called in error handling paths.
    Thus call pm_runtime_put_noidle() if pm_runtime_get_sync() fails.
    
    Signed-off-by: Qiushi Wu <[email protected]>
    Signed-off-by: Hans Verkuil <[email protected]>
    Signed-off-by: Mauro Carvalho Chehab <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>
    QiushiWu authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    5dde907 View commit details
    Browse the repository at this point in the history
  90. media: vsp1: Fix runtime PM imbalance on error

    [ Upstream commit 98fae90 ]
    
    pm_runtime_get_sync() increments the runtime PM usage counter even
    when it returns an error code. Thus a pairing decrement is needed on
    the error handling path to keep the counter balanced.
    
    Signed-off-by: Dinghao Liu <[email protected]>
    Reviewed-by: Kieran Bingham <[email protected]>
    Reviewed-by: Laurent Pinchart <[email protected]>
    Signed-off-by: Hans Verkuil <[email protected]>
    Signed-off-by: Mauro Carvalho Chehab <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>
    dinghaoliu authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    645985a View commit details
    Browse the repository at this point in the history
  91. media: platform: s3c-camif: Fix runtime PM imbalance on error

    [ Upstream commit dafa360 ]
    
    pm_runtime_get_sync() increments the runtime PM usage counter even
    when it returns an error code. Thus a pairing decrement is needed on
    the error handling path to keep the counter balanced.
    
    Also, call pm_runtime_disable() when pm_runtime_get_sync() returns
    an error code.
    
    Signed-off-by: Dinghao Liu <[email protected]>
    Reviewed-by: Sylwester Nawrocki <[email protected]>
    Signed-off-by: Hans Verkuil <[email protected]>
    Signed-off-by: Mauro Carvalho Chehab <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>
    dinghaoliu authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    b668ba3 View commit details
    Browse the repository at this point in the history
  92. media: platform: sti: hva: Fix runtime PM imbalance on error

    [ Upstream commit d912a1d ]
    
    pm_runtime_get_sync() increments the runtime PM usage counter even
    when it returns an error code. Thus a pairing decrement is needed on
    the error handling path to keep the counter balanced.
    
    Signed-off-by: Dinghao Liu <[email protected]>
    Signed-off-by: Hans Verkuil <[email protected]>
    Signed-off-by: Mauro Carvalho Chehab <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>
    dinghaoliu authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    8ea75bd View commit details
    Browse the repository at this point in the history
  93. media: bdisp: Fix runtime PM imbalance on error

    [ Upstream commit dbd2f2d ]
    
    pm_runtime_get_sync() increments the runtime PM usage counter even
    when it returns an error code. Thus a pairing decrement is needed on
    the error handling path to keep the counter balanced.
    
    Signed-off-by: Dinghao Liu <[email protected]>
    Reviewed-by: Fabien Dessenne <[email protected]>
    Signed-off-by: Hans Verkuil <[email protected]>
    Signed-off-by: Mauro Carvalho Chehab <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>
    dinghaoliu authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    b91c045 View commit details
    Browse the repository at this point in the history
  94. media: media/pci: prevent memory leak in bttv_probe

    [ Upstream commit 7b81758 ]
    
    In bttv_probe if some functions such as pci_enable_device,
    pci_set_dma_mask and request_mem_region fails the allocated
     memory for btv should be released.
    
    Signed-off-by: Xiaolong Huang <[email protected]>
    Signed-off-by: Hans Verkuil <[email protected]>
    Signed-off-by: Mauro Carvalho Chehab <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>
    Xiaolong Huang authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    c11dfff View commit details
    Browse the repository at this point in the history
  95. media: uvcvideo: Ensure all probed info is returned to v4l2

    [ Upstream commit 8a652a1 ]
    
    bFrameIndex and bFormatIndex can be negotiated by the camera during
    probing, resulting in the camera choosing a different format than
    expected. v4l2 can already accommodate such changes, but the code was
    not updating the proper fields.
    
    Without such a change, v4l2 would potentially interpret the payload
    incorrectly, causing corrupted output. This was happening on the
    Elgato HD60 S+, which currently always renegotiates to format 1.
    
    As an aside, the Elgato firmware is buggy and should not be renegotating,
    but it is still a valid thing for the camera to do. Both macOS and Windows
    will properly probe and read uncorrupted images from this camera.
    
    With this change, both qv4l2 and chromium can now read uncorrupted video
    from the Elgato HD60 S+.
    
    [Add blank lines, remove periods at the of messages]
    
    Signed-off-by: Adam Goode <[email protected]>
    Signed-off-by: Laurent Pinchart <[email protected]>
    Signed-off-by: Mauro Carvalho Chehab <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>
    agoode authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    3b899e9 View commit details
    Browse the repository at this point in the history
  96. mmc: sdio: Check for CISTPL_VERS_1 buffer size

    [ Upstream commit 8ebe260 ]
    
    Before parsing CISTPL_VERS_1 structure check that its size is at least two
    bytes to prevent buffer overflow.
    
    Signed-off-by: Pali Rohár <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Ulf Hansson <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>
    pali authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    669c958 View commit details
    Browse the repository at this point in the history
  97. media: saa7134: avoid a shift overflow

    [ Upstream commit 15a36aa ]
    
    As reported by smatch:
    	drivers/media/pci/saa7134//saa7134-tvaudio.c:686 saa_dsp_writel() warn: should 'reg << 2' be a 64 bit type?
    
    On a 64-bits Kernel, the shift might be bigger than 32 bits.
    
    In real, this should never happen, but let's shut up the warning.
    
    Signed-off-by: Mauro Carvalho Chehab <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>
    mchehab authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    bb92afd View commit details
    Browse the repository at this point in the history
  98. fs: dlm: fix configfs memory leak

    [ Upstream commit 3d2825c ]
    
    This patch fixes the following memory detected by kmemleak and umount
    gfs2 filesystem which removed the last lockspace:
    
    unreferenced object 0xffff9264f482f600 (size 192):
      comm "dlm_controld", pid 325, jiffies 4294690276 (age 48.136s)
      hex dump (first 32 bytes):
        00 00 00 00 00 00 00 00 6e 6f 64 65 73 00 00 00  ........nodes...
        00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
      backtrace:
        [<00000000060481d7>] make_space+0x41/0x130
        [<000000008d905d46>] configfs_mkdir+0x1a2/0x5f0
        [<00000000729502cf>] vfs_mkdir+0x155/0x210
        [<000000000369bcf1>] do_mkdirat+0x6d/0x110
        [<00000000cc478a33>] do_syscall_64+0x33/0x40
        [<00000000ce9ccf01>] entry_SYSCALL_64_after_hwframe+0x44/0xa9
    
    The patch just remembers the "nodes" entry pointer in space as I think
    it's created as subdirectory when parent "spaces" is created. In
    function drop_space() we will lost the pointer reference to nds because
    configfs_remove_default_groups(). However as this subdirectory is always
    available when "spaces" exists it will just be freed when "spaces" will be
    freed.
    
    Signed-off-by: Alexander Aring <[email protected]>
    Signed-off-by: David Teigland <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>
    Alexander Aring authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    1532860 View commit details
    Browse the repository at this point in the history
  99. ntfs: add check for mft record size in superblock

    [ Upstream commit 4f8c940 ]
    
    Number of bytes allocated for mft record should be equal to the mft record
    size stored in ntfs superblock as reported by syzbot, userspace might
    trigger out-of-bounds read by dereferencing ctx->attr in ntfs_attr_find()
    
    Reported-by: [email protected]
    Signed-off-by: Rustam Kovhaev <[email protected]>
    Signed-off-by: Andrew Morton <[email protected]>
    Tested-by: [email protected]
    Acked-by: Anton Altaparmakov <[email protected]>
    Link: https://syzkaller.appspot.com/bug?extid=aed06913f36eff9b544e
    Link: https://lkml.kernel.org/r/[email protected]
    Signed-off-by: Linus Torvalds <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>
    rustylife authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    bc46e66 View commit details
    Browse the repository at this point in the history
  100. PM: hibernate: remove the bogus call to get_gendisk() in software_res…

    …ume()
    
    [ Upstream commit 428805c ]
    
    get_gendisk grabs a reference on the disk and file operation, so this
    code will leak both of them while having absolutely no use for the
    gendisk itself.
    
    This effectively reverts commit 2df83fa ("PM / Hibernate: Use
    get_gendisk to verify partition if resume_file is integer format")
    
    Signed-off-by: Christoph Hellwig <[email protected]>
    Signed-off-by: Rafael J. Wysocki <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>
    Christoph Hellwig authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    957559d View commit details
    Browse the repository at this point in the history
  101. scsi: mvumi: Fix error return in mvumi_io_attach()

    [ Upstream commit 055f15a ]
    
    Return PTR_ERR() from the error handling case instead of 0.
    
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Jing Xiangfeng <[email protected]>
    Signed-off-by: Martin K. Petersen <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>
    hiss2018 authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    6303364 View commit details
    Browse the repository at this point in the history
  102. scsi: target: core: Add CONTROL field for trace events

    [ Upstream commit 7010645 ]
    
    trace-cmd report doesn't show events from target subsystem because
    scsi_command_size() leaks through event format string:
    
      [target:target_sequencer_start] function scsi_command_size not defined
      [target:target_cmd_complete] function scsi_command_size not defined
    
    Addition of scsi_command_size() to plugin_scsi.c in trace-cmd doesn't
    help because an expression is used inside TP_printk(). trace-cmd event
    parser doesn't understand minus sign inside [ ]:
    
      Error: expected ']' but read '-'
    
    Rather than duplicating kernel code in plugin_scsi.c, provide a dedicated
    field for CONTROL byte.
    
    Link: https://lore.kernel.org/r/[email protected]
    Reviewed-by: Mike Christie <[email protected]>
    Signed-off-by: Roman Bolshakov <[email protected]>
    Signed-off-by: Martin K. Petersen <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>
    Roman Bolshakov authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    f3467a4 View commit details
    Browse the repository at this point in the history
  103. mic: vop: copy data to kernel space then write to io memory

    [ Upstream commit 675f0ad ]
    
    Read and write io memory should address align on ARCH ARM. Change to use
    memcpy_toio to avoid kernel panic caused by the address un-align issue.
    
    Signed-off-by: Sherry Sun <[email protected]>
    Signed-off-by: Joakim Zhang <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Greg Kroah-Hartman <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>
    Sherry Sun authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    b0b36f6 View commit details
    Browse the repository at this point in the history
  104. misc: vop: add round_up(x,4) for vring_size to avoid kernel panic

    [ Upstream commit cc1a267 ]
    
    Since struct _mic_vring_info and vring are allocated together and follow
    vring, if the vring_size() is not four bytes aligned, which will cause
    the start address of struct _mic_vring_info is not four byte aligned.
    For example, when vring entries is 128, the vring_size() will be 5126
    bytes. The _mic_vring_info struct layout in ddr looks like:
    0x90002400:  00000000 00390000 EE010000 0000C0FF
    Here 0x39 is the avail_idx member, and 0xC0FFEE01 is the magic member.
    
    When EP use ioread32(magic) to reads the magic in RC's share memory, it
    will cause kernel panic on ARM64 platform due to the cross-byte io read.
    Here read magic in user space use le32toh(vr0->info->magic) will meet
    the same issue.
    So add round_up(x,4) for vring_size, then the struct _mic_vring_info
    will store in this way:
    0x90002400:  00000000 00000000 00000039 C0FFEE01
    Which will avoid kernel panic when read magic in struct _mic_vring_info.
    
    Signed-off-by: Sherry Sun <[email protected]>
    Signed-off-by: Joakim Zhang <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Greg Kroah-Hartman <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>
    Sherry Sun authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    cc7a106 View commit details
    Browse the repository at this point in the history
  105. usb: gadget: function: printer: fix use-after-free in __lock_acquire

    [ Upstream commit e8d5f92 ]
    
    Fix this by increase object reference count.
    
    BUG: KASAN: use-after-free in __lock_acquire+0x3fd4/0x4180
    kernel/locking/lockdep.c:3831
    Read of size 8 at addr ffff8880683b0018 by task syz-executor.0/3377
    
    CPU: 1 PID: 3377 Comm: syz-executor.0 Not tainted 5.6.11 #1
    Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Bochs 01/01/2011
    Call Trace:
     __dump_stack lib/dump_stack.c:77 [inline]
     dump_stack+0xce/0x128 lib/dump_stack.c:118
     print_address_description.constprop.4+0x21/0x3c0 mm/kasan/report.c:374
     __kasan_report+0x131/0x1b0 mm/kasan/report.c:506
     kasan_report+0x12/0x20 mm/kasan/common.c:641
     __asan_report_load8_noabort+0x14/0x20 mm/kasan/generic_report.c:135
     __lock_acquire+0x3fd4/0x4180 kernel/locking/lockdep.c:3831
     lock_acquire+0x127/0x350 kernel/locking/lockdep.c:4488
     __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline]
     _raw_spin_lock_irqsave+0x35/0x50 kernel/locking/spinlock.c:159
     printer_ioctl+0x4a/0x110 drivers/usb/gadget/function/f_printer.c:723
     vfs_ioctl fs/ioctl.c:47 [inline]
     ksys_ioctl+0xfb/0x130 fs/ioctl.c:763
     __do_sys_ioctl fs/ioctl.c:772 [inline]
     __se_sys_ioctl fs/ioctl.c:770 [inline]
     __x64_sys_ioctl+0x73/0xb0 fs/ioctl.c:770
     do_syscall_64+0x9e/0x510 arch/x86/entry/common.c:294
     entry_SYSCALL_64_after_hwframe+0x49/0xbe
    RIP: 0033:0x4531a9
    Code: ed 60 fc ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 48 89 f8 48
    89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d
    01 f0 ff ff 0f 83 bb 60 fc ff c3 66 2e 0f 1f 84 00 00 00 00
    RSP: 002b:00007fd14ad72c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
    RAX: ffffffffffffffda RBX: 000000000073bfa8 RCX: 00000000004531a9
    RDX: fffffffffffffff9 RSI: 000000000000009e RDI: 0000000000000003
    RBP: 0000000000000003 R08: 0000000000000000 R09: 0000000000000000
    R10: 0000000000000000 R11: 0000000000000246 R12: 00000000004bbd61
    R13: 00000000004d0a98 R14: 00007fd14ad736d4 R15: 00000000ffffffff
    
    Allocated by task 2393:
     save_stack+0x21/0x90 mm/kasan/common.c:72
     set_track mm/kasan/common.c:80 [inline]
     __kasan_kmalloc.constprop.3+0xa7/0xd0 mm/kasan/common.c:515
     kasan_kmalloc+0x9/0x10 mm/kasan/common.c:529
     kmem_cache_alloc_trace+0xfa/0x2d0 mm/slub.c:2813
     kmalloc include/linux/slab.h:555 [inline]
     kzalloc include/linux/slab.h:669 [inline]
     gprinter_alloc+0xa1/0x870 drivers/usb/gadget/function/f_printer.c:1416
     usb_get_function+0x58/0xc0 drivers/usb/gadget/functions.c:61
     config_usb_cfg_link+0x1ed/0x3e0 drivers/usb/gadget/configfs.c:444
     configfs_symlink+0x527/0x11d0 fs/configfs/symlink.c:202
     vfs_symlink+0x33d/0x5b0 fs/namei.c:4201
     do_symlinkat+0x11b/0x1d0 fs/namei.c:4228
     __do_sys_symlinkat fs/namei.c:4242 [inline]
     __se_sys_symlinkat fs/namei.c:4239 [inline]
     __x64_sys_symlinkat+0x73/0xb0 fs/namei.c:4239
     do_syscall_64+0x9e/0x510 arch/x86/entry/common.c:294
     entry_SYSCALL_64_after_hwframe+0x49/0xbe
    
    Freed by task 3368:
     save_stack+0x21/0x90 mm/kasan/common.c:72
     set_track mm/kasan/common.c:80 [inline]
     kasan_set_free_info mm/kasan/common.c:337 [inline]
     __kasan_slab_free+0x135/0x190 mm/kasan/common.c:476
     kasan_slab_free+0xe/0x10 mm/kasan/common.c:485
     slab_free_hook mm/slub.c:1444 [inline]
     slab_free_freelist_hook mm/slub.c:1477 [inline]
     slab_free mm/slub.c:3034 [inline]
     kfree+0xf7/0x410 mm/slub.c:3995
     gprinter_free+0x49/0xd0 drivers/usb/gadget/function/f_printer.c:1353
     usb_put_function+0x38/0x50 drivers/usb/gadget/functions.c:87
     config_usb_cfg_unlink+0x2db/0x3b0 drivers/usb/gadget/configfs.c:485
     configfs_unlink+0x3b9/0x7f0 fs/configfs/symlink.c:250
     vfs_unlink+0x287/0x570 fs/namei.c:4073
     do_unlinkat+0x4f9/0x620 fs/namei.c:4137
     __do_sys_unlink fs/namei.c:4184 [inline]
     __se_sys_unlink fs/namei.c:4182 [inline]
     __x64_sys_unlink+0x42/0x50 fs/namei.c:4182
     do_syscall_64+0x9e/0x510 arch/x86/entry/common.c:294
     entry_SYSCALL_64_after_hwframe+0x49/0xbe
    
    The buggy address belongs to the object at ffff8880683b0000
     which belongs to the cache kmalloc-1k of size 1024
    The buggy address is located 24 bytes inside of
     1024-byte region [ffff8880683b0000, ffff8880683b0400)
    The buggy address belongs to the page:
    page:ffffea0001a0ec00 refcount:1 mapcount:0 mapping:ffff88806c00e300
    index:0xffff8880683b1800 compound_mapcount: 0
    flags: 0x100000000010200(slab|head)
    raw: 0100000000010200 0000000000000000 0000000600000001 ffff88806c00e300
    raw: ffff8880683b1800 000000008010000a 00000001ffffffff 0000000000000000
    page dumped because: kasan: bad access detected
    
    Reported-by: Kyungtae Kim <[email protected]>
    Signed-off-by: Zqiang <[email protected]>
    Signed-off-by: Felipe Balbi <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>
    Zqiang1211 authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    4a47581 View commit details
    Browse the repository at this point in the history
  106. udf: Limit sparing table size

    [ Upstream commit 44ac6b8 ]
    
    Although UDF standard allows it, we don't support sparing table larger
    than a single block. Check it during mount so that we don't try to
    access memory beyond end of buffer.
    
    Reported-by: [email protected]
    Signed-off-by: Jan Kara <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>
    jankara authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    f96c658 View commit details
    Browse the repository at this point in the history
  107. udf: Avoid accessing uninitialized data on failed inode read

    [ Upstream commit 044e2e2 ]
    
    When we fail to read inode, some data accessed in udf_evict_inode() may
    be uninitialized. Move the accesses to !is_bad_inode() branch.
    
    Reported-by: [email protected]
    Signed-off-by: Jan Kara <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>
    jankara authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    fcfd1db View commit details
    Browse the repository at this point in the history
  108. USB: cdc-acm: handle broken union descriptors

    [ Upstream commit 960c733 ]
    
    Handle broken union functional descriptors where the master-interface
    doesn't exist or where its class is of neither Communication or Data
    type (as required by the specification) by falling back to
    "combined-interface" probing.
    
    Note that this still allows for handling union descriptors with switched
    interfaces.
    
    This specifically makes the Whistler radio scanners TRX series devices
    work with the driver without adding further quirks to the device-id
    table.
    
    Reported-by: Daniel Caujolle-Bert <[email protected]>
    Tested-by: Daniel Caujolle-Bert <[email protected]>
    Acked-by: Oliver Neukum <[email protected]>
    Signed-off-by: Johan Hovold <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Greg Kroah-Hartman <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>
    jhovold authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    c9d1acc View commit details
    Browse the repository at this point in the history
  109. ath9k: hif_usb: fix race condition between usb_get_urb() and usb_kill…

    …_anchored_urbs()
    
    [ Upstream commit 03fb92a ]
    
    Calls to usb_kill_anchored_urbs() after usb_kill_urb() on multiprocessor
    systems create a race condition in which usb_kill_anchored_urbs() deallocates
    the URB before the completer callback is called in usb_kill_urb(), resulting
    in a use-after-free.
    To fix this, add proper lock protection to usb_kill_urb() calls that can
    possibly run concurrently with usb_kill_anchored_urbs().
    
    Reported-by: [email protected]
    Link: https://syzkaller.appspot.com/bug?id=cabffad18eb74197f84871802fd2c5117b61febf
    Signed-off-by: Brooke Basile <[email protected]>
    Signed-off-by: Kalle Valo <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Sasha Levin <[email protected]>
    brookebasile authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    6f0706e View commit details
    Browse the repository at this point in the history
  110. misc: rtsx: Fix memory leak in rtsx_pci_probe

    [ Upstream commit bc28369 ]
    
    When mfd_add_devices() fail, pcr->slots should also be freed. However,
    the current implementation does not free the member, leading to a memory
    leak.
    
    Fix this by adding a new goto label that frees pcr->slots.
    
    Signed-off-by: Keita Suzuki <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Greg Kroah-Hartman <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>
    quasi-mod authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    8aab67d View commit details
    Browse the repository at this point in the history
  111. reiserfs: only call unlock_new_inode() if I_NEW

    [ Upstream commit 8859bf2 ]
    
    unlock_new_inode() is only meant to be called after a new inode has
    already been inserted into the hash table.  But reiserfs_new_inode() can
    call it even before it has inserted the inode, triggering the WARNING in
    unlock_new_inode().  Fix this by only calling unlock_new_inode() if the
    inode has the I_NEW flag set, indicating that it's in the table.
    
    This addresses the syzbot report "WARNING in unlock_new_inode"
    (https://syzkaller.appspot.com/bug?extid=187510916eb6a14598f7).
    
    Link: https://lore.kernel.org/r/[email protected]
    Reported-by: [email protected]
    Signed-off-by: Eric Biggers <[email protected]>
    Signed-off-by: Jan Kara <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>
    ebiggers authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    1236310 View commit details
    Browse the repository at this point in the history
  112. xfs: make sure the rt allocator doesn't run off the end

    [ Upstream commit 2a6ca4b ]
    
    There's an overflow bug in the realtime allocator.  If the rt volume is
    large enough to handle a single allocation request that is larger than
    the maximum bmap extent length and the rt bitmap ends exactly on a
    bitmap block boundary, it's possible that the near allocator will try to
    check the freeness of a range that extends past the end of the bitmap.
    This fails with a corruption error and shuts down the fs.
    
    Therefore, constrain maxlen so that the range scan cannot run off the
    end of the rt bitmap.
    
    Signed-off-by: Darrick J. Wong <[email protected]>
    Reviewed-by: Christoph Hellwig <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>
    djwong authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    45da43a View commit details
    Browse the repository at this point in the history
  113. usb: ohci: Default to per-port over-current protection

    [ Upstream commit b77d2a0 ]
    
    Some integrated OHCI controller hubs do not expose all ports of the hub
    to pins on the SoC. In some cases the unconnected ports generate
    spurious over-current events. For example the Broadcom 56060/Ranger 2 SoC
    contains a nominally 3 port hub but only the first port is wired.
    
    Default behaviour for ohci-platform driver is to use global over-current
    protection mode (AKA "ganged"). This leads to the spurious over-current
    events affecting all ports in the hub.
    
    We now alter the default to use per-port over-current protection.
    
    This patch results in the following configuration changes depending
    on quirks:
    - For quirk OHCI_QUIRK_SUPERIO no changes. These systems remain set up
      for ganged power switching and no over-current protection.
    - For quirk OHCI_QUIRK_AMD756 or OHCI_QUIRK_HUB_POWER power switching
      remains at none, while over-current protection is now guaranteed to be
      set to per-port rather than the previous behaviour where it was either
      none or global over-current protection depending on the value at
      function entry.
    
    Suggested-by: Alan Stern <[email protected]>
    Acked-by: Alan Stern <[email protected]>
    Signed-off-by: Hamish Martin <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Greg Kroah-Hartman <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>
    Hamish Martin authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    27e9f7a View commit details
    Browse the repository at this point in the history
  114. Bluetooth: Only mark socket zapped after unlocking

    [ Upstream commit 20ae408 ]
    
    Since l2cap_sock_teardown_cb doesn't acquire the channel lock before
    setting the socket as zapped, it could potentially race with
    l2cap_sock_release which frees the socket. Thus, wait until the cleanup
    is complete before marking the socket as zapped.
    
    This race was reproduced on a JBL GO speaker after the remote device
    rejected L2CAP connection due to resource unavailability.
    
    Here is a dmesg log with debug logs from a repro of this bug:
    [ 3465.424086] Bluetooth: hci_core.c:hci_acldata_packet() hci0 len 16 handle 0x0003 flags 0x0002
    [ 3465.424090] Bluetooth: hci_conn.c:hci_conn_enter_active_mode() hcon 00000000cfedd07d mode 0
    [ 3465.424094] Bluetooth: l2cap_core.c:l2cap_recv_acldata() conn 000000007eae8952 len 16 flags 0x2
    [ 3465.424098] Bluetooth: l2cap_core.c:l2cap_recv_frame() len 12, cid 0x0001
    [ 3465.424102] Bluetooth: l2cap_core.c:l2cap_raw_recv() conn 000000007eae8952
    [ 3465.424175] Bluetooth: l2cap_core.c:l2cap_sig_channel() code 0x03 len 8 id 0x0c
    [ 3465.424180] Bluetooth: l2cap_core.c:l2cap_connect_create_rsp() dcid 0x0045 scid 0x0000 result 0x02 status 0x00
    [ 3465.424189] Bluetooth: l2cap_core.c:l2cap_chan_put() chan 000000006acf9bff orig refcnt 4
    [ 3465.424196] Bluetooth: l2cap_core.c:l2cap_chan_del() chan 000000006acf9bff, conn 000000007eae8952, err 111, state BT_CONNECT
    [ 3465.424203] Bluetooth: l2cap_sock.c:l2cap_sock_teardown_cb() chan 000000006acf9bff state BT_CONNECT
    [ 3465.424221] Bluetooth: l2cap_core.c:l2cap_chan_put() chan 000000006acf9bff orig refcnt 3
    [ 3465.424226] Bluetooth: hci_core.h:hci_conn_drop() hcon 00000000cfedd07d orig refcnt 6
    [ 3465.424234] BUG: spinlock bad magic on CPU#2, kworker/u17:0/159
    [ 3465.425626] Bluetooth: hci_sock.c:hci_sock_sendmsg() sock 000000002bb0cb64 sk 00000000a7964053
    [ 3465.430330]  lock: 0xffffff804410aac0, .magic: 00000000, .owner: <none>/-1, .owner_cpu: 0
    [ 3465.430332] Causing a watchdog bite!
    
    Signed-off-by: Abhishek Pandit-Subedi <[email protected]>
    Reported-by: Balakrishna Godavarthi <[email protected]>
    Reviewed-by: Manish Mandlik <[email protected]>
    Signed-off-by: Marcel Holtmann <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>
    apandit authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    13971db View commit details
    Browse the repository at this point in the history
  115. scsi: ibmvfc: Fix error return in ibmvfc_probe()

    [ Upstream commit 5e48a08 ]
    
    Fix to return error code PTR_ERR() from the error handling case instead of
    0.
    
    Link: https://lore.kernel.org/r/[email protected]
    Acked-by: Tyrel Datwyler <[email protected]>
    Signed-off-by: Jing Xiangfeng <[email protected]>
    Signed-off-by: Martin K. Petersen <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>
    hiss2018 authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    a922694 View commit details
    Browse the repository at this point in the history
  116. brcmsmac: fix memory leak in wlc_phy_attach_lcnphy

    [ Upstream commit f444329 ]
    
    When wlc_phy_txpwr_srom_read_lcnphy fails in wlc_phy_attach_lcnphy,
    the allocated pi->u.pi_lcnphy is leaked, since struct brcms_phy will be
    freed in the caller function.
    
    Fix this by calling wlc_phy_detach_lcnphy in the error handler of
    wlc_phy_txpwr_srom_read_lcnphy before returning.
    
    Signed-off-by: Keita Suzuki <[email protected]>
    Signed-off-by: Kalle Valo <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Sasha Levin <[email protected]>
    quasi-mod authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    b1a1f0d View commit details
    Browse the repository at this point in the history
  117. rtl8xxxu: prevent potential memory leak

    [ Upstream commit 8627945 ]
    
    Free the skb if usb_submit_urb fails on rx_urb. And free the urb
    no matter usb_submit_urb succeeds or not in rtl8xxxu_submit_int_urb.
    
    Signed-off-by: Chris Chiu <[email protected]>
    Signed-off-by: Kalle Valo <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Sasha Levin <[email protected]>
    Chris Chiu authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    4c08261 View commit details
    Browse the repository at this point in the history
  118. Fix use after free in get_capset_info callback.

    [ Upstream commit e219688 ]
    
    If a response to virtio_gpu_cmd_get_capset_info takes longer than
    five seconds to return, the callback will access freed kernel memory
    in vg->capsets.
    
    Signed-off-by: Doug Horn <[email protected]>
    Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
    Signed-off-by: Gerd Hoffmann <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>
    doug-horn authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    466de4e View commit details
    Browse the repository at this point in the history
  119. tty: ipwireless: fix error handling

    [ Upstream commit db33235 ]
    
    ipwireless_send_packet() can only return 0 on success and -ENOMEM on
    error, the caller should check non zero for error condition
    
    Signed-off-by: Tong Zhang <[email protected]>
    Acked-by: David Sterba <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Greg Kroah-Hartman <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>
    lzto authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    d7e5fe2 View commit details
    Browse the repository at this point in the history
  120. ipvs: Fix uninit-value in do_ip_vs_set_ctl()

    [ Upstream commit c5a8a84 ]
    
    do_ip_vs_set_ctl() is referencing uninitialized stack value when `len` is
    zero. Fix it.
    
    Reported-by: [email protected]
    Link: https://syzkaller.appspot.com/bug?id=46ebfb92a8a812621a001ef04d90dfa459520fe2
    Suggested-by: Julian Anastasov <[email protected]>
    Signed-off-by: Peilin Ye <[email protected]>
    Acked-by: Julian Anastasov <[email protected]>
    Reviewed-by: Simon Horman <[email protected]>
    Signed-off-by: Pablo Neira Ayuso <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>
    peilin-ye authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    62bf54e View commit details
    Browse the repository at this point in the history
  121. reiserfs: Fix memory leak in reiserfs_parse_options()

    [ Upstream commit e9d4709 ]
    
    When a usrjquota or grpjquota mount option is used multiple times, we
    will leak memory allocated for the file name. Make sure the last setting
    is used and all the previous ones are properly freed.
    
    Reported-by: [email protected]
    Signed-off-by: Jan Kara <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>
    jankara authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    ca6ca40 View commit details
    Browse the repository at this point in the history
  122. brcm80211: fix possible memleak in brcmf_proto_msgbuf_attach

    [ Upstream commit 6c15141 ]
    
    When brcmf_proto_msgbuf_attach fail and msgbuf->txflow_wq != NULL,
    we should destroy the workqueue.
    
    Reported-by: Hulk Robot <[email protected]>
    Signed-off-by: Wang Yufen <[email protected]>
    Signed-off-by: Kalle Valo <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Sasha Levin <[email protected]>
    wangyufen316 authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    260de14 View commit details
    Browse the repository at this point in the history
  123. usb: core: Solve race condition in anchor cleanup functions

    [ Upstream commit fbc2994 ]
    
    usb_kill_anchored_urbs() is commonly used to cancel all URBs on an
    anchor just before releasing resources which the URBs rely on. By doing
    so, users of this function rely on that no completer callbacks will take
    place from any URB on the anchor after it returns.
    
    However if this function is called in parallel with __usb_hcd_giveback_urb
    processing a URB on the anchor, the latter may call the completer
    callback after usb_kill_anchored_urbs() returns. This can lead to a
    kernel panic due to use after release of memory in interrupt context.
    
    The race condition is that __usb_hcd_giveback_urb() first unanchors the URB
    and then makes the completer callback. Such URB is hence invisible to
    usb_kill_anchored_urbs(), allowing it to return before the completer has
    been called, since the anchor's urb_list is empty.
    
    Even worse, if the racing completer callback resubmits the URB, it may
    remain in the system long after usb_kill_anchored_urbs() returns.
    
    Hence list_empty(&anchor->urb_list), which is used in the existing
    while-loop, doesn't reliably ensure that all URBs of the anchor are gone.
    
    A similar problem exists with usb_poison_anchored_urbs() and
    usb_scuttle_anchored_urbs().
    
    This patch adds an external do-while loop, which ensures that all URBs
    are indeed handled before these three functions return. This change has
    no effect at all unless the race condition occurs, in which case the
    loop will busy-wait until the racing completer callback has finished.
    This is a rare condition, so the CPU waste of this spinning is
    negligible.
    
    The additional do-while loop relies on usb_anchor_check_wakeup(), which
    returns true iff the anchor list is empty, and there is no
    __usb_hcd_giveback_urb() in the system that is in the middle of the
    unanchor-before-complete phase. The @suspend_wakeups member of
    struct usb_anchor is used for this purpose, which was introduced to solve
    another problem which the same race condition causes, in commit
    6ec4147 ("usb-anchor: Delay usb_wait_anchor_empty_timeout wake up
    till completion is done").
    
    The surely_empty variable is necessary, because usb_anchor_check_wakeup()
    must be called with the lock held to prevent races. However the spinlock
    must be released and reacquired if the outer loop spins with an empty
    URB list while waiting for the unanchor-before-complete passage to finish:
    The completer callback may very well attempt to take the very same lock.
    
    To summarize, using usb_anchor_check_wakeup() means that the patched
    functions can return only when the anchor's list is empty, and there is
    no invisible URB being processed. Since the inner while loop finishes on
    the empty list condition, the new do-while loop will terminate as well,
    except for when the said race condition occurs.
    
    Signed-off-by: Eli Billauer <[email protected]>
    Acked-by: Oliver Neukum <[email protected]>
    Acked-by: Alan Stern <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Greg Kroah-Hartman <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>
    billauer authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    e794548 View commit details
    Browse the repository at this point in the history
  124. ath10k: check idx validity in __ath10k_htt_rx_ring_fill_n()

    [ Upstream commit bad60b8 ]
    
    The idx in __ath10k_htt_rx_ring_fill_n function lives in
    consistent dma region writable by the device. Malfunctional
    or malicious device could manipulate such idx to have a OOB
    write. Either by
        htt->rx_ring.netbufs_ring[idx] = skb;
    or by
        ath10k_htt_set_paddrs_ring(htt, paddr, idx);
    
    The idx can also be negative as it's signed, giving a large
    memory space to write to.
    
    It's possibly exploitable by corruptting a legit pointer with
    a skb pointer. And then fill skb with payload as rougue object.
    
    Part of the log here. Sometimes it appears as UAF when writing
    to a freed memory by chance.
    
     [   15.594376] BUG: unable to handle page fault for address: ffff887f5c1804f0
     [   15.595483] #PF: supervisor write access in kernel mode
     [   15.596250] #PF: error_code(0x0002) - not-present page
     [   15.597013] PGD 0 P4D 0
     [   15.597395] Oops: 0002 [#1] SMP KASAN PTI
     [   15.597967] CPU: 0 PID: 82 Comm: kworker/u2:2 Not tainted 5.6.0 #69
     [   15.598843] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996),
     BIOS rel-1.12.1-0-ga5cab58e9a3f-prebuilt.qemu.org 04/01/2014
     [   15.600438] Workqueue: ath10k_wq ath10k_core_register_work [ath10k_core]
     [   15.601389] RIP: 0010:__ath10k_htt_rx_ring_fill_n
     (linux/drivers/net/wireless/ath/ath10k/htt_rx.c:173) ath10k_core
    
    Signed-off-by: Zekun Shen <[email protected]>
    Signed-off-by: Kalle Valo <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Sasha Levin <[email protected]>
    buszk authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    f259b6e View commit details
    Browse the repository at this point in the history
  125. net: korina: cast KSEG0 address to pointer in kfree

    [ Upstream commit 3bd57b9 ]
    
    Fixes gcc warning:
    
    passing argument 1 of 'kfree' makes pointer from integer without a cast
    
    Fixes: 3af5f0f ("net: korina: fix kfree of rx/tx descriptor array")
    Reported-by: kernel test robot <[email protected]>
    Signed-off-by: Valentin Vidic <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Jakub Kicinski <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>
    vvidic authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    6850d74 View commit details
    Browse the repository at this point in the history
  126. usb: cdc-acm: add quirk to blacklist ETAS ES58X devices

    commit a4f8843 upstream.
    
    The ES58X devices has a CDC ACM interface (used for debug
    purpose). During probing, the device is thus recognized as USB Modem
    (CDC ACM), preventing the etas-es58x module to load:
      usbcore: registered new interface driver etas_es58x
      usb 1-1.1: new full-speed USB device number 14 using xhci_hcd
      usb 1-1.1: New USB device found, idVendor=108c, idProduct=0159, bcdDevice= 1.00
      usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
      usb 1-1.1: Product: ES581.4
      usb 1-1.1: Manufacturer: ETAS GmbH
      usb 1-1.1: SerialNumber: 2204355
      cdc_acm 1-1.1:1.0: No union descriptor, testing for castrated device
      cdc_acm 1-1.1:1.0: ttyACM0: USB ACM device
    
    Thus, these have been added to the ignore list in
    drivers/usb/class/cdc-acm.c
    
    N.B. Future firmware release of the ES58X will remove the CDC-ACM
    interface.
    
    `lsusb -v` of the three devices variant (ES581.4, ES582.1 and
    ES584.1):
    
      Bus 001 Device 011: ID 108c:0159 Robert Bosch GmbH ES581.4
      Device Descriptor:
        bLength                18
        bDescriptorType         1
        bcdUSB               1.10
        bDeviceClass            2 Communications
        bDeviceSubClass         0
        bDeviceProtocol         0
        bMaxPacketSize0        64
        idVendor           0x108c Robert Bosch GmbH
        idProduct          0x0159
        bcdDevice            1.00
        iManufacturer           1 ETAS GmbH
        iProduct                2 ES581.4
        iSerial                 3 2204355
        bNumConfigurations      1
        Configuration Descriptor:
          bLength                 9
          bDescriptorType         2
          wTotalLength       0x0035
          bNumInterfaces          1
          bConfigurationValue     1
          iConfiguration          5 Bus Powered Configuration
          bmAttributes         0x80
            (Bus Powered)
          MaxPower              100mA
          Interface Descriptor:
            bLength                 9
            bDescriptorType         4
            bInterfaceNumber        0
            bAlternateSetting       0
            bNumEndpoints           3
            bInterfaceClass         2 Communications
            bInterfaceSubClass      2 Abstract (modem)
            bInterfaceProtocol      0
            iInterface              4 ACM Control Interface
            CDC Header:
              bcdCDC               1.10
            CDC Call Management:
              bmCapabilities       0x01
                call management
              bDataInterface          0
            CDC ACM:
              bmCapabilities       0x06
                sends break
                line coding and serial state
            Endpoint Descriptor:
              bLength                 7
              bDescriptorType         5
              bEndpointAddress     0x81  EP 1 IN
              bmAttributes            3
                Transfer Type            Interrupt
                Synch Type               None
                Usage Type               Data
              wMaxPacketSize     0x0010  1x 16 bytes
              bInterval              10
            Endpoint Descriptor:
              bLength                 7
              bDescriptorType         5
              bEndpointAddress     0x82  EP 2 IN
              bmAttributes            2
                Transfer Type            Bulk
                Synch Type               None
                Usage Type               Data
              wMaxPacketSize     0x0040  1x 64 bytes
              bInterval               0
            Endpoint Descriptor:
              bLength                 7
              bDescriptorType         5
              bEndpointAddress     0x03  EP 3 OUT
              bmAttributes            2
                Transfer Type            Bulk
                Synch Type               None
                Usage Type               Data
              wMaxPacketSize     0x0040  1x 64 bytes
              bInterval               0
      Device Status:     0x0000
        (Bus Powered)
    
      Bus 001 Device 012: ID 108c:0168 Robert Bosch GmbH ES582
      Device Descriptor:
        bLength                18
        bDescriptorType         1
        bcdUSB               2.00
        bDeviceClass            2 Communications
        bDeviceSubClass         0
        bDeviceProtocol         0
        bMaxPacketSize0        64
        idVendor           0x108c Robert Bosch GmbH
        idProduct          0x0168
        bcdDevice            1.00
        iManufacturer           1 ETAS GmbH
        iProduct                2 ES582
        iSerial                 3 0108933
        bNumConfigurations      1
        Configuration Descriptor:
          bLength                 9
          bDescriptorType         2
          wTotalLength       0x0043
          bNumInterfaces          2
          bConfigurationValue     1
          iConfiguration          0
          bmAttributes         0x80
            (Bus Powered)
          MaxPower              500mA
          Interface Descriptor:
            bLength                 9
            bDescriptorType         4
            bInterfaceNumber        0
            bAlternateSetting       0
            bNumEndpoints           1
            bInterfaceClass         2 Communications
            bInterfaceSubClass      2 Abstract (modem)
            bInterfaceProtocol      1 AT-commands (v.25ter)
            iInterface              0
            CDC Header:
              bcdCDC               1.10
            CDC ACM:
              bmCapabilities       0x02
                line coding and serial state
            CDC Union:
              bMasterInterface        0
              bSlaveInterface         1
            CDC Call Management:
              bmCapabilities       0x03
                call management
                use DataInterface
              bDataInterface          1
            Endpoint Descriptor:
              bLength                 7
              bDescriptorType         5
              bEndpointAddress     0x83  EP 3 IN
              bmAttributes            3
                Transfer Type            Interrupt
                Synch Type               None
                Usage Type               Data
              wMaxPacketSize     0x0040  1x 64 bytes
              bInterval              16
          Interface Descriptor:
            bLength                 9
            bDescriptorType         4
            bInterfaceNumber        1
            bAlternateSetting       0
            bNumEndpoints           2
            bInterfaceClass        10 CDC Data
            bInterfaceSubClass      0
            bInterfaceProtocol      0
            iInterface              0
            Endpoint Descriptor:
              bLength                 7
              bDescriptorType         5
              bEndpointAddress     0x81  EP 1 IN
              bmAttributes            2
                Transfer Type            Bulk
                Synch Type               None
                Usage Type               Data
              wMaxPacketSize     0x0200  1x 512 bytes
              bInterval               0
            Endpoint Descriptor:
              bLength                 7
              bDescriptorType         5
              bEndpointAddress     0x02  EP 2 OUT
              bmAttributes            2
                Transfer Type            Bulk
                Synch Type               None
                Usage Type               Data
              wMaxPacketSize     0x0200  1x 512 bytes
              bInterval               0
      Device Qualifier (for other device speed):
        bLength                10
        bDescriptorType         6
        bcdUSB               2.00
        bDeviceClass            2 Communications
        bDeviceSubClass         0
        bDeviceProtocol         0
        bMaxPacketSize0        64
        bNumConfigurations      1
      Device Status:     0x0000
        (Bus Powered)
    
      Bus 001 Device 013: ID 108c:0169 Robert Bosch GmbH ES584.1
      Device Descriptor:
        bLength                18
        bDescriptorType         1
        bcdUSB               2.00
        bDeviceClass            2 Communications
        bDeviceSubClass         0
        bDeviceProtocol         0
        bMaxPacketSize0        64
        idVendor           0x108c Robert Bosch GmbH
        idProduct          0x0169
        bcdDevice            1.00
        iManufacturer           1 ETAS GmbH
        iProduct                2 ES584.1
        iSerial                 3 0100320
        bNumConfigurations      1
        Configuration Descriptor:
          bLength                 9
          bDescriptorType         2
          wTotalLength       0x0043
          bNumInterfaces          2
          bConfigurationValue     1
          iConfiguration          0
          bmAttributes         0x80
            (Bus Powered)
          MaxPower              500mA
          Interface Descriptor:
            bLength                 9
            bDescriptorType         4
            bInterfaceNumber        0
            bAlternateSetting       0
            bNumEndpoints           1
            bInterfaceClass         2 Communications
            bInterfaceSubClass      2 Abstract (modem)
            bInterfaceProtocol      1 AT-commands (v.25ter)
            iInterface              0
            CDC Header:
              bcdCDC               1.10
            CDC ACM:
              bmCapabilities       0x02
                line coding and serial state
            CDC Union:
              bMasterInterface        0
              bSlaveInterface         1
            CDC Call Management:
              bmCapabilities       0x03
                call management
                use DataInterface
              bDataInterface          1
            Endpoint Descriptor:
              bLength                 7
              bDescriptorType         5
              bEndpointAddress     0x83  EP 3 IN
              bmAttributes            3
                Transfer Type            Interrupt
                Synch Type               None
                Usage Type               Data
              wMaxPacketSize     0x0040  1x 64 bytes
              bInterval              16
          Interface Descriptor:
            bLength                 9
            bDescriptorType         4
            bInterfaceNumber        1
            bAlternateSetting       0
            bNumEndpoints           2
            bInterfaceClass        10 CDC Data
            bInterfaceSubClass      0
            bInterfaceProtocol      0
            iInterface              0
            Endpoint Descriptor:
              bLength                 7
              bDescriptorType         5
              bEndpointAddress     0x81  EP 1 IN
              bmAttributes            2
                Transfer Type            Bulk
                Synch Type               None
                Usage Type               Data
              wMaxPacketSize     0x0200  1x 512 bytes
              bInterval               0
            Endpoint Descriptor:
              bLength                 7
              bDescriptorType         5
              bEndpointAddress     0x02  EP 2 OUT
              bmAttributes            2
                Transfer Type            Bulk
                Synch Type               None
                Usage Type               Data
              wMaxPacketSize     0x0200  1x 512 bytes
              bInterval               0
      Device Qualifier (for other device speed):
        bLength                10
        bDescriptorType         6
        bcdUSB               2.00
        bDeviceClass            2 Communications
        bDeviceSubClass         0
        bDeviceProtocol         0
        bMaxPacketSize0        64
        bNumConfigurations      1
      Device Status:     0x0000
        (Bus Powered)
    
    Signed-off-by: Vincent Mailhol <[email protected]>
    Cc: stable <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Greg Kroah-Hartman <[email protected]>
    vincent-mailhol authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    a0190bc View commit details
    Browse the repository at this point in the history
  127. USB: cdc-wdm: Make wdm_flush() interruptible and add wdm_fsync().

    commit 37d2a36 upstream.
    
    syzbot is reporting hung task at wdm_flush() [1], for there is a circular
    dependency that wdm_flush() from flip_close() for /dev/cdc-wdm0 forever
    waits for /dev/raw-gadget to be closed while close() for /dev/raw-gadget
    cannot be called unless close() for /dev/cdc-wdm0 completes.
    
    Tetsuo Handa considered that such circular dependency is an usage error [2]
    which corresponds to an unresponding broken hardware [3]. But Alan Stern
    responded that we should be prepared for such hardware [4]. Therefore,
    this patch changes wdm_flush() to use wait_event_interruptible_timeout()
    which gives up after 30 seconds, for hardware that remains silent must be
    ignored. The 30 seconds are coming out of thin air.
    
    Changing wait_event() to wait_event_interruptible_timeout() makes error
    reporting from close() syscall less reliable. To compensate it, this patch
    also implements wdm_fsync() which does not use timeout. Those who want to
    be very sure that data has gone out to the device are now advised to call
    fsync(), with a caveat that fsync() can return -EINVAL when running on
    older kernels which do not implement wdm_fsync().
    
    This patch also fixes three more problems (listed below) found during
    exhaustive discussion and testing.
    
      Since multiple threads can concurrently call wdm_write()/wdm_flush(),
      we need to use wake_up_all() whenever clearing WDM_IN_USE in order to
      make sure that all waiters are woken up. Also, error reporting needs
      to use fetch-and-clear approach in order not to report same error for
      multiple times.
    
      Since wdm_flush() checks WDM_DISCONNECTING, wdm_write() should as well
      check WDM_DISCONNECTING.
    
      In wdm_flush(), since locks are not held, it is not safe to dereference
      desc->intf after checking that WDM_DISCONNECTING is not set [5]. Thus,
      remove dev_err() from wdm_flush().
    
    [1] https://syzkaller.appspot.com/bug?id=e7b761593b23eb50855b9ea31e3be5472b711186
    [2] https://lkml.kernel.org/r/[email protected]
    [3] https://lkml.kernel.org/r/[email protected]
    [4] https://lkml.kernel.org/r/[email protected]
    [5] https://lkml.kernel.org/r/[email protected]
    
    Reported-by: syzbot <[email protected]>
    Cc: stable <[email protected]>
    Co-developed-by: Tetsuo Handa <[email protected]>
    Signed-off-by: Tetsuo Handa <[email protected]>
    Signed-off-by: Oliver Neukum <[email protected]>
    Cc: Alan Stern <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Greg Kroah-Hartman <[email protected]>
    oneukum authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    1e61adf View commit details
    Browse the repository at this point in the history
  128. eeprom: at25: set minimum read/write access stride to 1

    commit 284f52a upstream.
    
    SPI eeproms are addressed by byte.
    
    Signed-off-by: Christian Eggers <[email protected]>
    Cc: [email protected]
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Greg Kroah-Hartman <[email protected]>
    ceggers-arri authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    f9a0684 View commit details
    Browse the repository at this point in the history
  129. usb: gadget: f_ncm: allow using NCM in SuperSpeed Plus gadgets.

    [ Upstream commit 7974ecd ]
    
    Currently, enabling f_ncm at SuperSpeed Plus speeds results in an
    oops in config_ep_by_speed because ncm_set_alt passes in NULL
    ssp_descriptors. Fix this by re-using the SuperSpeed descriptors.
    This is safe because usb_assign_descriptors calls
    usb_copy_descriptors.
    
    Tested: enabled f_ncm on a dwc3 gadget and 10Gbps link, ran iperf
    Reviewed-by: Maciej Żenczykowski <[email protected]>
    Signed-off-by: Lorenzo Colitti <[email protected]>
    Signed-off-by: Felipe Balbi <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>
    lcolitti authored and gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    f53b7ea View commit details
    Browse the repository at this point in the history
  130. Linux 4.9.241

    Tested-by: Linux Kernel Functional Testing <[email protected]>
    Tested-by: Jon Hunter <[email protected]>
    Tested-by: Guenter Roeck <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Greg Kroah-Hartman <[email protected]>
    gregkh committed Oct 29, 2020
    Configuration menu
    Copy the full SHA
    d69a20c View commit details
    Browse the repository at this point in the history

Commits on Nov 7, 2020

  1. Merge tag 'v4.9.233' into khadas-vims-4.9.y

    This is the 4.9.233 stable release
    numbqq committed Nov 7, 2020
    Configuration menu
    Copy the full SHA
    267fbef View commit details
    Browse the repository at this point in the history
  2. Merge tag 'v4.9.234' into khadas-vims-4.9.y

    This is the 4.9.234 stable release
    
    Signed-off-by: Nick Xie <[email protected]>
    numbqq committed Nov 7, 2020
    Configuration menu
    Copy the full SHA
    5809893 View commit details
    Browse the repository at this point in the history
  3. Merge tag 'v4.9.235' into khadas-vims-4.9.y

    This is the 4.9.235 stable release
    numbqq committed Nov 7, 2020
    Configuration menu
    Copy the full SHA
    6c0ef7b View commit details
    Browse the repository at this point in the history
  4. Merge tag 'v4.9.236' into khadas-vims-4.9.y

    This is the 4.9.236 stable release
    numbqq committed Nov 7, 2020
    Configuration menu
    Copy the full SHA
    5b6132f View commit details
    Browse the repository at this point in the history
  5. Merge tag 'v4.9.237' into khadas-vims-4.9.y

    This is the 4.9.237 stable release
    numbqq committed Nov 7, 2020
    Configuration menu
    Copy the full SHA
    8d86f28 View commit details
    Browse the repository at this point in the history
  6. Merge tag 'v4.9.238' into khadas-vims-4.9.y

    This is the 4.9.238 stable release
    numbqq committed Nov 7, 2020
    Configuration menu
    Copy the full SHA
    3522b9f View commit details
    Browse the repository at this point in the history
  7. Merge tag 'v4.9.239' into khadas-vims-4.9.y

    This is the 4.9.239 stable release
    
    Signed-off-by: Nick Xie <[email protected]>
    numbqq committed Nov 7, 2020
    Configuration menu
    Copy the full SHA
    d23f31c View commit details
    Browse the repository at this point in the history
  8. Merge tag 'v4.9.240' into khadas-vims-4.9.y

    This is the 4.9.240 stable release
    numbqq committed Nov 7, 2020
    Configuration menu
    Copy the full SHA
    4a5b198 View commit details
    Browse the repository at this point in the history
  9. Merge tag 'v4.9.241' into khadas-vims-4.9.y

    This is the 4.9.241 stable release
    numbqq committed Nov 7, 2020
    Configuration menu
    Copy the full SHA
    86f9ab4 View commit details
    Browse the repository at this point in the history

Commits on Nov 23, 2020

  1. ALSA: usb-audio: add usb vendor id as DSD-capable for Khadas devices

    Khadas audio devices ( USB_ID_VENDOR 0x3353 )
    have DSD-capable implementations from XMOS
    need add new usb vendor id for recognition
    
    Signed-off-by: Artem Lapkin <[email protected]>
    Artem Lapkin committed Nov 23, 2020
    Configuration menu
    Copy the full SHA
    245c6d3 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #36 from hyphop/khadas-vims-4.9.y

    ALSA: usb-audio: add usb vendor id as DSD-capable for Khadas devices
    numbqq authored Nov 23, 2020
    Configuration menu
    Copy the full SHA
    8fbb9f8 View commit details
    Browse the repository at this point in the history

Commits on Nov 25, 2020

  1. mcu: fix a typo

    Signed-off-by: Nick Xie <[email protected]>
    numbqq committed Nov 25, 2020
    Configuration menu
    Copy the full SHA
    0945acf View commit details
    Browse the repository at this point in the history
  2. Update DDK Version to 6.4.3CB

    Signed-off-by: yan <[email protected]>
    yan-wyb authored and numbqq committed Nov 25, 2020
    Configuration menu
    Copy the full SHA
    f5d5919 View commit details
    Browse the repository at this point in the history

Commits on Dec 1, 2020

  1. arm64: dts: i2c1: VIM2: set speed to 100k

    Signed-off-by: Nick Xie <[email protected]>
    numbqq committed Dec 1, 2020
    Configuration menu
    Copy the full SHA
    f91f887 View commit details
    Browse the repository at this point in the history

Commits on Dec 4, 2020

  1. arm64: defconfig: enable CONFIG_DEVMEM & CONFIG_DEVKMEM

    Signed-off-by: Nick Xie <[email protected]>
    numbqq committed Dec 4, 2020
    Configuration menu
    Copy the full SHA
    18ec716 View commit details
    Browse the repository at this point in the history

Commits on Dec 14, 2020

  1. media: add vfm grabber driver support

    porting form @LongChair & @OtherCrashOverride 's driver
    
    Thanks them!
    
    Signed-off-by: Nick Xie <[email protected]>
    numbqq committed Dec 14, 2020
    1 Configuration menu
    Copy the full SHA
    fa9236e View commit details
    Browse the repository at this point in the history
  2. ge2d: update to buildroot 202005 release

    Signed-off-by: Nick Xie <[email protected]>
    numbqq committed Dec 14, 2020
    Configuration menu
    Copy the full SHA
    7d59151 View commit details
    Browse the repository at this point in the history
  3. ge2d: fix a bug of build_ge2d_config

    Signed-off-by: Nick Xie <[email protected]>
    numbqq committed Dec 14, 2020
    Configuration menu
    Copy the full SHA
    1fe6c16 View commit details
    Browse the repository at this point in the history

Commits on Jan 9, 2021

  1. ge2d: update to buildroot 202011-g12b-nvr release

    disable GE2D_POWER_DOMAIN_CTRL
    
    Signed-off-by: Nick Xie <[email protected]>
    numbqq committed Jan 9, 2021
    Configuration menu
    Copy the full SHA
    4a0eeca View commit details
    Browse the repository at this point in the history
  2. arm64: dts: ge2d: VIM3L: fix irq number

    Signed-off-by: Nick Xie <[email protected]>
    numbqq committed Jan 9, 2021
    Configuration menu
    Copy the full SHA
    ad130c6 View commit details
    Browse the repository at this point in the history

Commits on Jan 11, 2021

  1. arm64: dts: VIM3/3L: fix efuse mac address length

    Signed-off-by: Nick Xie <[email protected]>
    numbqq committed Jan 11, 2021
    Configuration menu
    Copy the full SHA
    7cadc66 View commit details
    Browse the repository at this point in the history

Commits on Jan 14, 2021

  1. fixup! ge2d: update to buildroot 202011-g12b-nvr release

    Signed-off-by: Nick Xie <[email protected]>
    numbqq committed Jan 14, 2021
    Configuration menu
    Copy the full SHA
    7e73fc3 View commit details
    Browse the repository at this point in the history
  2. ge2d: fix source of phy address

    Signed-off-by: Nick Xie <[email protected]>
    numbqq committed Jan 14, 2021
    Configuration menu
    Copy the full SHA
    b4904d2 View commit details
    Browse the repository at this point in the history

Commits on Jan 19, 2021

  1. arm64: dts: overlays: VIM3/3L: add usb otg device

    Signed-off-by: Nick Xie <[email protected]>
    numbqq committed Jan 19, 2021
    Configuration menu
    Copy the full SHA
    4c3eaef View commit details
    Browse the repository at this point in the history

Commits on Feb 21, 2021

  1. arm64: kvims_defconfig: enable more governors

    Signed-off-by: Nick Xie <[email protected]>
    numbqq committed Feb 21, 2021
    Configuration menu
    Copy the full SHA
    efddbfb View commit details
    Browse the repository at this point in the history
  2. thermal: amlogic_thermal: add hwmon support

    Signed-off-by: Nick Xie <[email protected]>
    numbqq committed Feb 21, 2021
    Configuration menu
    Copy the full SHA
    693781a View commit details
    Browse the repository at this point in the history

Commits on Mar 11, 2021

  1. Gsensor: add kxtj3 driver support

    Signed-off-by: Nick Xie <[email protected]>
    terry2droid authored and numbqq committed Mar 11, 2021
    Configuration menu
    Copy the full SHA
    0ff70f7 View commit details
    Browse the repository at this point in the history

Commits on Mar 15, 2021

  1. arm64: dts: VIM3L: add gsensor kxtj3 node

    Signed-off-by: Nick Xie <[email protected]>
    numbqq committed Mar 15, 2021
    Configuration menu
    Copy the full SHA
    f7e7684 View commit details
    Browse the repository at this point in the history

Commits on Mar 23, 2021

  1. logo: add khadas logo

    Signed-off-by: Nick Xie <[email protected]>
    numbqq committed Mar 23, 2021
    Configuration menu
    Copy the full SHA
    78535be View commit details
    Browse the repository at this point in the history

Commits on Mar 26, 2021

  1. wdt: add option to avoid the wdt is disabled casually [1/1]

    PD#SWPL-14925
    
    Problem:
    The system can't be reset by wdt which is fed by the tv-service
    when the tv-service is abnormally hanged.
    
    Solution:
    Add extra option to avoid the wdt is disabled when the fed dog
    thread aborts, but we can disable wdt when certain condition is
    met.
    
    Verify:
    test pass on customer board
    
    Change-Id: I1fd5ff4e36f06bda99726c0a2ced399299596f95
    Signed-off-by: Xingyu Chen <[email protected]>
    Xingyu Chen authored and numbqq committed Mar 26, 2021
    Configuration menu
    Copy the full SHA
    ffef59e View commit details
    Browse the repository at this point in the history
  2. arm64: dts: watchdog: reset_watchdog_method set to sysfs

    control watchdog timeout in userspace via watchdog daemon
    
    Signed-off-by: Nick Xie <[email protected]>
    numbqq committed Mar 26, 2021
    Configuration menu
    Copy the full SHA
    f7052f3 View commit details
    Browse the repository at this point in the history
  3. arm64: dts: overlays: add watchdog overlay

    Signed-off-by: Nick Xie <[email protected]>
    numbqq committed Mar 26, 2021
    Configuration menu
    Copy the full SHA
    ebac18e View commit details
    Browse the repository at this point in the history

Commits on Mar 31, 2021

  1. arm64: dts: overlays: VIM3/3L: move i2s to dtbo

    Signed-off-by: Nick Xie <[email protected]>
    numbqq committed Mar 31, 2021
    Configuration menu
    Copy the full SHA
    0a55122 View commit details
    Browse the repository at this point in the history
  2. arm64: dts: overlays: VIM1/2: move i2s to dtbo

    Signed-off-by: Nick Xie <[email protected]>
    numbqq committed Mar 31, 2021
    Configuration menu
    Copy the full SHA
    6dd351a View commit details
    Browse the repository at this point in the history

Commits on Apr 15, 2021

  1. Add fan trigger temperatures setting nodes

    Signed-off-by: yan <[email protected]>
    yan-wyb committed Apr 15, 2021
    Configuration menu
    Copy the full SHA
    1c33380 View commit details
    Browse the repository at this point in the history

Commits on Apr 17, 2021

  1. fan sysfs node : Set threshold

    Signed-off-by: yan <[email protected]>
    yan-wyb committed Apr 17, 2021
    Configuration menu
    Copy the full SHA
    0cf38ef View commit details
    Browse the repository at this point in the history
  2. Merge pull request #42 from yan-wyb/khadas-vims-4.9.y

    Add fan trigger temperatures setting nodes
    numbqq authored Apr 17, 2021
    Configuration menu
    Copy the full SHA
    eba9589 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    2cae8b8 View commit details
    Browse the repository at this point in the history
  4. Merge pull request #43 from yan-wyb/khadas-vims-4.9.y

    fixup! fan sysfs node : Set threshold
    numbqq authored Apr 17, 2021
    Configuration menu
    Copy the full SHA
    814f263 View commit details
    Browse the repository at this point in the history

Commits on May 15, 2021

  1. update npu driver to 6.4.4.3

    Signed-off-by: yan <[email protected]>
    yan-wyb committed May 15, 2021
    Configuration menu
    Copy the full SHA
    8ce7dc7 View commit details
    Browse the repository at this point in the history

Commits on May 18, 2021

  1. Merge pull request #44 from yan-wyb/khadas-vims-4.9.y

    update npu driver to 6.4.4.3
    numbqq authored May 18, 2021
    Configuration menu
    Copy the full SHA
    3c21d89 View commit details
    Browse the repository at this point in the history
  2. arm64: dts: VIMs: BT: disable power down

    Signed-off-by: Nick Xie <[email protected]>
    numbqq committed May 18, 2021
    Configuration menu
    Copy the full SHA
    896cde5 View commit details
    Browse the repository at this point in the history

Commits on May 25, 2021

  1. npu: VIM3L: fix crash

    Signed-off-by: Nick Xie <[email protected]>
    numbqq committed May 25, 2021
    Configuration menu
    Copy the full SHA
    0921d4c View commit details
    Browse the repository at this point in the history

Commits on Jun 21, 2021

  1. Merge pull request #1 from khadas/khadas-vims-4.9.y

    Khadas vims 4.9.y update 210621
    yan-wyb authored Jun 21, 2021
    Configuration menu
    Copy the full SHA
    a4160ac View commit details
    Browse the repository at this point in the history

Commits on Jun 22, 2021

  1. DHD: enable CONFIG_PATH_AUTO_SELECT

    Signed-off-by: Nick Xie <[email protected]>
    numbqq committed Jun 22, 2021
    Configuration menu
    Copy the full SHA
    4f699b3 View commit details
    Browse the repository at this point in the history

Commits on Jun 23, 2021

  1. Configuration menu
    Copy the full SHA
    c5aa6ab View commit details
    Browse the repository at this point in the history

Commits on Sep 13, 2021

  1. Merge pull request #2 from khadas/khadas-vims-4.9.y

    Khadas vims 4.9.y
    yan-wyb authored Sep 13, 2021
    Configuration menu
    Copy the full SHA
    457aabf View commit details
    Browse the repository at this point in the history

Commits on Sep 15, 2021

  1. VIM3: Add mcp2515 supports

    Signed-off-by: yan <[email protected]>
    yan-wyb committed Sep 15, 2021
    Configuration menu
    Copy the full SHA
    c7aa3f2 View commit details
    Browse the repository at this point in the history

Commits on Sep 16, 2021

  1. VIM3L: Add mcp2515 supports

    Signed-off-by: yan <[email protected]>
    yan-wyb committed Sep 16, 2021
    Configuration menu
    Copy the full SHA
    56522f1 View commit details
    Browse the repository at this point in the history

Commits on Sep 17, 2021

  1. Merge pull request #45 from yan-wyb/khadas-vims-4.9.y

    Khadas vims 4.9.y
    numbqq authored Sep 17, 2021
    Configuration menu
    Copy the full SHA
    6a47e5c View commit details
    Browse the repository at this point in the history

Commits on Sep 29, 2021

  1. arm64: defconfig: enable mpu6050 i2c && spi

    Signed-off-by: Frank <[email protected]>
    yan-wyb committed Sep 29, 2021
    Configuration menu
    Copy the full SHA
    dcdd4e7 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5a2b206 View commit details
    Browse the repository at this point in the history
  3. arm64: dts: VIM: add mpu6050-i2c overlays

    Signed-off-by: Frank <[email protected]>
    yan-wyb committed Sep 29, 2021
    Configuration menu
    Copy the full SHA
    7dd0972 View commit details
    Browse the repository at this point in the history
  4. arm64: dts: VIM2: add mpu6050-i2c overlays

    Signed-off-by: Frank <[email protected]>
    yan-wyb committed Sep 29, 2021
    Configuration menu
    Copy the full SHA
    09e71a0 View commit details
    Browse the repository at this point in the history
  5. arm64: dts: VIM3: add mpu6050-i2c overlays

    Signed-off-by: Frank <[email protected]>
    yan-wyb committed Sep 29, 2021
    Configuration menu
    Copy the full SHA
    8ff2e37 View commit details
    Browse the repository at this point in the history
  6. arm64: dts: VIM3L: add mpu6050-i2c overlays

    Signed-off-by: Frank <[email protected]>
    yan-wyb committed Sep 29, 2021
    Configuration menu
    Copy the full SHA
    f25b6d9 View commit details
    Browse the repository at this point in the history
  7. Merge pull request #47 from yan-wyb/khadas-vims-4.9.y

    Khadas vims 4.9.y
    numbqq authored Sep 29, 2021
    Configuration menu
    Copy the full SHA
    5bd49c2 View commit details
    Browse the repository at this point in the history

Commits on Oct 11, 2021

  1. sound: codec: Add es8316 support

    Signed-off-by: Frank <[email protected]>
    yan-wyb committed Oct 11, 2021
    Configuration menu
    Copy the full SHA
    de19145 View commit details
    Browse the repository at this point in the history
  2. arm64: defconfig: VIMs: enable es8316

    Signed-off-by: Frank <[email protected]>
    yan-wyb committed Oct 11, 2021
    Configuration menu
    Copy the full SHA
    9026fa5 View commit details
    Browse the repository at this point in the history
  3. power: add bq25700 power charger support

    Signed-off-by: Frank <[email protected]>
    yan-wyb committed Oct 11, 2021
    Configuration menu
    Copy the full SHA
    e2dfd70 View commit details
    Browse the repository at this point in the history
  4. power: add cw2015 battery support

    Signed-off-by: Frank <[email protected]>
    yan-wyb committed Oct 11, 2021
    Configuration menu
    Copy the full SHA
    48c2909 View commit details
    Browse the repository at this point in the history
  5. amlogic: battery: change battery type, 'usb' to 'ac'

    Signed-off-by: Frank <[email protected]>
    yan-wyb committed Oct 11, 2021
    Configuration menu
    Copy the full SHA
    12035e1 View commit details
    Browse the repository at this point in the history
  6. arm64: defconfig: VIMs: enable cw2015 battery && bq25700 charger && m…

    …anage charger
    
    Signed-off-by: Frank <[email protected]>
    yan-wyb committed Oct 11, 2021
    Configuration menu
    Copy the full SHA
    c1e6b32 View commit details
    Browse the repository at this point in the history

Commits on Oct 14, 2021

  1. Configuration menu
    Copy the full SHA
    70a5150 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1154dba View commit details
    Browse the repository at this point in the history
  3. arm64: dts: overlay: VIM3L: Add ext_board dts

    Signed-off-by: Frank <[email protected]>
    yan-wyb committed Oct 14, 2021
    Configuration menu
    Copy the full SHA
    5b85438 View commit details
    Browse the repository at this point in the history
  4. arm64: dts: overlay: VIM3: Add ext_board dts

    Signed-off-by: Frank <[email protected]>
    yan-wyb committed Oct 14, 2021
    Configuration menu
    Copy the full SHA
    dc1c937 View commit details
    Browse the repository at this point in the history

Commits on Oct 31, 2021

  1. Merge pull request #48 from yan-wyb/khadas-vims-4.9.y

    Khadas vims 4.9.y
    numbqq authored Oct 31, 2021
    Configuration menu
    Copy the full SHA
    1dcffdc View commit details
    Browse the repository at this point in the history

Commits on Nov 26, 2021

  1. arm64: dts: VIM3: overlay: add spdifin

    Signed-off-by: Frank <[email protected]>
    Change-Id: I56a335ad9a7757a23ffca813a59b13226a8e9ce9
    yan-wyb committed Nov 26, 2021
    Configuration menu
    Copy the full SHA
    ed03d61 View commit details
    Browse the repository at this point in the history
  2. arm64: dts: VIM3L: overlay: add spdifin

    Signed-off-by: Frank <[email protected]>
    Change-Id: I4f6de926c4a309f7ca07f18baaa248504b8b9b76
    yan-wyb committed Nov 26, 2021
    Configuration menu
    Copy the full SHA
    9ac1862 View commit details
    Browse the repository at this point in the history
  3. Merge pull request #50 from yan-wyb/khadas-vims-4.9.y

    Khadas vims 4.9.y
    numbqq authored Nov 26, 2021
    Configuration menu
    Copy the full SHA
    c99123d View commit details
    Browse the repository at this point in the history

Commits on Dec 2, 2021

  1. audio: mclk pad0 doesn't output clk [1/1]

    PD#OTT-5603
    
    Problem:
    Configurate GPIO_AO 9 as mclk_0,it doesn't work.
    
    Solution:
    From SM1, the mclk pad register is changed.
    Using standard clk tree to make it compitable.
    
    Verify:
    TM2, SM1.
    
    Change-Id: I8d53296297536c90768495232570f33fc89db131
    Signed-off-by: Shuai Li <[email protected]>
    Signed-off-by: Luan Yuan <[email protected]>
    Signed-off-by: Nick xie <[email protected]>
    Shuai Li authored and numbqq committed Dec 2, 2021
    Configuration menu
    Copy the full SHA
    149155e View commit details
    Browse the repository at this point in the history
  2. arm64: dts: VIM3L: fix I2S no mclk issue

    Signed-off-by: Nick xie <[email protected]>
    Change-Id: I07ff6600df80a5eeb8bbf35b86bd8f3e3a2784ce
    numbqq committed Dec 2, 2021
    Configuration menu
    Copy the full SHA
    0bf9e54 View commit details
    Browse the repository at this point in the history

Commits on Dec 10, 2021

  1. npu: VIM3/VIM3L: update driver to version 6.4.6.2

    Signed-off-by: Frank <[email protected]>
    Change-Id: I4d1cc4f4f96f87446839c79a8d5178a0dd7188c0
    yan-wyb committed Dec 10, 2021
    Configuration menu
    Copy the full SHA
    c503b9c View commit details
    Browse the repository at this point in the history

Commits on Dec 13, 2021

  1. VIM3: WOL: Solve Wol not effective

    Signed-off-by: Jack Zhao <[email protected]>
    Jack Zhao committed Dec 13, 2021
    Configuration menu
    Copy the full SHA
    c66403b View commit details
    Browse the repository at this point in the history

Commits on Dec 15, 2021

  1. pcie: pcie compatibility issues [1/1]

    remove fast linkup set
    
    Signed-off-by: Nick xie <[email protected]>
    Change-Id: I8fdc27a874aabbc4cc8d142421838e38109f2f30
    numbqq authored and yan-wyb committed Dec 15, 2021
    Configuration menu
    Copy the full SHA
    cef8669 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #53 from aiguo-zhao/khadas-vims-4.9.y

    VIM3: WOL: Solve Wol not effective
    numbqq authored Dec 15, 2021
    Configuration menu
    Copy the full SHA
    20dad82 View commit details
    Browse the repository at this point in the history
  3. Merge pull request #51 from yan-wyb/khadas-vims-4.9.y

    npu: VIM3/VIM3L: update driver to version 6.4.6.2
    numbqq authored Dec 15, 2021
    Configuration menu
    Copy the full SHA
    74dae09 View commit details
    Browse the repository at this point in the history
  4. Merge pull request #54 from yan-wyb/khadas-vims-4.9.y

    pcie: pcie compatibility issues [1/1]
    numbqq authored Dec 15, 2021
    Configuration menu
    Copy the full SHA
    8fd7644 View commit details
    Browse the repository at this point in the history

Commits on Dec 23, 2021

  1. npu: fix NN SRAM

    Signed-off-by: Nick xie <[email protected]>
    Change-Id: I19992d5916375f692da2246c827a3737e5f1ae3c
    numbqq committed Dec 23, 2021
    Configuration menu
    Copy the full SHA
    e84d3c1 View commit details
    Browse the repository at this point in the history

Commits on Dec 26, 2021

  1. Merge pull request #4 from khadas/khadas-vims-4.9.y

    Khadas vims 4.9.y
    yan-wyb authored Dec 26, 2021
    Configuration menu
    Copy the full SHA
    deedb21 View commit details
    Browse the repository at this point in the history
  2. fixup! arm64: dts: overlay: VIM3L: Add ext_board dts

    Signed-off-by: Frank Wang <[email protected]>
    Change-Id: I432360d8878c9683998ba57187204672b91c03a6
    yan-wyb committed Dec 26, 2021
    Configuration menu
    Copy the full SHA
    7aafde3 View commit details
    Browse the repository at this point in the history
  3. Merge pull request #55 from yan-wyb/khadas-vims-4.9.y

    fixup! arm64: dts: overlay: VIM3L: Add ext_board dts
    numbqq authored Dec 26, 2021
    Configuration menu
    Copy the full SHA
    d05de8d View commit details
    Browse the repository at this point in the history

Commits on Mar 22, 2022

  1. npu: update to version 6.4.8.7

    Signed-off-by: Frank Wang <[email protected]>
    yan-wyb committed Mar 22, 2022
    Configuration menu
    Copy the full SHA
    5783d7d View commit details
    Browse the repository at this point in the history

Commits on Apr 29, 2022

  1. Configuration menu
    Copy the full SHA
    439ccf2 View commit details
    Browse the repository at this point in the history

Commits on Jul 19, 2022

  1. defconfig: add target_core_mod support

    Signed-off-by: Yan Wang <[email protected]>
    yan-wyb committed Jul 19, 2022
    Configuration menu
    Copy the full SHA
    fe45332 View commit details
    Browse the repository at this point in the history

Commits on Jul 22, 2022

  1. Merge pull request #57 from yan-wyb/khadas-vims-4.9.y

    defconfig: add target_core_mod support
    numbqq authored Jul 22, 2022
    Configuration menu
    Copy the full SHA
    a6fbefc View commit details
    Browse the repository at this point in the history

Commits on Jul 25, 2022

  1. arm64: defconfig: enable usb touchscreen

    Signed-off-by: Nick Xie <[email protected]>
    Change-Id: I7cb7d76bc641f483a226cd03c8faec91ba382847
    numbqq committed Jul 25, 2022
    Configuration menu
    Copy the full SHA
    3ce469f View commit details
    Browse the repository at this point in the history
  2. arm64: dts: VIM1: add aliases for i2c

    Signed-off-by: Nick Xie <[email protected]>
    Change-Id: I1226be09ecd3b0bfd57496f5ceefd2064c25da1e
    numbqq committed Jul 25, 2022
    Configuration menu
    Copy the full SHA
    90c57f7 View commit details
    Browse the repository at this point in the history
  3. arm64: dts: VIM2: add aliases for i2c

    Signed-off-by: Nick Xie <[email protected]>
    Change-Id: I219247ef517397d047dced06c832a488df0536d2
    numbqq committed Jul 25, 2022
    Configuration menu
    Copy the full SHA
    65490b3 View commit details
    Browse the repository at this point in the history

Commits on Sep 2, 2022

  1. arm64: config: kvims_defconfig: add cdc_mbin module

    Signed-off-by: Yan Wang <[email protected]>
    Change-Id: I779e50b5381d21d3c20827d235cb427b10ae656d
    yan-wyb committed Sep 2, 2022
    Configuration menu
    Copy the full SHA
    558bb0b View commit details
    Browse the repository at this point in the history

Commits on Sep 29, 2022

  1. arm64: defconfig: enable 5G RM500G module

    Signed-off-by: Ivan Li <[email protected]>
    Change-Id: Ie487325f5ed2143c4145ee28aa73162ef2bf146d
    ivanivanivanivanivanivan committed Sep 29, 2022
    Configuration menu
    Copy the full SHA
    dbf7294 View commit details
    Browse the repository at this point in the history
  2. add 5G RM500 module support

    Signed-off-by: Ivan Li <[email protected]>
    Change-Id: I3f136c75f30881caac62f85baab61609cbe3ae5a
    ivanivanivanivanivanivan committed Sep 29, 2022
    Configuration menu
    Copy the full SHA
    1682912 View commit details
    Browse the repository at this point in the history
  3. arm64: dts: VIM3: add 5G(RM500Q) module support

    Signed-off-by: Ivan Li <[email protected]>
    Change-Id: I5245a7ee964aa2c437c24fd72181fa5841f4fd3d
    ivanivanivanivanivanivan committed Sep 29, 2022
    Configuration menu
    Copy the full SHA
    9382086 View commit details
    Browse the repository at this point in the history
  4. arm64: dts: VIM3L: add 5G(RM500Q) module support

    Signed-off-by: Ivan Li <[email protected]>
    Change-Id: I13a60faa33a4db1bddfb04d0b807259d54c70ae1
    ivanivanivanivanivanivan committed Sep 29, 2022
    Configuration menu
    Copy the full SHA
    dae0369 View commit details
    Browse the repository at this point in the history

Commits on Sep 30, 2022

  1. Merge pull request #61 from yan-wyb/khadas-vims-4.9.y

    arm64: dts: VIM1/VIM2/VIM3/VIM3L: add cdc_mbin module
    numbqq authored Sep 30, 2022
    Configuration menu
    Copy the full SHA
    45e9225 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    23f7784 View commit details
    Browse the repository at this point in the history

Commits on Oct 28, 2022

  1. arm64: dts: VIM1: move pwm_aoab pinctrol to overlay

    Signed-off-by: Yan Wang <[email protected]>
    Change-Id: I71bec0f9a67e89d7bf9edcc4de14b5fad6698e01
    yan-wyb committed Oct 28, 2022
    Configuration menu
    Copy the full SHA
    198ee67 View commit details
    Browse the repository at this point in the history
  2. arm64: dts: VIM3/VIM3L: move i2s to frist device

    Signed-off-by: Yan Wang <[email protected]>
    Change-Id: Id81ac68004e3c37babd5648263512cee7799de40
    yan-wyb committed Oct 28, 2022
    Configuration menu
    Copy the full SHA
    2644916 View commit details
    Browse the repository at this point in the history
  3. Merge pull request #69 from yan-wyb/khadas-vims-4.9.y

    Khadas vims 4.9.y
    numbqq authored Oct 28, 2022
    Configuration menu
    Copy the full SHA
    9dfcb4f View commit details
    Browse the repository at this point in the history

Commits on Nov 14, 2022

  1. arm64: defconfig: enable HID_MULTITOUCH

    Signed-off-by: Nick Xie <[email protected]>
    Change-Id: I4acaa347f4186e0c194cb425ac4df12eca51ca1d
    numbqq committed Nov 14, 2022
    Configuration menu
    Copy the full SHA
    2901806 View commit details
    Browse the repository at this point in the history

Commits on Nov 18, 2022

  1. arm64: dts: overlays: VIM3: update spdif

    Signed-off-by: Ivan Li <[email protected]>
    Change-Id: I950ba3d67d1331e55fa69a4494bbce5b8318b296
    ivanivanivanivanivanivan committed Nov 18, 2022
    Configuration menu
    Copy the full SHA
    6cfa8a7 View commit details
    Browse the repository at this point in the history
  2. arm64: dts: overlays: VIM3L: update spdif

    Signed-off-by: Ivan Li <[email protected]>
    Change-Id: Ia479f2aeb062a8439d54f2479b318a7cb4a85cd9
    ivanivanivanivanivanivan committed Nov 18, 2022
    Configuration menu
    Copy the full SHA
    7ce6fe3 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    90a4605 View commit details
    Browse the repository at this point in the history

Commits on Nov 28, 2022

  1. Enable TUN in kernel image

    ssehovic authored Nov 28, 2022
    Configuration menu
    Copy the full SHA
    dfe7de9 View commit details
    Browse the repository at this point in the history

Commits on Nov 29, 2022

  1. Merge pull request #72 from ssehovic/patch-1

    Enable TUN in kernel image
    numbqq authored Nov 29, 2022
    Configuration menu
    Copy the full SHA
    f1da712 View commit details
    Browse the repository at this point in the history

Commits on Dec 6, 2022

  1. Revert "arm64: dts: overlays: VIM3L: update spdif"

    This reverts commit 7ce6fe3.
    numbqq committed Dec 6, 2022
    Configuration menu
    Copy the full SHA
    e281c1a View commit details
    Browse the repository at this point in the history
  2. Revert "arm64: dts: overlays: VIM3: update spdif"

    This reverts commit 6cfa8a7.
    numbqq committed Dec 6, 2022
    Configuration menu
    Copy the full SHA
    8df0597 View commit details
    Browse the repository at this point in the history

Commits on Dec 23, 2022

  1. arm64: dts: panel: VIM3: update timing

    Signed-off-by: Nick Xie <[email protected]>
    Change-Id: If353d13bb45871ce8a28222c5f7c565f20122f3a
    numbqq committed Dec 23, 2022
    Configuration menu
    Copy the full SHA
    c59838b View commit details
    Browse the repository at this point in the history
  2. scripts: package: builddeb: using xz compress for debian package

    Signed-off-by: Nick Xie <[email protected]>
    Change-Id: I1943de683c2789962d608f6a86807ec56accbb0c
    numbqq committed Dec 23, 2022
    Configuration menu
    Copy the full SHA
    516d2af View commit details
    Browse the repository at this point in the history

Commits on Dec 25, 2022

  1. arm64: dts: VIM3L: Fix DT overlays to enable spi

    Signed-off-by: Ivan.li <[email protected]>
    Change-Id: I9e0d90456c1940e67cdead1af1623fd350c1a887
    ivanivanivanivanivanivan committed Dec 25, 2022
    Configuration menu
    Copy the full SHA
    f51e6d6 View commit details
    Browse the repository at this point in the history

Commits on Dec 26, 2022

  1. Merge pull request #75 from ivanivanivanivanivanivan/khadas-vims-4.9.y

    arm64: dts: VIM3L: Fix DT overlays to enable spi
    numbqq authored Dec 26, 2022
    Configuration menu
    Copy the full SHA
    02e1830 View commit details
    Browse the repository at this point in the history

Commits on Mar 22, 2023

  1. LCD: VIM3: dts: Add new ts050 and ts101 support

    Signed-off-by: Ivan.li <[email protected]>
    Change-Id: I7ca911ab6e310b77bace3c8a68fbc41917685c51
    ivanivanivanivanivanivan committed Mar 22, 2023
    Configuration menu
    Copy the full SHA
    28146ac View commit details
    Browse the repository at this point in the history
  2. VIM3: TP: Fixed new ts050 touch unsupported

    Signed-off-by: Ivan.li <[email protected]>
    Change-Id: Ib88f813d17429b3fe830f6c54c77b430d6f087d6
    ivanivanivanivanivanivan committed Mar 22, 2023
    Configuration menu
    Copy the full SHA
    a06cfa1 View commit details
    Browse the repository at this point in the history
  3. drivers: amlogic: VIM3: TP: Added 10inch GT9xx driver support

    Signed-off-by: Ivan.li <[email protected]>
    Change-Id: I05599bc2f43b0674580e778c8c6a407014a4818b
    ivanivanivanivanivanivan committed Mar 22, 2023
    Configuration menu
    Copy the full SHA
    53ac999 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    839a069 View commit details
    Browse the repository at this point in the history

Commits on Mar 30, 2023

  1. fixup! drivers: amlogic: VIM3: TP: Added 10inch GT9xx driver support

    Signed-off-by: Ivan.li <[email protected]>
    Change-Id: If9e81eefc2a1493189129127a050ca91711c230e
    ivanivanivanivanivanivan committed Mar 30, 2023
    Configuration menu
    Copy the full SHA
    859f514 View commit details
    Browse the repository at this point in the history
  2. arm64: dts: VIM3L: Added ts101 touch support

    Signed-off-by: Ivan.li <[email protected]>
    Change-Id: Ibfc40943cefb838a8fdc7079e9222e0fb8d9704f
    ivanivanivanivanivanivan committed Mar 30, 2023
    Configuration menu
    Copy the full SHA
    af987b0 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    437dad4 View commit details
    Browse the repository at this point in the history

Commits on Dec 1, 2023

  1. arch: arm64: defconfig: enable more usb network adaptors

    Signed-off-by: Nick Xie <[email protected]>
    Change-Id: Ib68a086df4d375093e2e41575ecb060e76a8c0e3
    numbqq committed Dec 1, 2023
    Configuration menu
    Copy the full SHA
    bd94607 View commit details
    Browse the repository at this point in the history