/proc/modules に (F) とマークされたモジュール

/proc/modules に (F) とマークされたモジュール

私の3.10システムでは、/proc/modulesにリストされているいくつかのモジュールが(F)で示されています。私はこの問題の原因を知りたい(F)。モジュールが強制的にロードされず、カーネルでビルドされたと確信しています。どのカーネルコードが/proc/modulesを生成するかを指摘できますか?

usb_storage 56610 0 - Live 0xffffffffa005d000 (F)

モジュールをアンロードして再ロードすると(F)が消えます。

ベストアンサー1

出力の列は/proc/modules次のとおりです。

usb_storage 56610 0    -   Live 0xffffffffa005d000 (F)
  (1)        (2) (3)  (4)  (5)         (6)         (7)

メモ:私は7列目にあると思われるものへの言及を見つけることができませんでしたが、6列目の説明(以下を参照)がそこに表示されている情報をカバーしていないので、私はそのようにマークしました。

抜粋http://www.centos.org/docs/5/html/Deployment_Guide-en-US/s1-proc-topfiles.html

  • 最初の列にはモジュール名が含まれます。
  • 2番目の列はモジュールのメモリサイズ(バイト単位)を表します。
  • 3番目の列には、現在ロードされているモジュールインスタンスの数が一覧表示されます。 0の値はアンロードされたモジュールを示します。
  • 4 番目の列は、モジュールが実行する他のモジュールに依存しているかどうかを示し、他のモジュールを一覧表示します。
  • 5番目の列には、モジュールのロード状態が一覧表示されます。 Live、Loading、または Unloading のみ可能な値です。
  • 6番目の列には、ロードされたモジュールの現在のカーネルメモリオフセットが一覧表示されます。この情報は、デバッグ目的で使用することも、oprofile などのプロファイリングツールで使用することもできます。

私はラベル付きの列(つまり7番目の列)が(F)このファイルのここから来たと思います。panic.c

/**
 *  print_tainted - return a string to represent the kernel taint state.
 *
 *  'P' - Proprietary module has been loaded.
 *  'F' - Module has been forcibly loaded.
 *  'S' - SMP with CPUs not designed for SMP.
 *  'R' - User forced a module unload.
 *  'M' - System experienced a machine check exception.
 *  'B' - System has hit bad_page.
 *  'U' - Userspace-defined naughtiness.
 *  'D' - Kernel has oopsed before
 *  'A' - ACPI table overridden.
 *  'W' - Taint on warning.
 *  'C' - modules from drivers/staging are loaded.
 *  'I' - Working around severe firmware bug.
 *  'O' - Out-of-tree module has been loaded.
 *  'E' - Unsigned module has been loaded.
 *
 *  The string is overwritten by the next call to print_tainted().
 */

これらのコードは、次のビットマスクを表します。kernel.txtと参照文書。

tainted:

 Non-zero if the kernel has been tainted.  Numeric values, which
 can be ORed together:

    1 - A module with a non-GPL license has been loaded, this
        includes modules with no license.
        Set by modutils >= 2.4.9 and module-init-tools.
    2 - A module was force loaded by insmod -f.
        Set by modutils >= 2.4.9 and module-init-tools.
    4 - Unsafe SMP processors: SMP with CPUs not designed for SMP.
    8 - A module was forcibly unloaded from the system by rmmod -f.
   16 - A hardware machine check error occurred on the system.
   32 - A bad page was discovered on the system.
   64 - The user has asked that the system be marked "tainted".  This
        could be because they are running software that directly modifies
        the hardware, or for other reasons.
  128 - The system has died.
  256 - The ACPI DSDT has been overridden with one supplied by the user
         instead of using the one provided by the hardware.
  512 - A kernel warning has occurred.
 1024 - A module from drivers/staging was loaded.
 2048 - The system is working around a severe firmware bug.
 4096 - An out-of-tree module has been loaded.
 8192 - An unsigned module has been loaded in a kernel supporting module
        signature.

引用する

おすすめ記事