Comments (2)
Nov 23, 2022 (which was before we implemented kprobe self-test via 26f36ed)
Without deferred panic yet, testing with echo 0 > /sys/kernel/debug/kprobes/enabled
, I am getting this transferred to the remote (tested this twice - once with kernel.panic=-1
and once with kernel.panic=0
- same result):
1669221616777553,1669221579179197,404779645,6,317,404779215,-;Kprobes globally disabled
1669221626697537,1669221589102050,414702497,2,318,414702399,-;LKRG: ALERT: DETECT: Kernel: _stext hash changed unexpectedly
whereas the full messages would be:
[ 404.779215] Kprobes globally disabled
[ 414.702399] LKRG: ALERT: DETECT: Kernel: _stext hash changed unexpectedly
[ 414.707913] LKRG: ALERT: DETECT: Kernel: 1 checksums changed unexpectedly
[ 414.707949] LKRG: ALERT: BLOCK: Kernel: 1 checksums changed unexpectedly
[ 414.707988] Kernel panic - not syncing: Kernel: 1 checksums changed unexpectedly
followed by a backtrace.
As to deferred panic, I am wondering whether we should limit that to LKRG-induced panics or maybe hook into the kernel's panic code (or something it calls) and similarly defer non-LKRG panics (only the final stopping/rebooting, but not the messages). For example, we could have a wait-until-sent-or-timeout loop in a callback we'd register with kmsg_dump_register
(an exported symbol across our supported kernels).
from lkrg.
Nov 28, 2022
we could have a wait-until-sent-or-timeout loop in a callback we'd register with
kmsg_dump_register
I've just experimented with this. First, by code review those callbacks are made too late for us - after shutdown of SMP, whereas we'd want our network sending code to run on another CPU because the one panic'ing is in an unsuitable state (was already in an unknown state, and is further modified by the panic in progress). Second, in my testing the callback is somehow not called at all - which I couldn't figure out yet.
from lkrg.
Related Issues (20)
- Logger: lkrg-logctl: Add more features
- Logger: Add man pages
- Logger: Close orphaned connections
- Logger: Support log rotation
- Logger: Re-enable daemonization, add privilege dropping HOT 1
- Logger: Consider logging locally-generated messages along with received ones
- Logger, RPM: Add packaging of userspace logger tools HOT 1
- Logger: Add systemd unit file HOT 3
- Logger: Add config file HOT 1
- Logger: Make logs group-readable
- Net: Skip unregister_console() if we never reached register_console()
- DETECT: Task: 'off' flag corruption for pid HOT 15
- mkosi-mainline W: See /var/tmp/mkosi-djpik_46/root/debootstrap/debootstrap.log for details (possibly the package gpgv is at fault) HOT 5
- Add knob(s) to limit Netfilter, Netlink, or all CAP_NET_ADMIN access from containers HOT 1
- CI: arm32 test fails to install/load lkrg.ko HOT 4
- LKRG: FATAL: Can't find 'tracepoints_mutex' HOT 6
- Rebuild LKRG against determined randomized kernel layout
- Net: Set TCP_NODELAY
- add-export.sh broken as static export check is enforced in newer kernel. HOT 8
- Inconsistent use of get_seccomp_filter vs. __put_seccomp_filter HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lkrg.