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:	Wed, 06 Mar 2013 10:38:59 -0700
From:	Toshi Kani <toshi.kani@...com>
To:	Hanjun Guo <guohanjun@...wei.com>
Cc:	Tony Luck <tony.luck@...el.com>, Fenghua Yu <fenghua.yu@...el.com>,
	linux-ia64@...r.kernel.org, linux-kernel@...r.kernel.org,
	Jiang Liu <jiang.liu@...wei.com>,
	Jianguo Wu <wujianguo@...wei.com>
Subject: Re: [PATCH 2/2] ia64: iosapic: fix kexec oops when iosapic was
 removed

On Mon, 2013-03-04 at 11:47 +0800, Hanjun Guo wrote:
> Ioapic hotplug was supported in IA64 code, but will lead to kexec oops
> when iosapic was removed. here is the code logic:
> 
> iosapic_remove
>   iosapic_free
>     memset(&iosapic_lists[index], 0, sizeof(iosapic_lists[0]))
>       iosapic_lists[index].addr was set to 0;
> 
> and then kexec a new kernel
> kexec_disable_iosapic
>   iosapic_write(rte->iosapic,..)
>     __iosapic_write(iosapic->addr, reg, val);
>       addr was set to 0 when iosapic_remove, and oops happened
> 
 :
> 
> With Tony and Toshi's advice, the patch removes the "rte" from rte_list
> when the iosapic was removed.
> 
> Signed-off-by: Hanjun Guo <guohanjun@...wei.com>
> Signed-off-by: Jianguo Wu <wujianguo@...wei.com>
> ---
>  arch/ia64/kernel/iosapic.c |   32 +++++++++++++++++++++++++++++++-
>  1 files changed, 31 insertions(+), 1 deletions(-)
> 
> diff --git a/arch/ia64/kernel/iosapic.c b/arch/ia64/kernel/iosapic.c
> index a6e2f75..bc4a0f8 100644
> --- a/arch/ia64/kernel/iosapic.c
> +++ b/arch/ia64/kernel/iosapic.c
> @@ -1010,6 +1010,26 @@ iosapic_check_gsi_range (unsigned int gsi_base, unsigned int ver)
>  	return 0;
>  }
>  
> +static int
> +delete_rte_from_list(unsigned int irq, unsigned int gsi)

I'd prefer to have "iosapic" prefix to the func name, something like
iosapic_delete_rte(), but this is just my preference.  Other than that,
the change looks good to me.

Acked-by: Toshi Kani <toshi.kani@...com>

Thanks,
-Toshi



--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists