#
c901e89d |
| 11-Dec-2024 |
Stéphane Rochoy <stephane.rochoy@stormshield.eu> |
savecore: add missing call to cap_openlog when in capabilities mode
Signed-off-by: Stéphane Rochoy <stephane.rochoy@stormshield.eu>
Reviewed by: markj, oshogbo MFC after: 2 weeks Pull Request: http
savecore: add missing call to cap_openlog when in capabilities mode
Signed-off-by: Stéphane Rochoy <stephane.rochoy@stormshield.eu>
Reviewed by: markj, oshogbo MFC after: 2 weeks Pull Request: https://github.com/freebsd/freebsd-src/pull/1546
show more ...
|
Revision tags: release/14.2.0, release/13.4.0, release/14.1.0 |
|
#
c7bdc25d |
| 03-Apr-2024 |
Yan-Hao Wang <bses30074@gmail.com> |
savecore(8): Complete libxo transition
Reviewed by: des MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D41392
|
Revision tags: release/13.3.0 |
|
#
32e86a82 |
| 24-Nov-2023 |
Warner Losh <imp@FreeBSD.org> |
sbin: Automated cleanup of cdefs and other formatting
Apply the following automated changes to try to eliminate no-longer-needed sys/cdefs.h includes as well as now-empty blank lines in a row.
Remo
sbin: Automated cleanup of cdefs and other formatting
Apply the following automated changes to try to eliminate no-longer-needed sys/cdefs.h includes as well as now-empty blank lines in a row.
Remove /^#if.*\n#endif.*\n#include\s+<sys/cdefs.h>.*\n/ Remove /\n+#include\s+<sys/cdefs.h>.*\n+#if.*\n#endif.*\n+/ Remove /\n+#if.*\n#endif.*\n+/ Remove /^#if.*\n#endif.*\n/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/types.h>/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/param.h>/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/capsicum.h>/
Sponsored by: Netflix
show more ...
|
Revision tags: release/14.0.0 |
|
#
1d386b48 |
| 16-Aug-2023 |
Warner Losh <imp@FreeBSD.org> |
Remove $FreeBSD$: one-line .c pattern
Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
|
Revision tags: release/13.2.0, release/12.4.0, release/13.1.0 |
|
#
0a5c04a8 |
| 18-Apr-2022 |
Mitchell Horne <mhorne@FreeBSD.org> |
savecore: add an option to save a live minidump
The new '-L' flag will cause savecore to invoke the new mem(4) kernel dump ioctl, taking a dump of the running system and writing the result to a temp
savecore: add an option to save a live minidump
The new '-L' flag will cause savecore to invoke the new mem(4) kernel dump ioctl, taking a dump of the running system and writing the result to a temporary file. Validation of the dump header is performed, similar to regular crash dumps, and the final result is written to livecore.X[.zst|.gz].
Also added is the '-Z' flag, which instructs the kernel to compress the livedump compressed with zstd, akin to the existing -z flag. This option has no effect in normal savecore(8) operation, but in theory could be extended to perform such compression while reading the dump from the dump device.
Encryption is unsupported for live dumps.
For example: 'savecore -Lz /var/crash' would create: /var/crash/livecore.0.gz
Reviewed by: markj MFC after: 2 weeks Sponsored by: Juniper Networks, Inc. Sponsored by: Klara, Inc. Differential Revision: https://reviews.freebsd.org/D34347
show more ...
|
#
cf02cf8d |
| 18-Apr-2022 |
Mitchell Horne <mhorne@FreeBSD.org> |
savecore: factor out info file handling
Move it to a separate function, allowing its reuse.
Reviewed by: markj MFC after: 3 days Sponsored by: Juniper Networks, Inc. Sponsored by: Klara, Inc. Diffe
savecore: factor out info file handling
Move it to a separate function, allowing its reuse.
Reviewed by: markj MFC after: 3 days Sponsored by: Juniper Networks, Inc. Sponsored by: Klara, Inc. Differential Revision: https://reviews.freebsd.org/D34822
show more ...
|
#
fafeb534 |
| 18-Apr-2022 |
Mitchell Horne <mhorne@FreeBSD.org> |
savecore: decrease filename buffer sizes
All files are now created relative to savedirfd, e.g. with openat(2). Therefore, we do not need character buffers to be PATH_MAX bytes long, just long enough
savecore: decrease filename buffer sizes
All files are now created relative to savedirfd, e.g. with openat(2). Therefore, we do not need character buffers to be PATH_MAX bytes long, just long enough to hold the complete filename. 32 bytes is long enough in all cases. These can be allocated on the stack.
While here, fix an error message that attempts to use an uninitialized infoname.
Reviewed by: markj MFC after: 3 days Sponsored by: Juniper Networks, Inc. Sponsored by: Klara, Inc. Differential Revision: https://reviews.freebsd.org/D34821
show more ...
|
#
4243d307 |
| 18-Apr-2022 |
Mitchell Horne <mhorne@FreeBSD.org> |
savecore: fold maxdumps check into getbounds()
So that new callers of getbounds() don't need to duplicate it.
Reviewed by: markj MFC after: 3 days Sponsored by: Juniper Networks, Inc. Sponsored by:
savecore: fold maxdumps check into getbounds()
So that new callers of getbounds() don't need to duplicate it.
Reviewed by: markj MFC after: 3 days Sponsored by: Juniper Networks, Inc. Sponsored by: Klara, Inc. Differential Revision: https://reviews.freebsd.org/D34783
show more ...
|
#
173fc6f4 |
| 05-Apr-2022 |
Mitchell Horne <mhorne@FreeBSD.org> |
savecore: include '-u' flag in usage message
Reported by: Pau Amma <pauamma@gundo.com> Fixes bc7ed46b635e ("Add '-u' switch that would...") MFC after: 3 days
|
#
ace38c58 |
| 08-Dec-2021 |
Kyle Evans <kevans@FreeBSD.org> |
savecore: emit information about saved cores under verbose
Declare how many cores we saved, and where we saved them to. Drop a comment about emitting little information; it's obvious from the block
savecore: emit information about saved cores under verbose
Declare how many cores we saved, and where we saved them to. Drop a comment about emitting little information; it's obvious from the block in question that we emit nothing without verbose.
Reviewed by: markj Sponsored by: NetApp, Inc. Sponsored by: Klara, Inc. X-NetApp-PR: #65 Differential Revision: https://reviews.freebsd.org/D31393
show more ...
|
Revision tags: release/12.3.0, release/13.0.0 |
|
#
61261ef5 |
| 11-Dec-2020 |
Ryan Libby <rlibby@FreeBSD.org> |
savecore: bail on write error even when decompressing
Reviewed by: markj Sponsored by: Dell EMC Isilon Differential Revision: https://reviews.freebsd.org/D27560
|
#
bc7ed46b |
| 19-Nov-2020 |
Gleb Smirnoff <glebius@FreeBSD.org> |
Add '-u' switch that would uncompress cores that were compressed by kernel during dump time.
A real life scenario is that cores are compressed to reduce size of dumpon partition, but we either don't
Add '-u' switch that would uncompress cores that were compressed by kernel during dump time.
A real life scenario is that cores are compressed to reduce size of dumpon partition, but we either don't care about space in the /var/crash or we have a filesystem level compression of /var/crash. And we want cores to be uncompressed in /var/crash because we'd like to instantily read them with kgdb. In this case we want kernel to write cores compressed, but savecore(1) write them uncompressed.
Reviewed by: markj, gallatin Relnotes: yes Differential Revision: https://reviews.freebsd.org/D27245
show more ...
|
#
32fbec42 |
| 03-Nov-2020 |
Gleb Smirnoff <glebius@FreeBSD.org> |
Style, not functional changes: - Improve spelling of a false check [1] - A missing line from r367150.
Submitted by: kib
|
#
0de93324 |
| 30-Oct-2020 |
Gleb Smirnoff <glebius@FreeBSD.org> |
Convert flags from int to bool. Some (compress) were already used in comparisons with bool values. No functional changes.
|
Revision tags: release/12.2.0 |
|
#
81884a24 |
| 30-Jun-2020 |
Alan Somers <asomers@FreeBSD.org> |
savecore: accept device names without the /dev/ prefix
dumpon has accepted device names without the prefix ever since r291207. Since dumpon and savecore are always paired, they ought to accept the s
savecore: accept device names without the /dev/ prefix
dumpon has accepted device names without the prefix ever since r291207. Since dumpon and savecore are always paired, they ought to accept the same arguments. Prior to this change, specifying 'dumpdev="da3"' in /etc/rc.conf, for example, would result in dumpon working just fine but savecore complaining that "Dump device does not exist".
PR: 247618 Reviewed by: cem, bcr MFC after: 2 weeks Sponsored by: Axcient Differential Revision: https://reviews.freebsd.org/D25500
show more ...
|
Revision tags: release/11.4.0 |
|
#
a532f299 |
| 13-Jan-2020 |
Eric van Gyzen <vangyzen@FreeBSD.org> |
savecore: include time zone in info.N file
This helps with event correlation when machines are distributed across multiple time zones.
Format the time with relaxed ISO 8601 for all the usual reason
savecore: include time zone in info.N file
This helps with event correlation when machines are distributed across multiple time zones.
Format the time with relaxed ISO 8601 for all the usual reasons.
MFC after: 2 weeks Sponsored by: Dell EMC Isilon
show more ...
|
Revision tags: release/12.1.0, release/11.3.0 |
|
#
7648bc9f |
| 13-May-2019 |
Alan Somers <asomers@FreeBSD.org> |
MFHead @347527
Sponsored by: The FreeBSD Foundation
|
#
d76eef34 |
| 17-Apr-2019 |
Ed Maste <emaste@FreeBSD.org> |
cap_fileargs: chase r346315, update fileargs_init in consumers
Reported by: ci.freebsd.org (8 times so far) MFC after: 3 weeks MFC with: r346315 Sponsored by: The FreeBSD Foundation
|
#
2e4c75c1 |
| 02-Jan-2019 |
Mark Johnston <markj@FreeBSD.org> |
Fix an error check after r342699.
Reported by: gcc MFC with: r342699 Sponsored by: The FreeBSD Foundation
|
#
d7fffd06 |
| 02-Jan-2019 |
Mark Johnston <markj@FreeBSD.org> |
Capsicumize savecore(8).
- Use cap_fileargs(3) to open dump devices after entering capability mode, and use cap_syslog(3) to log messages. - Use a relative directory fd to open output files. - Use
Capsicumize savecore(8).
- Use cap_fileargs(3) to open dump devices after entering capability mode, and use cap_syslog(3) to log messages. - Use a relative directory fd to open output files. - Use zdopen(3) to compress kernel dumps in capability mode.
Reviewed by: cem, oshogbo MFC after: 2 months Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D18458
show more ...
|
Revision tags: release/12.0.0, release/11.2.0 |
|
#
fe1ba250 |
| 29-May-2018 |
Mark Johnston <markj@FreeBSD.org> |
The extension for zstd-compressed files is ".zst".
Reported by: manu
|
#
b761400b |
| 16-Feb-2018 |
Mike Silbersack <silby@FreeBSD.org> |
Prevent savecore from reading bounds from the current directory.
Rev 244218 removed the requirement that you provide a dump directory when checking if there is a coredump ready to be written. That h
Prevent savecore from reading bounds from the current directory.
Rev 244218 removed the requirement that you provide a dump directory when checking if there is a coredump ready to be written. That had the side-effect of causing the bounds file to be read from the current working directory instead of the dump directory. As the bounds file is irrelevant when just checking, the simplest fix is to not read the bounds file when checking.
Reviewed by: markj MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D14383
show more ...
|
#
6026dcd7 |
| 13-Feb-2018 |
Mark Johnston <markj@FreeBSD.org> |
Add support for zstd-compressed user and kernel core dumps.
This works similarly to the existing gzip compression support, but zstd is typically faster and gives better compression ratios.
Support
Add support for zstd-compressed user and kernel core dumps.
This works similarly to the existing gzip compression support, but zstd is typically faster and gives better compression ratios.
Support for this functionality must be configured by adding ZSTDIO to one's kernel configuration file. dumpon(8)'s new -Z option is used to configure zstd compression for kernel dumps. savecore(8) now recognizes and saves zstd-compressed kernel dumps with a .zst extension.
Submitted by: cem (original version) Relnotes: yes Sponsored by: Dell EMC Isilon Differential Revision: https://reviews.freebsd.org/D13101, https://reviews.freebsd.org/D13633
show more ...
|
#
82725ba9 |
| 23-Nov-2017 |
Hans Petter Selasky <hselasky@FreeBSD.org> |
Merge ^/head r325999 through r326131.
|
#
8a16b7a1 |
| 20-Nov-2017 |
Pedro F. Giffuni <pfg@FreeBSD.org> |
General further adoption of SPDX licensing ID tags.
Mainly focus on files that use BSD 3-Clause license.
The Software Package Data Exchange (SPDX) group provides a specification to make it easier f
General further adoption of SPDX licensing ID tags.
Mainly focus on files that use BSD 3-Clause license.
The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts.
Special thanks to Wind River for providing access to "The Duke of Highlander" tool: an older (2014) run over FreeBSD tree was useful as a starting point.
show more ...
|