Tracing memory address access in kernel

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

 



Hello,

I am facing issue of memory corruption where only one field of
allocated structure is getting corrupted. I have bio structure and one
of the page in bio vector is getting set to NULL.

crash> struct bio_vec 0xffff88009dc5eb00

struct bio_vec {
  bv_page = 0xffffea000a434b80,
  bv_len = 4096,
  bv_offset = 0
}

crash> struct bio_vec 0xffff88009dc5eb10
struct bio_vec {
  bv_page = 0x0,
  bv_len = 4096,
  bv_offset = 0

}

crash> struct bio_vec 0xffff88009dc5eb20
struct bio_vec {
  bv_page = 0xffffea000a467500,
  bv_len = 4096,
  bv_offset = 0

}

I have allocated contagious memory for bio vectors. As you can see in
second bio vector bv_page is getting set to NULL. This address is
valid till the time I do some operations in my module. After some
operations bv_page is getting set to NULL. Other fields are having
valid data.

Is there any debugging technique / tool available which will track
access to specific memory access?  I would like to dump stack every
time bv_page is accessed or modified

Thanks and regards,
Pritam Bankar

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
https://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