Skip to content

livepatch-patch-hook: check for object->name before calling strcmp#505

Merged
sjenning merged 1 commit intodynup:masterfrom
flaming-toast:vmlinux_null_fix
Oct 16, 2015
Merged

livepatch-patch-hook: check for object->name before calling strcmp#505
sjenning merged 1 commit intodynup:masterfrom
flaming-toast:vmlinux_null_fix

Conversation

@flaming-toast
Copy link
Contributor

Fixes issue #494. A null pointer dereference can result with patch modules for multiple objects since the "vmlinux" patch object's "name" field is null. strcmp therefore crashes trying to compare object->name if the current object is vmlinux and the supplied "name" argument is not.
Check that object->name is not null before invoking strcmp.

Fixes issue dynup#494. A null pointer dereference can result with patch
modules for multiple objects since the "vmlinux" patch object's "name"
field is null. strcmp therefore crashes trying to compare object->name
if the current object is vmlinux and the supplied "name" argument is
not. Check that object->name is not null before invoking strcmp.
@jpoimboe
Copy link
Member

👍

sjenning added a commit that referenced this pull request Oct 16, 2015
livepatch-patch-hook: check for object->name before calling strcmp
@sjenning sjenning merged commit 3d97dbc into dynup:master Oct 16, 2015
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