lkmpg icon indicating copy to clipboard operation
lkmpg copied to clipboard

procfs3.ko used by -1

Open tclee060219sat opened this issue 2 years ago • 2 comments

The sudo insmod procfs3.ko command hangs the Ubuntu 5.19.0-38-generic laptop. In another terminal, the lsmod|egrep procfs3 execution shows:

$ lsmod|egrep procfs3
procfs3                16384  -1
$ sudo rmmod procfs3

I discovered the solution to this problem is the power-cycle of this laptop. I am seeking a more efficient solution.

tclee060219sat avatar Apr 04 '23 00:04 tclee060219sat

It seems like when the lsmod calls to the procfs_open and procfs_close, it doesn't increase but decreases the counter. Currently, I don't have the v5.19 environment, so I cannot figure out why this happened.

linD026 avatar Apr 27 '23 03:04 linD026

A module reference count of -1, visible both in /sys/module//refcnt and in lsmod’s output, means that the module is currently unloading.

If a module’s reference count stays at -1, that indicates a problem — dmesg should tell you more.

tclee060219sat avatar Apr 28 '23 00:04 tclee060219sat