Dave Anglemoyer - 2008-01-25

I have noticed a problem with iBCS-3.4 and samba 3.0.25b, whenever a windows client connects to a samba share, the system faults and must be reset.

from var/log/messages:

Jan 24 20:39:46 localhost smbd[5302]: [2008/01/24 20:39:46, 0] lib/util_sock.c:read_data(534)
Jan 24 20:39:46 localhost smbd[5302]:   read_data: read failure for 4 bytes to client 192.168.1.100. Error = Connection reset by peer
Jan 24 20:41:02 localhost smbd[5330]: [2008/01/24 20:41:02, 0] lib/util_sock.c:write_data(562)
Jan 24 20:41:02 localhost smbd[5330]:   write_data: write failure in writing to client 192.168.1.100. Error Connection reset by peer
Jan 24 20:41:02 localhost smbd[5330]: [2008/01/24 20:41:02, 0] lib/util_sock.c:send_smb(769)
Jan 24 20:41:02 localhost smbd[5330]:   Error writing 4 bytes to client. -1. (Connection reset by peer)

Jan 24 20:42:42 localhost kernel: Bad page state at free_hot_cold_page (in process 'sh', page c1ce0160)
Jan 24 20:42:42 localhost kernel: flags:0x40000114 mapping:00000000 mapcount:1 count:0
Jan 24 20:42:42 localhost kernel: Backtrace:
Jan 24 20:42:42 localhost kernel:  [<c0143b25>] bad_page+0x58/0x89
Jan 24 20:42:42 localhost kernel:  [<c01441b4>] free_hot_cold_page+0x72/0xec
Jan 24 20:42:42 localhost kernel:  [<c0144709>] __pagevec_free+0x15/0x1a
Jan 24 20:42:42 localhost kernel:  [<c01496da>] release_pages+0x13b/0x143
Jan 24 20:42:42 localhost kernel:  [<c0154ded>] free_pages_and_swap_cache+0x5b/0x6e
Jan 24 20:42:42 localhost kernel:  [<c0151a01>] exit_mmap+0xe6/0x148
Jan 24 20:42:42 localhost kernel:  [<c01207c4>] mmput+0x4e/0x72
Jan 24 20:42:42 localhost kernel:  [<c0164c3a>] exec_mmap+0x192/0x1ad
Jan 24 20:42:42 localhost kernel:  [<c0164cfc>] flush_old_exec+0x43/0x24c
Jan 24 20:42:42 localhost kernel:  [<c0164a9e>] kernel_read+0x31/0x3b
Jan 24 20:42:42 localhost kernel:  [<c0180cfa>] load_elf_binary+0x56f/0xc5b
Jan 24 20:42:42 localhost kernel:  [<f89a8fb8>] coff_load_binary+0x0/0x130 [binfmt_coff]
Jan 24 20:42:42 localhost kernel:  [<f89a36f3>] lcall_load_binary+0x90/0x9b [abi_lcall]
Jan 24 20:42:42 localhost kernel:  [<c018078b>] load_elf_binary+0x0/0xc5b
Jan 24 20:42:42 localhost kernel:  [<c01657cf>] search_binary_handler+0xb7/0x22a
Jan 24 20:42:42 localhost kernel:  [<c0165aaf>] do_execve+0x16d/0x1fd
Jan 24 20:42:42 localhost kernel:  [<c01049d5>] sys_execve+0x2b/0x8a
Jan 24 20:42:42 localhost kernel:  [<c02d8607>] syscall_call+0x7/0xb
Jan 24 20:42:42 localhost kernel: Trying to fix it up, but a reboot is needed

