My favorites | Sign in
Project Home Downloads Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 123: Relocation crashes .... problem in ohsm_realloc_mcp....
1 person starred this issue and may be notified of changes. Back to list
Status:  Fixed
Owner:  sandeepksinha
Closed:  Aug 2009


 
Project Member Reported by sandeepksinha, Aug 6, 2009
[~/fscops/fscops/ohsm/test/userspace]                                                                                                                                                                      
[22:17:00 sinhas]$ sudo ./ohsm -v -r

OHSM: Enter inode Number : 14

OHSM: Enter destination Tier : 2
Killed                          


[ 9249.801418] IP: [<c026cbf5>] __percpu_counter_add+0x25/0xb0                                                                                                                                             
[ 9249.801435] *pde = 00000000                                                                                                                                                                             
[ 9249.801442] Oops: 0000 [#4] SMP                                                                                                                                                                         
[ 9249.801450] last sysfs file: 
/sys/devices/pci0000:00/0000:00:1c.1/0000:03:00.0/rfkill/rfkill1/state                                                                                                     
[ 9249.801457] Modules linked in: ohsm ext2 af_packet binfmt_misc ppdev 
rfcomm bridge stp bnep sco l2cap bluetooth autofs4 ipv6 pci_slot sbs sbshc 
container sbp2 lp parport snd_hda_codec_analog snd_hda_intel snd_hda_codec 
snd_pcm_oss snd_mixer_oss snd_pcm snd_seq_dummy snd_seq_oss snd_seq_midi 
arc4 snd_rawmidi ecb snd_seq_midi_event joydev snd_seq iwlagn snd_timer 
snd_seq_device iwlcore pcmcia snd mac80211 intel_agp thinkpad_acpi rfkill 
psmouse yenta_socket rsrc_nonstatic soundcore led_class pcspkr serio_raw 
evdev pcmcia_core iTCO_wdt iTCO_vendor_support snd_page_alloc agpgart video 
output cfg80211 wmi nvram processor ac battery button ext3 jbd mbcache 
sr_mod cdrom sg ata_generic pata_acpi ohci1394 ieee1394 ata_piix ehci_hcd 
e1000e uhci_hcd usbcore dm_mod thermal fan fuse [last unloaded: ext2]        
[ 9249.801620]                                                                                                                                                                                             
[ 9249.801629] Pid: 14239, comm: ohsm Tainted: G      D    (2.6.30 #1) 
7665AD6                                                                                                                             
[ 9249.801637] EIP: 0060:[<c026cbf5>] EFLAGS: 00210206 CPU: 1                                                                                                                                              
[ 9249.801644] EIP is at __percpu_counter_add+0x25/0xb0                                                                                                                                                    
[ 9249.801650] EAX: 00000001 EBX: f70d6e88 ECX: ffffffff EDX: ffffffff                                                                                                                                     
[ 9249.801657] ESI: e0dc59c0 EDI: 04d366f9 EBP: df8c3cfc ESP: df8c3cdc                                                                                                                                     
[ 9249.801663]  DS: 007b ES: 007b FS: 00d8 GS: 0033 SS: 0068
[ 9249.801670] Process ohsm (pid: 14239, ti=df8c2000 task=c1630000 
task.ti=df8c2000)
[ 9249.801675] Stack:
[ 9249.801679]  c01e197f f6e0c14c c41506c0 e0dc59c0 f70d6e88 000000b2 
e0dc59c0 001a40b3
[ 9249.801695]  df8c3d94 f8146a9a 00000020 df8c3d3c c012cdf3 009dc618 
00000000 00000000
[ 9249.801711]  f710d068 df8c3dd4 f710d000 df8c3d44 0000000e c4fd0b28 
f5470088 000081a4
[ 9249.801729] Call Trace:
[ 9249.801734]  [<c01e197f>] ? __set_page_dirty+0x6f/0xb0
[ 9249.801745]  [<f8146a9a>] ? ext2_new_inode+0x65a/0xac0 [ext2]
[ 9249.801763]  [<c012cdf3>] ? try_to_wake_up+0x123/0x340
[ 9249.801775]  [<f81478fc>] ? ext2_iget+0x1c/0x3b0 [ext2]
[ 9249.801792]  [<f8163550>] ? ohsm_realloc_mcp+0x70/0x540 [ohsm]
[ 9249.801807]  [<c012cdf3>] ? try_to_wake_up+0x123/0x340
[ 9249.801817]  [<c01d4441>] ? ifind_fast+0x41/0x90
[ 9249.801828]  [<c01d47a2>] ? iget_locked+0x32/0x130
[ 9249.801837]  [<f81478fc>] ? ext2_iget+0x1c/0x3b0 [ext2]
[ 9249.801853]  [<c018fea4>] ? filemap_fault+0x134/0x3f0
[ 9249.801864]  [<f8163a55>] ? demo_reloc+0x35/0xb0 [ohsm]
[ 9249.801876]  [<c013c280>] ? capable+0x10/0x40
[ 9249.801886]  [<f8164d16>] ? device_ioctl+0x6a6/0xc00 [ohsm]
[ 9249.801897]  [<c01a5990>] ? __do_fault+0x3b0/0x460
[ 9249.801907]  [<c02ba22b>] ? n_tty_read+0x2eb/0x730
[ 9249.801918]  [<c01ce149>] ? vfs_ioctl+0x79/0x90
[ 9249.801926]  [<c01ce1d2>] ? do_vfs_ioctl+0x72/0x590
[ 9249.801935]  [<c01a6281>] ? handle_mm_fault+0x111/0x720
[ 9249.801945]  [<c01c1352>] ? vfs_read+0x102/0x160
[ 9249.801954]  [<c01ce753>] ? sys_ioctl+0x63/0x70
[ 9249.801963]  [<c0102ffc>] ? sysenter_do_call+0x12/0x28
[ 9249.801973] Code: bc 27 00 00 00 00 55 89 e5 83 ec 20 89 45 f0 89 5d f4 
8b 5d f0 89 75 f8 64 a1 88 74 59 c0 89 7d fc 8b 7b 14 03 3c 85 60 f6 51 c0 
<8b> 07 89 c3 89 c6 8b 45 08 c1 fe 1f 01 d3 11 ce 89c2 c1 fa 1f
[ 9249.802065] EIP: [<c026cbf5>] __percpu_counter_add+0x25/0xb0 SS:ESP 
0068:df8c3cdc
[ 9249.802077] CR2: 0000000004d366f9
[ 9249.802084] ---[ end trace adb9e7baf79f6bea ]---

Aug 7, 2009
Project Member #1 sandeepksinha
 Issue 124  has been merged into this issue.
Aug 7, 2009
Project Member #2 sandeepksinha
[  380.524344] OHSM-Debug : Relocate :
(/home/sinhas/fscops/fscops/ohsm/test/kernel/admin.c, 550) :
ohsm_get_inodes_for_relocation:The Number of Rules = 10.                            
          
[  380.524348] OHSM-Debug : Relocate :
(/home/sinhas/fscops/fscops/ohsm/test/kernel/admin.c, 556) :
ohsm_get_inodes_for_relocation:Number of groups in file system: 240                 
          
[  380.524352] OHSM-Debug : Relocate :
(/home/sinhas/fscops/fscops/ohsm/test/kernel/admin.c, 557) :
ohsm_get_inodes_for_relocation:Number of inodes per groups : 8192                   
          
[  380.524359] OHSM-Debug : Relocate :
(/home/sinhas/fscops/fscops/ohsm/test/kernel/admin.c, 597) :
ohsm_get_inodes_for_relocation:Checking for rule Number = 0.                        
          
[  380.524363] OHSM-Debug : Relocate :
(/home/sinhas/fscops/fscops/ohsm/test/kernel/admin.c, 600) :
ohsm_get_inodes_for_relocation:Checking inode number = 12.                          
          
[  380.524367] OHSM-Debug : Relocate :
(/home/sinhas/fscops/fscops/ohsm/test/kernel/admin.c, 355) :
ohsm_find_dest_for_rule:Checking against policy number = 0.                         
          
[  380.524370] OHSM-Debug : Relocate :
(/home/sinhas/fscops/fscops/ohsm/test/kernel/admin.c, 273) :
ohsm_check_qualifying_policy:Src tier of policy = 1.                                
          
[  380.524374] OHSM-Debug : Relocate :
(/home/sinhas/fscops/fscops/ohsm/test/kernel/admin.c, 274) :
ohsm_check_qualifying_policy:Dest tier of policy = 2.                               
          
[  380.524378] OHSM-Debug : Relocate :
(/home/sinhas/fscops/fscops/ohsm/test/kernel/admin.c, 275) :
ohsm_check_qualifying_policy:Home tier of inode = 1.                                
          
[  380.524382] OHSM-Debug : Relocate :
(/home/sinhas/fscops/fscops/ohsm/test/kernel/admin.c, 290) :
ohsm_check_qualifying_policy:Policy based on size being tested.                     
          
[  380.524386] OHSM-Debug : Relocate :
(/home/sinhas/fscops/fscops/ohsm/test/kernel/admin.c, 299) :
ohsm_check_qualifying_policy:Policy based on FAA being tested.                      
          
[  380.524389] OHSM-Debug : Relocate :
(/home/sinhas/fscops/fscops/ohsm/test/kernel/admin.c, 169) : ohsm_check_age:Days = 0
, Policy value (check_val) = 50.                                       
[  380.524393] OHSM-Debug : Relocate :
(/home/sinhas/fscops/fscops/ohsm/test/kernel/admin.c, 308) :
ohsm_check_qualifying_policy:Policy based on FMA being tested.                      
          
[  380.524397] OHSM-Debug : Relocate :
(/home/sinhas/fscops/fscops/ohsm/test/kernel/admin.c, 169) : ohsm_check_age:Days = 0
, Policy value (check_val) = 50.                                       
[  380.525301] OHSM-Debug : Relocate :
(/home/sinhas/fscops/fscops/ohsm/test/kernel/admin.c, 359) :
ohsm_find_dest_for_rule:Policy number 0 qualified.                                  
          
[  380.572612] BUG: unable to handle kernel paging request at 04cdde54              
                                                                                    
                         
[  380.572619] IP: [<c026d6f5>] __percpu_counter_add+0x25/0xb0                      
                                                                                    
                         
[  380.572628] *pde = 00000000                                                      
                                                                                    
                         
[  380.572631] Oops: 0000 [#1] SMP                                                  
                                                                                    
                         
[  380.572634] last sysfs file:
/sys/devices/pci0000:00/0000:00:1c.1/0000:03:00.0/rfkill/rfkill1/state              
                                                                              
[  380.572638] Modules linked in: ohsm ext2 af_packet binfmt_misc ppdev rfcomm bridge
stp bnep sco l2cap bluetooth autofs4 ipv6 pci_slot sbs sbshc container sbp2 lp
parport snd_hda_codec_analog snd_hda_intel snd_hda_codec snd_pcm_oss snd_mixer_oss
snd_pcm snd_seq_dummy snd_seq_oss snd_seq_midi snd_rawmidi arc4 ecb
snd_seq_midi_event snd_seq iwlagn iwlcore pcmcia snd_timer snd_seq_device mac80211
thinkpad_acpi rfkill snd soundcore intel_agp joydev iTCO_wdt yenta_socket
rsrc_nonstatic led_class agpgart iTCO_vendor_support pcmcia_core snd_page_alloc ac
battery cfg80211 video output nvram psmouse pcspkr processor button evdev wmi
serio_raw ext3 jbd mbcache sr_mod cdrom sg ata_generic pata_acpi ohci1394 ieee1394
ata_piix uhci_hcd ehci_hcd e1000e usbcore linear thermal fan fuse                   
          
[  380.572706]                                                                      
                                                                                    
                                 
[  380.572710] Pid: 14297, comm: ohsm Not tainted (2.6.30.4 #1) 7665AD6             
                                                                                    
                                 
[  380.572713] EIP: 0060:[<c026d6f5>] EFLAGS: 00210202 CPU: 1                       
                                                                                    
                                 
[  380.572716] EIP is at __percpu_counter_add+0x25/0xb0                             
                                                                                    
                                 
[  380.572718] EAX: 00000001 EBX: c3504688 ECX: ffffffff EDX: ffffffff              
                                                                                    
                                 
[  380.572721] ESI: dd0fe480 EDI: 04cdde54 EBP: e2c5fcc8 ESP: e2c5fca8              
                                                                                    
                                 
[  380.572723]  DS: 007b ES: 007b FS: 00d8 GS: 0033 SS: 0068                        
                                                                                    
                                 
[  380.572726] Process ohsm (pid: 14297, ti=e2c5e000 task=e4600c70 task.ti=e2c5e000)
                                                                                    
                                 
[  380.572728] Stack:                                                               
                                                                                    
                                 
[  380.572730]  c01e1d3f f6c22b4c c41a1a00 dd0fe480 c3504688 000000a5 dd0fe480
001a40a6                                                                            
                                       
[  380.572736]  e2c5fd60 fc5f5a8a 00000020 00000000 00000001 ffffffff 00000000
0000000a                                                                            
                                       
[  380.572743]  f724d568 e2c5fda0 f724d500 e2c5fd10 0000000c c4f9815c dd17a088 000081a4
[  380.572750] Call Trace:
[  380.572752]  [<c01e1d3f>] ? __set_page_dirty+0x6f/0xb0
[  380.572757]  [<fc5f5a8a>] ? ext2_new_inode+0x65a/0xac0 [ext2]
[  380.572766]  [<fc5f68ec>] ? ext2_iget+0x1c/0x3b0 [ext2]
[  380.572773]  [<fc64d4a0>] ? ohsm_realloc_mcp+0x70/0x550 [ohsm]
[  380.572779]  [<c01346b1>] ? release_console_sem+0x191/0x1d0
[  380.572783]  [<c014d5ba>] ? down_trylock+0x2a/0x40
[  380.572789]  [<c03e4ac4>] ? printk+0x18/0x1c
[  380.572793]  [<fc64df74>] ? ohsm_find_dest_for_rule+0xc4/0x130 [ohsm]
[  380.572798]  [<fc64e291>] ? ohsm_get_inodes_for_relocation+0x2b1/0x5e0 [ohsm]
[  380.572803]  [<fc64ecd8>] ? device_ioctl+0x718/0xc90 [ohsm]
[  380.572807]  [<c01a5d40>] ? __do_fault+0x3b0/0x460
[  380.572812]  [<c02bae7b>] ? n_tty_read+0x2eb/0x730
[  380.572817]  [<c01ce539>] ? vfs_ioctl+0x79/0x90
[  380.572821]  [<c01ce5c2>] ? do_vfs_ioctl+0x72/0x590
[  380.572824]  [<c01a6631>] ? handle_mm_fault+0x111/0x720
[  380.572828]  [<c01c1742>] ? vfs_read+0x102/0x160
[  380.572833]  [<c01ceb43>] ? sys_ioctl+0x63/0x70
[  380.572836]  [<c010305c>] ? sysenter_do_call+0x12/0x28
[  380.572840] Code: bc 27 00 00 00 00 55 89 e5 83 ec 20 89 45 f0 89 5d f4 8b 5d f0
89 75 f8 64 a1 88 d4 5b c0 89 7d fc 8b 7b 14 03 3c 85 60 06 54 c0 <8b> 07 89 c3 89 c6
8b 45 08 c1 fe 1f 01 d3 11 ce 89c2 c1 fa 1f
[  380.572877] EIP: [<c026d6f5>] __percpu_counter_add+0x25/0xb0 SS:ESP 0068:e2c5fca8
[  380.572882] CR2: 0000000004cdde54
[  380.572884] ---[ end trace b2f93684033983b6 ]---
[~/fscops/fscops/ohsm/test/kernel]
[02:05:47 sinhas]$ gdb ohsm.ko
GNU gdb 6.8-debian
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i486-linux-gnu"...
(gdb) l *ohsm_realloc_mcp+0x70
0x14d0 is in ohsm_realloc_mcp (/home/sinhas/fscops/fscops/ohsm/test/kernel/admin.c:404).
399             if (!src_ind)
400                     goto out_err;
401
402             /* Getting the ghost inode */
403             dest_ind = ext2_new_inode(nd.path.dentry->d_inode, src_ind->i_mode);
404             if (IS_ERR(dest_ind)) {
405                     err = OHSM_ERR_FS;
406                     iput(src_ind);
407                     goto out_err;
408             }
(gdb)



Manish can you please check....???
Aug 7, 2009
Project Member #3 sandeepksinha
Issue resolved.
Now the mountpoint -> ohsm_mountpoint conversion has bitten us.

ohsm_mountpoint was not intiliased and some how path_lookup was not giving errors.
Its fixed now.

The code is working fine;.
r247 fixes the same.

Status: Fixed

Powered by Google Project Hosting