| #
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 ...
|
| #
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
|
| #
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 ...
|
| #
1d386b48
|
| 16-Aug-2023 |
Warner Losh <imp@FreeBSD.org> |
Remove $FreeBSD$: one-line .c pattern
Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
|
| #
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 ...
|
| #
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
|
| 29-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.
|
| #
81884a24
|
| 29-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 ...
|
| #
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 ...
|
| #
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 ...
|
| #
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 ...
|
| #
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
|
| #
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 ...
|
| #
1d386b48
|
| 16-Aug-2023 |
Warner Losh <imp@FreeBSD.org> |
Remove $FreeBSD$: one-line .c pattern
Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
|
| #
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 ...
|