public inbox for speakup@linux-speakup.org
 help / color / mirror / Atom feed
* OT: looking for resources
@  Don Raikes
   ` Chris Brannon
  0 siblings, 1 reply; 8+ messages in thread
From: Don Raikes @  UTC (permalink / raw)
  To: Speakup is a screen review system for Linux.

Hi,

 

I am taking a class in cyber security, and one of our assignments is to do some hooking into the Linux kernel.

 

While I have taken a class in c programming and have spent the last several days scouring the internet for resources, I am wondering if anyone on this list might have some good tips on getting started with kernel programming real fast.

 

Unfortunately the assignment is due on Sunday, but my biggest problem at the moment is allocating memory in the kernel.

 

If someone has some ideas or is willing to help a future cyber warrior get started, you can email me off list.

 

HYPERLINK "mailto:Don.raikes@oracle.com"Don.raikes@oracle.com

 

btw: I am using an older version of ubuntu for this assignment (ubuntu 9, I believe).

-- 
Best Regards, Donald

HYPERLINK "http://www.oracle.com/" \nOracle
Donald raikes | Accessibility Specialist/ QA Engineer
Phone: HYPERLINK "tel:+15202717608"+15202717608 | Mobile: HYPERLINK "tel:+15202717608"+15202717608 
Oracle Quality Assurance
| Tucson, Arizona 

HYPERLINK "http://www.oracle.com/commitment" \nGreen Oracle

Oracle is committed to developing practices and products that help protect the environment

 

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: OT: looking for resources
   OT: looking for resources Don Raikes
@  ` Chris Brannon
     ` Don Raikes
  0 siblings, 1 reply; 8+ messages in thread
From: Chris Brannon @  UTC (permalink / raw)
  To: Speakup is a screen review system for Linux.

Don Raikes <don.raikes@oracle.com> writes:

> While I have taken a class in c programming and have spent the last
> several days scouring the internet for resources, I am wondering if
> anyone on this list might have some good tips on getting started with
> kernel programming real fast.

> Unfortunately the assignment is due on Sunday, but my biggest problem
> at the moment is allocating memory in the kernel.

I learned from a book called Linux Device Drivers.
It's available online in HTML format.  Just use Google.
If you want plain text, ask me off-list.
Unfortunately, the book was written for the 2.6.x kernels, and its age
is starting to show.  In fact, I don't think the sample programs will
still compile without some modification.

HTH,
-- Chris

^ permalink raw reply	[flat|nested] 8+ messages in thread

* RE: OT: looking for resources
   ` Chris Brannon
@    ` Don Raikes
       ` Jason White
  0 siblings, 1 reply; 8+ messages in thread
From: Don Raikes @  UTC (permalink / raw)
  To: Speakup is a screen review system for Linux.

Thanks chris,

Fortunately I am working with a 2.6.28 kernel.
-----Original Message-----
From: Chris Brannon [mailto:chris@the-brannons.com] 
Sent: Wednesday, July 17, 2013 7:07 PM
To: Speakup is a screen review system for Linux.
Subject: Re: OT: looking for resources

Don Raikes <don.raikes@oracle.com> writes:

> While I have taken a class in c programming and have spent the last 
> several days scouring the internet for resources, I am wondering if 
> anyone on this list might have some good tips on getting started with 
> kernel programming real fast.

> Unfortunately the assignment is due on Sunday, but my biggest problem 
> at the moment is allocating memory in the kernel.

I learned from a book called Linux Device Drivers.
It's available online in HTML format.  Just use Google.
If you want plain text, ask me off-list.
Unfortunately, the book was written for the 2.6.x kernels, and its age is starting to show.  In fact, I don't think the sample programs will still compile without some modification.

HTH,
-- Chris
_______________________________________________
Speakup mailing list
Speakup@linux-speakup.org
http://linux-speakup.org/cgi-bin/mailman/listinfo/speakup

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: OT: looking for resources
     ` Don Raikes
@      ` Jason White
         ` Don Raikes
         ` Chris Brannon
  0 siblings, 2 replies; 8+ messages in thread
From: Jason White @  UTC (permalink / raw)
  To: speakup

Don Raikes <don.raikes@oracle.com> wrote:
> Thanks chris,
> 
> Fortunately I am working with a 2.6.28 kernel.

