From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Jul 2 11:50:06 2012 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9F2DA106566C for ; Mon, 2 Jul 2012 11:50:06 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 732378FC15 for ; Mon, 2 Jul 2012 11:50:06 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q62Bo6kB025086 for ; Mon, 2 Jul 2012 11:50:06 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q62Bo61v025085; Mon, 2 Jul 2012 11:50:06 GMT (envelope-from gnats) Resent-Date: Mon, 2 Jul 2012 11:50:06 GMT Resent-Message-Id: <201207021150.q62Bo61v025085@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Michael Letzgus Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1E18B1065670 for ; Mon, 2 Jul 2012 11:44:06 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id E3F438FC16 for ; Mon, 2 Jul 2012 11:44:05 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id q62Bi59o088065 for ; Mon, 2 Jul 2012 11:44:05 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id q62Bi5k9088064; Mon, 2 Jul 2012 11:44:05 GMT (envelope-from nobody) Message-Id: <201207021144.q62Bi5k9088064@red.freebsd.org> Date: Mon, 2 Jul 2012 11:44:05 GMT From: Michael Letzgus To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/169598: winbind failure on ssh login, failed to mlock memory: Cannot allocate memory (12) X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Jul 2012 11:50:06 -0000 >Number: 169598 >Category: ports >Synopsis: winbind failure on ssh login, failed to mlock memory: Cannot allocate memory (12) >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Jul 02 11:50:06 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Michael Letzgus >Release: FreeBSD 9.0R >Organization: Universität Bielefeld >Environment: FreeBSD uche-pc1-pc1.dyn.uni-bielefeld.de 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan 3 07:46:30 UTC 2012 root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 >Description: When trying to login via ssh and pam_winbind.so, sometimes (after a few hours without errors) this error occurs and login is not possible: Debug-Output from winbinnd: Plain-text authentication for user AD\mletzgus2 returned NT_STATUS_OK (PAM: 0) Finished processing child request 13 Writing 3893 bytes to parent timed_events_timeout: 3599/504701 select will use timeout of 3599.504701 seconds s3_event: Destroying timer event 0x80582c990 "tevent_req_timedout" failed to mlock memory: Resource temporarily unavailable (35) winbindd_add_memory_creds returned: NT_STATUS_NETWORK_BUSY wb_request_done[59289:PAM_AUTH]: NT_STATUS_NETWORK_BUSY s3_event: Schedule immediate event "tevent_queue_immediate_trigger": 0x80582c390 s3_event: Run immediate event "tevent_queue_immediate_trigger": 0x80582c390 winbind_client_response_written[59289:PAM_AUTH]: delivered response to client closing socket 26, client exited wbinfo -K ad\\mletzgus stops working, too: plaintext kerberos password authentication for [ad\mletzgus] failed (requesting cctype: FILE) Could not authenticate user [ad\mletzgus] with Kerberos (ccache: FILE) A couple of minutes befor the answer was: plaintext kerberos password authentication for [ad\mletzgus] succeeded (requesting cctype: FILE) credentials were put in: FILE:/tmp/krb5cc_0 So in principle it works... Just a guess: My System has 16GB RAM and was running rsync on a ZFS filesystem. ZFS may use a lot of memory - and winbinds error message was "failed to mlock memory: Resource temporarily unavailable (35)". Maybe there are not enough resources of something? CPU: 0.3% user, 0.0% nice, 0.4% system, 0.0% interrupt, 99.3% idle Mem: 42M Active, 83M Inact, 7770M Wired, 664K Cache, 218M Buf, 7897M Free Swap: 10G Total, 10G Free There are still 8 GB left... should be enough for winbind... >How-To-Repeat: * Set up FreeBSD as AD domain member * Lock a a large amount of memory (stress yout ZFS or use "memtest 5G") * try to authenticate:"wbinfo -K domain\\username" * tail -f \var\log\auth.log >Fix: Maybe(!) it's only some limit - but I can't figure out wht limit: When starting "memtest 5G", memtest says something like "got 4736MB (4966440960 bytes), trying mlock ...over system/pre-process limit, reducing..." What limit is that...? >Release-Note: >Audit-Trail: >Unformatted: