From nobody Sat May 18 08:15:58 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 4VhGqf6Nsfz5LJxR for ; Sat, 18 May 2024 08:15:58 +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 4VhGqf3MRYz4RmR for ; Sat, 18 May 2024 08:15:58 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1716020158; a=rsa-sha256; cv=none; b=LJrRBeOZKENB5S9HnTRIbeP8xOoKUqDm4GyGGgrXInUn8KCeJUWEDwtEheLeLqozn4txZI Let9Sh9IxAW50QIIekEMMz3cFwjRAro0lseg6bwyXET6VKCCRwHDzd6MPx+myctq4O24ib /EKshcRT7x0UUUQqF311kFElG3eMjM3eE8DETZtMLYjI5RJypAB3YwAr7UMTp1+Aebsox4 SZXeQLWOQUyBnQwuv1ngzb41VCOUKu241GNL5gFsI3K71vT5bZBl/kvTBexTTXBWxRca1k 5h+Y/SxuEVoCJauSskFWh5k+2Y9aNZCs+8z69tsYxKDvJYaT31YoRX0HrlBKQg== 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=1716020158; 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=Lg3yB8l0b2SsrcXuRYwrkBC83ADk6czjFFN8Bj2A1QQ=; b=GSVkZvVElvV2jzaN0PsSoYmok7D+3FAs+hozbx4urqd7fxdCIXKUgdy/yfPXE9GDSIeUgx YQEASnQschliyHcueuKmbZPkFPoyRibaWOjaTbl+sKYUriEWkp9DuTrDBx9i/0q7Hj86c2 mzSvUYLHw7YtK0Onfj3tAOjyagYJfP4v6cehncF+2XqepixNS0uE3Ht+ikqAPAjb4MbS58 JSyaOBXNHhDIRSRjNOdbpGM5Y9yXLQfPnG/I4mu1H+xfaepR0K34fEn/jqLT6gO29C5use AMbtcQdy9TfrYdZx3Inh9YLYaGf7Gy2mtuGcw6uRsZXw6K/i0E75Dl1P1RZAVA== 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 4VhGqf2z3FzJ5x for ; Sat, 18 May 2024 08:15:58 +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 44I8FwBX071634 for ; Sat, 18 May 2024 08:15:58 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 44I8FwtB071633 for bugs@FreeBSD.org; Sat, 18 May 2024 08:15:58 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 279122] /boot/kernel/kernel: "not stripped" Date: Sat, 18 May 2024 08:15:58 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 14.0-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: egypcio@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: 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=3D279122 Bug ID: 279122 Summary: /boot/kernel/kernel: "not stripped" Product: Base System Version: 14.0-STABLE Hardware: Any OS: Any Status: New Severity: Affects Many People Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: egypcio@FreeBSD.org I'm running stripped 'kernel' for quite a few years without ANY sort of iss= ue. I use them on physical and virtual machines - also, on "normal" deployments= of FreeBSD or serving mfs images (compressed, or not). So, is there a very good reason why we (officially) do not strip the FreeBSD kernel? - at least on STABLE or RELEASE versions. Once I am pretty much far from being an expert on that level, I would love = to get more input about it from anyone that would be keen to explain that to me (and others here). - shall this kind of topic be added to our Handbook (or developers documentation) as well? >From a FreeBSD live system, here we have some fair outputs of what is meant= by this PR: root@:~ # mkdir /tmp/base root@:~ # mount /dev/gpt/base0 /tmp/base/ root@:~ # tar xf /usr/freebsd-dist/base.txz -C /tmp/ usr/bin/strip root@:~ # cp -a /boot/kernel/kernel /tmp/base/kernel=20 root@:~ # /tmp/usr/bin/strip /tmp/base/kernel *** 14.0-RELEASE root@:~ # uname -abiUK FreeBSD 14.0-RELEASE FreeBSD 14.0-RELEASE #0 releng/14.0-n265380-f9716eee8= ab4: Fri Nov 10 05:57:23 UTC 2023=20=20=20=20 root@releng1.nyi.freebsd.org:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64 GENERIC 1400097 1400097 de04db27d4d136c96cba9e384c8bc9e7b337a2c5 root@:~ # file /boot/kernel/kernel /tmp/base/kernel /boot/kernel/kernel: ELF 64-bit LSB executable, x86-64, version 1 (FreeBSD), dynamically linked, interpreter /red/herring, BuildID[sha1]=3Dde04db27d4d136c96cba9e384c8bc9e7b337a2c5, not stripped /tmp/base/kernel: ELF 64-bit LSB executable, x86-64, version 1 (FreeBSD), dynamically linked, interpreter /red/herring, BuildID[sha1]=3Dde04db27d4d136c96cba9e384c8bc9e7b337a2c5, stripped root@:~ # ls -lais /boot/kernel/kernel /tmp/base/kernel 10156980 26371 -r-xr-xr-x 1 root wheel 27003712 Nov 10 2023 /boot/kernel/kernel 6 23144 -r-xr-xr-x 1 root wheel 23643432 May 18 08:07 /tmp/base/ker= nel *** 14.1-STABLE root@:~ # uname -abiUK FreeBSD 14.1-STABLE FreeBSD 14.1-STABLE stable/14-n267634-7b65987885da GEN= ERIC amd64 GENERIC 1401500 1401500 03870066df47c918b5678f89b12252aae1c3e94f root@:~ # file /boot/kernel/kernel /tmp/base/kernel /boot/kernel/kernel: ELF 64-bit LSB executable, x86-64, version 1 (FreeBSD), dynamically linked, interpreter /red/herring, BuildID[sha1]=3D03870066df47c918b5678f89b12252aae1c3e94f, not stripped /tmp/base/kernel: ELF 64-bit LSB executable, x86-64, version 1 (FreeBSD), dynamically linked, interpreter /red/herring, BuildID[sha1]=3D03870066df47c918b5678f89b12252aae1c3e94f, stripped root@:~ # ls -laish /boot/kernel/kernel /tmp/base/kernel 10163936 28434 -r--r--r-- 1 root wheel 28M May 9 06:11 /boot/kernel/ker= nel 7 25200 -r--r--r-- 1 root wheel 25M May 18 07:49 /tmp/base/kernel --=20 You are receiving this mail because: You are the assignee for the bug.=