From nobody Mon Nov 29 14:22:07 2021 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 EFFB518B19CC for ; Mon, 29 Nov 2021 14:22:08 +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 4J2nby6wHpz3htZ for ; Mon, 29 Nov 2021 14:22:06 +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 AC9ED23CE1 for ; Mon, 29 Nov 2021 14:22:06 +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 1ATEM6Td034924 for ; Mon, 29 Nov 2021 14:22:06 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 1ATEM650034923 for bugs@FreeBSD.org; Mon, 29 Nov 2021 14:22:06 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 260006] Compressed user core files with large segments are truncated Date: Mon, 29 Nov 2021 14:22:07 +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: 11.4-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: commit-hook@FreeBSD.org X-Bugzilla-Status: In Progress 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1638195727; 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=DJBb2gDWuQlms2mqORst/YSlZjYjofY73NKLdqcp8mg=; b=Gf7BlOCeckcvX7UTUaYzPUnyrCn3RdqKh8FlNJs3SgJ+1GAeFQN1+Yh9MJpkGMwgb8Xh9R f/6m3kY5icPJ83KqwMW2P1SlNWGkcW8/DzgM1OGy/hiVBsO8G0oJUp3NzgaLxBDz+H56Eo fS5McOSrr+HlIL0eHFemKYzFWGQCaCyF/RCgKgB0xV11IpUoi2lhL2N8afwMl4ivy5Qoay qAaQ22/eZVS0m6yHCmSnKznv2iMt2NZPtEcVhzl3wyAXuWkJo3qibSq1mWJFCKC9vjK8lx qTgHRWgO97ODhr5EPdAfLq95TzvWEjLmbfOGVLM2ZnD9wgo4xeaYicGtOejHMg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1638195727; a=rsa-sha256; cv=none; b=Pt3jowRfN233JouEaGvVUgLexFRCe8yANjma9auy2V9izqBenwuEUGy87WYlwvn4btw1L9 XMeAPJdTihiZZ65XxEvTgkVeIqZ3LeKWEN5sRl6ObvHFu+XMYxGMhvJXQJd/bMs0jYHyL6 SP4XBrstI9GavsurumhkW1xykxfwwX8rDcvLMVZbpIhpONrAw6h8fmLCyp8Pch4MFEYA97 zxgvXGfw+PLCoZgkNR5Zr8EWoUT65dZZaQJlww6HigHP8niiAP49IKSA7i9b6vMlM9lmUK oxKCOHDxAI3xtNuINmYQNE1srU7uWStvzLUSidmh7I35o+k9lPYkQrEOKlr4Ag== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D260006 --- Comment #4 from commit-hook@FreeBSD.org --- A commit in branch stable/12 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3Df4777562833311b5b4c99e5dda8d50d91= a514bf0 commit f4777562833311b5b4c99e5dda8d50d91a514bf0 Author: Justin Hibbits AuthorDate: 2021-10-01 18:39:18 +0000 Commit: Mark Johnston CommitDate: 2021-11-29 14:21:19 +0000 Fix segment size in compressing core dumps A core segment is bounded in size only by memory size. On 64-bit architectures this means a segment can be much larger than 4GB. However, compress_chunk() takes only a u_int, clamping segment size to 4GB-1, resulting in a truncated core. Everything else, including the compressor internally, uses size_t, so use size_t at the boundary here. This dates back to the original refactor back in 2015 (r279801 / aa14e9b7). PR: 260006 Sponsored by: Juniper Networks, Inc. (cherry picked from commit 63cb9308a75b99fe057409705bc1b2ac0293f578) sys/kern/imgact_elf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --=20 You are receiving this mail because: You are the assignee for the bug.=