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>] [day] [month] [year] [list]
Date:	Sat, 26 Sep 2009 17:19:07 +0800
From:	"wilbur.chan" <wilbur512@...il.com>
To:	linux-kernel@...r.kernel.org
Subject: Why get_fs_names return NULL?

I am going to start a kernel using ramdisk, but  kernel panic  when
mounting the ramdisk fs.


After traped the code , I found that , when kernel invoked
get_fs_names, it got a NULL list of existing file system names.

That is to say,
prepare_namespace--->mount_root-->mount_block_root-->get_fs_names-->get_filesystem_list
 ,

return  a list of nothing...

I thought that , maybe module_init(init_ext2_fs) failed , but I don't
know why? and how to solve it ?

here is my ramdisk script:

mkdir initrd
dd if=/dev/zero of=initrd.img bs=1k count=4096
mke2fs -F -v -m0 initrd.img
mount -o loop initrd.img initrd
cp -av rootfs/* initrd
sync
umount initrd
sync
gzip -f -9 initrd.img
sync
./mkimage -T ramdisk -C gzip -n ' Ramdisk Image' -d initrd.img.gz
your.ramdisk.u-boot
--
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