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>] [day] [month] [year] [list]
Message-ID: <78d8b93342124112bd4a9b64d9a93020@amazon.com>
Date: Wed, 27 Nov 2024 15:18:37 +0000
From: "Farber, Eliav" <farbere@...zon.com>
To: Marc Zyngier <maz@...nel.org>
CC: "catalin.marinas@....com" <catalin.marinas@....com>, "will@...nel.org"
	<will@...nel.org>, "akpm@...ux-foundation.org" <akpm@...ux-foundation.org>,
	"bhe@...hat.com" <bhe@...hat.com>, "linux-arm-kernel@...ts.infradead.org"
	<linux-arm-kernel@...ts.infradead.org>, "linux-kernel@...r.kernel.org"
	<linux-kernel@...r.kernel.org>, "Chocron, Jonathan" <jonnyc@...zon.com>
Subject: RE: [PATCH] arm64: kexec: Check if IRQ is already masked before
 masking

> Maybe a slightly better approach would be to simplify this code for something that actually uses the kernel infrastructure:
>
> diff --git a/arch/arm64/kernel/machine_kexec.c b/arch/arm64/kernel/machine_kexec.c
> index 82e2203d86a31..9b48d952df3ec 100644
> --- a/arch/arm64/kernel/machine_kexec.c
> +++ b/arch/arm64/kernel/machine_kexec.c
> @@ -230,11 +230,8 @@ static void machine_kexec_mask_interrupts(void)
>                     chip->irq_eoi)
>                         chip->irq_eoi(&desc->irq_data);
>
> -               if (chip->irq_mask)
> -                       chip->irq_mask(&desc->irq_data);
> -
> -               if (chip->irq_disable && !irqd_irq_disabled(&desc->irq_data))
> -                       chip->irq_disable(&desc->irq_data);
> +               irq_set_status_flags(i, IRQ_DISABLE_UNLAZY);
> +               irq_disable(desc);
>         }
>  }
>
> This is of course untested.
I tested your suggested approach and it works.
I will publish V2 for this change.

Thanks, Eliav


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