Re: Mapping a memory address to all the processes using it

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 26 Feb 2014 14:52:09 -0800, Sandeep K Chaudhary said:

> I am working on a hack which requires me to find all the processes
> using a particular memory address. Lets say I get an MCE error
> containing a memory address. I want to use this address to find all
> the processes that might access it, and kill them before they do.
> Please let me know if this is possible using some already implemented
> routine.

You mean like this in-tree code?

config MEMORY_FAILURE
        depends on MMU
        depends on ARCH_SUPPORTS_MEMORY_FAILURE
        bool "Enable recovery from hardware memory errors"
        select MEMORY_ISOLATION
        help
          Enables code to recover from some memory failures on systems
          with MCA recovery. This allows a system to continue running
          even when some of its memory has uncorrected errors. This requires
          special hardware support and typically ECC memory.

Oh, and if you want to test your code, there's this one:

config HWPOISON_INJECT
        tristate "HWPoison pages injector"
        depends on MEMORY_FAILURE && DEBUG_KERNEL && PROC_FS
        select PROC_PAGE_MONITOR


Attachment: pgpUBqGcNUVcm.pgp
Description: PGP signature

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux