Bug#501773: samba: Failed to set uid privileges to (-1, 1017) now set to (0, 0) in smbd log
Hi Steve, On Sun, Oct 26, 2008 at 4:32 AM, Steve Langasek <[EMAIL PROTECTED]> wrote: > Hi Yuriy, > > On Fri, Oct 10, 2008 at 01:00:50PM +0300, Yuriy Padlyak wrote: >> smbd log: > >> Don't know the cause, but there are error messaes in the log: > >> [2008/10/08 10:06:35, 1] smbd/service.c:make_connection_snum(950) >> finance (192.168.0.12) connect to service Business initially as user >> padlyak.yaroslav (uid=1017, gid=1004) (pid 21106) >> [2008/10/08 10:06:36, 0] lib/util_sec.c:assert_uid(101) >> Failed to set uid privileges to (-1,1017) now set to (0,0) >> [2008/10/08 10:06:36, 0] lib/util.c:smb_panic(1599) >> PANIC (pid 21106): failed to set uid >> [2008/10/08 10:06:36, 0] lib/util.c:log_stack_trace(1706) >> BACKTRACE: 13 stack frames: >>#0 /usr/sbin/smbd(log_stack_trace+0x23) [0x822c3d3] >>#1 /usr/sbin/smbd(smb_panic+0x46) [0x822c4c6] >>#2 /usr/sbin/smbd [0x8231849] >>#3 /usr/sbin/smbd [0x80db3be] >>#4 /usr/sbin/smbd(pop_sec_ctx+0xa3) [0x80db553] >>#5 /usr/sbin/smbd(unbecome_root+0xb) [0x80d13fb] >>#6 /usr/sbin/smbd(gid_to_sid+0xfe) [0x81ef16e] >>#7 /usr/sbin/smbd(change_to_user+0x5de) [0x80d1c1e] >>#8 /usr/sbin/smbd [0x80ea351] >>#9 /usr/sbin/smbd(smbd_process+0x6fd) [0x80eb83d] >>#10 /usr/sbin/smbd(main+0x10df) [0x82c384f] >>#11 /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xc8) [0xb7c19ea8] >>#12 /usr/sbin/smbd [0x8082b11] > > There are very few cases in which a root process should fail to be able to > change uids. The main one is a ulimit restriction. > > Have you restarted samba from your shell at some point prior to this? If > so, what does 'ulimit -u' show when run from your shell? > # ulimit -u unlimited Don't really remember when I last restarted samba prior to this, but I'm not getting these messages for about a week already. > -- > Steve Langasek Give me a lever long enough and a Free OS > Debian Developer to set it on, and I can move the world. > Ubuntu Developerhttp://www.debian.org/ > [EMAIL PROTECTED] [EMAIL PROTECTED] > -- Regards, Yuriy Padlyak -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Bug#501773: Additional details
Christian Perrier написав(ла): Quoting Steve Langasek ([EMAIL PROTECTED]): There was plenty of information in the original bug report. Hmmm, correct, I was missing the original BR. The problem happened with 3.0.24 from Etch. I suspect this might be on a production machine where trying to reproduce it with the version of samba in lenny is far from being easy. Am I wrong, Yuriy? I'm OK to keep crash bug reports opened for versions of samba in Etch but I doubt that we will ever do anything with them...:-) Hi Christian, Yes, it is production machine, but I may try lenny package. It is not very critical file server and it's well backed up daily :). I'm getting these error message few times a day, so I think I'll see if it works very quickly. Can you suggest me or point me to some guide how to do it safely, so I can then return to etch package easily? -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Bug#501773: Additional details
Today I got such mail from root, but as I see there are no much details :( The Samba 'panic action' script, /usr/share/samba/panic-action, was called for PID 4756 (/usr/sbin/smbd). This means there was a problem with the program, such as a segfault. Below is a backtrace for this process generated with gdb, which shows the state of the program at the time the error occurred. The Samba log files may contain additional information about the problem. If the problem persists, you are encouraged to first install the samba-dbg package, which contains the debugging symbols for the Samba binaries. Then submit the provided information as a bug report to Debian. For information about the procedure for submitting bug reports, please see http://www.debian.org/Bugs/Reporting or the reportbug(1) manual page. Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1". [Thread debugging using libthread_db enabled] [New Thread -1213180224 (LWP 4756)] 0xb7f29410 in ?? () #0 0xb7f29410 in ?? () #1 0x0001 in ?? () #2 0x in ?? () -- Regards, Yuriy Padlyak -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Bug#501773: samba: Failed to set uid privileges to (-1, 1017) now set to (0, 0) in smbd log
Package: samba Version: 3.0.24-6etch10 Severity: normal smbd log: Don't know the cause, but there are error messaes in the log: [2008/10/08 10:06:35, 1] smbd/service.c:make_connection_snum(950) finance (192.168.0.12) connect to service Business initially as user padlyak.yaroslav (uid=1017, gid=1004) (pid 21106) [2008/10/08 10:06:36, 0] lib/util_sec.c:assert_uid(101) Failed to set uid privileges to (-1,1017) now set to (0,0) [2008/10/08 10:06:36, 0] lib/util.c:smb_panic(1599) PANIC (pid 21106): failed to set uid [2008/10/08 10:06:36, 0] lib/util.c:log_stack_trace(1706) BACKTRACE: 13 stack frames: #0 /usr/sbin/smbd(log_stack_trace+0x23) [0x822c3d3] #1 /usr/sbin/smbd(smb_panic+0x46) [0x822c4c6] #2 /usr/sbin/smbd [0x8231849] #3 /usr/sbin/smbd [0x80db3be] #4 /usr/sbin/smbd(pop_sec_ctx+0xa3) [0x80db553] #5 /usr/sbin/smbd(unbecome_root+0xb) [0x80d13fb] #6 /usr/sbin/smbd(gid_to_sid+0xfe) [0x81ef16e] #7 /usr/sbin/smbd(change_to_user+0x5de) [0x80d1c1e] #8 /usr/sbin/smbd [0x80ea351] #9 /usr/sbin/smbd(smbd_process+0x6fd) [0x80eb83d] #10 /usr/sbin/smbd(main+0x10df) [0x82c384f] #11 /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xc8) [0xb7c19ea8] #12 /usr/sbin/smbd [0x8082b11] [2008/10/08 10:06:36, 0] lib/util.c:smb_panic(1607) smb_panic(): calling panic action [/usr/share/samba/panic-action 21106] [2008/10/08 10:06:45, 0] lib/util.c:smb_panic(1615) smb_panic(): action returned status 0 [2008/10/08 10:06:45, 0] lib/fault.c:dump_core(173) dumping core in /var/log/samba/cores/smbd [2008/10/08 10:07:11, 1] smbd/service.c:make_connection_snum(950) finance (192.168.0.12) connect to service Business initially as user padlyak.yaroslav (uid=1017, gid=1004) (pid 21121) [2008/10/08 10:13:36, 0] lib/util_sec.c:assert_uid(101) Failed to set uid privileges to (-1,1017) now set to (0,0) [2008/10/08 10:13:36, 0] lib/util.c:smb_panic(1599) PANIC (pid 21121): failed to set uid [2008/10/08 10:13:36, 0] lib/util.c:log_stack_trace(1706) BACKTRACE: 13 stack frames: #0 /usr/sbin/smbd(log_stack_trace+0x23) [0x822c3d3] #1 /usr/sbin/smbd(smb_panic+0x46) [0x822c4c6] #2 /usr/sbin/smbd [0x8231849] #3 /usr/sbin/smbd [0x80db3be] #4 /usr/sbin/smbd(pop_sec_ctx+0xa3) [0x80db553] #5 /usr/sbin/smbd(unbecome_root+0xb) [0x80d13fb] #6 /usr/sbin/smbd(gid_to_sid+0xfe) [0x81ef16e] #7 /usr/sbin/smbd(change_to_user+0x5de) [0x80d1c1e] #8 /usr/sbin/smbd [0x80ea351] #9 /usr/sbin/smbd(smbd_process+0x6fd) [0x80eb83d] #10 /usr/sbin/smbd(main+0x10df) [0x82c384f] #11 /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xc8) [0xb7c19ea8] #12 /usr/sbin/smbd [0x8082b11] [2008/10/08 10:13:36, 0] lib/util.c:smb_panic(1607) smb_panic(): calling panic action [/usr/share/samba/panic-action 21121] [2008/10/08 10:13:43, 0] lib/util.c:smb_panic(1615) smb_panic(): action returned status 0 [2008/10/08 10:13:43, 0] lib/fault.c:dump_core(173) dumping core in /var/log/samba/cores/smbd [2008/10/08 10:58:34, 1] smbd/service.c:make_connection_snum(950) finance (192.168.0.12) connect to service Business initially as user padlyak.yaroslav (uid=1017, gid=1004) (pid 22107) [2008/10/08 10:58:56, 1] smbd/service.c:close_cnum(1150) finance (192.168.0.12) closed connection to service Business [2008/10/08 10:59:05, 1] smbd/service.c:make_connection_snum(950) finance (192.168.0.12) connect to service Business initially as user padlyak.yaroslav (uid=1017, gid=1004) (pid 22112) [2008/10/08 10:59:38, 1] smbd/service.c:close_cnum(1150) finance (192.168.0.12) closed connection to service Business [2008/10/08 10:59:38, 1] smbd/service.c:make_connection_snum(950) finance (192.168.0.12) connect to service Business initially as user padlyak.yaroslav (uid=1017, gid=1004) (pid 22115) [2008/10/08 11:19:33, 1] smbd/service.c:close_cnum(1150) finance (192.168.0.12) closed connection to service Business [2008/10/08 11:19:38, 1] smbd/service.c:make_connection_snum(950) finance (192.168.0.12) connect to service Business initially as user padlyak.yaroslav (uid=1017, gid=1004) (pid 22536) [2008/10/08 11:24:07, 0] lib/util_sec.c:assert_uid(101) Failed to set uid privileges to (-1,1017) now set to (0,0) [2008/10/08 11:24:07, 0] lib/util.c:smb_panic(1599) PANIC (pid 22536): failed to set uid [2008/10/08 11:24:07, 0] lib/util.c:log_stack_trace(1706) BACKTRACE: 13 stack frames: #0 /usr/sbin/smbd(log_stack_trace+0x23) [0x822c3d3] #1 /usr/sbin/smbd(smb_panic+0x46) [0x822c4c6] #2 /usr/sbin/smbd [0x8231849] #3 /usr/sbin/smbd [0x80db3be] #4 /usr/sbin/smbd(pop_sec_ctx+0xa3) [0x80db553] #5 /usr/sbin/smbd(unbecome_root+0xb) [0x80d13fb] #6 /usr/sbin/smbd(gid_to_sid+0xfe) [0x81ef16e] #7 /usr/sbin/smbd(change_to_user+0x5de) [0x80d1c1e] #8 /usr/sbin/smbd [0x80ea351] #9 /usr/sbin/smbd(smbd_process+0x6fd) [0x80eb83d] #10 /usr/sbin/smbd(main+0x10df) [0x82c384f] #11 /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xc8) [0xb7c19ea8] #12 /usr/sbin/smbd [0x8082b11] [2008/
Bug#419247: kernel-image-2.6.8-3-686: again found the same in log
Package: kernel-image-2.6.8-3-686 Followup-For: Bug #419247 -- System Information: Debian Release: 3.1 Architecture: i386 (i686) Kernel: Linux 2.6.8-3-686 Locale: LANG=uk_UA, LC_CTYPE=uk_UA (charmap=KOI8-U) kern.log: 1 Time(s):0046 0046 ce5ea000 c01087ab c032ca00 1 Time(s):05ea cb5d4b00 0001 ce5ebf50 0002 c012014b c0365928 1 Time(s): [__do_softirq+123/128] __do_softirq+0x7b/0x80 1 Time(s): [activate_task+98/128] activate_task+0x62/0x80 1 Time(s): [copy_to_user+62/80] copy_to_user+0x3e/0x50 1 Time(s): [do_IRQ+251/304] do_IRQ+0xfb/0x130 1 Time(s): [do_timer+224/240] do_timer+0xe0/0xf0 1 Time(s): [process_timeout+0/16] process_timeout+0x0/0x10 1 Time(s): [sockfd_lookup+28/128] sockfd_lookup+0x1c/0x80 1 Time(s): [sys_recvfrom+178/288] sys_recvfrom+0xb2/0x120 1 Time(s): [sys_socketcall+454/608] sys_socketcall+0x1c6/0x260 1 Time(s): [syscall_call+7/11] syscall_call+0x7/0xb 1 Time(s): [wake_up_process+29/48] wake_up_process+0x1d/0x30 1 Time(s): printing eip: 1 Time(s): *pde = 1 Time(s): CPU:0 1 Time(s): Call Trace: 1 Time(s): Code: 00 00 5b 5e 5f 5d c3 89 e8 e8 37 35 f6 ff eb ec 90 8d 74 26 1 Time(s): EFLAGS: 00010286 (2.6.8-3-686) 1 Time(s): EIP is at sock_recvmsg+0xbb/0xd0 1 Time(s): EIP:0060:[sock_recvmsg+187/208]Not tainted 1 Time(s): Modules linked in: nfsd exportfs lockd sunrpc lp ipv6 ipt_MASQUERADE ipt_REDIRECT ipt_REJECT ipt_LOG ipt_state ipt_pkttype ipt_recent ipt_iprange ipt_physdev ipt_multiport ipt_conntrack iptable_mangle ip_nat_irc ip_nat_tftp ip_nat_ftp iptable_nat ip_conntrack_irc ip_conntrack_tftp ip_conntrack_ftp ip_conntrack iptable_filter ip_tables af_packet analog parport_pc parport floppy pcspkr rtc 8139cp snd_intel8x0 snd_ac97_codec snd_pcm snd_timer snd_page_alloc gameport snd_mpu401_uart snd_rawmidi snd_seq_device snd shpchp pciehp pci_hotplug intel_agp agpgart ehci_hcd usbhid uhci_hcd usbcore i810_audio ac97_codec soundcore 8139too mii quota_v2 tsdev mousedev evdev capability commoncap tun psmouse ide_cd cdrom ext3 jbd mbcache dm_mod ide_generic piix ide_disk ide_core unix font vesafb cfbcopyarea cfbimgblt cfbfillrect 1 Time(s): Oops: 0002 [#2] 1 Time(s): PREEMPT 1 Time(s): Process snort (pid: 21667, threadinfo=ce5ea000 task=c4b72130) 1 Time(s): Stack: ce5ebe50 cb5d4b00 ce5ebf50 05ea 0020 c01245b0 ce5ebe08 0020 1 Time(s): Unable to handle kernel NULL pointer dereference at virtual address 00e2 1 Time(s): c021734b 1 Time(s): ds: 007b es: 007b ss: 0068 1 Time(s): eax: 00e2 ebx: 0020 ecx: 05e2 edx: cf7cc580 1 Time(s): esi: 05ea edi: ce5ebf50 ebp: ce5ebe50 esp: ce5ebdec 8 Time(s): eth0: Promiscuous mode enabled. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Bug#419247: Oops: 0002 [#1], log provided, not sure If I choosed right package for this possible bug
Package: kernel-image-2.6.8-3-686 Severity: normal kern.log: pr 13 21:57:04 tenpostadsl kernel: Unable to handle kernel NULL pointer dereference at virtual address 00e2 Apr 13 21:57:04 tenpostadsl kernel: printing eip: Apr 13 21:57:04 tenpostadsl kernel: c021734b Apr 13 21:57:04 tenpostadsl kernel: *pde = Apr 13 21:57:04 tenpostadsl kernel: Oops: 0002 [#1] Apr 13 21:57:04 tenpostadsl kernel: PREEMPT Apr 13 21:57:04 tenpostadsl kernel: Modules linked in: nfsd exportfs lockd sunrpc lp ipv6 ipt_MASQUERADE ipt_REDIRECT ipt_REJECT ipt_LOG ipt_state ipt_pkttyp e ipt_recent ipt_iprange ipt_physdev ipt_multiport ipt_conntrack iptable_mangle ip_nat_irc ip_nat_tftp ip_nat_ftp iptable_nat ip_conntrack_irc ip_conntrack_t ftp ip_conntrack_ftp ip_conntrack iptable_filter ip_tables af_packet analog parport_pc parport floppy pcspkr rtc 8139cp snd_intel8x0 snd_ac97_codec snd_pcm s nd_timer snd_page_alloc gameport snd_mpu401_uart snd_rawmidi snd_seq_device snd shpchp pciehp pci_hotplug intel_agp agpgart ehci_hcd usbhid uhci_hcd usbcore i810_audio ac97_codec soundcore 8139too mii quota_v2 tsdev mousedev evdev capability commoncap tun psmouse ide_cd cdrom ext3 jbd mbcache dm_mod ide_generic p iix ide_disk ide_core unix font vesafb cfbcopyarea cfbimgblt cfbfillrect Apr 13 21:57:04 tenpostadsl kernel: CPU:0 Apr 13 21:57:04 tenpostadsl kernel: EIP:0060:[sock_recvmsg+187/208] Not tainted Apr 13 21:57:04 tenpostadsl kernel: EFLAGS: 00010286 (2.6.8-3-686) Apr 13 21:57:04 tenpostadsl kernel: EIP is at sock_recvmsg+0xbb/0xd0 Apr 13 21:57:04 tenpostadsl kernel: eax: 00e2 ebx: 0020 ecx: 05e2 edx: cf7cc580 Apr 13 21:57:04 tenpostadsl kernel: esi: 05ea edi: c34e1f50 ebp: c34e1e50 esp: c34e1dec Apr 13 21:57:04 tenpostadsl kernel: ds: 007b es: 007b ss: 0068 Apr 13 21:57:04 tenpostadsl kernel: Process snort (pid: 30129, threadinfo=c34e task=c49a2740) Apr 13 21:57:04 tenpostadsl kernel: Stack: c34e1e50 c54f3800 c34e1f50 05ea 0020 c023be10 c9ee7a80 0020 Apr 13 21:57:04 tenpostadsl kernel:05ea c54f3800 0001 c34e1f50 c023be10 8000 Apr 13 21:57:04 tenpostadsl kernel: c9ee7a80 cf1875a0 c023c1f9 c9ee7a80 c434dd3e 0a00a8c0 Apr 13 21:57:04 tenpostadsl kernel: Call Trace: Apr 13 21:57:04 tenpostadsl kernel: [ip_local_deliver_finish+0/480] ip_local_deliver_finish+0x0/0x1e0 Apr 13 21:57:04 tenpostadsl kernel: [ip_local_deliver_finish+0/480] ip_local_deliver_finish+0x0/0x1e0 Apr 13 21:57:04 tenpostadsl kernel: [ip_rcv_finish+521/640] ip_rcv_finish+0x209/0x280 Apr 13 21:57:04 tenpostadsl kernel: [nf_hook_slow+241/304] nf_hook_slow+0xf1/0x130 Apr 13 21:57:04 tenpostadsl kernel: [sockfd_lookup+28/128] sockfd_lookup+0x1c/0x80 Apr 13 21:57:04 tenpostadsl kernel: [sys_recvfrom+178/288] sys_recvfrom+0xb2/0x120 Apr 13 21:57:04 tenpostadsl kernel: [activate_task+98/128] activate_task+0x62/0x80 Apr 13 21:57:04 tenpostadsl kernel: [process_timeout+0/16] process_timeout+0x0/0x10 Apr 13 21:57:04 tenpostadsl kernel: [wake_up_process+29/48] wake_up_process+0x1d/0x30 Apr 13 21:57:04 tenpostadsl kernel: [copy_to_user+62/80] copy_to_user+0x3e/0x50 Apr 13 21:57:04 tenpostadsl kernel: [sys_socketcall+454/608] sys_socketcall+0x1c6/0x260 Apr 13 21:57:04 tenpostadsl kernel: [syscall_call+7/11] syscall_call+0x7/0xb Apr 13 21:57:04 tenpostadsl kernel: Code: 00 00 5b 5e 5f 5d c3 89 e8 e8 37 35 f6 ff eb ec 90 8d 74 26 -- System Information: Debian Release: 3.1 Architecture: i386 (i686) Kernel: Linux 2.6.8-3-686 Locale: LANG=uk_UA, LC_CTYPE=uk_UA (charmap=KOI8-U) -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]