From nobody Wed Jul 27 19:31:37 2022 X-Original-To: bugs@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 4LtP6L30Lwz4XTv6 for ; Wed, 27 Jul 2022 19:31:38 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4LtP6L1qwKz3MhQ for ; Wed, 27 Jul 2022 19:31:38 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4LtP6L0w3YzT5f for ; Wed, 27 Jul 2022 19:31:38 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 26RJVccg028114 for ; Wed, 27 Jul 2022 19:31:38 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 26RJVcDm028113 for bugs@FreeBSD.org; Wed, 27 Jul 2022 19:31:38 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 262743] Memory leak in security/strongswan's charon daemon when communicating over vici socket. Date: Wed, 27 Jul 2022 19:31:37 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: misc X-Bugzilla-Version: 13.1-RELEASE X-Bugzilla-Keywords: needs-qa X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: marklmi26-fbsd@yahoo.com X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658950298; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=+m02U3wPCDrMcvKcnHv4R4hxyhlaktg2bf6sNOE38KA=; b=kKfDPVvjGOvmeUkP9/zgP3ghh12+PX5EdoK5RM9ygP8vKbggRXCHE3anl7a4wx+Gh4YS5u 22bvT4p76mfqilKejqYLFm9upy2wKPhl7EYzrVlSxiAJbKw212JmR4fWHOM1tJumFsXCqW oeYq8yN6nU7a8tIOed11By7X/PBKIxOdonIXLdCse+lHuwm4zmSks3gUi0F5Z6w6yz3M2s 0sgd9fMZDl3P+pGZyCKai7x1yiLuyhvdesy59CrmBEbsvio0N3TzYpTYxqQaQDRa9YqEXb pKX2O5pz+UcLXc24PSTZzCqQaBE4HMdlX46OXIS/sYp9AxhzQeNm4xoknegWyw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1658950298; a=rsa-sha256; cv=none; b=G27eJ2vdUtdVDzcGMiGR+xoRyhL1D4telncxEsvEDX48ZhQcFWUCWl1HSHBwt4Dsp8SWsy 2h94VJGFffDiKL261wYfPey/Dne+VxQJqK/kmxhT5YIRA4DKSk5xCSRn7ci9y2v83+xuAL k9nUH4O9S0DZZObipEhdMiyV+IYPVjwO27yCzbVW8XtkpwZKHiOuqrQLQ28e04sODlTFao lzAvhtdiQJqNPAZr/SUrm+zsgcC6xqopK9ZjGLLvkQUO+NN3lWBsR8md5sP36zQQs7DNso 9uvaOmwpLqL6lJW8IaiUHC83JcRSgLLpqs5amYNhnVWaqqavNA7/MQ9aEPiKsg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D262743 --- Comment #6 from Mark Millard --- (In reply to Micha=C5=82 Skalski from comment #5) Use of the likes of vm.pageout_oom_seq=3D120 should delay any kills for failures to reclaim enough memory to reach FreeBSD's target figure for free RAM. This can get extra time to inspect/investigate evidence about the on-going memory/RAM usage. Note: Using an increased vm.pageout_oom_seq is useful for avoiding failed-to-reclaim kills only for bounded-duration "stays running" activities. This can allow buildworld buildkernel -j4 on Small Board Computers with 4 cores and only 2 GiBytes of RAM, for example, when using the default tends to suffer failed-to-reclaim kills.) Note: In sufficiently modern variants of FreeBSD the messages about kills were improved and no longer always report being out of available swap space as the reason for the kill. The messaging about reclaim failures is an example of the improved messaging. Reclaim failures can happen even with a swap space being configured but little/none of the swap space being put to use. All it takes is one process (or m ore) that stays runnable while keeping nearly all the RAM pages in the active state (so: unable to be reclaimed). Even now, if a FreeBSD is modern enough to have the failed-to-reclaim message, if the message reports "out of swap" as the reason for a kill, the message is somewhat of a misnomer, in that kernel data structures for managing the swap areas ran out of space (internal fragmentation?), not the swap media. Note: My references to "stays running" presume leaving the kernel configured to allow process kernel stacks to be swapped out when a process has not stayed runnable. FreeBSD does not do such swap outs for processes that are runnable at the time. --=20 You are receiving this mail because: You are the assignee for the bug.=