Skip to content
  1. Jan 25, 2021
    • Linus Torvalds's avatar
      Merge tag 'tty-5.11-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty · 4da81fa2
      Linus Torvalds authored
      Pull tty/serial fixes from Greg KH:
       "Here are three small tty/serial fixes for 5.11-rc5 to resolve reported
        problems:
      
         - two patches to fix up writing to ttys with splice
      
         - mvebu-uart driver fix for reported problem
      
        All of these have been in linux-next with no reported problems"
      
      * tag 'tty-5.11-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty:
        tty: fix up hung_up_tty_write() conversion
        tty: implement write_iter
        serial: mvebu-uart: fix tx lost characters at power off
      4da81fa2
    • Linus Torvalds's avatar
      Merge tag 'usb-5.11-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb · 8f3bfd21
      Linus Torvalds authored
      Pull USB fixes from Greg KH:
       "Here are some small USB driver fixes for 5.11-rc5.  They resolve:
      
         - xhci issues for some reported problems
      
         - ehci driver issue for one specific device
      
         - USB gadget fixes for some reported problems
      
         - cdns3 driver fixes for issues reported
      
         - MAINTAINERS file update
      
         - thunderbolt minor fix
      
        All of these have been in linux-next with no reported issues"
      
      * tag 'usb-5.11-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb:
        usb: bdc: Make bdc pci driver depend on BROKEN
        xhci: tegra: Delay for disabling LFPS detector
        xhci: make sure TRB is fully written before giving it to the controller
        usb: udc: core: Use lock when write to soft_connect
        USB: gadget: dummy-hcd: Fix errors in port-reset handling
        usb: gadget: aspeed: fix stop dma register setting.
        USB: ehci: fix an interrupt calltrace error
        ehci: fix EHCI host controller initialization sequence
        MAINTAINERS: update Peter Chen's email address
        thunderbolt: Drop duplicated 0x prefix from format string
        MAINTAINERS: Update address for Cadence USB3 driver
        usb: cdns3: imx: improve driver .remove API
        usb: cdns3: imx: fix can't create core device the second time issue
        usb: cdns3: imx: fix writing read-only memory issue
      8f3bfd21
    • Linus Torvalds's avatar
      Merge tag 'irq_urgent_for_v5.11_rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · e6806137
      Linus Torvalds authored
      Pull irq fixes from Borislav Petkov:
      
       - Fix a kernel panic in mips-cpu due to invalid irq domain hierarchy.
      
       - Fix to not lose IPIs on bcm2836.
      
       - Fix for a bogus marking of ITS devices as shared due to unitialized
         stack variable.
      
       - Clear a phantom interrupt on qcom-pdc to unblock suspend.
      
       - Small cleanups, warning and build fixes.
      
      * tag 'irq_urgent_for_v5.11_rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        genirq: Export irq_check_status_bit()
        irqchip/mips-cpu: Set IPI domain parent chip
        irqchip/pruss: Simplify the TI_PRUSS_INTC Kconfig
        irqchip/loongson-liointc: Fix build warnings
        driver core: platform: Add extra error check in devm_platform_get_irqs_affinity()
        irqchip/bcm2836: Fix IPI acknowledgement after conversion to handle_percpu_devid_irq
        irqchip/irq-sl28cpld: Convert comma to semicolon
        genirq/msi: Initialize msi_alloc_info before calling msi_domain_prepare_irqs()
      e6806137
    • Linus Torvalds's avatar
      Merge tag 'objtool_urgent_for_v5.11_rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 32d43270
      Linus Torvalds authored
      Pull objtool fixes from Borislav Petkov:
      
       - Adjust objtool to handle a recent binutils change to not generate
         unused symbols anymore.
      
       - Revert the fail-the-build-on-fatal-errors objtool strategy for now
         due to the ever-increasing matrix of supported toolchains/plugins and
         them causing too many such fatal errors currently.
      
       - Do not add empty symbols to objdump's rbtree to accommodate clang
         removing section symbols.
      
      * tag 'objtool_urgent_for_v5.11_rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        objtool: Don't fail on missing symbol table
        objtool: Don't fail the kernel build on fatal errors
        objtool: Don't add empty symbols to the rbtree
      32d43270
    • Linus Torvalds's avatar
      Merge tag 'sched_urgent_for_v5.11_rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 24c56ee0
      Linus Torvalds authored
      Pull scheduler fixes from Borislav Petkov:
      
       - Correct the marking of kthreads which are supposed to run on a
         specific, single CPU vs such which are affine to only one CPU, mark
         per-cpu workqueue threads as such and make sure that marking
         "survives" CPU hotplug. Fix CPU hotplug issues with such kthreads.
      
       - A fix to not push away tasks on CPUs coming online.
      
       - Have workqueue CPU hotplug code use cpu_possible_mask when breaking
         affinity on CPU offlining so that pending workers can finish on newly
         arrived onlined CPUs too.
      
       - Dump tasks which haven't vacated a CPU which is currently being
         unplugged.
      
       - Register a special scale invariance callback which gets called on
         resume from RAM to read out APERF/MPERF after resume and thus make
         the schedutil scaling governor more precise.
      
      * tag 'sched_urgent_for_v5.11_rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        sched: Relax the set_cpus_allowed_ptr() semantics
        sched: Fix CPU hotplug / tighten is_per_cpu_kthread()
        sched: Prepare to use balance_push in ttwu()
        workqueue: Restrict affinity change to rescuer
        workqueue: Tag bound workers with KTHREAD_IS_PER_CPU
        kthread: Extract KTHREAD_IS_PER_CPU
        sched: Don't run cpu-online with balance_push() enabled
        workqueue: Use cpu_possible_mask instead of cpu_active_mask to break affinity
        sched/core: Print out straggler tasks in sched_cpu_dying()
        x86: PM: Register syscore_ops for scale invariance
      24c56ee0
    • Linus Torvalds's avatar
      Merge tag 'timers_urgent_for_v5.11_rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 025929f4
      Linus Torvalds authored
      Pull timer fixes from Borislav Petkov:
      
       - Fix an integer overflow in the NTP RTC synchronization which led to
         the latter happening every 2 seconds instead of the intended every 11
         minutes.
      
       - Get rid of now unused get_seconds().
      
      * tag 'timers_urgent_for_v5.11_rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        ntp: Fix RTC synchronization on 32-bit platforms
        timekeeping: Remove unused get_seconds()
      025929f4
    • Linus Torvalds's avatar
      Merge tag 'x86_urgent_for_v5.11_rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 17b6c49d
      Linus Torvalds authored
      Pull x86 fixes from Borislav Petkov:
      
       - Add a new Intel model number for Alder Lake
      
       - Differentiate which aspects of the FPU state get saved/restored when
         the FPU is used in-kernel and fix a boot crash on K7 due to early
         MXCSR access before CR4.OSFXSR is even set.
      
       - A couple of noinstr annotation fixes
      
       - Correct die ID setting on AMD for users of topology information which
         need the correct die ID
      
       - A SEV-ES fix to handle string port IO to/from kernel memory properly
      
      * tag 'x86_urgent_for_v5.11_rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86/cpu: Add another Alder Lake CPU to the Intel family
        x86/mmx: Use KFPU_387 for MMX string operations
        x86/fpu: Add kernel_fpu_begin_mask() to selectively initialize state
        x86/topology: Make __max_die_per_package available unconditionally
        x86: __always_inline __{rd,wr}msr()
        x86/mce: Remove explicit/superfluous tracing
        locking/lockdep: Avoid noinstr warning for DEBUG_LOCKDEP
        locking/lockdep: Cure noinstr fail
        x86/sev: Fix nonistr violation
        x86/entry: Fix noinstr fail
        x86/cpu/amd: Set __max_die_per_package on AMD
        x86/sev-es: Handle string port IO to kernel memory properly
      17b6c49d
    • Linus Torvalds's avatar
      Merge tag 'powerpc-5.11-5' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux · 14c50a66
      Linus Torvalds authored
      Pull powerpc fixes from Michael Ellerman:
      
       - Fix a bad interaction between the scv handling and the fallback L1D
         flush, which could lead to user register corruption. Only affects
         people using scv (~no one) on machines with old firmware that are
         missing the L1D flush.
      
       - Two small selftest fixes.
      
      Thanks to Eirik Fuller, Libor Pechacek, Nicholas Piggin, Sandipan Das,
      and Tulio Magno Quites Machado Filho.
      
      * tag 'powerpc-5.11-5' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux:
        powerpc/64s: fix scv entry fallback flush vs interrupt
        selftests/powerpc: Only test lwm/stmw on big endian
        selftests/powerpc: Fix exit status of pkey tests
      14c50a66
    • Linus Torvalds's avatar
      Merge tag 'for-linus-2021-01-24' of git://git.kernel.org/pub/scm/linux/kernel/git/brauner/linux · c509ce23
      Linus Torvalds authored
      Pull misc fixes from Christian Brauner:
      
       - Jann reported sparse complaints because of a missing __user
         annotation in a helper we added way back when we added
         pidfd_send_signal() to avoid compat syscall handling. Fix it.
      
       - Yanfei replaces a reference in a comment to the _do_fork() helper I
         removed a while ago with a reference to the new kernel_clone()
         replacement
      
       - Alexander Guril added a simple coding style fix
      
      * tag 'for-linus-2021-01-24' of git://git.kernel.org/pub/scm/linux/kernel/git/brauner/linux:
        kthread: remove comments about old _do_fork() helper
        Kernel: fork.c: Fix coding style: Do not use {} around single-line statements
        signal: Add missing __user annotation to copy_siginfo_from_user_any
      c509ce23
    • Linus Torvalds's avatar
      Merge tag '5.11-rc4-smb3' of git://git.samba.org/sfrench/cifs-2.6 · 4dcd3bcc
      Linus Torvalds authored
      Pull cifs fixes from Steve French:
       "An important signal handling patch for stable, and two small cleanup
        patches"
      
      * tag '5.11-rc4-smb3' of git://git.samba.org/sfrench/cifs-2.6:
        cifs: do not fail __smb_send_rqst if non-fatal signals are pending
        fs/cifs: Simplify bool comparison.
        fs/cifs: Assign boolean values to a bool variable
      4dcd3bcc
  2. Jan 24, 2021
    • Linus Torvalds's avatar
      Merge branch 'mtd/fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux · e1ae4b0b
      Linus Torvalds authored
      Pull mtd fixes from Miquel Raynal.
      
      * 'mtd/fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux:
        mtd: rawnand: omap: Use BCH private fields in the specific OOB layout
        mtd: spinand: Fix MTD_OPS_AUTO_OOB requests
        mtd: rawnand: intel: check the mtd name only after setting the variable
        mtd: rawnand: nandsim: Fix the logic when selecting Hamming soft ECC engine
        mtd: rawnand: gpmi: fix dst bit offset when extracting raw payload
      e1ae4b0b
    • Linus Torvalds's avatar
      Merge branch 'i2c/for-current' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux · 077e81d5
      Linus Torvalds authored
      Pull i2c fixes from Wolfram Sang:
       "Another bunch  of driver fixes"
      
      * 'i2c/for-current' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux:
        i2c: sprd: depend on COMMON_CLK to fix compile tests
        Revert "i2c: imx: Remove unused .id_table support"
        i2c: octeon: check correct size of maximum RECV_LEN packet
        i2c: tegra: Create i2c_writesl_vi() to use with VI I2C for filling TX FIFO
        i2c: bpmp-tegra: Ignore unknown I2C_M flags
        i2c: tegra: Wait for config load atomically while in ISR
      077e81d5
    • Linus Torvalds's avatar
      Merge tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi · 15cfb0f0
      Linus Torvalds authored
      Pull SCSI fixes from James Bottomley:
       "Twelve minor fixes, all in drivers or doc.
      
        Most of the fixes are pretty obvious (although we had two goes to get
        the UFS sysfs doc right) and the biggest change is in the ufs driver
        which they've extensively tested"
      
      * tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi:
        scsi: ibmvfc: Set default timeout to avoid crash during migration
        scsi: target: tcmu: Fix use-after-free of se_cmd->priv
        scsi: fnic: Fix memleak in vnic_dev_init_devcmd2
        scsi: libfc: Avoid invoking response handler twice if ep is already completed
        scsi: scsi_transport_srp: Don't block target in failfast state
        scsi: docs: ABI: sysfs-driver-ufs: Rectify table formatting
        scsi: ufs: Fix tm request when non-fatal error happens
        scsi: ufs: Fix livelock of ufshcd_clear_ua_wluns()
        scsi: ibmvfc: Fix missing cast of ibmvfc_event pointer to u64 handle
        scsi: ufs: ufshcd-pltfrm depends on HAS_IOMEM
        scsi: megaraid_sas: Fix MEGASAS_IOC_FIRMWARE regression
        scsi: docs: ABI: sysfs-driver-ufs: Add DeepSleep power mode
      15cfb0f0
    • Linus Torvalds's avatar
      Merge tag 'linux-kselftest-kunit-fixes-5.11-rc5' of... · 929b9796
      Linus Torvalds authored
      Merge tag 'linux-kselftest-kunit-fixes-5.11-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest
      
      Pull kunit fixes from Shuah :
       "Five fixes to the kunit tool and documentation from Daniel Latypov and
        David Gow"
      
      * tag 'linux-kselftest-kunit-fixes-5.11-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest:
        kunit: tool: move kunitconfig parsing into __init__, make it optional
        kunit: tool: fix minor typing issue with None status
        kunit: tool: surface and address more typing issues
        Documentation: kunit: include example of a parameterized test
        kunit: tool: Fix spelling of "diagnostic" in kunit_parser
      929b9796
  3. Jan 23, 2021
    • Ronnie Sahlberg's avatar
      cifs: do not fail __smb_send_rqst if non-fatal signals are pending · 214a5ea0
      Ronnie Sahlberg authored
      RHBZ 1848178
      
      The original intent of returning an error in this function
      in the patch:
        "CIFS: Mask off signals when sending SMB packets"
      was to avoid interrupting packet send in the middle of
      sending the data (and thus breaking an SMB connection),
      but we also don't want to fail the request for non-fatal
      signals even before we have had a chance to try to
      send it (the reported problem could be reproduced e.g.
      by exiting a child process when the parent process was in
      the midst of calling futimens to update a file's timestamps).
      
      In addition, since the signal may remain pending when we enter the
      sending loop, we may end up not sending the whole packet before
      TCP buffers become full. In this case the code returns -EINTR
      but what we need here is to return -ERESTARTSYS instead to
      allow system calls to be restarted.
      
      Fixes: b30c74c7
      
       ("CIFS: Mask off signals when sending SMB packets")
      Cc: stable@vger.kernel.org # v5.1+
      Signed-off-by: default avatarRonnie Sahlberg <lsahlber@redhat.com>
      Reviewed-by: default avatarPavel Shilovsky <pshilov@microsoft.com>
      Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
      214a5ea0
    • Linus Torvalds's avatar
      Merge tag 'for-5.11/dm-fixes-2' of... · fe75a218
      Linus Torvalds authored
      Merge tag 'for-5.11/dm-fixes-2' of git://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm
      
      Pull device mapper fixes from Mike Snitzer:
      
       - Fix DM integrity crash if "recalculate" used without "internal_hash"
      
       - Fix DM integrity "recalculate" support to prevent recalculating
         checksums if we use internal_hash or journal_hash with a key (e.g.
         HMAC). Use of crypto as a means to prevent malicious corruption
         requires further changes and was never a design goal for
         dm-integrity's primary usecase of detecting accidental corruption.
      
       - Fix a benign dm-crypt copy-and-paste bug introduced as part of a fix
         that was merged for 5.11-rc4.
      
       - Fix DM core's dm_get_device() to avoid filesystem lookup to get block
         device (if possible).
      
      * tag 'for-5.11/dm-fixes-2' of git://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm:
        dm: avoid filesystem lookup in dm_get_dev_t()
        dm crypt: fix copy and paste bug in crypt_alloc_req_aead
        dm integrity: conditionally disable "recalculate" feature
        dm integrity: fix a crash if "recalculate" used without "internal_hash"
      fe75a218
    • Linus Torvalds's avatar
      Merge tag 'perf-tools-fixes-v5.11-2-2021-01-22' of... · faba877b
      Linus Torvalds authored
      Merge tag 'perf-tools-fixes-v5.11-2-2021-01-22' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux
      
      Pull more perf tools fixes from Arnaldo Carvalho de Melo:
      
       - Fix id index used in Intel PT for heterogeneous systems
      
       - Fix overrun issue in 'perf script' for dynamically-allocated PMU type
         number
      
       - Fix 'perf stat' metrics containing the 'duration_time' synthetic
         event
      
       - Fix system PMU 'perf stat' metrics
      
      * tag 'perf-tools-fixes-v5.11-2-2021-01-22' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux:
        perf script: Fix overrun issue for dynamically-allocated PMU type number
        perf metricgroup: Fix system PMU metrics
        perf metricgroup: Fix for metrics containing duration_time
        perf evlist: Fix id index for heterogeneous systems
      faba877b
    • Linus Torvalds's avatar
      Merge tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux · 1c304c77
      Linus Torvalds authored
      Pull arm64 fixes from Catalin Marinas:
      
       - Correctly mask out bits 63:60 in a kernel tag check fault address
         (specified as unknown by the architecture). Previously they were just
         zeroed but for kernel pointers they need to be all ones.
      
       - Fix a panic (unexpected kernel BRK exception) caused by kprobes being
         reentered due to an interrupt.
      
      * tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux:
        arm64: kprobes: Fix Uexpected kernel BRK exception at EL1
        kasan, arm64: fix pointer tags in KASAN reports
      1c304c77
    • Linus Torvalds's avatar
      Merge tag 'ceph-for-5.11-rc5' of git://github.com/ceph/ceph-client · a9034304
      Linus Torvalds authored
      Pull ceph fixes from Ilya Dryomov:
       "A patch to zero out sensitive cryptographic data and two minor
        cleanups prompted by the fact that a bunch of code was moved in this
        cycle"
      
      * tag 'ceph-for-5.11-rc5' of git://github.com/ceph/ceph-client:
        libceph: fix "Boolean result is used in bitwise operation" warning
        libceph, ceph: disambiguate ceph_connection_operations handlers
        libceph: zero out session key and connection secret
      a9034304
    • Linus Torvalds's avatar
      Merge tag 'fixes-2021-01-22' of git://git.kernel.org/pub/scm/linux/kernel/git/rppt/memblock · df7da31d
      Linus Torvalds authored
      Pull typo fix from Mike Rapoport:
       "Fix typo in comment of memblock_phys_alloc_try_nid()"
      
      * tag 'fixes-2021-01-22' of git://git.kernel.org/pub/scm/linux/kernel/git/rppt/memblock:
        mm/memblock: Fix typo in comment of memblock_phys_alloc_try_nid()
      df7da31d
    • Linus Torvalds's avatar
      Merge tag 'mmc-v5.11-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc · 59a4560e
      Linus Torvalds authored
      Pull MMC fixes from Ulf Hansson:
       "MMC core:
         - Fix initialization of block size when ext_csd isn't present
      
        MMC host:
         - sdhci-brcmstb: Fix mmc timeout errors on S5 suspend
         - sdhci-of-dwcmshc: Fix request accessing RPMB
         - sdhci-xenon: Fix 1.8v regulator stabilization"
      
      * tag 'mmc-v5.11-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc:
        mmc: core: don't initialize block size from ext_csd if not present
        mmc: sdhci-brcmstb: Fix mmc timeout errors on S5 suspend
        mmc: sdhci-xenon: fix 1.8v regulator stabilization
        mmc: sdhci-of-dwcmshc: fix rpmb access
      59a4560e
    • Linus Torvalds's avatar
      Merge tag 'platform-drivers-x86-v5.11-2' of... · 9887e9af
      Linus Torvalds authored
      Merge tag 'platform-drivers-x86-v5.11-2' of git://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86
      
      Pull x86 platform driver fixes from Hans de Goede:
       "A small collection of bug-fixes and model-specific quirks"
      
      * tag 'platform-drivers-x86-v5.11-2' of git://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86:
        platform/x86: thinkpad_acpi: Add P53/73 firmware to fan_quirk_table for dual fan control
        platform/x86: hp-wmi: Don't log a warning on HPWMI_RET_UNKNOWN_COMMAND errors
        platform/x86: intel-vbtn: Drop HP Stream x360 Convertible PC 11 from allow-list
        platform/x86: ideapad-laptop: Disable touchpad_switch for ELAN0634
        platform/x86: amd-pmc: Fix CONFIG_DEBUG_FS check
        platform/x86: thinkpad_acpi: correct palmsensor error checking
        platform/x86: intel-vbtn: Support for tablet mode on Dell Inspiron 7352
        platform/x86: touchscreen_dmi: Add swap-x-y quirk for Goodix touchscreen on Estar Beauty HD tablet
        platform/x86: i2c-multi-instantiate: Don't create platform device for INT3515 ACPI nodes
        platform/surface: SURFACE_PLATFORMS should depend on ACPI
        platform/surface: surface_gpe: Fix non-PM_SLEEP build warnings
        tools/power/x86/intel-speed-select: Set higher of cpuinfo_max_freq or base_frequency
        tools/power/x86/intel-speed-select: Set scaling_max_freq to base_frequency
      9887e9af
    • Qais Yousef's avatar
      arm64: kprobes: Fix Uexpected kernel BRK exception at EL1 · 75bd4bff
      Qais Yousef authored
      I was hitting the below panic continuously when attaching kprobes to
      scheduler functions
      
      	[  159.045212] Unexpected kernel BRK exception at EL1
      	[  159.053753] Internal error: BRK handler: f2000006 [#1] PREEMPT SMP
      	[  159.059954] Modules linked in:
      	[  159.063025] CPU: 2 PID: 0 Comm: swapper/2 Not tainted 5.11.0-rc4-00008-g1e2a199f6ccd #56
      	[rt-app] <notice> [1] Exiting.[  159.071166] Hardware name: ARM Juno development board (r2) (DT)
      	[  159.079689] pstate: 600003c5 (nZCv DAIF -PAN -UAO -TCO BTYPE=--)
      
      	[  159.085723] pc : 0xffff80001624501c
      	[  159.089377] lr : attach_entity_load_avg+0x2ac/0x350
      	[  159.094271] sp : ffff80001622b640
      	[rt-app] <notice> [0] Exiting.[  159.097591] x29: ffff80001622b640 x28: 0000000000000001
      	[  159.105515] x27: 0000000000000049 x26: ffff000800b79980
      
      	[  159.110847] x25: ffff00097ef37840 x24: 0000000000000000
      	[  159.116331] x23: 00000024eacec1ec x22: ffff00097ef12b90
      	[  159.121663] x21: ffff00097ef37700 x20: ffff800010119170
      	[rt-app] <notice> [11] Exiting.[  159.126995] x19: ffff00097ef37840 x18: 000000000000000e
      	[  159.135003] x17: 0000000000000001 x16: 0000000000000019
      	[  159.140335] x15: 0000000000000000 x14: 0000000000000000
      	[  159.145666] x13: 0000000000000002 x12: 0000000000000002
      	[  159.150996] x11: ffff80001592f9f0 x10: 0000000000000060
      	[  159.156327] x9 : ffff8000100f6f9c x8 : be618290de0999a1
      	[  159.161659] x7 : ffff80096a4b1000 x6 : 0000000000000000
      	[  159.166990] x5 : ffff00097ef37840 x4 : 0000000000000000
      	[  159.172321] x3 : ffff000800328948 x2 : 0000000000000000
      	[  159.177652] x1 : 0000002507d52fec x0 : ffff00097ef12b90
      	[  159.182983] Call trace:
      	[  159.185433]  0xffff80001624501c
      	[  159.188581]  update_load_avg+0x2d0/0x778
      	[  159.192516]  enqueue_task_fair+0x134/0xe20
      	[  159.196625]  enqueue_task+0x4c/0x2c8
      	[  159.200211]  ttwu_do_activate+0x70/0x138
      	[  159.204147]  sched_ttwu_pending+0xbc/0x160
      	[  159.208253]  flush_smp_call_function_queue+0x16c/0x320
      	[  159.213408]  generic_smp_call_function_single_interrupt+0x1c/0x28
      	[  159.219521]  ipi_handler+0x1e8/0x3c8
      	[  159.223106]  handle_percpu_devid_irq+0xd8/0x460
      	[  159.227650]  generic_handle_irq+0x38/0x50
      	[  159.231672]  __handle_domain_irq+0x6c/0xc8
      	[  159.235781]  gic_handle_irq+0xcc/0xf0
      	[  159.239452]  el1_irq+0xb4/0x180
      	[  159.242600]  rcu_is_watching+0x28/0x70
      	[  159.246359]  rcu_read_lock_held_common+0x44/0x88
      	[  159.250991]  rcu_read_lock_any_held+0x30/0xc0
      	[  159.255360]  kretprobe_dispatcher+0xc4/0xf0
      	[  159.259555]  __kretprobe_trampoline_handler+0xc0/0x150
      	[  159.264710]  trampoline_probe_handler+0x38/0x58
      	[  159.269255]  kretprobe_trampoline+0x70/0xc4
      	[  159.273450]  run_rebalance_domains+0x54/0x80
      	[  159.277734]  __do_softirq+0x164/0x684
      	[  159.281406]  irq_exit+0x198/0x1b8
      	[  159.284731]  __handle_domain_irq+0x70/0xc8
      	[  159.288840]  gic_handle_irq+0xb0/0xf0
      	[  159.292510]  el1_irq+0xb4/0x180
      	[  159.295658]  arch_cpu_idle+0x18/0x28
      	[  159.299245]  default_idle_call+0x9c/0x3e8
      	[  159.303265]  do_idle+0x25c/0x2a8
      	[  159.306502]  cpu_startup_entry+0x2c/0x78
      	[  159.310436]  secondary_start_kernel+0x160/0x198
      	[  159.314984] Code: d42000c0 aa1e03e9 d42000c0 aa1e03e9 (d42000c0)
      
      After a bit of head scratching and debugging it turned out that it is
      due to kprobe handler being interrupted by a tick that causes us to go
      into (I think another) kprobe handler.
      
      The culprit was kprobe_breakpoint_ss_handler() returning DBG_HOOK_ERROR
      which leads to the Unexpected kernel BRK exception.
      
      Reverting commit ba090f9c ("arm64: kprobes: Remove redundant
      kprobe_step_ctx") seemed to fix the problem for me.
      
      Further analysis showed that kcb->kprobe_status is set to
      KPROBE_REENTER when the error occurs. By teaching
      kprobe_breakpoint_ss_handler() to handle this status I can no  longer
      reproduce the problem.
      
      Fixes: ba090f9c
      
       ("arm64: kprobes: Remove redundant kprobe_step_ctx")
      Signed-off-by: default avatarQais Yousef <qais.yousef@arm.com>
      Acked-by: default avatarWill Deacon <will@kernel.org>
      Acked-by: default avatarMasami Hiramatsu <mhiramat@kernel.org>
      Link: https://lore.kernel.org/r/20210122110909.3324607-1-qais.yousef@arm.com
      Signed-off-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
      75bd4bff
  4. Jan 22, 2021