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] [day] [month] [year] [list]
Date:	Thu, 7 May 2015 09:04:32 +0200
From:	Geert Uytterhoeven <geert@...ux-m68k.org>
To:	Yu Chen <yu.c.chen@...el.com>
Cc:	Mike Snitzer <snitzer@...hat.com>,
	"Rafael J. Wysocki" <rafael.j.wysocki@...el.com>,
	Linux PM list <linux-pm@...r.kernel.org>,
	"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
	Zhang Rui <rui.zhang@...el.com>
Subject: Re: [RFC V2] init: support device of major:minor:offset format

On Thu, May 7, 2015 at 3:42 AM, Yu Chen <yu.c.chen@...el.com> wrote:
> On 05/07/2015 12:49 AM, Geert Uytterhoeven wrote:
>>
>> On Wed, May 6, 2015 at 2:24 AM, Chen Yu <yu.c.chen@...el.com> wrote:
>>>
>>> Distribution like Ubuntu uses klibc rather than uswsusp to resume
>>> system from hibernation, which will treat swap partition/file in
>>> the form of major:minor:offset. For example, 8:3:0 represents a
>>> swap partition in klibc, and klibc's resume process in initrd will
>>> finally echo 8:3:0 to /sys/power/resume for manually restoring.
>>> However in current implementation, 8:3:0 will be treated as an invalid
>>
>>
>> Why can't klibc write the same information as uswsusp?
>
> I agree. However it seems that klibc treats all device/file as such
> fixed format when dealing with hibernation, I guess that might be
> easier for it to implement?
>
>> Why should the kernel adapt to a specific piece of userspace?
>>
>>> device format, and it is found that manual resumming from hibernation
>>> will fail on lastest kernel.
>>
>>
>> Is this a regression, perhaps introduced by commit 283e7ad024115571
>> ("init: stricter checking of major:minor root= values")? If that is the
>> case,
>> please say so.
>>
> yes, it is. I think there's a modified patch for it at:
>
> https://git.kernel.org/cgit/linux/kernel/git/device-mapper/linux-dm.git/commit/?h=for-next&id=cb31ef485dd4c6a205d1064b42027f82076d00c8

OK, thanks!

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@...ux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds
--
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