cloop don't work with 7.04 (amd64)

Bug #120512 reported by enthos
6
Affects Status Importance Assigned to Milestone
linux-source-2.6.20 (Ubuntu)
Won't Fix
High
Unassigned

Bug Description

md5sum ubuntu-7.04-desktop-amd64.iso
a2b159599b69cea51371eee1ec5feda6 *ubuntu-7.04-desktop-amd64.iso

boot with usb-cdrom

ctrl-alt-f6
sudo su

cat /proc/cmdline
BOOT_IMAGE=/casper/vmlinuz file=/cdrom/preseed/ubuntu.seed boot=casper initrd=/casper/initrd.gz quiet splash --

uname -a
Linux ubuntu 2.6.20-15-generic #2 SMP Sun Apr 15 06:17:24 UTC 2007 x86_64 GNU/Linux

mkdir /s3
# /dev/hda3 is ext2
mount /dev/hda3 /s3
modprobe cloop
# mknod /dev/cloop1 b 240 1 (cloop1 is exist)
# KNOPPIX file is copied from knoppix 5.1.1
losetup /dev/cloop1 /s3/KNOPPIX/KNOPPIX
losetup /dev/cloop1 /s3/KNOPPIX/KNOPPIX >err1.txt 2> err2.txt

cat err2.txt
ioctl: LOOP_SET_FD: Cannot allocate memory

dmesg
[ 185.562396] cloop: Initializing cloop v2.02
[ 185.570195] cloop: loaded (max 8 devices)
[ 192.488850] cloop: out of kernel mem for block buffer (0 bytes)
[ 194.886974] cloop: out of kernel mem for block buffer (0 bytes)

rmmod cloop
modprobe cloop file=/s3/KNOPPIX/KNOPPIX >err3.txt 2> err4.txt

cat err4.txt
FATAL: Error inserting cloop (/lib/modules/2.6.20-15-generic/kernel/ubuntu/misc/cloop.ko): Cannot allocate memory

