ubd option parsing problem when using cow filesystems in kernel 3.4
Hi,
It seems that the parsing of ubd option is broken in kernels 3.4.X when using COW filesystems. Let me show the tests I've done so far.
When starting a virtual machine using a cow fs without pathname:
linux-3.4.1 udba=cow_fs,debian.img
it works, but the cow file created is named 'cow_fs,debian.img' instead of 'cow_fs'.
However, when specifying full pathnames for the cow and root filesystem:
linux-3.4.1 udba=/pathto/cow_fs,/pathto/debian.img
you get a kernel panic and the following errors:
Open of COW file '/root/uml/test/cow_fs,/root/uml/test/debian.img'
failed, errno = 2
Failed to open '/root/uml/test/cow_fs,/root/uml/test/debian.img',
errno = 2
ubda: Can't open "/root/uml/test/cow_fs,/root/uml/test/debian.img":
errno = 2
Open of COW file '/root/uml/test/cow_fs,/root/uml/test/debian.img'
failed, errno = 2
Failed to open '/root/uml/test/cow_fs,/root/uml/test/debian.img',
errno = 2
ubda: Can't open "/root/uml/test/cow_fs,/root/uml/test/debian.img":
errno = 2
VFS: Cannot open root device "98:0" or unknown-block(98,0): error -2 Please append a correct "root=" boot option; here are the available
partitions:
6200 2097152 ubda driver: uml-blkdev
Kernel panic - not syncing: VFS: Unable to mount root fs on
unknown-block(98,0)
The same tests work perfectly with kernel 3.3.8 and older versions. To test I've used a debian 6.0 rootfs.
Any idea of the cause of the problem? A simple 'diff' between 3.3 and 3.4 versions shows the option parsing code has changed significantly.
Best regards,
David Fernández
Virtual Networks over linuX (VNX)
http://vnx.dit.upm.es
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
Quoted 2 lines · David Fernández
Any idea of the cause of the problem? A simple 'diff' between 3.3 and 3.4 versions shows the option parsing code has changed significantly.
Can you do a git bisect?
Signature · 13 lines
Thanks, //richard ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ User-mode-linux-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
Quoted 5 lines · richard -rw- weinberger
Quoted 2 lines · David Fernández
Any idea of the cause of the problem? A simple 'diff' between 3.3 and 3.4 versions shows the option parsing code has changed significantly.
Can you do a git bisect?
I've some problems with git bisect, but I manage to make the tests manually and the result is:
v3.3.8 -> OK
v3.4-rc1 -> Could not compile (implicit declaration of switch_to function) v3.4-rc2 -> Could not compile (implicit declaration of switch_to function) v3.4-rc3 -> Fails
Let me know if I can help with any other test.
Best regards,
David
Quoted 4 lines
Signature · 3 lines
-- Thanks, //richard
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
Quoted 10 lines · David Fernández
Quoted 5 lines · richard -rw- weinberger
Quoted 2 lines · David Fernández
Any idea of the cause of the problem? A simple 'diff' between 3.3 and 3.4 versions shows the option parsing code has changed significantly.
Can you do a git bisect?
I've some problems with git bisect, but I manage to make the tests manually and the result is:
You have to bisect between v3.3 (Linus' tree) and v3.4-rc1. To make 3.4-rc1 compile you have to always to apply a fix. AFAIK the commit a3a85a763 (um: Disintegrate asm/system.h) fixes this.
Signature · 13 lines
Thanks, //richard ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ User-mode-linux-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
Quoted 11 lines · richard -rw- weinberger
Quoted 7 lines · David Fernández
Quoted 4 lines · richard -rw- weinberger
Quoted 2 lines · David Fernández
Any idea of the cause of the problem? A simple 'diff' between 3.3 and 3.4 versions shows the option parsing code has changed significantly.
Can you do a git bisect?
I've some problems with git bisect, but I manage to make the tests manually and the result is:
You have to bisect between v3.3 (Linus' tree) and v3.4-rc1. To make 3.4-rc1 compile you have to always to apply a fix. AFAIK the commit
a3a85a763(um: Disintegrateasm/system.h) fixes this.
Finally I managed to do the git bisect with your indications. The result:
# git bisect bad 026cee0086fe1df4cf74691cf273062cc769617d is the first bad commit commit 026cee0086fe1df4cf74691cf273062cc769617d Author: Pawel Moll <[email protected]> Date: Mon Mar 26 12:50:51 2012 +1030
params: <level>_initcall-like kernel parameters
This patch adds a set of macros that can be used to declare kernel parameters to be parsed _before_ initcalls at a chosen level are executed. We rename the now-unused "flags" field of struct kernel_param as the level. It's signed, for when we use this for early params as well, in future.
Linker macro collating init calls had to be modified in order to add additional symbols between levels that are later used by the init code to split the calls into blocks.
:040000 040000 f5622d1cb7f6933aa18fae3e30069d759deafc7184f4f9747e3094c061308589b001c29c5d3234ab M arch
:040000 040000 4809a8f0ac006bd718c16a33c987e593c46736544e6b5d41ce4ad1ea695463a95dfce5595181435d M include
:040000 040000 36f9650000abe4d15d8859985f93bda1b8ef6cdf644e4fe5f6501505144dc0de6c8ff9b79d3b5d65 M init
:040000 040000 edd20969e15db976a1923f3bc63315c5ff58eecf005f7039b2853d3f2571b50d695a4aaffbe4f1d0 M kernel
An the log:
# git bisect log git bisect start # good: [c16fa4f2ad19908a47c63d8fa436a1178438c7e7] Linux 3.3 git bisect good c16fa4f2ad19908a47c63d8fa436a1178438c7e7 # bad: [dd775ae2549217d3ae09363e3edb305d0fa19928] Linux 3.4-rc1 git bisect bad dd775ae2549217d3ae09363e3edb305d0fa19928 # good: [b2094ef840697bc8ca5d17a83b7e30fad5f1e9fa] Merge tag 'sound-3.4' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound git bisect good b2094ef840697bc8ca5d17a83b7e30fad5f1e9fa # good: [1bfecd935849a45b6b47d9f011e1c278ff880512] Merge tag 'boards' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc git bisect good 1bfecd935849a45b6b47d9f011e1c278ff880512 # bad: [47b816ff7d520509176154748713e7d66b3ad6ac] Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc git bisect bad 47b816ff7d520509176154748713e7d66b3ad6ac # good: [69e1aaddd63104f37021d0b0f6abfd9623c9134c] Merge tag 'ext4_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4 git bisect good 69e1aaddd63104f37021d0b0f6abfd9623c9134c # good: [30304e5a79d424eb2c8707b3ff0e9b8bf6ab3e8f] Merge tag 'mfd_3.4-1' of git://git.kernel.org/pub/scm/linux/kernel/git/sameo/mfd-2.6 git bisect good 30304e5a79d424eb2c8707b3ff0e9b8bf6ab3e8f # bad: [d25413efa9536e2f425ea45c7720598035c597bc] Merge git://github.com/rustyrussell/linux git bisect bad d25413efa9536e2f425ea45c7720598035c597bc # good: [ade28abdcb474531bb7045c032a286812c7f6d2a] asus-wmi: don't update power and brightness when using scalar git bisect good ade28abdcb474531bb7045c032a286812c7f6d2a # good: [5430528b8bfa2c4d10df3bd59b73ab5faf6fa6cb] Merge branch 'for_3.4/fixes/gpio-2' of git://git.kernel.org/pub/scm/linux/kernel/git/khilman/linux-omap-pm into gpio/next git bisect good 5430528b8bfa2c4d10df3bd59b73ab5faf6fa6cb # good: [61e5191c9d96268746bd57ed55d035678a1a2cf9] Merge branch 'for_linus' of git://cavan.codon.org.uk/platform-drivers-x86 git bisect good 61e5191c9d96268746bd57ed55d035678a1a2cf9 # good: [0142877aa4e54dd9943fb727e9b386c36c8e3ab7] i5400_edac: Avoid calling pci_put_device() twice git bisect good 0142877aa4e54dd9943fb727e9b386c36c8e3ab7 # bad: [f946eeb9313ff1470758e171a60fe7438a2ded3f] module: Remove module size limit git bisect bad f946eeb9313ff1470758e171a60fe7438a2ded3f # good: [8b8252813dee8e8cd453bb219731c36b268c69a7] module_param: remove support for bool parameters which are really int. git bisect good 8b8252813dee8e8cd453bb219731c36b268c69a7 # bad: [d53799be6758841e1ffb1fd3780f73d0ffe44432] module: move __module_get and try_module_get() out of line. git bisect bad d53799be6758841e1ffb1fd3780f73d0ffe44432 # bad: [026cee0086fe1df4cf74691cf273062cc769617d] params: <level>_initcall-like kernel parameters git bisect bad 026cee0086fe1df4cf74691cf273062cc769617d
Let me know if you need any other test.
Best regards,
David
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
Quoted 16 lines · David Fernández
Finally I managed to do the git bisect with your indications. The result:
# git bisect bad 026cee0086fe1df4cf74691cf273062cc769617d is the first bad commit commit 026cee0086fe1df4cf74691cf273062cc769617d Author: Pawel Moll <[email protected]> Date: Mon Mar 26 12:50:51 2012 +1030params: <level>_initcall-like kernel parameters
This patch adds a set of macros that can be used to declare kernel parameters to be parsed _before_ initcalls at a chosen level are executed. We rename the now-unused "flags" field of struct
kernel_paramas the level. It's signed, for when we use this for early params as well, in future.
Quoted 6 lines
Linker macro collating init calls had to be modified in order to add additional symbols between levels that are later used by the init code to split the calls into blocks.
Signed-off-by Pawel Moll <[email protected]>Signed-off-by Rusty Russell <[email protected]>
Interesting.
Reverting this commit makes the problem go away?
Signature · 13 lines
Thanks, //richard ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ User-mode-linux-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
Quoted 17 lines · richard -rw- weinberger
Quoted 16 lines · David Fernández
Finally I managed to do the git bisect with your indications. The result:
# git bisect bad 026cee0086fe1df4cf74691cf273062cc769617d is the first bad commit commit 026cee0086fe1df4cf74691cf273062cc769617d Author: Pawel Moll<[email protected]> Date: Mon Mar 26 12:50:51 2012 +1030params:<level>_initcall-like kernel parameters
This patch adds a set of macros that can be used to declare kernel parameters to be parsed _before_ initcalls at a chosen level are executed. We rename the now-unused "flags" field of struct
kernel_paramas the level. It's signed, for when we use this for early params as well, in future.
Quoted 8 lines
Quoted 6 lines
Linker macro collating init calls had to be modified in order to add additional symbols between levels that are later used by the init code to split the calls into blocks.
Signed-off-by Pawel Moll<[email protected]>Signed-off-by Rusty Russell<[email protected]>Interesting.
Reverting this commit makes the problem go away?
What command should I use to revert that specific commit? I'm not an expert in git, in fact I just learnt what a 'git bisect' is after your message ...:-)
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
Quoted 4 lines · David Fernández
What command should I use to revert that specific commit? I'm not an expert in git, in fact I just learnt what a 'git bisect' is after your message ...:-)
E.g:
$ git show 026cee00 > sucker.diff $ patch -p1 -R < sucker.diff
Signature · 13 lines
Thanks, //richard ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ User-mode-linux-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
Quoted 9 lines · richard -rw- weinberger
Quoted 4 lines · David Fernández
What command should I use to revert that specific commit? I'm not an expert in git, in fact I just learnt what a 'git bisect' is after your message ...:-)
E.g:
$ git show 026cee00 > sucker.diff $ patch -p1 -R < sucker.diff
git revert 026cee00
or
git revert -n 026cee00
if you don't want to commit the revert.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
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
Hi,
I have just repeated the git bisect and confirmed that:
- the problem was introduced in 026cee00
- reverting 026cee00 the problem goes away
That commit includes some modifications in kernel/params.c file. Probably the bug has been introduced by that modifications.
Best regards,
David
Quoted 30 lines · Geert Uytterhoeven
Quoted 9 lines · richard -rw- weinberger
Quoted 4 lines · David Fernández
What command should I use to revert that specific commit? I'm not an expert in git, in fact I just learnt what a 'git bisect' is after your message ...:-)
E.g:
$ git show 026cee00 > sucker.diff $ patch -p1 -R < sucker.diffgit revert 026cee00or
git revert -n 026cee00if you don't want to commit the revert.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]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