I've installed the files from https://launchpad.net/~ttx/+archive/ppa and restarted the machine. It's running Hardy, and one of my shares are completely inaccessible from my Ubuntu desktop running gnome. Are there any other race conditions that should be avoided?
My trace seems a bit different from the original bug post, as there are a few other system calls involved, namely unbecome_root(), gid_to_sid() and maybe more:
[Thread debugging using libthread_db enabled]
[New Thread 0xb7af76d0 (LWP 5391)]
0xb7f7d410 in __kernel_vsyscall ()
#0 0xb7f7d410 in __kernel_vsyscall ()
#1 0xb7c134d3 in waitpid () from /lib/tls/i686/cmov/libc.so.6
#2 0xb7bb6643 in ?? () from /lib/tls/i686/cmov/libc.so.6
#3 0xb7d7ed7d in system () from /lib/tls/i686/cmov/libpthread.so.0
#4 0x0828ad48 in smb_panic (why=0x83bf191 "failed to set uid\n")
at lib/util.c:1639
#5 0x08290f5e in assert_uid (ruid=4294967295, euid=1000) at lib/util_sec.c:102
#6 0x080fff3c in become_id (uid=1000, gid=1000) at smbd/sec_ctx.c:57
#7 0x081000d2 in pop_sec_ctx () at smbd/sec_ctx.c:345
#8 0x080f39d7 in unbecome_root () at smbd/uid.c:400
#9 0x082412bc in gid_to_sid (psid=0xbf803eb8, gid=1000)
at passdb/lookup_sid.c:1202
#10 0x0810646c in create_file_sids (psbuf=0xbf803e58,
powner_sid=<value optimized out>, pgroup_sid=0xbf803eb8)
at smbd/posix_acls.c:669
#11 0x0810acbe in get_nt_acl (fsp=0x857dd50, security_info=7,
ppdesc=0xbf803ff0) at smbd/posix_acls.c:2809
#12 0x08122e2b in vfswrap_fget_nt_acl (handle=0x851b988, fsp=0x857dd50, fd=-1,
security_info=7, ppdesc=0xbf803ff0) at modules/vfs_default.c:921
#13 0x080ab18d in is_visible_file (conn=0x85602b8, dir_path=0x8503d30 "./",
name=0x8579efb "ad39a.odt", pst=0xbf804974, use_veto=1)
at smbd/dir.c:897
#14 0x080ab8bd in dptr_normal_ReadDirName (dptr=0x8433bc8, poffset=0xbf8049f0,
pst=0xbf804974) at smbd/dir.c:562
#15 0x080ab921 in dptr_ReadDirName (dptr=0x8433bc8, poffset=0x0,
pst=0xbf804974) at smbd/dir.c:578
#16 0x080e8e4f in get_lanman2_dir_entry (conn=0x85602b8,
inbuf=<value optimized out>, outbuf=0x853efa8 "",
path_mask=0xbf805b28 "*", dirtype=22, info_level=260,
requires_resume_key=4, dont_descend=0, ppdata=0xbf805b24,
base_data=0x858bcc0 "`", end_data=0x8590dc3 "", space_remaining=10680,
out_of_space=0xbf805b18, got_exact_match=0xbf805b0c,
last_entry_off=0xbf805b20, name_list=0x0, ea_ctx=0x0) at smbd/trans2.c:1149
#17 0x080ec30e in call_trans2findfirst (conn=0x85602b8, inbuf=0x851eb60 "",
outbuf=0x853efa8 "", bufsize=131072, pparams=0x851c6e8, total_params=18,
ppdata=0x851c6f0, total_data=0, max_data_bytes=16644) at smbd/trans2.c:1859
#18 0x080ecb24 in handle_trans2 (conn=0x85602b8, state=0x851c5b0,
inbuf=0x851eb60 "", outbuf=0x853efa8 "", size=90, bufsize=131072)
at smbd/trans2.c:6433
#19 0x080f367c in reply_trans2 (conn=0x85602b8, inbuf=0x851eb60 "",
outbuf=0x853efa8 "", size=90, bufsize=131072) at smbd/trans2.c:6703
#20 0x0810f93e in switch_message (type=50, inbuf=0x851eb60 "",
outbuf=0x853efa8 "", size=90, bufsize=131072) at smbd/process.c:1004
#21 0x08110d9b in smbd_process () at smbd/process.c:1031
#22 0x0835ec68 in main (argc=-1212455687, argv=0xbf807814)
at smbd/server.c:1120
~$ dpkg -l | grep samba
ii samba 3.0.28a-1ubuntu4.9~ppa1
ii samba-common 3.0.28a-1ubuntu4.9~ppa1
ii samba-dbg 3.0.28a-1ubuntu4.9~ppa1
Is this something that fits in this bug, or should i post a new?
I've installed the files from https:/ /launchpad. net/~ttx/ +archive/ ppa and restarted the machine. It's running Hardy, and one of my shares are completely inaccessible from my Ubuntu desktop running gnome. Are there any other race conditions that should be avoided?
My trace seems a bit different from the original bug post, as there are a few other system calls involved, namely unbecome_root(), gid_to_sid() and maybe more:
[Thread debugging using libthread_db enabled] i686/cmov/ libc.so. 6 i686/cmov/ libc.so. 6 i686/cmov/ libpthread. so.0 lookup_ sid.c:1202 sid=<value optimized out>, pgroup_ sid=0xbf803eb8) acls.c: 669 0xbf803ff0) at smbd/posix_ acls.c: 2809 info=7, ppdesc=0xbf803ff0) at modules/ vfs_default. c:921 ReadDirName (dptr=0x8433bc8, poffset=0xbf8049f0, dir_entry (conn=0x85602b8, mask=0xbf805b28 "*", dirtype=22, info_level=260, resume_ key=4, dont_descend=0, ppdata=0xbf805b24, data=0x858bcc0 "`", end_data=0x8590dc3 "", space_remaining =10680, of_space= 0xbf805b18, got_exact_ match=0xbf805b0 c, entry_off= 0xbf805b20, name_list=0x0, ea_ctx=0x0) at smbd/trans2.c:1149 first (conn=0x85602b8, inbuf=0x851eb60 "", 0x853efa8 "", bufsize=131072, pparams=0x851c6e8, total_params=18, 0x851c6f0, total_data=0, max_data_ bytes=16644) at smbd/trans2.c:1859 0x853efa8 "", size=90, bufsize=131072) at smbd/trans2.c:6703 0x853efa8 "", size=90, bufsize=131072) at smbd/process.c:1004
[New Thread 0xb7af76d0 (LWP 5391)]
0xb7f7d410 in __kernel_vsyscall ()
#0 0xb7f7d410 in __kernel_vsyscall ()
#1 0xb7c134d3 in waitpid () from /lib/tls/
#2 0xb7bb6643 in ?? () from /lib/tls/
#3 0xb7d7ed7d in system () from /lib/tls/
#4 0x0828ad48 in smb_panic (why=0x83bf191 "failed to set uid\n")
at lib/util.c:1639
#5 0x08290f5e in assert_uid (ruid=4294967295, euid=1000) at lib/util_sec.c:102
#6 0x080fff3c in become_id (uid=1000, gid=1000) at smbd/sec_ctx.c:57
#7 0x081000d2 in pop_sec_ctx () at smbd/sec_ctx.c:345
#8 0x080f39d7 in unbecome_root () at smbd/uid.c:400
#9 0x082412bc in gid_to_sid (psid=0xbf803eb8, gid=1000)
at passdb/
#10 0x0810646c in create_file_sids (psbuf=0xbf803e58,
powner_
at smbd/posix_
#11 0x0810acbe in get_nt_acl (fsp=0x857dd50, security_info=7,
ppdesc=
#12 0x08122e2b in vfswrap_fget_nt_acl (handle=0x851b988, fsp=0x857dd50, fd=-1,
security_
#13 0x080ab18d in is_visible_file (conn=0x85602b8, dir_path=0x8503d30 "./",
name=0x8579efb "ad39a.odt", pst=0xbf804974, use_veto=1)
at smbd/dir.c:897
#14 0x080ab8bd in dptr_normal_
pst=0xbf804974) at smbd/dir.c:562
#15 0x080ab921 in dptr_ReadDirName (dptr=0x8433bc8, poffset=0x0,
pst=0xbf804974) at smbd/dir.c:578
#16 0x080e8e4f in get_lanman2_
inbuf=<value optimized out>, outbuf=0x853efa8 "",
path_
requires_
base_
out_
last_
#17 0x080ec30e in call_trans2find
outbuf=
ppdata=
#18 0x080ecb24 in handle_trans2 (conn=0x85602b8, state=0x851c5b0,
inbuf=0x851eb60 "", outbuf=0x853efa8 "", size=90, bufsize=131072)
at smbd/trans2.c:6433
#19 0x080f367c in reply_trans2 (conn=0x85602b8, inbuf=0x851eb60 "",
outbuf=
#20 0x0810f93e in switch_message (type=50, inbuf=0x851eb60 "",
outbuf=
#21 0x08110d9b in smbd_process () at smbd/process.c:1031
#22 0x0835ec68 in main (argc=-1212455687, argv=0xbf807814)
at smbd/server.c:1120
~$ dpkg -l | grep samba 1ubuntu4. 9~ppa1 1ubuntu4. 9~ppa1 1ubuntu4. 9~ppa1
ii samba 3.0.28a-
ii samba-common 3.0.28a-
ii samba-dbg 3.0.28a-
Is this something that fits in this bug, or should i post a new?
Anders