dmesg
[ 331.935216] cloop: unloaded.
[ 335.176826] cloop: Initializing cloop v2.02
[ 335.178830] cloop: loaded (max 8 devices)
[ 335.178874] cloop: out of kernel mem for block buffer (0 bytes)
[ 335.205448] Unable to handle kernel paging request at ffffffff882a8ae8 RIP:
[ 335.205448] [<ffffffff80337ba7>] get_disk+0x17/0x80 [ 335.205448] PGD 203027 PUD 205027
PMD 10c97067 PTE 0
[ 335.205448] Oops: 0000 [1] SMP
[ 335.205450] CPU 0
[ 335.205450] Modules linked in: binfmt_misc rfcomm l2cap bluetooth ppdev lp
cpufreq_userspace cpufreq_stats cpufreq_powersave cpufreq_ondemand
freq_table cpufreq_conservative tc1100_wmi sony_acpi pcc_acpi dev_acpi video
sbs i2c_ec dock container button battery asus_acpi backlight ac ipv6
af_packet fuse pcspkr shpchp pci_hotplug intel_agp parport_pc parport
psmouse i2c_piix4 serio_raw i2c_core tsdev evdev floppy squashfs loop
unionfs nls_cp437 isofs ext3 jbd ext2 mbcache ide_cd cdrom ide_disk
ata_generic libata piix generic pcnet32 mii BusLogic scsi_mod thermal
processor fan fbcon tileblit font bitblit softcursor vesafb cfbcopyarea
cfbimgblt cfbfillrect capability commoncap
[ 335.206076] Pid: 8442, comm: vol_id Not tainted 2.6.20-15-generic #2
[ 335.206076] RIP: 0010:[<ffffffff80337ba7>] [<ffffffff80337ba7>] get_disk+0x17/0x80
[ 335.207965] RSP: 0018:ffff810010687d68 EFLAGS: 00010286
[ 335.208033] RAX: ffffffff882a8aa0 RBX: ffff810014c86e80 RCX: 0000000000000001
[ 335.208102] RDX: ffff810010687e0c RSI: ffff810018a92400 RDI: ffff810018a92400
[ 335.208170] RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000000
[ 335.208240] R10: 00000000000002af R11: ffffffff8022daf0 R12: 000000000f000004
[ 335.208381] R13: ffff810018a92400 R14: ffffffff802d96f0 R15: 0000000000000000
[ 335.208476] FS: 00002b8e3f7b06f0(0000) GS:ffffffff8054e000(0000) knlGS:0000000000000000
[ 335.208593] CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b
[ 335.208666] CR2: ffffffff882a8ae8 CR3: 000000001076f000 CR4: 00000000000006e0
[ 335.208806] Process vol_id (pid: 8442, threadinfo ffff810010686000, task ffff81000cd1d140)
[ 335.208907] Stack: 00000000000000d0 ffff810014c86e80 0000000000000000 ffffffff8025e19c
[ 335.208915] ffff81001f6c8980 ffffffff803a95c3 00000000000000f0 ffff810010687e0c
[ 335.208922] ffff81001da1e800 ffff81001f6c8980 ffff81001f6c8980 ffff81001d954e80
[ 335.208928] Call Trace:
[ 335.208933] [<ffffffff8025e19c>] exact_lock+0xc/0x20
[ 335.208937] [<ffffffff803a95c3>] kobj_lookup+0xf3/0x170
[ 335.208941] [<ffffffff802ef2b0>] blkdev_open+0x0/0x80
[ 335.208945] [<ffffffff80337d37>] get_gendisk+0x17/0x30
[ 335.208948] [<ffffffff802eecbf>] do_open+0x4f/0x310
[ 335.208951] [<ffffffff802eec57>] bdget+0x117/0x130
[ 335.208953] [<ffffffff802ef2b0>] blkdev_open+0x0/0x80
[ 335.208955] [<ffffffff802ef2ec>] blkdev_open+0x3c/0x80
[ 335.208957] [<ffffffff8021f11c>] __dentry_open+0xfc/0x1f0
[ 335.208958] [<ffffffff80228aad>] do_filp_open+0x2d/0x40
[ 335.208960] [<ffffffff80219faa>] do_sys_open+0x5a/0x100
[ 335.208961] [<ffffffff8026111e>] system_call+0x7e/0x83
[ 335.208962]
[ 335.208963]
[ 335.208964] Code: 48 8b 68 48 48 85 ed 74 1f 65 8b 04 25 24 00 00 00 83 7d 00
[ 335.208964] RIP [<ffffffff80337ba7>] get_disk+0x17/0x80
[ 335.208964] RSP <ffff810010687d68>
[ 335.208964] CR2: ffffffff882a8ae8
[ 335.208964]

cat /proc/cpuinfo
processor : 0
vendor_id : AuthenticAMD
cpu family : 15
model : 75
model name : AMD Athlon(tm) 64 X2 Dual Core Processor 4200+
stepping : 2
cpu MHz : 2297.085
cache size : 512 KB
fpu : yes
fpu_exception : yes
cpuid level : 1
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr
sse sse2 syscall nx mmxext fxsr_opt rdtscp lm 3dnowext 3dnow pni cx16 lahf_lm
bogomips : 4448.03
TLB size : 1024 4K pages
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management: ts fid vid ttp tm stc

processor : 1
vendor_id : AuthenticAMD
cpu family : 15
model : 75
model name : AMD Athlon(tm) 64 X2 Dual Core Processor 4200+
stepping : 2
cpu MHz : 2297.085
cache size : 512 KB
fpu : yes
fpu_exception : yes
cpuid level : 1
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr
sse sse2 syscall nx mmxext fxsr_opt rdtscp lm 3dnowext 3dnow pni cx16 lahf_lm
bogomips : 4434.23
TLB size : 1024 4K pages
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management: ts fid vid ttp tm stc

memory 2G

same command work with ubuntu-6.06.1-desktop-amd64.iso

Tags: kernel-oops
Revision history for this message
Peter Cordes (peter-cordes) wrote :
Download full text (4.2 KiB)

Same thing on a Core 2 running Feisty AMD64, w/ 2GB of RAM. I compressed a .iso with
create_compressed_fs -L -1 -B $((4*1024*1024)) -v foo.iso foo.iso.cloop
modprobe cloop file="$PWD/foo.iso.cloop"

 and then my kernel oopsed with very similar, but not identical addresses to the bug submitter's oops. My kernel is newer:
