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]
Message-ID: <51EDAC31.8090306@linaro.org>
Date:	Mon, 22 Jul 2013 15:03:29 -0700
From:	John Stultz <john.stultz@...aro.org>
To:	Borislav Petkov <bp@...en8.de>
CC:	LKML <linux-kernel@...r.kernel.org>, Jiri Kosina <jkosina@...e.cz>,
	Borislav Petkov <bp@...e.de>,
	Thomas Gleixner <tglx@...utronix.de>,
	Rabin Vincent <rabin.vincent@...ricsson.com>
Subject: Re: [PATCH -v2] RTC: Add an alarm disable quirk

On 07/22/2013 02:19 PM, Borislav Petkov wrote:
> On Mon, Jul 22, 2013 at 02:00:42PM -0700, John Stultz wrote:
>> Also, just to clarify, on the affected machines, with this patch,
>> wake-up alarm's will in effect be disabled, right?
> See below.
>
>>> @@ -385,6 +418,9 @@ static int cmos_alarm_irq_enable(struct device *dev, unsigned int enabled)
>>>   	if (!is_valid_irq(cmos->irq))
>>>   		return -EINVAL;
>>> +	if (!disable_alarm)
>>> +		return 0;
>>> +
>> Did you want this in cmos_alarm_irq_enable? Or cmos_irq_disable?
> You're right - the first version did call it only in rtc_alarm_disable()
> so I should move it to cmos_alarm_disable(). Will fix.
>
> Btw, I did some more runs on the weekend. It seems, the setting of the
> alarm interrupt bit in RTC_CONTROL doesn't matter. I dumped its contents
> on shutdown and I had cases where it was 0x22 (bit 5 set) and 0x2.

It doesn't matter in what way?  I get you're saying you had cases where 
the alarm irq was set and non-set on shutdown, but I'm confused as to 
what the result was. Did it boot up immediately on shutdown in both cases?

> So my hunch currently is us *not* disabling the alarm, doesn't make it
> reboot the box.
Just to avoid the double negatives, you're saying:
* Disabling the alarm seems to cause it power on immediately on shutdown.
* Leaving the alarm alone (even if its set?) doesn't seem to cause the 
immediate power-on

Does leaving it alone, cause eventual power-on if the wakeup alarm was 
set for some time (say 5 mins) in the future?

thanks
-john

--
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

Powered by Openwall GNU/*/Linux Powered by OpenVZ