Re: kernel vm question

From: David Schultz (das_at_FreeBSD.ORG)
Date: 01/27/05

  • Next message: Brian Fundakowski Feldman: "Re: kernel vm question"
    Date: Thu, 27 Jan 2005 14:22:01 -0500
    To: Jacques Fourie <jacques.fourie@gmail.com>
    
    

    On Thu, Jan 27, 2005, Jacques Fourie wrote:
    > Hi,
    >
    > Yes, I am trying to patch a piece of code in the kernel. The strange
    > thing is that this code works without a problem on FreeBSD 4.8 - has
    > the VM system changed to such an extent between 4.8 and 4.9 that the
    > pages in the kernel code segment are not writeable anymore?
    >
    > Thanks for the bit about the compiler optimization - at least I
    > understand that part now :)

    The idea that the compiler is responsible for the different
    behavior between 4.8 and 4.9 is just a theory, but it really
    doesn't matter; it's not so easy to dynamically change the code
    for a function. In addition to the protection bits, you also have
    to worry about synchronization with calls to that function, and
    about the possibility that a processor may have the old code in
    its instruction cache.
    _______________________________________________
    freebsd-hackers@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
    To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"


  • Next message: Brian Fundakowski Feldman: "Re: kernel vm question"

    Relevant Pages

    • Re: 2.6.11.8 + UML/x86_64 (2.6.12-rc3+) = oops
      ... The code to allow user space to set kernel gs ... >> Are you sure you did not apply any strange UML related patches ... > The only extra patch applied on top of what is on the web page (as per ... But even if I fixed that then it will not help you run UML, ...
      (Linux-Kernel)
    • Re: Nobody should ever need to patch the kernel!!
      ... just look around for the most famous linux kernel patches... ... | You cannot enable shfs mounts without a patch... ... are you finding that is needed to add a new filesystem? ...
      (comp.os.linux.development.system)
    • Re: kernel vm question
      ... I am trying to patch a piece of code in the kernel. ... pages in the kernel code segment are not writeable anymore? ... Thanks for the bit about the compiler optimization - at least I ... you get a page fault because you're ...
      (freebsd-hackers)
    • Re: buildworld error (CVS july 4)
      ... Thanks for the patch. ... It indeed allowed me to compile world and kernel. ...
      (freebsd-stable)
    • Re: RT patch acceptance
      ... judge the complexity of a design for that type of system. ... claim that you cannot judge the complexity of a kernel modification. ... Since the patch in question doesn't actually need that information to ... nanokernel's API up to date with additions to Linux's API that RT people ...
      (Linux-Kernel)