prasad@ubuntu:~/logfs_code$ uname -a Linux ubuntu 2.6.36-rc6+ #16 SMP Sun Oct 3 20:28:16 PDT 2010 i686 GNU/Linux Steps 1. Mounted LogFS file system 2. Filled the file system to 100% by creating files of size 1M 3. Remove all the files. 4. Try to unmount the file system, it segment faults. root@ubuntu:~# umount /mnt Segmentation fault BUG report [ 4461.812918] ------------[ cut here ]------------ [ 4461.812963] kernel BUG at /home/prasad/logfs_code/segment.c:858! [ 4461.813019] invalid opcode: 0000 [#1] SMP [ 4461.813150] last sysfs file: /sys/module/logfs/initstate [ 4461.813284] Modules linked in: logfs binfmt_misc psmouse serio_raw mptspi mptscsih pcnet32 mptbase scsi_transport_spi mii [last unloaded: logfs] [ 4461.813539] [ 4461.813707] Pid: 3323, comm: umount Not tainted 2.6.36-rc6+ #16 440BX Desktop Reference Platform/VMware Virtual Platform [ 4461.813744] EIP: 0060:[<e0819113>] EFLAGS: 00010282 CPU: 0 [ 4461.814167] EIP is at map_invalidatepage+0x3/0x10 [logfs] [ 4461.814204] EAX: c13dbdc0 EBX: c13dbdc0 ECX: e0819110 EDX: 00000000 [ 4461.814222] ESI: de93c0b0 EDI: 00000081 EBP: c2f09df8 ESP: c2f09df8 [ 4461.814240] DS: 007b ES: 007b FS: 00d8 GS: 00e0 SS: 0068 [ 4461.814280] Process umount (pid: 3323, ti=c2f08000 task=db949920 task.ti=c2f08000) [ 4461.814302] Stack: [ 4461.814346] c2f09e00 c01ba292 c2f09e1c c01ba881 c13db760 00000000 c2f09e1c c13dbdc0 [ 4461.814429] <0> 00000008 c2f09e88 c01ba98d 0000000e 00000000 00000000 00000000 de93c0b0 [ 4461.814450] <0> ffffffff 0000000e 00000000 c13dbd20 c13dbf20 c13d94e0 c13db260 c13db220 [ 4461.814497] Call Trace: [ 4461.815469] [<c01ba292>] ? do_invalidatepage+0x12/0x30 [ 4461.815505] [<c01ba881>] ? truncate_inode_page+0xa1/0xc0 [ 4461.815521] [<c01ba98d>] ? truncate_inode_pages_range+0xed/0x2c0 [ 4461.815536] [<c01bab7a>] ? truncate_inode_pages+0x1a/0x20 [ 4461.815595] [<e081887d>] ? logfs_evict_inode+0x3d/0x1d0 [logfs] [ 4461.815648] [<c01fe70a>] ? evict+0x1a/0xa0 [ 4461.815655] [<c01fef5e>] ? iput+0x17e/0x270 [ 4461.815674] [<e0812f22>] ? logfs_put_super+0x22/0x30 [logfs] [ 4461.815680] [<c01ecd08>] ? generic_shutdown_super+0x48/0xc0 [ 4461.815741] [<c04b2fea>] ? printk+0x18/0x1e [ 4461.815780] [<e081ad01>] ? logfs_kill_sb+0x41/0xd0 [logfs] [ 4461.815785] [<c01ed435>] ? deactivate_locked_super+0x35/0x50 [ 4461.815791] [<c01edfeb>] ? deactivate_super+0x4b/0x70 [ 4461.815796] [<c0202069>] ? mntput_no_expire+0xa9/0x110 [ 4461.815801] [<c0202380>] ? sys_umount+0x60/0x330 [ 4461.815806] [<c0202669>] ? sys_oldumount+0x19/0x20 [ 4461.815832] [<c0102e63>] ? sysenter_do_call+0x12/0x28 [ 4461.815897] Code: 93 c0 00 00 00 89 f9 8b 5d f0 89 14 24 89 f2 ff 53 14 8b 5d f4 8b 75 f8 8b 7d fc 89 ec 5d c3 89 f6 8d bc 27 00 00 00 00 55 89 e5 <0f> 0b eb fe 89 f6 8d bc 27 00 00 00 00 55 31 c0 89 e5 5d c3 89 [ 4461.816100] EIP: [<e0819113>] map_invalidatepage+0x3/0x10 [logfs] SS:ESP 0068:c2f09df8 [ 4461.816563] ---[ end trace 0d84889e50fd0774 ]--- [ 4461.816738] ------------[ cut here ]------------ [ 4461.816767] WARNING: at kernel/exit.c:899 do_exit+0x64a/0x730() [ 4461.816802] Hardware name: VMware Virtual Platform [ 4461.816817] Modules linked in: logfs binfmt_misc psmouse serio_raw mptspi mptscsih pcnet32 mptbase scsi_transport_spi mii [last unloaded: logfs] [ 4461.816925] Pid: 3323, comm: umount Tainted: G D 2.6.36-rc6+ #16 [ 4461.816953] Call Trace: [ 4461.816985] [<c013ce7d>] warn_slowpath_common+0x6d/0xa0 [ 4461.816999] [<c013fd1a>] ? do_exit+0x64a/0x730 [ 4461.817004] [<c013fd1a>] ? do_exit+0x64a/0x730 [ 4461.817009] [<c013cecd>] warn_slowpath_null+0x1d/0x20 [ 4461.817014] [<c013fd1a>] do_exit+0x64a/0x730 [ 4461.817018] [<c013e2a9>] ? kmsg_dump+0x119/0x130 [ 4461.817024] [<c04b2fea>] ? printk+0x18/0x1e [ 4461.817092] [<c04b7060>] oops_end+0x90/0xd0 [ 4461.817100] [<c0105abf>] die+0x4f/0x70 [ 4461.817105] [<c04b6776>] do_trap+0x96/0xc0 [ 4461.817114] [<c0103b40>] ? do_invalid_op+0x0/0xa0 [ 4461.817119] [<c0103bc6>] do_invalid_op+0x86/0xa0 [ 4461.817127] [<e0819113>] ? map_invalidatepage+0x3/0x10 [logfs] [ 4461.817137] [<c018f48d>] ? call_rcu_sched+0xd/0x10 [ 4461.817141] [<c018f498>] ? call_rcu+0x8/0x10 [ 4461.817173] [<c030ff12>] ? radix_tree_delete+0x112/0x220 [ 4461.817180] [<c04b6507>] error_code+0x67/0x70 [ 4461.817187] [<e0819110>] ? map_invalidatepage+0x0/0x10 [logfs] [ 4461.817195] [<e0819113>] ? map_invalidatepage+0x3/0x10 [logfs] [ 4461.817201] [<c01ba292>] do_invalidatepage+0x12/0x30 [ 4461.817206] [<c01ba881>] truncate_inode_page+0xa1/0xc0 [ 4461.817211] [<c01ba98d>] truncate_inode_pages_range+0xed/0x2c0 [ 4461.817217] [<c01bab7a>] truncate_inode_pages+0x1a/0x20 [ 4461.817225] [<e081887d>] logfs_evict_inode+0x3d/0x1d0 [logfs] [ 4461.817231] [<c01fe70a>] evict+0x1a/0xa0 [ 4461.817236] [<c01fef5e>] iput+0x17e/0x270 [ 4461.817242] [<e0812f22>] logfs_put_super+0x22/0x30 [logfs] [ 4461.817248] [<c01ecd08>] generic_shutdown_super+0x48/0xc0 [ 4461.817254] [<c04b2fea>] ? printk+0x18/0x1e [ 4461.817261] [<e081ad01>] logfs_kill_sb+0x41/0xd0 [logfs] [ 4461.817266] [<c01ed435>] deactivate_locked_super+0x35/0x50 [ 4461.817271] [<c01edfeb>] deactivate_super+0x4b/0x70 [ 4461.817276] [<c0202069>] mntput_no_expire+0xa9/0x110 [ 4461.817280] [<c0202380>] sys_umount+0x60/0x330 [ 4461.817286] [<c0202669>] sys_oldumount+0x19/0x20 [ 4461.817290] [<c0102e63>] sysenter_do_call+0x12/0x28 [ 4461.817332] ---[ end trace 0d84889e50fd0775 ]--- -- To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html