From nobody Fri Sep 13 11:14:57 2024 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 4X4sCj5dcvz5WkX5 for ; Fri, 13 Sep 2024 11:14:57 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4X4sCj4GHfz41sk for ; Fri, 13 Sep 2024 11:14:57 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1726226097; a=rsa-sha256; cv=none; b=taKiqoamAkdiujS5GzHZ+hYVNC5ws6BA0A/SkVF5TD2eIAeeU61h+DUDwufO7Y2j7hvNYo MzNrBArTLEJFBUOehigjuTmM1h5B7EaOBfVsHyGnLaowzMa/OsD345qD7V00doYU/2bCNj PNhf0MdOW142FaR7BqT262QxSw6P9p/VP6mHHj/Ld6AJwtZ6e3WtEBNNAVgYjwJ9ht0zdV rIZE2HjN2MQZJclp99NSaWlVSPiq2HoPvFo8mgKdpsnwy5bipudx1HdcD869mbDSOowZKu Kpoenc6MPJ0qsOra+iNNk4VDnl35H6HEo6bqOuomfexhiU2IuyUEBCrDj0+jEg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1726226097; 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=9mjTwdg0Ucnn8aMPCjwigLh32QIs8Pol0IPDZrEWlts=; b=BGYh22XLOPDfSb+kpN36jHxZDHibKtiIAlBoPuH4yWvApm6gRnhDBKFMELtbEOxS1JgusZ 8KQ5yhNj2BHce8hj1endUKciZe+thbb4t1vtc1bIAnV+XU9x0HWPAWQGnuJs2K/mQct+tZ rHw6zZkB1bfFERJvr3+6OZbV9uX7qipzAUsm9USxFTsn4U/fGbmUHAXFxXXtOjAH9BqWtD 3eDhCC3sR5gOhQm6R4xalkAhSTXJnZwCTMA/yfdIock8XBEGIzSZWkdVzyqBLSXo6HKb2v tkTcnuXbkM2NhdU938AFI6l2jhMYlAGiMXUcUfxRaHNvWG/PGMTxfNXCRKAQ2g== 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 4X4sCj3m6vzhPM for ; Fri, 13 Sep 2024 11:14:57 +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 48DBEvX6071937 for ; Fri, 13 Sep 2024 11:14:57 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 48DBEvbl071936 for bugs@FreeBSD.org; Fri, 13 Sep 2024 11:14:57 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 281471] ASLR: jemalloc RES memory keeps on increasing until process cores Date: Fri, 13 Sep 2024 11:14:57 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: Unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: rupeshpilania@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: 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 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D281471 --- Comment #4 from Rupesh Pilania --- (In reply to Brooks Davis from comment #3) Thankyou for your reply. I will try after applying this patch. Tested with FreeBSD 14.1. Issue is not seen. sysctl -a | grep aslr kern.elf32.aslr.shared_page: 0 kern.elf32.aslr.stack: 0 kern.elf32.aslr.honor_sbrk: 0 kern.elf32.aslr.pie_enable: 0 kern.elf32.aslr.enable: 0 kern.elf64.aslr.shared_page: 1 kern.elf64.aslr.stack: 1 kern.elf64.aslr.honor_sbrk: 0 kern.elf64.aslr.pie_enable: 1 kern.elf64.aslr.enable: 1 vm.aslr_restarts: 0 rpilania@build-server-FBSD14:~ % ./mem-fragment Hello! This program will fragment its process heap. Run top -p 52296 to follow along! Press Enter to continue... PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND 52296 rpilania 1 34 0 10M 1792K ttyin 3 0:00 0.00%=20 500k 5KB chunks were just provisioned Press Enter to continue... PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND 52296 rpilania 1 58 0 2592M 2072M ttyin 3 0:02 0.00%=20 500k 5KB chunks were just provisioned Press Enter to continue... PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND 52296 rpilania 1 68 0 5168M 4142M ttyin 3 0:04 0.00%=20 The first allocations were just free()'d. Press Enter to continue... PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND 52296 rpilania 1 32 0 2618M 2097M ttyin 3 0:05 0.00%=20 The 2nd allocations were just free()'d. Press Enter to continue... PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND 52296 rpilania 1 31 0 68M 52M ttyin 3 0:05 0.00% --=20 You are receiving this mail because: You are the assignee for the bug.=