From nobody Wed Jul 26 14:30:11 2023 X-Original-To: dev-commits-src-all@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 4R9xBX1lC5z4ny1D; Wed, 26 Jul 2023 14:30:12 +0000 (UTC) (envelope-from git@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 4R9xBX1L76z3MLM; Wed, 26 Jul 2023 14:30:12 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1690381812; 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; bh=YjxZ7Dr07VgXFYDf/hRpMw8WY0Ky4izEKEXahEDblV0=; b=Qf97rZsHzPWdK4tbx3TTiYEJiUmzsky9wNKcgsFc2ncneythp5Vu3XIIu3PGdwPIe5aupo /I0IRyCEL8yH5Glcm44YlK5rIRrVBrxGMkxNNOViB2wZac6gaEjL63FcjOZdGC4M9v9Nmz MalQh2Q7sji7eNcPx41gc1r0uO5DYzcmlk/r1R9J5/MN1hZEhTViPq/gY3h/CZbzOspuVI E3uhSX9E3fa/hk+saV8Wg+micje/0ldlj0eCC7UB85vNNpoMqc7ahZtgq66l5u/6jBgkkA JLHPjTnCFe7UVqkF2xBjwnCyL7cdMNh7FpvNeCOZayszQNzdfFNt+7hg2E9Mfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1690381812; 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; bh=YjxZ7Dr07VgXFYDf/hRpMw8WY0Ky4izEKEXahEDblV0=; b=j0yJFvwVvedvog351O4dgqSWFXtsEB8d0h2EC7/Rmy5E6whjnPiJ5TI2x7Vj4HW+yK1xiM Z+tbLUJtXsKsvlg7AxNkgXrrNqZdrcV/6XJEeYC15iO7iOLGovc0CAXF/zM4ta4GW9Fhos ZnMV4rljnDSAEv1Oz3/dGb2O1rkr93ThZdb8MgPG0QlzB7i1jV8HcYJFMZzQFJgPckDVdw jkv7F4XfcN0EVAoneg/PHeCuAlDLowHKrygnCf0vS/Vah2BV5yRdhBd3RzBBdD/4ZZv2s6 KxbEEmqwNVuvmB8U/Sp6k8oF7i4BRnaZNVSfX0SAjHRUKwaJuHwgo0XVmLZ5Kg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1690381812; a=rsa-sha256; cv=none; b=nO6/j3JhK3s+/RGWP0nJ9ih2IxMv/puU/jN98Y3+r6uF6at2j4xVpw02RSZfUmiYmR5ltH cHy+IQ5OA2fGTIfNHYyMHeuhymSt+ePu2P5SMI+ENJ1N80OHRE63Cry7Kb1E1XdnM0g3IB eqCyz/+sWV+zxahS5AkMBjMv57cg82RGdhse1Txat/ChFU2dZiyvGpEk8TyiX/GzEtQQnT FJUvi99EM1c0T2tCjxiF/lj8xxrO5maQhhnsFJn2z8R7wi4juxTM3EiarLlcHUseEkAzxz s/JQPups3K3pk6FwRUC57j1HKmieTJY4WlU6fM5z+2DwJLWnudmnHJuTomOjlg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4R9xBX0HsdzmBt; Wed, 26 Jul 2023 14:30:12 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 36QEUBBN026515; Wed, 26 Jul 2023 14:30:11 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 36QEUBKu026505; Wed, 26 Jul 2023 14:30:11 GMT (envelope-from git) Date: Wed, 26 Jul 2023 14:30:11 GMT Message-Id: <202307261430.36QEUBKu026505@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Konstantin Belousov Subject: git: a24726a6f3b4 - main - rtld_malloc: remove outdated comments List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kib X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: a24726a6f3b43473093267e2b4e81d186817dc7d Auto-Submitted: auto-generated The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=a24726a6f3b43473093267e2b4e81d186817dc7d commit a24726a6f3b43473093267e2b4e81d186817dc7d Author: Konstantin Belousov AuthorDate: 2023-07-22 04:13:58 +0000 Commit: Konstantin Belousov CommitDate: 2023-07-26 14:24:17 +0000 rtld_malloc: remove outdated comments The ovu_magic is not neccessary overlaps with low byte of the ov_next, for the big endian machines. There is no range checking in the allocator. Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D41150 --- libexec/rtld-elf/rtld_malloc.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/libexec/rtld-elf/rtld_malloc.c b/libexec/rtld-elf/rtld_malloc.c index d08254b67d9f..0eec68f35402 100644 --- a/libexec/rtld-elf/rtld_malloc.c +++ b/libexec/rtld-elf/rtld_malloc.c @@ -68,10 +68,6 @@ static caddr_t pagepool_start, pagepool_end; * contains a pointer to the next free block, and the bottom two bits must * be zero. When in use, the first byte is set to MAGIC, and the second * byte is the size index. The remaining bytes are for alignment. - * If range checking is enabled then a second word holds the size of the - * requested block, less 1, rounded up to a multiple of sizeof(RMAGIC). - * The order of elements is critical: ov_magic must overlay the low order - * bits of ov_next, and ov_magic can not be a valid ov_next bit pattern. */ union overhead { union overhead *ov_next; /* when free */