From nobody Fri Jul 15 22:18:24 2022 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Ll5NQ2F6Nz4Wmr2 for ; Fri, 15 Jul 2022 22:18:30 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: from mail-qv1-xf32.google.com (mail-qv1-xf32.google.com [IPv6:2607:f8b0:4864:20::f32]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Ll5NP2MDRz43Tx for ; Fri, 15 Jul 2022 22:18:29 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: by mail-qv1-xf32.google.com with SMTP id m10so766106qvu.4 for ; Fri, 15 Jul 2022 15:18:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=cnrAawEN6DeN9E4qRqJHrqFefUUesx6sDedvsRrcWZg=; b=klHLrApNDFflkkZDv/tUpOt2j028PS2miMuPQov2Y87Z94r6uvYbPHjgTxJ9EUocDE PXXEnWX0jlfX4HGKmeYkZCEt05REyU946MD4FF6UJAXXa1iTdddQisZBpQtl20J/Mn0z 6FNEo9uEttGgr6eLF3Ldq2WffiEJ9cg99Qt5iYmroL6L+uNpGpV0XlZ3r7smkGCuX2cl xne/vPcm8uKr7Tu9puQslvyx6MfJnGB0TMSsW0DLwa3eYZqejITYFgDfryqHnoCsvHYc xSLbUciS8S78EedKnlZoc8BKwwqnMseWh9k9CxF3Bfg+GftgNQtXDYYp+8tjPtlLDTdl PXyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition :content-transfer-encoding:in-reply-to; bh=cnrAawEN6DeN9E4qRqJHrqFefUUesx6sDedvsRrcWZg=; b=Ru3yqEHA2mUgt+5tmNupE0c3YgMX7Ki0aPPsXqUETq9QuI7aCXR7iuY+aWZi/eNWtb TM6S1pMKG3ml9P6b4MTF/2Fn3YANnPCx/0EdbAHHIcRdMz5VP4I7KPwU4ksn4a5wHKbi pKFO3mJMNofmgMgEcbskl5NSLB18FgbqjjBoSik7vRbVQRGpQQgrG1Ii1nQx5LFAb1Cl Iw5Co4brKMNRi7tGRusX8mvJukS6RbuwUrdoxvOqLOpo7rjDC8HKkYTRZaBO4u00QsW4 +a5LlJM+Ben0dFIbEGp8X3cuqmJbcbZ2Ls5BOR09ukEk05FWFfqRPjKvrhVWhkGCIjGn l/KA== X-Gm-Message-State: AJIora/pwayC4eTG8boS7FxTJ8QJfDWhrrle+VcNllBAF51YtJQiIzMw +2hIV4d2FFCdO3umEkvDLnR67biExc0= X-Google-Smtp-Source: AGRyM1t1AZVW47ihQTDcwJawsb/THBL7qp7eiVDeiAs8dIu5Os1hkp4kwTh/GF1hK9NIA6J0vYyuGA== X-Received: by 2002:a05:6214:29ef:b0:473:7504:52cd with SMTP id jv15-20020a05621429ef00b00473750452cdmr13766203qvb.82.1657923507886; Fri, 15 Jul 2022 15:18:27 -0700 (PDT) Received: from nuc (192-0-220-237.cpe.teksavvy.com. [192.0.220.237]) by smtp.gmail.com with ESMTPSA id q9-20020ac84509000000b0031eb3af3ffesm4383566qtn.52.2022.07.15.15.18.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Jul 2022 15:18:27 -0700 (PDT) Date: Fri, 15 Jul 2022 18:18:24 -0400 From: Mark Johnston To: Larry Rosenman Cc: Freebsd current Subject: Re: limits.conf/stacksize doesn't seem to work? Message-ID: References: List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Rspamd-Queue-Id: 4Ll5NP2MDRz43Tx X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=klHLrApN; dmarc=none; spf=pass (mx1.freebsd.org: domain of markjdb@gmail.com designates 2607:f8b0:4864:20::f32 as permitted sender) smtp.mailfrom=markjdb@gmail.com X-Spamd-Result: default: False [-1.69 / 15.00]; SUBJECT_ENDS_QUESTION(1.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.99)[-0.990]; MID_RHS_NOT_FQDN(0.50)[]; FORGED_SENDER(0.30)[markj@freebsd.org,markjdb@gmail.com]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; MIME_GOOD(-0.10)[text/plain]; FROM_HAS_DN(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::f32:from]; RCVD_TLS_LAST(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DMARC_NA(0.00)[freebsd.org]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; MLMMJ_DEST(0.00)[freebsd-current]; DKIM_TRACE(0.00)[gmail.com:+]; TO_DN_ALL(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; ARC_NA(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; FREEMAIL_ENVFROM(0.00)[gmail.com]; MIME_TRACE(0.00)[0:+]; FROM_NEQ_ENVFROM(0.00)[markj@freebsd.org,markjdb@gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_VIA_SMTP_AUTH(0.00)[] X-ThisMailContainsUnwantedMimeParts: N On Fri, Jul 15, 2022 at 05:04:18PM -0500, Larry Rosenman wrote: > I'm using the following kernel config: > [...] > and the following login.conf: > [...] > bacula_dir:\ > :stacksize-max=68719476736:\ > :stacksize-cur=68719476736:\ > :tc=daemon: > [...] > I've updated my (ler) password entry to reference bacula_dir: > ler::1001:1001:bacula_dir:0:0:Larry > Rosenman:/home/ler:/usr/local/bin/zsh > > > when I ssh in, the stacklimit is still: > โฏ ulimit -H -s > 2097152 What is the value of the kern.maxssiz sysctl on this system? > ler in ๐ŸŒ borg in sys/amd64/conf๐Ÿ”’ on ๎‚  ler/freebsd-main-changes:main on > โ˜๏ธ (us-east-1) > โฏ ulimit -S -s > 2097152 > > ler in ๐ŸŒ borg in sys/amd64/conf๐Ÿ”’ on ๎‚  ler/freebsd-main-changes:main on > โ˜๏ธ (us-east-1) > โฏ > > Where does this number come from? What am I missing here? The stack limit cannot be set to an arbitrarily large number. It will silently be clamped to maxssiz.