Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proof of work SO2, lab02 #1

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

Proof of work SO2, lab02 #1

wants to merge 7 commits into from

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.

3 participants