• J
    livepatch: fix deferred module patching order · 99590ba5
    Josh Poimboeuf 提交于
    When applying multiple patches to a module, if the module is loaded
    after the patches are loaded, the patches are applied in reverse order:
    
      $ insmod patch1.ko
      [   43.172992] livepatch: enabling patch 'patch1'
    
      $ insmod patch2.ko
      [   46.571563] livepatch: enabling patch 'patch2'
    
      $ modprobe nfsd
      [   52.888922] livepatch: applying patch 'patch2' to loading module 'nfsd'
      [   52.899847] livepatch: applying patch 'patch1' to loading module 'nfsd'
    
    Fix the loading order by storing the klp_patches list in queue order.
    Signed-off-by: NJosh Poimboeuf <jpoimboe@redhat.com>
    Signed-off-by: NJiri Kosina <jkosina@suse.cz>
    99590ba5
core.c 19.4 KB