Jan 24 20:42:42 localhost kernel: ------------[ cut here ]------------
Jan 24 20:42:42 localhost kernel: kernel BUG at mm/rmap.c:479!
Jan 24 20:42:42 localhost kernel: invalid operand: 0000 [#1]
Jan 24 20:42:42 localhost kernel: SMP
Jan 24 20:42:42 localhost kernel: Modules linked in: nls_utf8 abi_isc(U) abi_ibcs(U) abi_sco(U) abi_cxenix(U) abi_svr4(U) binfmt_xout(U) binfmt_coff(U) abi_lcall(U) abi_util(U) parport_pc lp parport autofs4 sunrpc dm_mirror dm_mod button battery ac md5 ipv6 hw_random snd_azx snd_hda_codec snd_pcm_oss snd_mixer_oss snd_pcm snd_timer snd soundcore snd_page_alloc 8139too mii ext3 jbd ata_piix pata_jmicron libata usb_storage uhci_hcd ohci_hcd ehci_hcd sd_mod scsi_mod
Jan 24 20:42:42 localhost kernel: CPU:    0
Jan 24 20:42:42 localhost kernel: EIP:    0060:[<c015368f>]    Tainted: G    B VLI
Jan 24 20:42:42 localhost kernel: EFLAGS: 00010286   (2.6.9-67.ELsmp)
Jan 24 20:42:42 localhost kernel: EIP is at page_remove_rmap+0x25/0x8e
Jan 24 20:42:42 localhost kernel: eax: ffffffff   ebx: c1ce0160   ecx: 000643a5   edx: 80000000
Jan 24 20:42:42 localhost kernel: esi: fffd4000   edi: fffd3000   ebp: c1ce0160   esp: f0878e64
Jan 24 20:42:42 localhost kernel: ds: 007b   es: 007b   ss: 0068
Jan 24 20:42:42 localhost kernel: Process foxplus.pr_ (pid: 5345, threadinfo=f0878000 task=f70d0830)
Jan 24 20:42:42 localhost kernel: Stack: 00000000 fffd4000 c014e55b f0878e78 00000000 00000000 00000000 ffffffff
Jan 24 20:42:42 localhost kernel:        ffffffff ffffffff fffd2000 fffd3000 00000000 c1ceb080 018a4740 f26195f4
Jan 24 20:42:42 localhost kernel:        f732c940 f732c940 f0959060 80000000 fffcf520 f0959060 018a4740 c014f306
Jan 24 20:42:42 localhost kernel: Call Trace:
Jan 24 20:42:42 localhost kernel:  [<c014e55b>] do_wp_page+0x251/0x371
Jan 24 20:42:42 localhost kernel:  [<c014f306>] handle_mm_fault+0x139/0x193
Jan 24 20:42:42 localhost kernel:  [<c011b023>] do_page_fault+0x1ae/0x5c6
Jan 24 20:42:42 localhost kernel:  [<f89bbc82>] abi_signal+0x9c/0xa3 [abi_svr4]
Jan 24 20:42:42 localhost kernel:  [<f89bc3c5>] abi_sigfunc+0x104/0x1d7 [abi_svr4]
Jan 24 20:42:42 localhost kernel:  [<f89a3164>] lcall7_dispatch+0x10a/0x34d [abi_lcall]
Jan 24 20:42:42 localhost kernel:  [<f89bc2c1>] abi_sigfunc+0x0/0x1d7 [abi_svr4]
Jan 24 20:42:42 localhost kernel:  [<c011ae75>] do_page_fault+0x0/0x5c6
Jan 24 20:42:42 localhost kernel:  [<c02d90ff>] error_code+0x2f/0x38
Jan 24 20:42:42 localhost kernel: Code: ff 42 10 51 9d c3 56 53 89 c3 8b 00 f6 c4 08 74 08 0f 0b dc 01 c7 c8 2e c0 f0 83 43 08 ff 0f 98 c0 84 c0 74 6c 8b 43 08 40 79 08 <0f> 0b df 01 c7 c8 2e c0 9c 59 fa b8 00 f0 ff ff 21 e0 8b 40 10
Jan 24 20:42:42 localhost kernel:  <0>Fatal exception: panic in 5 seconds
Jan 24 20:42:42 localhost kernel: bad: scheduling while atomic!
Jan 24 20:42:42 localhost kernel:  [<c02d5c25>] schedule+0x2d/0x8f3
Jan 24 20:42:42 localhost kernel:  [<c01c496d>] vsnprintf+0x448/0x488
Jan 24 20:42:42 localhost kernel:  [<c020e816>] vt_console_print+0x65/0x2a5
Jan 24 20:42:42 localhost kernel:  [<c020e7b1>] vt_console_print+0x0/0x2a5
Jan 24 20:42:42 localhost kernel:  [<c020e816>] vt_console_print+0x65/0x2a5
Jan 24 20:42:42 localhost kernel:  [<c0129ecd>] __mod_timer+0x101/0x10b
Jan 24 20:42:42 localhost kernel:  [<c02d6d55>] schedule_timeout+0x135/0x159
Jan 24 20:42:42 localhost kernel:  [<c012a772>] process_timeout+0x0/0x13
Jan 24 20:42:42 localhost kernel:  [<c01228f0>] printk+0xe/0x11
Jan 24 20:42:42 localhost kernel:  [<c01060c2>] die+0x15a/0x16b
Jan 24 20:42:42 localhost kernel:  [<c0106425>] do_invalid_op+0xcf/0xf2
Jan 24 20:42:42 localhost kernel:  [<c014e662>] do_wp_page+0x358/0x371
Jan 24 20:42:42 localhost kernel:  [<c011ab0f>] pgd_alloc+0x30/0x91
Jan 24 20:42:42 localhost kernel:  [<c015368f>] page_remove_rmap+0x25/0x8e
Jan 24 20:42:42 localhost kernel:  [<c0107ab4>] do_IRQ+0x1a2/0x1ae
Jan 24 20:42:42 localhost kernel:  [<c0106356>] do_invalid_op+0x0/0xf2
Jan 24 20:42:42 localhost kernel:  [<c02d90ff>] error_code+0x2f/0x38
Jan 24 20:42:42 localhost kernel:  [<c015368f>] page_remove_rmap+0x25/0x8e
Jan 24 20:42:42 localhost kernel:  [<c014e55b>] do_wp_page+0x251/0x371
Jan 24 20:42:42 localhost kernel:  [<c014f306>] handle_mm_fault+0x139/0x193
Jan 24 20:42:42 localhost kernel:  [<c011b023>] do_page_fault+0x1ae/0x5c6
Jan 24 20:42:42 localhost kernel:  [<f89bbc82>] abi_signal+0x9c/0xa3 [abi_svr4]
Jan 24 20:42:42 localhost kernel:  [<f89bc3c5>] abi_sigfunc+0x104/0x1d7 [abi_svr4]
Jan 24 20:42:42 localhost kernel:  [<f89a3164>] lcall7_dispatch+0x10a/0x34d [abi_lcall]
Jan 24 20:42:42 localhost kernel:  [<f89bc2c1>] abi_sigfunc+0x0/0x1d7 [abi_svr4]
Jan 24 20:42:42 localhost kernel:  [<c011ae75>] do_page_fault+0x0/0x5c6
Jan 24 20:42:42 localhost kernel:  [<c02d90ff>] error_code+0x2f/0x38
Jan 24 20:42:47 localhost kernel: ------------[ cut here ]------------

Jan 24 20:42:47 localhost kernel: kernel BUG at arch/i386/mm/highmem.c:42!
Jan 24 20:42:47 localhost kernel: invalid operand: 0000 [#2]
Jan 24 20:42:47 localhost kernel: SMP
Jan 24 20:42:47 localhost kernel: Modules linked in: nls_utf8 abi_isc(U) abi_ibcs(U) abi_sco(U) abi_cxenix(U) abi_svr4(U) binfmt_xout(U) binfmt_coff(U) abi_lcall(U) abi_util(U) parport_pc lp parport autofs4 sunrpc dm_mirror dm_mod button battery ac md5 ipv6 hw_random snd_azx snd_hda_codec snd_pcm_oss snd_mixer_oss snd_pcm snd_timer snd soundcore snd_page_alloc 8139too mii ext3 jbd ata_piix pata_jmicron libata usb_storage uhci_hcd ohci_hcd ehci_hcd sd_mod scsi_mod
Jan 24 20:42:47 localhost kernel: CPU:    0
Jan 24 20:42:47 localhost kernel: EIP:    0060:[<c011c8f2>]    Tainted: G    B VLI
Jan 24 20:42:47 localhost kernel: EFLAGS: 00010206   (2.6.9-67.ELsmp)
Jan 24 20:42:47 localhost kernel: EIP is at kmap_atomic+0x73/0x178
Jan 24 20:42:47 localhost kernel: eax: c000ae78   ebx: 80000000   ecx: 643a5163   edx: 0000001a
Jan 24 20:42:47 localhost kernel: esi: f7cd3900   edi: f69e8df8   ebp: c000af48   esp: f71d1dcc
Jan 24 20:42:47 localhost kernel: ds: 007b   es: 007b   ss: 0068
Jan 24 20:42:47 localhost kernel: Process irqbalance (pid: 3195, threadinfo=f71d1000 task=c22eb1b0)
Jan 24 20:42:47 localhost kernel: Stack: f09101a8 f093017c f093017c c017151c f000000e f7f2e780 f093017c 00000000
Jan 24 20:42:47 localhost kernel:        00000000 fffcf000 c1f8c140 f7f332f0 f7cd3900 f69e8df8 00000dc8 c014cd60
Jan 24 20:42:47 localhost kernel:        f69e8df8 f69e8df8 f7f332f0 f7cd3930 f69e8df8 b7fb9000 c014f277 00000001
Jan 24 20:42:47 localhost kernel: Call Trace:
Jan 24 20:42:47 localhost kernel:  [<c017151c>] d_rehash+0x53/0x77
Jan 24 20:42:47 localhost kernel:  [<c014cd60>] pte_alloc_map+0xd9/0xe2
Jan 24 20:42:47 localhost kernel:  [<c014f277>] handle_mm_fault+0xaa/0x193
Jan 24 20:42:47 localhost kernel:  [<c011b023>] do_page_fault+0x1ae/0x5c6
Jan 24 20:42:47 localhost kernel:  [<c01703d0>] dput+0x34/0x1a7
Jan 24 20:42:47 localhost kernel:  [<c01684ce>] link_path_walk+0x94/0xbe
Jan 24 20:42:47 localhost kernel:  [<c02d6d55>] schedule_timeout+0x135/0x159
Jan 24 20:42:47 localhost kernel:  [<c01c496d>] vsnprintf+0x448/0x488
Jan 24 20:42:47 localhost kernel:  [<c011ae75>] do_page_fault+0x0/0x5c6
Jan 24 20:42:47 localhost kernel:  [<c02d90ff>] error_code+0x2f/0x38
Jan 24 20:42:47 localhost kernel:  [<c01c566a>] __copy_to_user_ll+0x30/0x46
Jan 24 20:42:47 localhost kernel:  [<c0176f67>] seq_read+0x24a/0x2c2
Jan 24 20:42:47 localhost kernel:  [<c015ba62>] vfs_read+0xb6/0xe2
Jan 24 20:42:47 localhost kernel:  [<c015bc77>] sys_read+0x3c/0x62
Jan 24 20:42:47 localhost kernel:  [<c02d8607>] syscall_call+0x7/0xb
Jan 24 20:42:47 localhost kernel:  [<c02d007b>] xfrm_policy_netlink+0x20/0x93
Jan 24 20:42:47 localhost kernel: Code: d8 41 c0 01 c2 8d 42 16 c1 e0 0c 29 c1 89 4c 24 24 8d 04 d5 00 00 00 00 89 e9 29 c1 89 c8 8b 09 8b 58 04 85 c9 75 04 85 db 74 08 <0f> 0b 2a 00 21 9c 2e c0 8b 5c 24 28 8b 0d f8 b9 32 c0 8b 03 89
Jan 24 20:42:47 localhost kernel:  <0>Fatal exception: panic in 5 seconds
Jan 24 20:42:47 localhost kernel: bad: scheduling while atomic!

Any thoughts ?
Dave