cannot write to file

Glauber Costa glommer at redhat.com
Thu Sep 25 19:55:10 PDT 2008


Hey Zach,

I'm trying to get started here, but got an oops when trying to write to a file.
I'm reading the code and trying to spot it, but since I'm really just starting to
understand the whole thing, and you said to yell early... then I'm sending you the oops,
and that's your problem from now on ;-))


-------------- next part --------------
------------[ cut here ]------------
kernel BUG at mm/filemap.c:1761!
invalid opcode: 0000 [#1] SMP 
Modules linked in: crfs crc32c libcrc32c vfat fat usb_storage nls_utf8 ipt_MASQUERADE iptable_nat nf_nat bridge ib_iser rdma_cm ib_cm iw_cm ib_sa ib_mad ib_core ib_addr iscsi_tcp libiscsi scsi_transport_iscsi fuse rfcomm l2cap bluetooth sunrpc ipt_REJECT nf_conntrack_ipv4 iptable_filter ip_tables ip6t_REJECT xt_tcpudp nf_conntrack_ipv6 xt_state nf_conntrack ip6table_filter ip6_tables x_tables cpufreq_ondemand acpi_cpufreq loop dm_multipath radeon drm ipv6 kvm_intel kvm snd_hda_intel snd_seq_dummy snd_seq_oss snd_seq_midi_event snd_seq snd_seq_device snd_pcm_oss snd_mixer_oss snd_pcm sr_mod cdrom arc4 ecb snd_timer crypto_blkcipher snd_page_alloc nsc_ircc i2c_i801 irda snd_hwdep snd thinkpad_acpi iwl3945 mac80211 battery ata_piix soundcore crc_ccitt bay ac i2c_core hwmon iTCO_wdt pata_acpi video output iTCO_vendor_support e1000e cfg80211 button joydev ata_generic pcspkr sg dm_snapshot dm_zero dm_mirror dm_mod ahci libata sd_mod scsi_mod ext3 jbd mbcache uhci_hcd ohci_hcd ehci_hcd [last unloaded: microcode]

Pid: 9741, comm: bash Not tainted (2.6.25.9-76.fc9.i686 #1)
EIP: 0060:[<c0460fc3>] EFLAGS: 00010203 CPU: 0
EIP is at iov_iter_advance+0xd/0x6c
EAX: f3c07dbc EBX: ecfd4a70 ECX: 00000000 EDX: ecfd4a70
ESI: 00000000 EDI: 00000004 EBP: f3c07d60 ESP: f3c07d54
 DS: 007b ES: 007b FS: 00d8 GS: 0033 SS: 0068
Process bash (pid: 9741, ti=f3c07000 task=f3d1e000 task.ti=f3c07000)
Stack: ecfd4a70 00000000 00000004 f3c07de0 c0462c81 f5babcac f3c07ed8 f3d6e600 
       f5babcac f9808918 f5babc00 f4e35b00 f5aaf738 f5aaf738 00000004 00000000 
       c16c1020 c1644ec0 f5babc00 f9808918 00000004 f3c07db0 c04cb889 00000000 
Call Trace:
 [<c0462c81>] ? generic_file_buffered_write+0x3e0/0x50b
 [<c04cb889>] ? security_inode_need_killpriv+0xf/0x11
 [<c04633ac>] ? __generic_file_aio_write_nolock+0x3ec/0x424
 [<f9800df5>] ? crfs_rcount_add+0xe/0x10 [crfs]
 [<f98005e1>] ? crfs_hold_acquire+0x18c/0x197 [crfs]
 [<c046343e>] ? generic_file_aio_write+0x5a/0xb7
 [<f97f30c7>] ? crfs_file_aio_write+0xc7/0xe6 [crfs]
 [<c0481e44>] ? do_sync_write+0xab/0xe9
 [<c0437b27>] ? autoremove_wake_function+0x0/0x33
 [<c04d2a83>] ? selinux_file_permission+0x100/0x106
 [<c04cb928>] ? security_file_permission+0xf/0x11
 [<c04826d8>] ? vfs_write+0x9b/0x12e
 [<c0482804>] ? sys_write+0x3b/0x60
 [<c0405bf2>] ? syscall_call+0x7/0xb
 =======================
Code: 38 8b 55 ec 2b 72 04 eb 06 47 3b 7d e8 72 b4 8b 4d e0 31 c0 89 31 83 c4 20 5b 5e 5f 5d c3 55 39 50 0c 89 e5 57 56 53 89 d3 73 04 <0f> 0b eb fe 83 78 04 01 75 08 01 50 08 29 50 0c eb 48 8b 38 8b 
EIP: [<c0460fc3>] iov_iter_advance+0xd/0x6c SS:ESP 0068:f3c07d54
---[ end trace ed3cfb9363ec09d9 ]---



More information about the crfs-devel mailing list