xfs
[Top] [All Lists]

[Bug 363] New: segfault of user-app while triggering dmapi event

To: xfs-master@xxxxxxxxxxx
Subject: [Bug 363] New: segfault of user-app while triggering dmapi event
From: bugzilla-daemon@xxxxxxxxxxx
Date: Mon, 20 Sep 2004 06:07:51 -0700
Sender: linux-xfs-bounce@xxxxxxxxxxx
http://oss.sgi.com/bugzilla/show_bug.cgi?id=363

           Summary: segfault of user-app while triggering dmapi event
           Product: Linux XFS
           Version: Current
          Platform: IA32
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: Medium
         Component: dmapi
        AssignedTo: xfs-master@xxxxxxxxxxx
        ReportedBy: Martin.Gasthuber@xxxxxxx


i've started to build a new dm application and start this by using the latest
(today) linux-2.6 xfs kernel (with DMAPI and DMAPI_XFS enabled). The following
simple sequence of commands from xfs-cmds/xfstests results in a segfault of
'touch /dmapi/file'

dm_create_session -i test1
ret=0
newsid=1

set_disp -s 1 /dmapi DM_EVENT_CREATE DM_EVENT_REMOVE
set_eventlist -s 1 /dmapi DM_EVENT_CREATE DM_EVENT_REMOVE

get_events 1
dm_get_events failed, (11)Resource temporarily unavailable

touch /dmapi/file
zsh: segmentation fault  touch /dmapi/file

the same sequence of commands i found in the xfs mailing list as 'should run'
examples. In '/var/log/messages' i got the following lines (after the touch 
command)

