public inbox for speakup@linux-speakup.org
 help / color / mirror / Atom feed
From: Don Raikes <don.raikes@oracle.com>
To: "Speakup is a screen review system for Linux."
	<speakup@linux-speakup.org>
Subject: RE: OT: looking for resources
Date: Wed, 17 Jul 2013 22:24:05 -0700 (PDT)	[thread overview]
Message-ID: <bd005e42-cdd6-4048-a226-885317fd5a8d@default> (raw)
In-Reply-To: <20130718041453.GA13547@jdc.jasonjgw.net>

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

      reply	other threads:[~ UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
 Don Raikes
 ` Chris Brannon
   ` Don Raikes
     ` Jason White
       ` Don Raikes
       ` Chris Brannon
         ` Jason White
           ` Don Raikes [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bd005e42-cdd6-4048-a226-885317fd5a8d@default \
    --to=don.raikes@oracle.com \
    --cc=speakup@linux-speakup.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).