1. 15 Aug, 2023 1 commit
  2. 14 Aug, 2023 4 commits
    • Russell King (Oracle)'s avatar
      f493fedc
    • Randy Dunlap's avatar
      ARM: 9318/1: locomo: move kernel-doc to prevent warnings · b0a6da43
      Randy Dunlap authored
      Move the kernel-doc comments for locomo_probe() to immediately before
      that function instead of before __locomo_probe() to prevent
      kernel-doc warnings. Adjust the documented function parameters and
      make the return values compatible with ReST by adding bullets to them.
      Add more possible return values to the list.
      
      Prevents these warnings:
      
        arch/arm/common/locomo.c:368: warning: Function parameter or member 'me' not described in '__locomo_probe'
        arch/arm/common/locomo.c:368: warning: Function parameter or member 'mem' not described in '__locomo_probe'
        arch/arm/common/locomo.c:368: warning: Function parameter or member 'irq' not described in '__locomo_probe'
        arch/arm/common/locomo.c:368: warning: expecting prototype for locomo_probe(). Prototype was for __locomo_probe() instead
      
      Link: lore.kernel.org/r/202308050851.zAvHe6y7-lkp@intel.com
      
      Fixes: 5eb6e280 ("ARM: 9289/1: Allow pre-ARMv5 builds with ld.lld 16.0.0 and newer")
      Signed-off-by: default avatarRandy Dunlap <rdunlap@infradead.org>
      Reported-by: default avatarkernel test robot <lkp@intel.com>
      Cc: Nick Desaulniers <ndesaulniers@google.com>
      Cc: Arnd Bergmann <arnd@arndb.de>
      Cc: Nathan Chancellor <nathan@kernel.org>
      Cc: linux-arm-kernel@lists.infradead.org
      Cc: patches@armlinux.org.uk
      Signed-off-by: default avatarRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
      b0a6da43
    • Mårten Lindahl's avatar
      ARM: 9317/1: kexec: Make smp stop calls asynchronous · 8922ba71
      Mårten Lindahl authored
      If a panic is triggered by a hrtimer interrupt all online cpus will be
      notified and set offline. But as highlighted by commit 19dbdcb8
      ("smp: Warn on function calls from softirq context") this call should
      not be made synchronous with disabled interrupts:
      
       softdog: Initiating panic
       Kernel panic - not syncing: Software Watchdog Timer expired
       WARNING: CPU: 1 PID: 0 at kernel/smp.c:753 smp_call_function_many_cond
         unwind_backtrace:
           show_stack
           dump_stack_lvl
           __warn
           warn_slowpath_fmt
           smp_call_function_many_cond
           smp_call_function
           crash_smp_send_stop.part.0
           machine_crash_shutdown
           __crash_kexec
           panic
           softdog_fire
           __hrtimer_run_queues
           hrtimer_interrupt
      
      Make the smp call for machine_crash_nonpanic_core() asynchronous.
      Signed-off-by: default avatarMårten Lindahl <marten.lindahl@axis.com>
      Signed-off-by: default avatarRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
      8922ba71
    • Tomislav Novak's avatar
      ARM: 9316/1: hw_breakpoint: fix single-stepping when using bpf_overflow_handler · e6b51532
      Tomislav Novak authored
      Arm platforms use is_default_overflow_handler() to determine if the
      hw_breakpoint code should single-step over the breakpoint trigger or
      let the custom handler deal with it.
      
      Since bpf_overflow_handler() currently isn't recognized as a default
      handler, attaching a BPF program to a PERF_TYPE_BREAKPOINT event causes
      it to keep firing (the instruction triggering the data abort exception
      is never skipped). For example:
      
        # bpftrace -e 'watchpoint:0x10000:4:w { print("hit") }' -c ./test
        Attaching 1 probe...
        hit
        hit
        [...]
        ^C
      
      (./test performs a single 4-byte store to 0x10000)
      
      This patch replaces the check with uses_default_overflow_handler(),
      which accounts for the bpf_overflow_handler() case by also testing
      if one of the perf_event_output functions gets invoked indirectly,
      via orig_default_handler.
      
      Link: https://lore.kernel.org/linux-arm-kernel/20220923203644.2731604-1-tnovak@fb.com/Signed-off-by: default avatarTomislav Novak <tnovak@fb.com>
      Tested-by: Samuel Gosselin <sgosselin@google.com> # arm64
      Reviewed-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
      Acked-by: default avatarAlexei Starovoitov <ast@kernel.org>
      Signed-off-by: default avatarRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
      e6b51532
  3. 09 Jul, 2023 10 commits
  4. 08 Jul, 2023 25 commits