If you have access to bookshare.org, you can also read Bovet and Cesati,
Understanding the Linux Kernel, 3rd ed. (O'Reilly). It covers 2.6.11.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* RE: OT: looking for resources
       ` Jason White
@        ` Don Raikes
         ` Chris Brannon
  1 sibling, 0 replies; 8+ messages in thread
From: Don Raikes @  UTC (permalink / raw)
  To: Speakup is a screen review system for Linux.

Yes I found that on safari as well.
-----Original Message-----
From: Jason White [mailto:jason@jasonjgw.net] 
Sent: Wednesday, July 17, 2013 8:52 PM
To: speakup@linux-speakup.org
Subject: Re: OT: looking for resources

Don Raikes <don.raikes@oracle.com> wrote:
> Thanks chris,
> 
> Fortunately I am working with a 2.6.28 kernel.

If you have access to bookshare.org, you can also read Bovet and Cesati, Understanding the Linux Kernel, 3rd ed. (O'Reilly). It covers 2.6.11.

_______________________________________________
Speakup mailing list
Speakup@linux-speakup.org
http://linux-speakup.org/cgi-bin/mailman/listinfo/speakup

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: OT: looking for resources
       ` Jason White
         ` Don Raikes
@        ` Chris Brannon
           ` Jason White
  1 sibling, 1 reply; 8+ messages in thread
From: Chris Brannon @  UTC (permalink / raw)
  To: Speakup is a screen review system for Linux.

Jason White <jason@jasonjgw.net> writes:

> If you have access to bookshare.org, you can also read Bovet and Cesati,
> Understanding the Linux Kernel, 3rd ed. (O'Reilly). It covers 2.6.11.

The Linux Device Drivers book is on Bookshare as well.
If I remember correctly, Understanding the Linux Kernel explains kernel
internals, rather than the procedures involved in kernel programming.
In other words, Understanding the Linux Kernel deals with theory, and
Linux Device Drivers deals with practice.
That's how it looked to me, at least.
I suspect that the two texts complement each other very well.

-- Chris

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: OT: looking for resources
         ` Chris Brannon
@          ` Jason White
             ` Don Raikes
  0 siblings, 1 reply; 8+ messages in thread
From: Jason White @  UTC (permalink / raw)
  To: speakup

Chris Brannon <chris@the-brannons.com> wrote:
 
> The Linux Device Drivers book is on Bookshare as well.
> If I remember correctly, Understanding the Linux Kernel explains kernel
> internals, rather than the procedures involved in kernel programming.

It has been used by the authors to teach an operating system course, if I
remember rightly.
> In other words, Understanding the Linux Kernel deals with theory, and
> Linux Device Drivers deals with practice.
> That's how it looked to me, at least.
> I suspect that the two texts complement each other very well.

There is also, from the same source, Christian Benvenuti, Understanding Linux
Network Internals (O'Reilly).


^ permalink raw reply	[flat|nested] 8+ messages in thread

* RE: OT: looking for resources
           ` Jason White
@            ` Don Raikes
  0 siblings, 0 replies; 8+ messages in thread
From: Don Raikes @  UTC (permalink / raw)
  To: Speakup is a screen review system for Linux.

Wow,  this group is great!

I got my kmalloc to work, figured out I had the test for success backward :-(

Now that I have memory allocated, I am trying to copy a character array from userspace into kernel space with the command:

If (copy_from_user(&tbuf, buf, count))

Which according to my printk statements succeeds. However, I then get a kernel page fault and the whole thing comes crashing down.
Any suggestions on how to debug this?
The only thing I can see in the dump is that it looks like it is in kfree.
-----Original Message-----
From: Jason White [mailto:jason@jasonjgw.net] 
Sent: Wednesday, July 17, 2013 9:15 PM
To: speakup@linux-speakup.org
Subject: Re: OT: looking for resources

Chris Brannon <chris@the-brannons.com> wrote:
 
> The Linux Device Drivers book is on Bookshare as well.
> If I remember correctly, Understanding the Linux Kernel explains 
> kernel internals, rather than the procedures involved in kernel programming.

It has been used by the authors to teach an operating system course, if I remember rightly.
> In other words, Understanding the Linux Kernel deals with theory, and 
> Linux Device Drivers deals with practice.
> That's how it looked to me, at least.
> I suspect that the two texts complement each other very well.

There is also, from the same source, Christian Benvenuti, Understanding Linux Network Internals (O'Reilly).

_______________________________________________
Speakup mailing list
Speakup@linux-speakup.org
http://linux-speakup.org/cgi-bin/mailman/listinfo/speakup

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~ UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
 OT: looking for resources Don Raikes
 ` Chris Brannon
   ` Don Raikes
     ` Jason White
       ` Don Raikes
       ` Chris Brannon
         ` Jason White
           ` Don Raikes

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 read-only IMAP folder(s) and NNTP newsgroup(s).