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

kpatch_link_object error handling needs work #392

Closed
jpoimboe opened this issue Sep 2, 2014 · 5 comments · Fixed by #440
Closed

kpatch_link_object error handling needs work #392

jpoimboe opened this issue Sep 2, 2014 · 5 comments · Fixed by #440
Assignees

Comments

@jpoimboe
Copy link
Member

jpoimboe commented Sep 2, 2014

As reported in #384, the kpatch_link_object() error handling is all kinds of wrong and could result in improper calls to kpatch_ftrace_remove_func() and __symbol_put().

@cormander
Copy link
Contributor

@jpoimboe I feel like this is something that I can tackle; mind leaving this to me so you can focus on the harder stuff?

@jpoimboe
Copy link
Member Author

jpoimboe commented Sep 3, 2014

@cormander Sure! There's definitely no shortage of things for us to work on right now...

@jpoimboe
Copy link
Member Author

jpoimboe commented Sep 9, 2014

@cormander Are you actively working on this? If not I'll unassign the issue for now, to leave it open in case anybody else wants to tackle it in the mean time.

@cormander
Copy link
Contributor

@cormander Are you actively working on this? If not I'll unassign the issue for now, to leave it open in case anybody else wants to tackle it in the mean time.

I will be working on it this week.=

@jpoimboe
Copy link
Member Author

@cormander Still working on this?

@jpoimboe jpoimboe assigned jpoimboe and unassigned cormander Oct 2, 2014
jpoimboe added a commit to jpoimboe/kpatch that referenced this issue Oct 2, 2014
Fix the object unlink error handling so that each function cleans up
after itself properly.

Also use find_symbol() instead of __symbol_get() to make cleanup easier.
When patching a module we don't need a reference to each symbol, since
we already have done a try_module_get() on the module.

Fixes dynup#392.
jpoimboe added a commit to jpoimboe/kpatch that referenced this issue Oct 4, 2014
Fix the object unlink error handling so that each function cleans up
after itself properly.

Also use find_symbol() instead of __symbol_get() to make cleanup easier.
When patching a module we don't need a reference to each symbol, since
we already have done a try_module_get() on the module.

Fixes dynup#392.
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 a pull request may close this issue.

2 participants