lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Sat, 13 Aug 2022 17:06:38 +0800
From:   Guo Ren <guoren@...nel.org>
To:     chenhuacai@...nel.org, kernel@...0n.name, zhangqing@...ngson.cn,
        arnd@...db.de, linux-arch@...r.kernel.org, mark.rutland@....com,
        frederic@...nel.org
Cc:     loongarch@...ts.linux.dev, linux-kernel@...r.kernel.org,
        jiaxun.yang@...goat.com, yangtiezhu@...ngson.cn,
        Guo Ren <guoren@...ux.alibaba.com>
Subject: Re: [PATCH] loongarch: irq: Move to generic_handle_arch_irq

Abandon this patch because of the wrong commit log. Please see
"[RESEND PATCH] loongarch: irq: Move to generic_handle_arch_irq".

On Sat, Aug 13, 2022 at 4:58 PM <guoren@...nel.org> wrote:
>
> From: Guo Ren <guoren@...ux.alibaba.com>
>
> No reason to keep custom handle_loongarch_irq, and move to the generic
> one. No reason to keep custom handle_loongarch_irq, and move to the
> generic one. The patch also the fixup HAVE_CONTEXT_TRACKING_USER
> feature, because handle_loongarch_irq missed ct_irq_enter/exit.
>
> Fixes: 0603839b18f4 ("LoongArch: Add exception/interrupt handling")
> Signed-off-by: Guo Ren <guoren@...ux.alibaba.com>
> Signed-off-by: Guo Ren <guoren@...nel.org>
> ---
>  arch/loongarch/kernel/traps.c | 15 ++-------------
>  1 file changed, 2 insertions(+), 13 deletions(-)
>
> diff --git a/arch/loongarch/kernel/traps.c b/arch/loongarch/kernel/traps.c
> index aa1c95aaf595..06211640ba1f 100644
> --- a/arch/loongarch/kernel/traps.c
> +++ b/arch/loongarch/kernel/traps.c
> @@ -588,17 +588,6 @@ asmlinkage void cache_parity_error(void)
>         panic("Can't handle the cache error!");
>  }
>
> -asmlinkage void noinstr handle_loongarch_irq(struct pt_regs *regs)
> -{
> -       struct pt_regs *old_regs;
> -
> -       irq_enter_rcu();
> -       old_regs = set_irq_regs(regs);
> -       handle_arch_irq(regs);
> -       set_irq_regs(old_regs);
> -       irq_exit_rcu();
> -}
> -
>  asmlinkage void noinstr do_vint(struct pt_regs *regs, unsigned long sp)
>  {
>         register int cpu;
> @@ -608,7 +597,7 @@ asmlinkage void noinstr do_vint(struct pt_regs *regs, unsigned long sp)
>         cpu = smp_processor_id();
>
>         if (on_irq_stack(cpu, sp))
> -               handle_loongarch_irq(regs);
> +               generic_handle_arch_irq(regs);
>         else {
>                 stack = per_cpu(irq_stack, cpu) + IRQ_STACK_START;
>
> @@ -619,7 +608,7 @@ asmlinkage void noinstr do_vint(struct pt_regs *regs, unsigned long sp)
>                 "move   $s0, $sp                \n" /* Preserve sp */
>                 "move   $sp, %[stk]             \n" /* Switch stack */
>                 "move   $a0, %[regs]            \n"
> -               "bl     handle_loongarch_irq    \n"
> +               "bl     generic_handle_arch_irq \n"
>                 "move   $sp, $s0                \n" /* Restore sp */
>                 : /* No outputs */
>                 : [stk] "r" (stack), [regs] "r" (regs)
> --
> 2.36.1
>


-- 
Best Regards
 Guo Ren

Powered by blists - more mailing lists