test7-pre3 panic in sock_alloc

From: Mike Galbraith (mikeg@weiden.de)
Date: Sun Aug 13 2000 - 03:44:28 EST


Hi Dave,

This is probably one of those 'already fixed' thingies. My box
panics on boot in sock_alloc ala..

0xc01cc7da sock_alloc+0x1a
0xc0205080 netlink_kernel_create+0x20
0xc0b1dee3 rtnetlink_init+0x20
0xc031dae6 sock_init+0x4e
0xc030ee95 do_basic_setup+0x2d
0xc139dfec init+0x14
0xc0108e4a kernel_thread+0x32

..so I did the below. It's ;-) obviously correct as not only does it
compile now, the panic went away and boot proceeded all the way into
an infinite loop in flush_old_exec().

        -Mike

--- linux-2.4.0-test7-pre3.ikd.mike/net/ipv4/netfilter/ipt_owner.c.org Sun Aug 13 08:28:13 2000
+++ linux-2.4.0-test7-pre3.ikd.mike/net/ipv4/netfilter/ipt_owner.c Sun Aug 13 08:28:44 2000
@@ -51,7 +51,7 @@
 
         read_lock(&tasklist_lock);
         for_each_task(p) {
- struct file *files;
+ struct files_struct *files;
                 if (p->session != sid)
                         continue;
 
--- linux-2.4.0-test7-pre3.ikd.mike/net/socket.c.org Sun Aug 13 08:49:19 2000
+++ linux-2.4.0-test7-pre3.ikd.mike/net/socket.c Sun Aug 13 08:49:56 2000
@@ -1712,6 +1712,8 @@
 
         proto_init();
 
+ register_filesystem(&sock_fs_type);
+ sock_mnt = kern_mount(&sock_fs_type);
         /*
          * The netlink device handler may be needed early.
          */
@@ -1725,8 +1727,6 @@
 #ifdef CONFIG_NETFILTER
         netfilter_init();
 #endif
- register_filesystem(&sock_fs_type);
- sock_mnt = kern_mount(&sock_fs_type);
 }
 
 int socket_get_info(char *buffer, char **start, off_t offset, int length)

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue Aug 15 2000 - 21:00:29 EST