Linux tesla 2.6.20-16-generic #2 SMP Thu Jun 7 19:00:28 UTC 2007 x86_64 GNU/Linux

[1096238.466024] cloop: Initializing cloop v2.02
[1096238.466619] cloop: loaded (max 8 devices)
[1096238.466695] cloop: out of kernel mem for block buffer (0 bytes)
[1096238.804446] Unable to handle kernel paging request at ffffffff88658ae8 RIP:
[1096238.804451] [<ffffffff80337b87>] get_disk+0x17/0x80
[1096238.804460] PGD 203027 PUD 205027 PMD 75716067 PTE 0
[1096238.804465] Oops: 0000 [1] SMP
[1096238.804468] CPU 0
[1096238.804470] Modules linked in: loop ipx p8023 nls_cp437 isofs udf dm_mirror binfmt_misc nfs nfsd exportfs lockd sunrpc ip
v6 ppdev autofs4 cpufreq_userspace cpufreq_stats cpufreq_powersave cpufreq_ondemand cpufreq_conservative tc1100_wmi sony_acpi
pcc_acpi dev_acpi video sbs i2c_ec dock container button battery asus_acpi backlight ac ext3 jbd mbcache xfs fuse r128 i915 dr
m eeprom i2c_i801 i2c_core acpi_cpufreq freq_table sbp2 lp snd_hda_intel snd_hda_codec snd_pcm_oss snd_pcm snd_mixer_oss snd_s
eq_dummy xpad snd_seq_oss snd_seq_midi snd_rawmidi snd_seq_midi_event snd_seq snd_timer snd_seq_device parport_pc af_packet ps
mouse parport pcspkr snd soundcore snd_page_alloc serio_raw shpchp pci_hotplug iTCO_wdt iTCO_vendor_support intel_agp tsdev jo
ydev evdev jfs sr_mod cdrom generic ata_generic sg sd_mod usbhid hid ohci1394 ahci pata_marvell e100 mii ieee1394 libata scsi_
mod uhci_hcd ehci_hcd e1000 usbcore raid456 xor raid10 raid1 raid0 linear md_mod dm_mod thermal processor fan fbcon tileblit f
ont bitblit softcursor vesafb cfbcopyarea cfbimgblt cfbfillrect capability commoncap
[1096238.804557] Pid: 8396, comm: vol_id Tainted: G M 2.6.20-16-generic #2
[1096238.804560] RIP: 0010:[<ffffffff80337b87>] [<ffffffff80337b87>] get_disk+0x17/0x80
[1096238.804565] RSP: 0018:ffff810075a11d68 EFLAGS: 00010286
[1096238.804568] RAX: ffffffff88658aa0 RBX: ffff810015d1f3c0 RCX: 0000000000000001
[1096238.804572] RDX: ffff810075a11e0c RSI: ffff81007f698e00 RDI: ffff81007f698e00
[1096238.804575] RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000000
[1096238.804578] R10: 00000000000002e7 R11: ffffffff8022daf0 R12: 000000000f000001
[1096238.804581] R13: ffff81007f698e00 R14: ffffffff802d96d0 R15: 0000000000000000
[1096238.804585] FS: 00002abb4ff8e6f0(0000) GS:ffffffff8054e000(0000) knlGS:0000000000000000
[1096238.804589] CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b
[1096238.804592] CR2: ffffffff88658ae8 CR3: 00000000059a3000 CR4: 00000000000006e0
[1096238.804596] Process vol_id (pid: 8396, threadinfo ffff810075a10000, task ffff8100405b3080)
[1096238.804598] Stack: ffff81007e674580 ffff810015d1f3c0 0000000000000000 ffffffff8025e1ac
[1096238.804605] ffff810077927680 ffffffff803a95d3 00000000000000f0 ffff810075a11e0c
[1096238.804610] ffff81007dcd8800 ffff810077927680 ffff810077927680 ffff810073ecb9c0
[1096238.804615] C...

Read more...

Revision history for this message
ExplodingLemur (change-forum-launchpad) wrote :
Download full text (5.7 KiB)

