All of lore.kernel.org
 help / color / mirror / Atom feed
* [KJ] Re: Audit return codes (Question about getting started)
@ 2005-04-20 18:19 Jesse Millan
  2005-04-20 18:38 ` Randy.Dunlap
  2005-04-20 18:42 ` Nishanth Aravamudan
  0 siblings, 2 replies; 3+ messages in thread
From: Jesse Millan @ 2005-04-20 18:19 UTC (permalink / raw)
  To: kernel-janitors


I just want to make sure that I understand the process correctly:

For example, take kalloc(). If I find instances that that the return
value is not checked (and I have) i.e. they call kalloc() and
automatically assume success and dereference the allocated memory
without checking for NULL. I would insert to proper error checking,
create the patch and mail the patch to kernel-janitors@lists.osdl.org?

Is this the process?

Thanks.


Jesse Millan wrote:
> Is anyone already working on this?
> 
> Its the first item in the TODO list:
> 
> http://janitor.kernelnewbies.org/TODO
> 
> I am looking for an easy project. I am a total newbie, but I want to get
> involved with Kernel Janitors.
> 
> Thanks.
> 

-- 
Jesse Millan
CNS Unix Team
Portland State University
Phone: (503) 725-3285
Fax: (503) 725-6487
Mobile: (503) 453-0748
GPG key: www.system-calls.com/gpg.php

Recursive: Adj. See Recursive.

_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
http://lists.osdl.org/mailman/listinfo/kernel-janitors

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

* Re: [KJ] Re: Audit return codes (Question about getting started)
  2005-04-20 18:19 [KJ] Re: Audit return codes (Question about getting started) Jesse Millan
@ 2005-04-20 18:38 ` Randy.Dunlap
  2005-04-20 18:42 ` Nishanth Aravamudan
  1 sibling, 0 replies; 3+ messages in thread
From: Randy.Dunlap @ 2005-04-20 18:38 UTC (permalink / raw)
  To: kernel-janitors

[-- Attachment #1: Type: text/plain, Size: 1330 bytes --]

On Wed, 20 Apr 2005 11:19:15 -0700 Jesse Millan wrote:

| I just want to make sure that I understand the process correctly:
| 
| For example, take kalloc(). If I find instances that that the return

take kmalloc() or kcalloc()  [there is no kalloc()]

| value is not checked (and I have) i.e. they call kalloc() and
| automatically assume success and dereference the allocated memory
| without checking for NULL. I would insert to proper error checking,
| create the patch and mail the patch to kernel-janitors@lists.osdl.org?

and usually cc: the maintainer...

| Is this the process?

That's the process, but there is a caveat.  (There are
probably caveats for everything...)

During kernel/system init, if an allocation fails,
it's useless to report an error and try to keep going,
so just let it fail by referencing an invalid memory
address (like near NULL).

If you find places after system init has completed
that do not check for allocation failures, then they
should be fixed (in general); i.e., send patches and we
will evaluate them.


| Jesse Millan wrote:
| > Is anyone already working on this?
| > 
| > Its the first item in the TODO list:
| > 
| > http://janitor.kernelnewbies.org/TODO
| > 
| > I am looking for an easy project. I am a total newbie, but I want to get
| > involved with Kernel Janitors.

---
~Randy

[-- Attachment #2: Type: text/plain, Size: 167 bytes --]

_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
http://lists.osdl.org/mailman/listinfo/kernel-janitors

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

* Re: [KJ] Re: Audit return codes (Question about getting started)
  2005-04-20 18:19 [KJ] Re: Audit return codes (Question about getting started) Jesse Millan
  2005-04-20 18:38 ` Randy.Dunlap
@ 2005-04-20 18:42 ` Nishanth Aravamudan
  1 sibling, 0 replies; 3+ messages in thread
From: Nishanth Aravamudan @ 2005-04-20 18:42 UTC (permalink / raw)
  To: kernel-janitors

[-- Attachment #1: Type: text/plain, Size: 710 bytes --]

* Jesse Millan <jesse.millan@gmail.com> [2005-0420 11:19:15 -0700]:

> 
> I just want to make sure that I understand the process correctly:
> 
> For example, take kalloc(). If I find instances that that the return
> value is not checked (and I have) i.e. they call kalloc() and
> automatically assume success and dereference the allocated memory
> without checking for NULL. I would insert to proper error checking,
> create the patch and mail the patch to kernel-janitors@lists.osdl.org?
> 
> Is this the process?

Generally, yes. You probably should verify the patch doesn't wrap in
your mail & applies cleanly by mailing to yourself.

Otherwise, send patches to the KJML and wait for replies.

Thanks,
Nish

[-- Attachment #2: Type: text/plain, Size: 167 bytes --]

_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
http://lists.osdl.org/mailman/listinfo/kernel-janitors

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

end of thread, other threads:[~2005-04-20 18:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-20 18:19 [KJ] Re: Audit return codes (Question about getting started) Jesse Millan
2005-04-20 18:38 ` Randy.Dunlap
2005-04-20 18:42 ` Nishanth Aravamudan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.