Giter VIP home page Giter VIP logo

Comments (2)

jpoimboe avatar jpoimboe commented on June 21, 2024

Hm, maybe the "no changed functions were found" check happens before the "some unexpected section changed" check?

from kpatch.

jpoimboe avatar jpoimboe commented on June 21, 2024

Yeah, with a bigger patch that changes another non-kprobes function, I get the error I expected:

~ $ cat nmi.patch 
Index: src/arch/x86/kernel/nmi.c
===================================================================
--- src.orig/arch/x86/kernel/nmi.c
+++ src/arch/x86/kernel/nmi.c
@@ -146,6 +146,8 @@ int __register_nmi_handler(unsigned int
    if (!action->handler)
        return -EINVAL;

+   printk("a\n");
+
    spin_lock_irqsave(&desc->lock, flags);

    /*
@@ -518,6 +520,8 @@ do_nmi(struct pt_regs *regs, long error_

    inc_irq_stat(__nmi_count);

+   printk("nmi\n");
+
    if (!ignore_nmis)
        default_do_nmi(regs);

~ $ kpatch-build nmi.patch 
Using cache at /home/jpoimboe/.kpatch/3.13.10-200.fc20.x86_64/src
Testing patch file
patching file arch/x86/kernel/nmi.c
Building original kernel
Building patched kernel
Detecting changed objects
Rebuilding changed objects
Extracting new and modified ELF sections
nmi.o: changed function: __register_nmi_handler
nmi.o: changed function: unregister_nmi_handler
nmi.o: changed section .kprobes.text not selected for inclusion
/usr/local/libexec/kpatch/create-diff-object: unreconcilable difference
ERROR: kpatch build failed. Check /tmp/kpatch-build-1398785999.log for more details.

from kpatch.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.