* Best approach to explore the linux source code
@ 2015-08-15 6:58 Umair Khan
2015-08-15 17:17 ` victorascroft at gmail.com
0 siblings, 1 reply; 3+ messages in thread
From: Umair Khan @ 2015-08-15 6:58 UTC (permalink / raw)
To: kernelnewbies
Hi everyone,
I'm a final year undergraduate student. I've been spending a lot of
time with OS books these days.
I've been reading about the internals of the Linux kernel and drivers
in the books. But, I've never really seen them in action except the
drivers. Hacking a driver is easy.
Is there any good approach/tutorial to walk me through the source code
of the kernel ?
Also, I'm using a self built linux kernel 4.2 on my laptop. Is there
any way that I can contribute upstream to the kernel. I'm using 4.2 in
the hope to find bugs in driver stuffs. I haven't found any yet.
Thanks
Umair
Delhi Technological University, India
^ permalink raw reply [flat|nested] 3+ messages in thread
* Best approach to explore the linux source code
2015-08-15 6:58 Best approach to explore the linux source code Umair Khan
@ 2015-08-15 17:17 ` victorascroft at gmail.com
2015-08-16 1:15 ` Kenneth Adam Miller
0 siblings, 1 reply; 3+ messages in thread
From: victorascroft at gmail.com @ 2015-08-15 17:17 UTC (permalink / raw)
To: kernelnewbies
On 15-08-15 12:28:06, Umair Khan wrote:
> Hi everyone,
>
> I'm a final year undergraduate student. I've been spending a lot of
> time with OS books these days.
> I've been reading about the internals of the Linux kernel and drivers
> in the books. But, I've never really seen them in action except the
> drivers. Hacking a driver is easy.
Hacking a driver is easy? :)
>
> Is there any good approach/tutorial to walk me through the source code
> of the kernel ?
There is only one approach to understanding any code. Reading the code
and understanding how different things interact. If you have doubts
you can always ask here.
Read Linux Device Drivers? Though that will still not prepare you
for actual code. Eudyptula Challenge?
>
> Also, I'm using a self built linux kernel 4.2 on my laptop. Is there
> any way that I can contribute upstream to the kernel. I'm using 4.2 in
> the hope to find bugs in driver stuffs. I haven't found any yet.
http://lxr.free-electrons.com/source/Documentation/SubmittingDrivers
http://lxr.free-electrons.com/source/Documentation/SubmittingPatches
Just running the kernel might not always point out bugs.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Best approach to explore the linux source code
2015-08-15 17:17 ` victorascroft at gmail.com
@ 2015-08-16 1:15 ` Kenneth Adam Miller
0 siblings, 0 replies; 3+ messages in thread
From: Kenneth Adam Miller @ 2015-08-16 1:15 UTC (permalink / raw)
To: kernelnewbies
Well, if you really only want to find bugs in kernel code (specifically
linux drivers) there was a recent white paper that came out that used
Dynamo Rio to instrument and analyze the kernel. You can (I think) trigger
simulated events to the kernel and compose a sort of fuzzing environment
against any given kernel code.
The problem with Dynamo Rio is there's currently really no Pin++, so if you
were to wish for something like a mature taint analysis or symbolic
emulation (or whatever else...) facilities that you can embed within your
own custom analyses it would be a costly manual labor operation.
On Sat, Aug 15, 2015 at 1:17 PM, <victorascroft@gmail.com> wrote:
> On 15-08-15 12:28:06, Umair Khan wrote:
> > Hi everyone,
> >
> > I'm a final year undergraduate student. I've been spending a lot of
> > time with OS books these days.
> > I've been reading about the internals of the Linux kernel and drivers
> > in the books. But, I've never really seen them in action except the
> > drivers. Hacking a driver is easy.
>
> Hacking a driver is easy? :)
>
> >
> > Is there any good approach/tutorial to walk me through the source code
> > of the kernel ?
>
> There is only one approach to understanding any code. Reading the code
> and understanding how different things interact. If you have doubts
> you can always ask here.
>
> Read Linux Device Drivers? Though that will still not prepare you
> for actual code. Eudyptula Challenge?
>
> >
> > Also, I'm using a self built linux kernel 4.2 on my laptop. Is there
> > any way that I can contribute upstream to the kernel. I'm using 4.2 in
> > the hope to find bugs in driver stuffs. I haven't found any yet.
>
> http://lxr.free-electrons.com/source/Documentation/SubmittingDrivers
> http://lxr.free-electrons.com/source/Documentation/SubmittingPatches
>
> Just running the kernel might not always point out bugs.
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20150815/18ce22c4/attachment.html
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-08-16 1:15 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-15 6:58 Best approach to explore the linux source code Umair Khan
2015-08-15 17:17 ` victorascroft at gmail.com
2015-08-16 1:15 ` Kenneth Adam Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).