Okay, will do.
Will clean this up.
<snipped>
Okay, I hadnt looked at install_special_mapping earlier so I will take a
look and incorporate it. However I am not clear at this point what
install_special_mapping is giving us here. Also install_special_mapping
is already defining its own vm_ops esp a close method thats doesnt seem
to be doing anything. So at this point I am not clear how we are link
the vm_ops, the close method and install_special_mapping.
Okay, will clean up.
Okay, will do.
Okay,
Okay will use the non-atomic set_bit.
<snipped>
For now, user_bkpt->vaddr will always be set when we are here.
However when we add uretprobe support, we would then get here with
user_bkpt->vaddr being NULL.
I would drop the check for now, but add it later when we add the return
probe support.
I had renamed the structure from ubp to user_bkpt based on your
comments. I had actually mentioned this in the summary mail that I had
sent on Jan 22 this year. I am fine to rename it to user_bp if that
helps but if you feel ubp is better, I can revert to ubp too.
I dont want the compiler to reorder the instructions and do the
assignment for user_bkpt to be done before we complete the copy above.
If the assignment happens before we copy the content into the slot,
someother thread that might hit the same probe actually things the slot
is ready and tries to jump to that slot even before the slot is
initialized.
Please let me know if I could have done it differently.
<snipped>
Okay, will do.
Yes, xol_validate_vaddr gets used in the next patch. So probably it can
be moved to the next patch.
--
Thanks and Regards
Srikar
--