r/WatchPeopleCode • • Apr 13 '20

[C++, Kernel] Exploiting two kernel bugs in SerenityOS to get illegal root access, and then fixing each bug :)

https://youtu.be/jTTa8ehHrdM
29 Upvotes

7 comments sorted by

1

u/[deleted] Apr 14 '20

This was perhaps the most intimidating thing I ever watched. I am getting off my phone and going to code to distract me from this pervasive sense of inadequacy.

1

u/SerenityOS Apr 14 '20

Hi studentofplato! This stuff is a lot less intimidating when you work on low-level kernel code regularly. If you find it interesting, it's not terribly hard to get into, and there are many open source kernel projects where you can learn more. :)

1

u/[deleted] Apr 14 '20

I guess my biggest problem is feeling like I'm being pulled in a 100 different directions, as far as projects go. I don't know where to begin. I'd love to be assigned a relatively simple problem to solve that accomplished developers feel is beneath them. Do you have any concrete suggestions perhaps?

1

u/SerenityOS Apr 18 '20

No task worth doing is beneath a serious developer :)

That said, instead of being given some random task, my recommendation would be that you pick some software that you use regularly and grab the source code for it. Then build it yourself and mess around with it. Try to make some interesting change and see what happens. That's how I got started learning C++ many years ago, by messing around with KDE and trying to tweak little things.

2

u/[deleted] Apr 19 '20

This is a really good suggestion! I am trying to reflect on software that I use all the time and my first thought is the very browser I'm using to type this to you. Do you think there are any parts of it that would be ideal for me to begin learning about and playing with?

https://github.com/chromium/chromium

2

u/SerenityOS Apr 19 '20

Definitely. Browsers are huge systems built up of many small systems. There's all kinds of interesting stuff in there. Go for it bro :)

2

u/[deleted] Apr 19 '20

I see this link. I'm just going to dive in here, why not?! I'm patient, I'm just suffering paralysis from analysis, I think.

https://www.chromium.org/developers/learning-your-way-around-the-code