lkml.org 
[lkml]   [2001]   [Dec]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectSystem Freeze in 2.4.2-2 (RedHat 7.1)
Date
I'm experiencing a system freeze (no oops message) in RedHat Linux 7.1 when
calling the function devinet_ioctl() with the SIOCSIFADDR command from
within a kernel module. The function is called within the scope of
userspace addressing in the following manner.

int devinet_ioctl_wrapper(unsigned int cmd, struct ifreq *arg)
{
int res;

mm_segment_t oldfs = get_fs();
set_fs(get_ds());
res = devinet_ioctl(cmd,arg);
set_fs(oldfs);

return res;
}

This is how ipconfig.c illustrates how to use this function from within a
kernel module, see ic_dev_ioctl() function in the source file.

When running in the scope of a kgdb patched kernel, an assertion is flagged
the first (and only first) time this function is called from within my
kernel module for skb_alloc being called non-atomically with interrupts
enabled. But, allowing the kernel to continue from this point, there is no
system freeze and everything appears to operate according to design.

Is there anything I am supposed to do before calling this function?


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

\
 
 \ /
  Last update: 2005-03-22 13:13    [W:0.024 / U:0.216 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site