Skip to content

Conversation

@IulianOlaru249
Copy link
Owner

No description provided.

Signed-off-by: Iulian Olaru <iulianolaru249@yahoo.com>
The bug is raised beacause sleeping is not allowed in atomic context.

BUG: scheduling while atomic: insmod/228/0x00000002
1 lock held by insmod/228

Signed-off-by: Iulian Olaru <iulianolaru249@yahoo.com>
root@qemux86:~/skels/kernel_api# rmmod 3-memory/memory.ko
pid: 228, timestamp: -55002
pid: 0, timestamp: -55002
pid: 1, timestamp: -55002
pid: 2, timestamp: -55002

Signed-off-by: Iulian Olaru <iulianolaru249@yahoo.com>
before exiting: [
(1, 4294964624)
(0, 4294964624)
(205, 4294964624)
(236, 4294964623)
]

Signed-off-by: Iulian Olaru <iulianolaru249@yahoo.com>
To prevent removal, the value count should be above 6.

after first add: [
(1, 1823)
(0, 1823)
(205, 1823)
(239, 1823)
]

Signed-off-by: Iulian Olaru <iulianolaru249@yahoo.com>
after first add: [
(1, 4294951615)
(0, 4294951615)
(204, 4294951615)
(229, 4294951615)
]

after removing expired: [
(229, 4294951615)
]

Signed-off-by: Iulian Olaru <iulianolaru249@yahoo.com>
after new addition: [
(234, 396)
(1, 396)
(0, 396)
(203, 396)
(231, 4294962409)
]

lsmod:
    Tainted: G
list_test 16384 0 - Live 0xd0848000 (O)
list_sync 16384 1 list_test, Live 0xd0859000 (O)

unloading:
The unloading of the test module triggers the remove_expired
function from ex 6.
The module for ex6 is still loaded.

lsmod
    Tainted: G
list_sync 16384 0 - Live 0xd0859000 (O)

Signed-off-by: Iulian Olaru <iulianolaru249@yahoo.com>
@lkt-bot
Copy link

lkt-bot commented Mar 16, 2022

@dbaluta
Copy link

dbaluta commented Mar 16, 2022

Looks good to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants