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  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]
Date:	Sat, 5 Jul 2014 19:10:15 +0100
From:	Russell King - ARM Linux <>
To:	pawandeep oza <>
Subject: Re: [PATCH] machine_power_off: not only local_irq_disable but also
	do disable preemption

On Sat, Jul 05, 2014 at 10:44:41PM +0530, pawandeep oza wrote:
>  process calls sys_reboot and that process then stops other CPUs while those
>  CPUs are within a spin_lock() region we can potentially encounter a
> deadlock
>  scenario like below.
>     CPU 0                   CPU 1
>     -----                   -----
>                             spin_lock(my_lock)
>     smp_send_stop()
>      <send IPI>             handle_IPI()
>                              disable_preemption/irqs
>                               while(1);
>      <PREEMPT>
>     spin_lock(my_lock) <--- Waits forever

Please explain how that <PREEMPT> occurs with IRQs already disabled.

FTTC broadband for 0.8mile line: now at 9.7Mbps down 460kbps up... slowly
improving, and getting towards what was expected from it.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

Powered by blists - more mailing lists