Skip to content

Conversation

@jstancek
Copy link
Contributor

Unload of kpatch module (and kpatch_shadow_hash table) before
all shadow variables free requests are processed can lead to
kernel crash.

Add rcu_barrier() to kpatch_exit() to wait for all outstanding
RCU callbacks to complete.

Resolves #468
Signed-off-by: Jan Stancek jstancek@redhat.com

Unload of kpatch module (and kpatch_shadow_hash table) before
all shadow variables free requests are processed can lead to
kernel crash.

Add rcu_barrier() to kpatch_exit() to wait for all outstanding
RCU callbacks to complete.

Signed-off-by: Jan Stancek <jstancek@redhat.com>
@jpoimboe
Copy link
Member

👍

sjenning added a commit that referenced this pull request Nov 21, 2014
wait for outstanding shadow variables free requests in kpatch_exit
@sjenning sjenning merged commit 7fed248 into dynup:master Nov 21, 2014
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.

crash with shadow variables on kpatch module unload

3 participants