Some Random Thoughts..
Just a place to put some random thoughts..

Match is getting interesting. India finally declared at 705/7. Sachin 241 not out and for once the tail wagged and wagged in style. Aussies started off well but at the end of the day the score was 342/6 with a real chance for India to win the series. Way to go guys! Actually I am feeling a little sorry for Steve. He shouldnt have declared his retirement before the start of the series.

Kaif is not fit for the ODIs and the jokers have sent Rohan Gavaskar to replace him. This is plain stupid. If I had a choice between Jr. Gavaskar and an orangutan who can say nothing but "Oook", I would have gone for the monkey! Parthiv Patel is anyday better than Jr.G and he proved this today. I think he should play in ODIs too.

--------------- change of topic -------------

Today I found out how linux kernel handles the bad addresses passed from userspace through a syscall. A bad address will always raise a page fault. There are three cases here :

1) the address is in the process address map but the corresponding page is not present (demand paging) or the page is read-only and process is trying to write (copy-on-write). This is handled in the vm subsystem.

2) Its a bad address resulting from bad programming (e.g. null pointer dereference). Kernel oops in this case.

3) Its a bad address passed in a syscall. There are certain well-known instructions in the kernel that are used to access the user memory (get_user() etc). If the faulting instruction falls into these well-known intructions, certain "fixup" code is executed.

In this third case, if the adress of the fixup code is changed (by writing a module), we can easily execute any code in the kernel by passing a non-existant pointer to the system call.

Amazing stuff. If you think I have come up with this idea on my own then you are over-estimating me. I read this in a phrack article. I am amazed.

--------- change of topic ------------------

All I can say is Oook!

For those who dont understand the "Oook" language, here is what it means in English :
"Today i finished 'Moving Pictures' by Terry Pratchett and started with 'Reaper man'. As usual the book was ok. Most of the discworld books dont have interesting plots but the way he writes is fun to read. And sometimes there is a philosophical touch which makes one think."
Match is getting interesting. India finally declared at 705/7. Sachin 241 not out and for once the tail wagged and wagged in style. Aussies started off well but at the end of the day the score was 342/6 with a real chance for India to win the series. Way to go guys! Actually I am feeling a little sorry for Steve. He shouldnt have declared his retirement before the start of the series.

Kaif is not fit for the ODIs and the jokers have sent Rohan Gavaskar to replace him. This is plain stupid. If I had a choice between Jr. Gavaskar and an orangutan who can say nothing but "Oook", I would have gone for the monkey! Parthiv Patel is anyday better than Jr.G and he proved this today. I think he should play in ODIs too.

--------------- change of topic -------------

Today I found out how linux kernel handles the bad addresses passed from userspace through a syscall. A bad address will always raise a page fault. There are three cases here :

1) the address is in the process address map but the corresponding page is not present (demand paging) or the page is read-only and process is trying to write (copy-on-write). This is handled in the vm subsystem.

2) Its a bad address resulting from bad programming (e.g. null pointer dereference). Kernel oops in this case.

3) Its a bad address passed in a syscall. There are certain well-known instructions in the kernel that are used to access the user memory (get_user() etc). If the faulting instruction falls into these well-known intructions, certain "fixup" code is executed.

In this third case, if the adress of the fixup code is changed (by writing a module), we can easily execute any code in the kernel by passing a non-existant pointer to the system call.

Amazing stuff. If you think I have come up with this idea on my own then you are over-estimating me. I read this in a phrack article. I am amazed.

--------- change of topic ------------------

All I can say is Oook!

For those who dont understand the "Oook" language, here is what it means in English :
"Today i finished 'Moving Pictures' by Terry Pratchett and started with 'Reaper man'. As usual the book was ok. Most of the discworld books dont have interesting plots but the way he writes is fun to read. And sometimes there is a philosophical touch which makes one think."

posted by rumplestiltskin @ 12:41 am 0 comments

0 Comments:


Post a Comment