View Issue Details

IDProjectCategoryView StatusLast Update
0016778administrationmirrorspublic2019-11-28 09:12
ReporterHW_GXD 
PriorityurgentSeveritymajorReproducibilityalways
Status newResolutionopen 
Platformaarch64OSCentOS Linux OS Versionrelease 7.7.1908
Product Version 
Target VersionFixed in Version 
Summary0016778: remove device failed: Device or resource busy
DescriptionExample code is as follows:
[root@localhost ]# cat hello/hello.c
#include <linux/init.h>
#include <linux/module.h>

static int __init hello_init(void) {
    printk(KERN_ALERT "Hello, world\n");
    return 0;
}

static void __exit hello_exit(void) {
    printk(KERN_ALERT "Goodbye, cruel world\n");
}

MODULE_LICENSE("Dual BSD/GPL");

module_init(hello_init);

module_exit(hello_exit);

Recurrence operations:
[root@localhost ]#insmod hinic.ko
[root@localhost ]#dmesg
[ 2479.030163] Hello, world
[root@localhost ]# rmmod hello
rmmod: ERROR: could not remove 'hello': Device or resource busy
rmmod: ERROR: could not remove module hello: Device or resource busy
Steps To Reproduce
Firstly, install the system.
Secondly, install the kernel driver: insmod hello.ko
Thirdly, remove it: rmmod hello
Additional InformationMy centos's version is :
[root@localhost ]# uname -a
Linux localhost.localdomain 4.18.0-80.7.2.el7.aarch64 #1 SMP Thu Sep 12 16:13:20 UTC 2019 aarch64 aarch64 aarch64 GNU/Linux
[root@localhost ]# cat /etc/centos-release
CentOS Linux release 7.7.1908 (AltArch)
TagsNo tags attached.

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2019-11-28 09:12 HW_GXD New Issue