Skip to contentSkip to conversation

Documentation: sysrq: update description about sysrq crash

PATCH In review Gao Xiang 2 participants 2 messages Mar 9, 2021 – Mar 15, 2021 Documentation

lore
Share & tools
lore

Gao Xiang

author
#0 lore raw

PATCH 1/1 Documentation: sysrq: update description about sysrq crash

After commit 8341f2f222d7 ("sysrq: Use panic() to force a crash"), a crash was not generated by dereferencing a NULL pointer anymore.

Let's update documentation as well to make it less misleading.

Cc Matthias Kaehlcke <[email protected]>
Cc Greg Kroah-Hartman <[email protected]>
Cc Jonathan Corbet <[email protected]>
Cc Zefan Li <[email protected]>
---
 Documentation/admin-guide/sysrq.rst | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Documentation/admin-guide/sysrq.rst +2 -2
index 67dfa4c29093..60ce5f5ebab6 100644
@@ -90,8 +90,8 @@ Command	    Function
 ``b``	    Will immediately reboot the system without syncing or unmounting
             your disks.
 
-``c``	    Will perform a system crash by a NULL pointer dereference.
-            A crashdump will be taken if configured.
+``c``	    Will perform a system crash and a crashdump will be taken
+            if configured.
 
 ``d``	    Shows all locks that are held.
 
Signature · 1 line
2.27.0
maintainer
#1 lore raw
Quoted 19 lines · Gao Xiang

After commit 8341f2f222d7 ("sysrq: Use panic() to force a crash"), a crash was not generated by dereferencing a NULL pointer anymore.

Let's update documentation as well to make it less misleading.

Cc Matthias Kaehlcke <[email protected]>
Cc Greg Kroah-Hartman <[email protected]>
Cc Jonathan Corbet <[email protected]>
Cc Zefan Li <[email protected]>
---
 Documentation/admin-guide/sysrq.rst | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Documentation/admin-guide/sysrq.rst +0 -0
index 67dfa4c29093..60ce5f5ebab6 100644

Documentation/admin-guide/sysrq.rst Command Function · line 94

Quoted 7 lines
Documentation/admin-guide/sysrq.rst +2 -2
@@ -90,8 +90,8 @@ Command	    Function
 ``b``	    Will immediately reboot the system without syncing or unmounting
             your disks.
 
-``c``	    Will perform a system crash by a NULL pointer dereference.
-            A crashdump will be taken if configured.
+``c``	    Will perform a system crash and a crashdump will be taken
+            if configured.

Makes sense. Applied, thanks.

jon