From nobody Fri Jul 15 22:24:36 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 4Ll5WY2MgZz4WnWZ for ; Fri, 15 Jul 2022 22:24:41 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: from mail-qk1-x730.google.com (mail-qk1-x730.google.com [IPv6:2607:f8b0:4864:20::730]) (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 4Ll5WW5RWPz45wj for ; Fri, 15 Jul 2022 22:24:39 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: by mail-qk1-x730.google.com with SMTP id c17so4677064qkl.4 for ; Fri, 15 Jul 2022 15:24:39 -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=fpRHTFSJGaHvAh3GXsaWTmLiWn4pfbEkLB/2AlvXGEk=; b=d37E+pYPQZVMlOV74593f+V/8YS4cOdSl2IYqKDy3Eih/T6tkK88XdJNV9wfXaiwOK eWHvjGPJ3AkTRa9Iwsch3ZrbcW+IHh2iQYc4roZg56ODdhbYMYlGK/KK02rxbigVnHjg LM/rdOP0MRo8idQkE++btpRnmtQ8omxEmuoJili4jse7/fS8xAkL8RGP0Lm0UyARhowC HShUMwYwFUhbWFV2ZNynOp0HI9dMcQVKnUTIxcbYPTCkimSSL9q5bnE/Q5JCaCq76Nya oap7aQRvgjOTOS1iXGdC1rg7teMa+2zVdnBqGrqoLtY50Y4T3+EFA9wVLxcF9FvVreOD gvsA== 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=fpRHTFSJGaHvAh3GXsaWTmLiWn4pfbEkLB/2AlvXGEk=; b=LPHuBrL5ia3BQgqSer9YIxS+Vh/MebcmwYCxEGoAL5FO9s32fGKlZr/RiAslkmCmII vXP7ebSTPVXISMNmQrFtNbPuF0buWbg+nMYkKmOYncgStBTY5gnzwNeaofB4ZjC2xB+T ADBqDuyETbcRxHpo39CsUbe7NOVj9K1l8Oh7/n1WPpaeRbQC1I3zcuLB1cbkmEMC2uN9 vK0L0LnEhN6l97YP1wzy6MXVkcPzn4Loesatk7sJ2DABrYsputvr9oiU8RIXHBv1j78d dxUBmEKTKUB2ErgA9UHcxRpK0Liz7GvJpcw15qx6enGYSpQksYYlMXuf6lNso6wl3tse EhFg== X-Gm-Message-State: AJIora+dMLD06CAGGjzVcJnW7KQBq2UdIIzeIJdObYkqLcM+yF2Yhnzg i8fPi73a6tlxTapeySRA/QsSBlWpWUs= X-Google-Smtp-Source: AGRyM1u4H1eexk3xlXRzkku+Bd4NSY1bkxWpx19FvwBgm2v+1V5FeepFNUcDdu+6Q7RP68MqBB8skw== X-Received: by 2002:a05:620a:4706:b0:6af:482e:b9eb with SMTP id bs6-20020a05620a470600b006af482eb9ebmr11149806qkb.46.1657923878982; Fri, 15 Jul 2022 15:24:38 -0700 (PDT) Received: from nuc (192-0-220-237.cpe.teksavvy.com. [192.0.220.237]) by smtp.gmail.com with ESMTPSA id r10-20020ac85e8a000000b0031eb51dd72csm4156426qtx.85.2022.07.15.15.24.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Jul 2022 15:24:38 -0700 (PDT) Date: Fri, 15 Jul 2022 18:24:36 -0400 From: Mark Johnston To: Larry Rosenman Cc: Freebsd current Subject: Re: limits.conf/stacksize doesn't seem to work? Message-ID: References: <32dc6f5b56a749f9b8e26330f9f2e8e0@lerctr.org> 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: <32dc6f5b56a749f9b8e26330f9f2e8e0@lerctr.org> X-Rspamd-Queue-Id: 4Ll5WW5RWPz45wj X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=d37E+pYP; dmarc=none; spf=pass (mx1.freebsd.org: domain of markjdb@gmail.com designates 2607:f8b0:4864:20::730 as permitted sender) smtp.mailfrom=markjdb@gmail.com X-Spamd-Result: default: False [-1.65 / 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.95)[-0.947]; 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::730: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:21:27PM -0500, Larry Rosenman wrote: > On 07/15/2022 5:18 pm, Mark Johnston wrote: > > 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. > > โฏ sysctl kern.maxssiz > kern.maxssiz: 2147483648 Then what you're seeing is expected. The kernel is clamping the stack segment limit to 2GB.