Sep 20 14:26:33 odin Unable to handle kernel NULL pointer dereference at virtual
address 0000003c
Sep 20 14:26:33 odin printing eip:
Sep 20 14:26:33 odin c028f259
Sep 20 14:26:33 odin *pde = 00000000
Sep 20 14:26:33 odin Oops: 0000 [#1]
Sep 20 14:26:33 odin PREEMPT
Sep 20 14:26:33 odin Modules linked in: loop sg parport_pc lp parport orinoco_cs
orinoco hermes ds ohci_hcd usbhid usbmouse snd_intel8x0m ehci_hcd uhci_hcd
snd_intel8x0 snd_ac97_codec snd_mpu401_uart snd_rawmidi snd_seq_oss
snd_seq_midi_event snd_seq snd_seq_device snd_pcm_oss snd_pcm snd_page_alloc
snd_timer snd_mixer_oss snd soundcore usbcore sd_mod radeon yenta_socket
pcmcia_core intel_agp agpgart ide_scsi tg3 st scsi_mod
Sep 20 14:26:33 odin CPU:    0
Sep 20 14:26:33 odin EIP:    0060:[<c028f259>]    Not tainted
Sep 20 14:26:33 odin EFLAGS: 00210202   (2.6.8-xfs)
Sep 20 14:26:33 odin EIP is at dm_ip_data+0xc9/0x130
Sep 20 14:26:33 odin eax: f289f3b4   ebx: f289f3b4   ecx: c19dcc00   edx: 
c19e4000
Sep 20 14:26:33 odin esi: 00000000   edi: 0000001c   ebp: 00000001   esp: 
f0865ca4
Sep 20 14:26:33 odin ds: 007b   es: 007b   ss: 0068
Sep 20 14:26:33 odin Process touch (pid: 10770, threadinfo=f0864000 
task=ef538600)
Sep 20 14:26:33 odin Stack: c19dcc00 000000d0 00000000 eddf0ba8 00000000
00000001 00000000 c028fd87
Sep 20 14:26:33 odin 0000001c 00000000 00000001 00000000 f289f3ec c0117fe4
000081a4 c04bc410
Sep 20 14:26:33 odin eddf0ba8 f6563000 00000000 f745d190 c0283d7f 00000005
c19c7400 f746619c
Sep 20 14:26:33 odin Call Trace:
Sep 20 14:26:33 odin [<c028fd87>] dm_send_namesp_event+0x97/0x400
Sep 20 14:26:33 odin [<c0117fe4>] activate_task+0x64/0x80
Sep 20 14:26:33 odin [<c0283d7f>] xfs_dm_send_namesp_event+0x6f/0x80
Sep 20 14:26:33 odin [<c026bafc>] xfs_create+0x51c/0x7d0
Sep 20 14:26:33 odin [<c020950b>] xfs_acl_vhasacl_default+0x3b/0x50
Sep 20 14:26:33 odin [<c027807a>] linvfs_mknod+0x26a/0x430
Sep 20 14:26:33 odin [<c0233712>] xfs_dir2_lookup+0x132/0x170
Sep 20 14:26:33 odin [<c026553c>] xfs_dir_lookup_int+0x4c/0x140
Sep 20 14:26:33 odin [<c01666f3>] permission+0x43/0x50
Sep 20 14:26:33 odin [<c0168242>] vfs_create+0xa2/0xe0
Sep 20 14:26:33 odin [<c0168592>] open_namei+0xe2/0x610
Sep 20 14:26:33 odin [<c015741b>] filp_open+0x3b/0x70
Sep 20 14:26:33 odin [<c0157715>] get_unused_fd+0x55/0xf0
Sep 20 14:26:33 odin [<c015788b>] sys_open+0x5b/0xa0
Sep 20 14:26:33 odin [<c0104199>] sysenter_past_esp+0x52/0x71
Sep 20 14:26:33 odin Code: 0f b7 47 20 25 00 f0 00 00 3d 00 80 00 00 75 9a 66 c7
43 16

the /proc/fs/dmapi_d entries are as follows:

 cat summary
dm_sessions_active=1
dm_next_sessid=2
dm_next_token=1
dm_next_sequence=1
dm_fsys_cnt=1
odin# cd fsreg
odin# ls
0xf1e62a94
odin# cat 0xf1e62a94
fsrp=0xf1e62a94
fr_next=0x00000000
fr_sb=0xc19c7400
fr_tevp=0x00000000
fr_fsid=?
fr_msg=0xf67b1a00
fr_msgsize=89
fr_state=mounted
fr_dispq=?
fr_dispcnt=0
fr_evt_dispq.eq_head=0x00000000
fr_evt_dispq.eq_tail=0x00000000
fr_evt_dispq.eq_count=0
fr_queue=?
fr_lock=?
fr_hdlcnt=0
fr_vfscnt=0
fr_unmount=0
fr_rattr=
fr_sessp[5]=0xf1c9fe74
fr_sessp[8]=0xf1c9fe74

cd sessions
odin# ls
0xf1c9fe74
odin# cat 0xf1c9fe74
sessp=0xf1c9fe74
sn_next=0x00000000
sn_sessid=1
sn_flags=0
sn_qlock=?
sn_readerq=?
sn_writerq=?
sn_readercnt=0
sn_writercnt=0
sn_newq.eq_head=0x00000000
sn_newq.eq_tail=0x00000000
sn_newq.eq_count=0
sn_delq.eq_head=0x00000000
sn_delq.eq_tail=0x00000000
sn_delq.eq_count=0
sn_evt_writerq.eq_head=0x00000000
sn_evt_writerq.eq_tail=0x00000000
sn_evt_writerq.eq_count=0
sn_info="test1"

odin# cd fsreg
odin# ls
0xf1e62a94
odin# cat 0xf1e62a94
fsrp=0xf1e62a94
fr_next=0x00000000
fr_sb=0xc19c7400
fr_tevp=0x00000000
fr_fsid=?
fr_msg=0xf67b1a00
fr_msgsize=89
fr_state=mounted
fr_dispq=?
fr_dispcnt=0
fr_evt_dispq.eq_head=0x00000000
fr_evt_dispq.eq_tail=0x00000000
fr_evt_dispq.eq_count=0
fr_queue=?
fr_lock=?
fr_hdlcnt=0
fr_vfscnt=0
fr_unmount=0
fr_rattr=
fr_sessp[5]=0xf1c9fe74
fr_sessp[8]=0xf1c9fe74



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


<Prev in Thread] Current Thread [Next in Thread>
  • [Bug 363] New: segfault of user-app while triggering dmapi event, bugzilla-daemon <=