{ "version": "https://jsonfeed.org/version/1.1", "user_comment": "This feed allows you to read the posts from this site in any feed reader that supports the JSON Feed format. To add this feed to your reader, copy the following URL -- https://matoken.org/blog/tag/magicksysrq/feed/json/ -- and add it your reader.", "home_page_url": "https://matoken.org/blog/tag/magicksysrq/", "feed_url": "https://matoken.org/blog/tag/magicksysrq/feed/json/", "language": "ja", "title": "magicksysrq – matoken's blog", "description": "Is there no plan B?", "icon": "https://matoken.org/blog/wp-content/uploads/2025/03/cropped-1865f695c4eecc844385acef2f078255036adccd42c254580ea3844543ab56d9.jpeg", "items": [ { "id": "http://matoken.org/blog/?p=1829", "url": "https://matoken.org/blog/2018/02/15/debian-sid-kernel-sysrq/", "title": "Debian sid\u306ekernel.sysrq\u306e\u5024\u304c\u5909\u308f\u3063\u305f?", "content_html": "

\u5148\u65e5Debian sid amd64\u74b0\u5883\u3067procps\u306e\u66f4\u65b0\u304c\u3042\u308a\u307e\u3057\u305f\uff0e

\n
\n
$ apt show procps\r\nPackage: procps\r\nVersion: 2:3.3.12-4\r\nPriority: important\r\nSection: admin\r\nMaintainer: Craig Small <csmall@debian.org>\r\nInstalled-Size: 712 kB\r\nProvides: watch\r\nDepends: libc6 (>= 2.15), libncurses5 (>= 6), libncursesw5 (>= 6), libprocps6, libtinfo5 (>= 6), lsb-base (>= 3.0-10), init-system-helpers (>= 1.29~)\r\nRecommends: psmisc\r\nConflicts: pgrep (<< 3.3-5), w-bassman (<< 1.0-3)\r\nBreaks: guymager (<= 0.5.9-1), open-vm-tools (<= 2011.12.20-562307-1)\r\nHomepage: https://gitlab.com/procps-ng/procps\r\nTag: admin::monitoring, implemented-in::c, interface::commandline,\r\n interface::text-mode, role::program, scope::utility,\r\n uitoolkit::ncurses, use::checking, use::monitor,\r\n works-with::software:running\r\nDownload-Size: 251 kB\r\nAPT-Manual-Installed: yes\r\nAPT-Sources: http://ftp.jp.debian.org/debian sid/main amd64 Packages\r\nDescription: /proc \u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u30e6\u30fc\u30c6\u30a3\u30ea\u30c6\u30a3\r\n \u672c\u30d1\u30c3\u30b1\u30fc\u30b8\u306f procfs \u3092\u95b2\u89a7\u3059\u308b\u305f\u3081\u306e\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u304a\u3088\u3073\u5168\u753b\u9762\u306e\u30e6\u30fc\u30c6\u30a3\r\n \u30ea\u30c6\u30a3\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002procfs \u3068\u306f "\u64ec\u4f3c\u7684\u306a" \u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u3067\u3001\u30ab\u30fc\u30cd\u30eb\u306b\u3088\r\n \u308a\u52d5\u7684\u306b\u751f\u6210\u3055\u308c\u307e\u3059\u3002\u30ab\u30fc\u30cd\u30eb\u306e\u30d7\u30ed\u30bb\u30b9\u30c6\u30fc\u30d6\u30eb\u5185\u306e\u30a8\u30f3\u30c8\u30ea\u306e\u72b6\u614b\u306b\u95a2\u3059\u308b\r\n \u60c5\u5831 (\u4f8b\u3048\u3070\u3001\u30d7\u30ed\u30bb\u30b9\u304c\u7a3c\u50cd\u4e2d\u3001\u505c\u6b62\u4e2d\u3001\u307e\u305f\u306f "\u30be\u30f3\u30d3" \u3067\u3042\u308b\u3001\u306a\u3069) \u304c\u63d0\r\n \u4f9b\u3055\u308c\u307e\u3059\u3002\r\n .\r\n \u672c\u30d1\u30c3\u30b1\u30fc\u30b8\u306b\u306f\u6b21\u306e\u3082\u306e\u304c\u542b\u307e\u308c\u307e\u3059: free, kill, pkill, pgrep, pmap, ps,\r\n pwdx, skill, slabtop, snice, sysctl, tload, top, uptime, vmstat, w, watch\u3002\r\n
\n
\n

\u66f4\u65b0\u306b\u4f34\u3044/etc/sysctl.conf\u306e\u66f4\u65b0\u304c\u3042\u308a\u307e\u3057\u305f\uff0e

\n
\n
\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb '/etc/sysctl.conf'\r\n ==> \u3053\u308c\u306f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u304b\u3089 (\u3042\u306a\u305f\u304b\u30b9\u30af\u30ea\u30d7\u30c8\u306b\u3088\u3063\u3066) \u5909\u66f4\u3055\u308c\u3066\u3044\u307e\u3059\u3002\r\n ==> \u30d1\u30c3\u30b1\u30fc\u30b8\u914d\u5e03\u5143\u304c\u66f4\u65b0\u7248\u3092\u63d0\u4f9b\u3057\u3066\u3044\u307e\u3059\u3002\r\n   \u3069\u3046\u3057\u307e\u3059\u304b? \u4ee5\u4e0b\u306e\u9078\u629e\u80a2\u304c\u3042\u308a\u307e\u3059:\r\n    Y \u304b I  : \u30d1\u30c3\u30b1\u30fc\u30b8\u30e1\u30f3\u30c6\u30ca\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\r\n    N \u304b O  : \u73fe\u5728\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u81ea\u5206\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u6b8b\u3059\r\n      D     : \u4e21\u30d0\u30fc\u30b8\u30e7\u30f3\u306e\u5dee\u7570\u3092\u8868\u793a\u3059\u308b\r\n      Z     : \u72b6\u6cc1\u3092\u8abf\u67fb\u3059\u308b\u305f\u3081\u306b\u30b7\u30a7\u30eb\u3092\u958b\u59cb\u3059\u308b\r\n \u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f\u73fe\u5728\u4f7f\u3063\u3066\u3044\u308b\u81ea\u5206\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u6b8b\u3057\u307e\u3059\u3002\r\n*** sysctl.conf (Y/I/N/O/D/Z) [\u30c7\u30d5\u30a9\u30eb\u30c8=N] ? D\r\n
\n
\n

\u5dee\u5206\u3092\u898b\u308b\u3068\u81ea\u5206\u3067\u7de8\u96c6\u3057\u305f\u90e8\u5206\u4ee5\u5916\u306f\u30b3\u30e1\u30f3\u30c8\u3060\u3051\u3060\u3063\u305f\u306e\u3067\u3059\u304c\uff0c\u6c17\u306b\u306a\u308b\u9805\u76ee\u304c\uff0e

\n
\n
@@ -61,18 +61,13 @@\r\n\r\n ###################################################################\r\n # Magic system request Key\r\n-# 0=disable, 1=enable all\r\n-# Debian kernels have this set to 0 (disable the key)\r\n-# See https://www.kernel.org/doc/Documentation/sysrq.txt\r\n+# 0=disable, 1=enable all, >1 bitmask of sysrq functions\r\n+# Debian kernels have this set to 438 which is the OR of:\r\n+#  64 = enable signalling of processes\r\n+#  128 = allow reboot/poweroff\r\n+#  256 = allow nicing of all RT tasks\r\n+#\r\n+# See https://www.kernel.org/doc/html/latest/admin-guide/sysrq.html\r\n # for what other values do\r\n-#kernel.sysrq=1\r\n+#kernel.sysrq=438\r\n
\n
\n

Magic system request Key\u306e\u9805\u76ee\u304c\u4ee5\u524d\u306f0 or 1\u3067\u6709\u52b9\u304b\u7121\u52b9\u5316\u306e\u307f\u3060\u3063\u305f\u3068\u601d\u3046\u306e\u3067\u3059\u304c\uff0c\u7d30\u304b\u304f\u6307\u5b9a\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u308b\u3088\u3046\u3067\u3059\uff0e

\n
\n

0 – disable sysrq completely
\n1 – enable all functions of sysrq
\n>1 – bitmask of allowed sysrq functions (see below for detailed function description):

\n
\n\n

\u3066\u3053\u3068\u3067kernel.sysrq=438\u306f16\u9032\u6570\u30670x1B6\u306a\u306e\u3067

\n
\n
$bc\r\nobase=16\r\n438\r\n1B6\r\n
\n
\n

\u4ee5\u4e0b\u304c\u6709\u52b9\u3068\u3044\u3046\u3053\u3068\u306e\u3088\u3046\u3067\u3059\uff0e

\n
\n

2 = 0x2 – enable control of console logging level
\n 4 = 0x4 – enable control of keyboard (SAK, unraw)
\n 16 = 0x10 – enable sync command
\n 32 = 0x20 – enable remount read-only
\n128 = 0x80 – allow reboot/poweroff
\n256 = 0x100 – allow nicing of all RT tasks

\n
\n

\u7121\u52b9\u306b\u306a\u3063\u3066\u3044\u308b\u306e\u306f\u4ee5\u4e0b\u306e\u9805\u76ee\uff0e

\n
\n

8 = 0x8 – enable debugging dumps of processes etc.
\n 64 = 0x40 – enable signalling of processes (term, kill, oom-kill)

\n
\n

kernel config\u3092\u898b\u308b\u3068\u3053\u306e\u9805\u76ee\u306b\u306a\u3063\u3066\u3044\u307e\u3059\uff0e\u5c11\u306a\u304f\u3068\u30824.13.0-1\u301c4.14.13-1\u4ee5\u964d\u306f\u540c\u3058\u307f\u305f\u3044\uff0e

\n
\n
$ zgrep ONFIG_MAGIC_SYSRQ /boot/config-`uname -r`\r\nCONFIG_MAGIC_SYSRQ=y\r\nCONFIG_MAGIC_SYSRQ_DEFAULT_ENABLE=0x01b6\r\nCONFIG_MAGIC_SYSRQ_SERIAL=y\r\n
\n
\n

\u3068\u3044\u3046\u3053\u3068\u3067\u30b3\u30e1\u30f3\u30c8\u304c\u5b9f\u969b\u306ekernel\u306e\u9805\u76ee\u3068\u540c\u3058\u306b\u306a\u3063\u305f\u3068\u3044\u3046\u3053\u3068\u307f\u305f\u3044\u306a\u306e\u3067\u52d5\u4f5c\u306f\u5909\u308f\u3089\u306a\u3044\u3088\u3046\u3067\u3059\uff0e

\n

\u8ffd\u8a18)

\n

\u6614\u4f7f\u3044\u65b9\u3092\u77e5\u308a\u305f\u304f\u3066\u8abf\u3079\u305f\u3068\u304d\u306b\u898b\u3064\u3051\u305f\u6587\u7ae0\u306f@miurahr\u3055\u3093\u7ffb\u8a33\u306e\u3082\u306e\u3067\u3057\u305f\uff0e\u305d\u306e\u5f8c #Koedolug \u3067\u672c\u4eba\u306b\u906d\u9047\uff0e

\n\n

\n", "content_text": "\u5148\u65e5Debian sid amd64\u74b0\u5883\u3067procps\u306e\u66f4\u65b0\u304c\u3042\u308a\u307e\u3057\u305f\uff0e\n\n$ apt show procps\r\nPackage: procps\r\nVersion: 2:3.3.12-4\r\nPriority: important\r\nSection: admin\r\nMaintainer: Craig Small <csmall@debian.org>\r\nInstalled-Size: 712 kB\r\nProvides: watch\r\nDepends: libc6 (>= 2.15), libncurses5 (>= 6), libncursesw5 (>= 6), libprocps6, libtinfo5 (>= 6), lsb-base (>= 3.0-10), init-system-helpers (>= 1.29~)\r\nRecommends: psmisc\r\nConflicts: pgrep (<< 3.3-5), w-bassman (<< 1.0-3)\r\nBreaks: guymager (<= 0.5.9-1), open-vm-tools (<= 2011.12.20-562307-1)\r\nHomepage: https://gitlab.com/procps-ng/procps\r\nTag: admin::monitoring, implemented-in::c, interface::commandline,\r\n interface::text-mode, role::program, scope::utility,\r\n uitoolkit::ncurses, use::checking, use::monitor,\r\n works-with::software:running\r\nDownload-Size: 251 kB\r\nAPT-Manual-Installed: yes\r\nAPT-Sources: http://ftp.jp.debian.org/debian sid/main amd64 Packages\r\nDescription: /proc \u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u30e6\u30fc\u30c6\u30a3\u30ea\u30c6\u30a3\r\n \u672c\u30d1\u30c3\u30b1\u30fc\u30b8\u306f procfs \u3092\u95b2\u89a7\u3059\u308b\u305f\u3081\u306e\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u304a\u3088\u3073\u5168\u753b\u9762\u306e\u30e6\u30fc\u30c6\u30a3\r\n \u30ea\u30c6\u30a3\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002procfs \u3068\u306f "\u64ec\u4f3c\u7684\u306a" \u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u3067\u3001\u30ab\u30fc\u30cd\u30eb\u306b\u3088\r\n \u308a\u52d5\u7684\u306b\u751f\u6210\u3055\u308c\u307e\u3059\u3002\u30ab\u30fc\u30cd\u30eb\u306e\u30d7\u30ed\u30bb\u30b9\u30c6\u30fc\u30d6\u30eb\u5185\u306e\u30a8\u30f3\u30c8\u30ea\u306e\u72b6\u614b\u306b\u95a2\u3059\u308b\r\n \u60c5\u5831 (\u4f8b\u3048\u3070\u3001\u30d7\u30ed\u30bb\u30b9\u304c\u7a3c\u50cd\u4e2d\u3001\u505c\u6b62\u4e2d\u3001\u307e\u305f\u306f "\u30be\u30f3\u30d3" \u3067\u3042\u308b\u3001\u306a\u3069) \u304c\u63d0\r\n \u4f9b\u3055\u308c\u307e\u3059\u3002\r\n .\r\n \u672c\u30d1\u30c3\u30b1\u30fc\u30b8\u306b\u306f\u6b21\u306e\u3082\u306e\u304c\u542b\u307e\u308c\u307e\u3059: free, kill, pkill, pgrep, pmap, ps,\r\n pwdx, skill, slabtop, snice, sysctl, tload, top, uptime, vmstat, w, watch\u3002\r\n\n\n\u66f4\u65b0\u306b\u4f34\u3044/etc/sysctl.conf\u306e\u66f4\u65b0\u304c\u3042\u308a\u307e\u3057\u305f\uff0e\n\n\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb '/etc/sysctl.conf'\r\n ==> \u3053\u308c\u306f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u304b\u3089 (\u3042\u306a\u305f\u304b\u30b9\u30af\u30ea\u30d7\u30c8\u306b\u3088\u3063\u3066) \u5909\u66f4\u3055\u308c\u3066\u3044\u307e\u3059\u3002\r\n ==> \u30d1\u30c3\u30b1\u30fc\u30b8\u914d\u5e03\u5143\u304c\u66f4\u65b0\u7248\u3092\u63d0\u4f9b\u3057\u3066\u3044\u307e\u3059\u3002\r\n \u3069\u3046\u3057\u307e\u3059\u304b? \u4ee5\u4e0b\u306e\u9078\u629e\u80a2\u304c\u3042\u308a\u307e\u3059:\r\n Y \u304b I : \u30d1\u30c3\u30b1\u30fc\u30b8\u30e1\u30f3\u30c6\u30ca\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\r\n N \u304b O : \u73fe\u5728\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u81ea\u5206\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u6b8b\u3059\r\n D : \u4e21\u30d0\u30fc\u30b8\u30e7\u30f3\u306e\u5dee\u7570\u3092\u8868\u793a\u3059\u308b\r\n Z : \u72b6\u6cc1\u3092\u8abf\u67fb\u3059\u308b\u305f\u3081\u306b\u30b7\u30a7\u30eb\u3092\u958b\u59cb\u3059\u308b\r\n \u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f\u73fe\u5728\u4f7f\u3063\u3066\u3044\u308b\u81ea\u5206\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u6b8b\u3057\u307e\u3059\u3002\r\n*** sysctl.conf (Y/I/N/O/D/Z) [\u30c7\u30d5\u30a9\u30eb\u30c8=N] ? D\r\n\n\n\u5dee\u5206\u3092\u898b\u308b\u3068\u81ea\u5206\u3067\u7de8\u96c6\u3057\u305f\u90e8\u5206\u4ee5\u5916\u306f\u30b3\u30e1\u30f3\u30c8\u3060\u3051\u3060\u3063\u305f\u306e\u3067\u3059\u304c\uff0c\u6c17\u306b\u306a\u308b\u9805\u76ee\u304c\uff0e\n\n@@ -61,18 +61,13 @@\r\n\r\n ###################################################################\r\n # Magic system request Key\r\n-# 0=disable, 1=enable all\r\n-# Debian kernels have this set to 0 (disable the key)\r\n-# See https://www.kernel.org/doc/Documentation/sysrq.txt\r\n+# 0=disable, 1=enable all, >1 bitmask of sysrq functions\r\n+# Debian kernels have this set to 438 which is the OR of:\r\n+# 64 = enable signalling of processes\r\n+# 128 = allow reboot/poweroff\r\n+# 256 = allow nicing of all RT tasks\r\n+#\r\n+# See https://www.kernel.org/doc/html/latest/admin-guide/sysrq.html\r\n # for what other values do\r\n-#kernel.sysrq=1\r\n+#kernel.sysrq=438\r\n\n\nMagic system request Key\u306e\u9805\u76ee\u304c\u4ee5\u524d\u306f0 or 1\u3067\u6709\u52b9\u304b\u7121\u52b9\u5316\u306e\u307f\u3060\u3063\u305f\u3068\u601d\u3046\u306e\u3067\u3059\u304c\uff0c\u7d30\u304b\u304f\u6307\u5b9a\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u308b\u3088\u3046\u3067\u3059\uff0e\n\n0 – disable sysrq completely\n1 – enable all functions of sysrq\n>1 – bitmask of allowed sysrq functions (see below for detailed function description):\n\n\nLinux Magic System Request Key Hacks \u2014 The Linux Kernel documentation\n\n\u3066\u3053\u3068\u3067kernel.sysrq=438\u306f16\u9032\u6570\u30670x1B6\u306a\u306e\u3067\n\n$bc\r\nobase=16\r\n438\r\n1B6\r\n\n\n\u4ee5\u4e0b\u304c\u6709\u52b9\u3068\u3044\u3046\u3053\u3068\u306e\u3088\u3046\u3067\u3059\uff0e\n\n2 = 0x2 – enable control of console logging level\n 4 = 0x4 – enable control of keyboard (SAK, unraw)\n 16 = 0x10 – enable sync command\n 32 = 0x20 – enable remount read-only\n128 = 0x80 – allow reboot/poweroff\n256 = 0x100 – allow nicing of all RT tasks\n\n\u7121\u52b9\u306b\u306a\u3063\u3066\u3044\u308b\u306e\u306f\u4ee5\u4e0b\u306e\u9805\u76ee\uff0e\n\n8 = 0x8 – enable debugging dumps of processes etc.\n 64 = 0x40 – enable signalling of processes (term, kill, oom-kill)\n\nkernel config\u3092\u898b\u308b\u3068\u3053\u306e\u9805\u76ee\u306b\u306a\u3063\u3066\u3044\u307e\u3059\uff0e\u5c11\u306a\u304f\u3068\u30824.13.0-1\u301c4.14.13-1\u4ee5\u964d\u306f\u540c\u3058\u307f\u305f\u3044\uff0e\n\n$ zgrep ONFIG_MAGIC_SYSRQ /boot/config-`uname -r`\r\nCONFIG_MAGIC_SYSRQ=y\r\nCONFIG_MAGIC_SYSRQ_DEFAULT_ENABLE=0x01b6\r\nCONFIG_MAGIC_SYSRQ_SERIAL=y\r\n\n\n\u3068\u3044\u3046\u3053\u3068\u3067\u30b3\u30e1\u30f3\u30c8\u304c\u5b9f\u969b\u306ekernel\u306e\u9805\u76ee\u3068\u540c\u3058\u306b\u306a\u3063\u305f\u3068\u3044\u3046\u3053\u3068\u307f\u305f\u3044\u306a\u306e\u3067\u52d5\u4f5c\u306f\u5909\u308f\u3089\u306a\u3044\u3088\u3046\u3067\u3059\uff0e\n\u8ffd\u8a18)\n\u6614\u4f7f\u3044\u65b9\u3092\u77e5\u308a\u305f\u304f\u3066\u8abf\u3079\u305f\u3068\u304d\u306b\u898b\u3064\u3051\u305f\u6587\u7ae0\u306f@miurahr\u3055\u3093\u7ffb\u8a33\u306e\u3082\u306e\u3067\u3057\u305f\uff0e\u305d\u306e\u5f8c #Koedolug \u3067\u672c\u4eba\u306b\u906d\u9047\uff0e\n\nJF: Linux Kernel 2.2 Documentation: sysrq.txt", "date_published": "2018-02-15T23:05:04+09:00", "date_modified": "2018-06-12T14:54:59+09:00", "authors": [ { "name": "matoken", "url": "https://matoken.org/blog/author/matoken/", "avatar": "https://secure.gravatar.com/avatar/38f5f3b575c5eb45cda6aa659bca119ac7a5e16b46565e869d0030e3bd66981d?s=512&d=mm&r=g" } ], "author": { "name": "matoken", "url": "https://matoken.org/blog/author/matoken/", "avatar": "https://secure.gravatar.com/avatar/38f5f3b575c5eb45cda6aa659bca119ac7a5e16b46565e869d0030e3bd66981d?s=512&d=mm&r=g" }, "tags": [ "magicksysrq", "Debian", "Linux", "sid" ] } ] }