From: Domen Puncer <domen@coderock.org>
To: kernel-janitors@vger.kernel.org
Subject: [Kernel-janitors] Lets update our TODO
Date: Sat, 26 Jun 2004 15:44:48 +0000 [thread overview]
Message-ID: <20040626154447.GB1706@masina> (raw)
[-- Attachment #1: Type: text/plain, Size: 3214 bytes --]
Hi.
It's terrible, please help updating it.
(It can be a real PITA, when someone new comes, and can't pick any real
work from TODO)
Changes:
register_reboot_notifier() always returns 0
skb_alloc doesn't exist
there is no get_free_pages() (replace it with __get_free_page[s]?())
init_etherdev() doesn't exist
ips, ip2main look bogus, ips_detect does not kmalloc anything;
There's a comment in isapnp/core.c that release_region's were added
(dated 2001-06-03!).
proc_register() is now static, used by internal procfs routines.
loops_per_sec is no more.
Domen
--- kj-todo 2004-06-26 17:37:16.000000000 +0200
+++ kj-todo-new 2004-06-26 17:36:56.000000000 +0200
@@ -15,26 +15,17 @@
--------------------------------------------------------------------------
Audit return codes (and handle failure correctly) for..
- request_region()
-- register_reboot_notifier()
- request_irq()
-- kmalloc(), vmalloc(), skb_alloc(), etc
+- kmalloc(), vmalloc(), etc.
- register_netdev() has to be checked as well
- misc_register() (yes, it can fail, murphy's law applies here as well)
- scsi_register()
-- proc_*_create()
+- create_proc_*()
- pci_map_* might return 0 for a valid mapping.
Some code tests mapping for a non-zero value, which is incorrect.
-- get_free_pages()
-- init_etherdev()
- drivers allocating net_device with init_etherdev doesn't need zeroing it
- (init_etherdev does this for us)
+- __get_free_pages() and __get_free_page()
- ioremap() -- Some are using this as a pointer, which is wrong.
-SUSPECTS:
-- drivers/scsi/ips.c for resource leaks (ips_release doesn't seems
- to release all the kmalloc memory it got in ips_detect. (quick look)
-- drivers/char/ip2main.c (init_etherdev)
-
-----------------------------------------------------------------------------
Balancing functions.
Make sure calls to certain functions are matched by the relevant function at
@@ -48,14 +39,10 @@
- check that net_device interrupt functions use dev_kfree_skb_irq and not
just dev_kfree_skb
-SUSPECTS:
-- check isapnp.c: doesn't release regions on failure
-
-----------------------------------------------------------------------------
Remove unneeded historic code / New API conversions.
- checking for NULL on probe routines for net drivers
- convert drivers to new PCI API
-- proc_register() is dead. Use create_proc_read_entry() instead. (from Al Viro on lkml)
- Replace uses of suser() and fsuser() with capability checks.
- get rid of save_flags_cli, use local_irq_save instead
- get rid of check_region, use just request_region checking its return (2.2
@@ -154,9 +141,6 @@
-----------------------------------------------------------------------------
- prumpf suggested:
-- make sure drivers never read loops_per_sec - it might change under
- them (prumpf did this in 2.2.18pre series, need forward port to 2.4)
-
- fix watchdog drivers to use link order rather than explicit
initialization calls (i810 is particularly broken)
@@ -209,6 +193,8 @@
}
remove_wait_queue(&waitqueue, &wait);
+(see replyes, this is still buggy)
+
When you want to handle signals you can check for them before or after the
condition check. Also use TASK_INTERRUPTIBLE in this case.
[-- 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
next reply other threads:[~2004-06-26 15:44 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-26 15:44 Domen Puncer [this message]
-- strict thread matches above, loose matches on Subject: below --
2004-07-05 13:39 [Kernel-janitors] Lets update our TODO maximilian attems
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=20040626154447.GB1706@masina \
--to=domen@coderock.org \
--cc=kernel-janitors@vger.kernel.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 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.