Experiencing the problem with Feisty Fawn i386 as well. Kernel package version 2.6.20-16.31.

modprobe -v cloop file="/mnt/fakecd/KNOPPIX/KNOPPIX"
insmod /lib/modules/2.6.20-16-generic/kernel/ubuntu/misc/cloop.ko file=/mnt/fakecd/KNOPPIX/KNOPPIX
FATAL: Error inserting cloop (/lib/modules/2.6.20-16-generic/kernel/ubuntu/misc/cloop.ko): Cannot allocate memory

dmesg output:

[10699.992700] cloop: Initializing cloop v2.02
[10699.992820] kobject_add failed for cloop0 with -EEXIST, don't try to register things with the same name in the same directory.
[10699.992832] [<c01eda99>] kobject_add+0x119/0x1a0
[10699.992872] [<c01b1f14>] register_disk+0x44/0x1f0
[10699.992878] [<c01e556f>] blk_register_region+0x2f/0x40
[10699.992901] [<c01e55b6>] add_disk+0x36/0x50
[10699.992906] [<c01e4d20>] exact_match+0x0/0x10
[10699.992910] [<c01e53f0>] exact_lock+0x0/0x10
[10699.992922] [<f8ebe180>] cloop_init+0x180/0x2d1 [cloop]
[10699.992964] [<c014422d>] sys_init_module+0x15d/0x1ba0
[10699.993146] [<c01031f0>] sysenter_past_esp+0x69/0xa9
[10699.993210] =======================
[10699.993298] kobject_add failed for cloop1 with -EEXIST, don't try to register things with the same name in the same directory.
[10699.993307] [<c01eda99>] kobject_add+0x119/0x1a0
[10699.993342] [<c01b1f14>] register_disk+0x44/0x1f0
[10699.993347] [<c01e556f>] blk_register_region+0x2f/0x40
[10699.993369] [<c01e55b6>] add_disk+0x36/0x50
[10699.993373] [<c01e4d20>] exact_match+0x0/0x10
[10699.993377] [<c01e53f0>] exact_lock+0x0/0x10
[10699.993389] [<f8ebe180>] cloop_init+0x180/0x2d1 [cloop]
[10699.993431] [<c014422d>] sys_init_module+0x15d/0x1ba0
[10699.993612] [<c01031f0>] sysenter_past_esp+0x69/0xa9
[10699.993675] =======================
[10699.993720] kobject_add failed for cloop2 with -EEXIST, don't try to register things with the same name in the same directory.
[10699.993730] [<c01eda99>] kobject_add+0x119/0x1a0
[10699.993764] [<c01b1f14>] register_disk+0x44/0x1f0
[10699.993769] [<c01e556f>] blk_register_region+0x2f/0x40
[10699.993791] [<c01e55b6>] add_disk+0x36/0x50
[10699.993795] [<c01e4d20>] exact_match+0x0/0x10
[10699.993799] [<c01e53f0>] exact_lock+0x0/0x10
[10699.993811] [<f8ebe180>] cloop_init+0x180/0x2d1 [cloop]
[10699.993853] [<c014422d>] sys_init_module+0x15d/0x1ba0
[10699.994032] [<c01031f0>] sysenter_past_esp+0x69/0xa9
[10699.994094] =======================
[10699.994341] kobject_add failed for cloop3 with -EEXIST, don't try to register things with the same name in the same directory.
[10699.994351] [<c01eda99>] kobject_add+0x119/0x1a0
[10699.994386] [<c01b1f14>] register_disk+0x44/0x1f0
[10699.994390] [<c01e556f>] blk_register_region+0x2f/0x40
[10699.994412] [<c01e55b6>] add_disk+0x36/0x50
[10699.994416] [<c01e4d20>] exact_match+0x0/0x10
[10699.994420] [<c01e53f0>] exact_lock+0x0/0x10
[10699.994432] [<f8ebe180>] cloop_init+0x180/0x2d1 [cloop]
[10699.994473] [<c014422d>] sys_init_module+0x15d/0x1ba0
[10699.994651] [<c01031f0>] sysenter_past_esp+0x69/0xa9
[10699.994713] =======================
[10699.998419] kobject_add failed for cloop4 with -EEXIST, don't try to register things with the same name in the same directory.
[10699.998429]...

Read more...

Revision history for this message
Rouben (rouben) wrote :

Confirmed same issue, similar error with 7.04 on amd64, -server kernel, all latest updates applied, including the today's kernel release.

[ 50.744421] cloop: Initializing cloop v2.02
[ 50.744645] cloop: loaded (max 8 devices)
[ 50.744653] cloop: out of kernel mem for block buffer (0 bytes)
[ 77.977289] cloop: Initializing cloop v2.02
[ 77.977320] kobject_add failed for cloop0 with -EEXIST, don't try to register things with the same name in the same directory.
[ 77.977329]
[ 77.977330] Call Trace:
[ 77.977365] [<ffffffff8034183e>] kobject_add+0x18e/0x1d0
[ 77.977383] [<ffffffff8030488c>] register_disk+0x5c/0x280
[ 77.977392] [<ffffffff80339644>] add_disk+0x34/0x40
[ 77.977397] [<ffffffff8807d1b3>] :cloop:cloop_init+0x1b3/0x2fc
[ 77.977414] [<ffffffff802ac8d5>] sys_init_module+0x1905/0x1ab0
[ 77.977431] [<ffffffff80231541>] __up_write+0x21/0x130
[ 77.977447] [<ffffffff8026111e>] system_call+0x7e/0x83

... SNIP ...

[ 77.977888] kobject_add failed for cloop7 with -EEXIST, don't try to register things with the same name in the same directory.
[ 77.977891]
[ 77.977892] Call Trace:
[ 77.977894] [<ffffffff8034183e>] kobject_add+0x18e/0x1d0
[ 77.977898] [<ffffffff8030488c>] register_disk+0x5c/0x280
[ 77.977902] [<ffffffff80339644>] add_disk+0x34/0x40
[ 77.977905] [<ffffffff8807d1b3>] :cloop:cloop_init+0x1b3/0x2fc
[ 77.977909] [<ffffffff802ac8d5>] sys_init_module+0x1905/0x1ab0
[ 77.977915] [<ffffffff80231541>] __up_write+0x21/0x130
[ 77.977921] [<ffffffff8026111e>] system_call+0x7e/0x83
[ 77.977924]
[ 77.977925] cloop: loaded (max 8 devices)
[ 77.977931] cloop: out of kernel mem for block buffer (0 bytes)

Steps to reproduce:
===========
apt-get install cloop-utils
dd if=/dev/zero of=./1gig.img bs=1024 count=1048576
mke2fs -j ./1gig.img
tune2fs -O dir_index ./1gig.img
tune2fs -O has_journal -o journal_data ./1gig.img
create_compressed_fs -L -2 -q -m ./1gig.img ./1gig.cimg
modprobe cloop file=./1gig.cimg

Revision history for this message
Leann Ogasawara (leannogasawara) wrote :

Hi All,

This bug was reported a while ago but there hasn't been any recent activity. The Hardy Heron Alpha series is currently under development and contains an updated version of the kernel. It would be helpful if you could test the latest Hardy Alpha release: http://www.ubuntu.com/testing . You should be able to then test the new kernel via the LiveCD. If you can, please verify if this bug still exists or not and report back your results. Thanks.

Changed in linux-source-2.6.20:
status: Triaged → Incomplete
Revision history for this message
Rouben (rouben) wrote :

I'm speculating here, but I think cloop (given its age) won't be included in Hardy, since it won't compile on kernels > 2.6.23. Therefore, if this bug isn't fixed in Feisty, I don't think there's any point in keeping it open.

Changed in linux-source-2.6.20:
status: Incomplete → Won't Fix
Revision history for this message
Launchpad Janitor (janitor) wrote : Kernel team bugs

Per a decision made by the Ubuntu Kernel Team, bugs will longer be assigned to the ubuntu-kernel-team in Launchpad as part of the bug triage process. The ubuntu-kernel-team is being unassigned from this bug report. Refer to https://wiki.ubuntu.com/KernelTeamBugPolicies for more information. Thanks.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.