Linux kernel, Linux general, OpenBSD, DragonflyBSD, FreeBSD, NetBSD, Applications and Utilities, GNU/Hurd, Windows, Hardware, KernelTrap Suggestions and Feedback, KernelTrap Changes and News

kernel on behalf of sleeping process

Submitted by Anonymous
on May 27, 2009 - 7:37am

Hi,

I was doing some debugging of my Linux-based target.

The PC value showed that the function executing is do_futex. I derived the thread_info and
task_struct pointers of "current" using the value of kernel stack-pointer.

The state field of task_struct showed that the process is in state TASK_UNINTERRUPTIBLE.

Load Balancing (2 adsl connections)

Submitted by Anonymous
on May 25, 2009 - 3:34pm

I used the example firewall from the openbsd faq:

lan_net = "192.168.1.0/24"
int_if = "em0"
ext_if1 = "fxp0"
ext_if2 = "fxp1"
ext_gw1 = "192.168.10.1"
ext_gw2 = "192.168.20.2"

# nat outgoing connections on each internet interface
nat on $ext_if1 from $lan_net to any -> ($ext_if1)
nat on $ext_if2 from $lan_net to any -> ($ext_if2)

# default deny
block in from any to any

kernell command line

Submitted by dmg
on May 25, 2009 - 8:51am
Linux

Hi,

I've put the linux to the embedded device. It use RedBoot bootloader to load the kernel and I can't change command line parameters that are provided to the kernel.

Now the params are: console=ttyS0,38400

What I need is: console=ttyS0,38400 root=/dev/mtdblock2 ro

XDM/WDM problems

Submitted by Anonymous
on May 25, 2009 - 3:46am

Hi,

I'm having problems trying to get WDM to run under NetBSD5. Startx works and a fluxbox session opens without problems, mouse working and everything.

XDM kinda works. Login screen appears, accepts username and password and loads a fluxbox session. Only problem is now the mouse doesnt work.

How to extract a shellcode from LKM properly using objdump

Submitted by Anonymous
on May 23, 2009 - 9:30pm
Linux

Hello,

I'm trying to dump a byte code from binary kernel module using objdump:

# objdump -D modul.ko

//Only important parts

modul.ko: file format elf32-i386

Disassembly of section .text:

00000000 :
0: 83 ec 04 sub $0x4,%esp
3: 64 a1 00 00 00 00 mov %fs:0x0,%eax
9: 8b 80 08 01 00 00 mov 0x108(%eax),%eax

How to test

Submitted by veeraiyan
on May 23, 2009 - 8:44am
Linux

Hi

guys i implemented new scheduler in the kernel-2.6.29 how to test the performance of the scheduler .can any one me
plz

Unknown symbol security_file_lock

Submitted by Anonymous
on May 22, 2009 - 6:34pm
Linux

Hi, I was trying to make my own filesystem module and I get this error when I try to compile it under vanilla kernel 2.6.24.

Note: I compiled under 2.6.19 to 2.6.23 and I don't get this error

>> Compilation:
WARNING: "security_file_lock" [/home/debian/myfs/myfs.ko] undefined!

>> Loading module (insmod myfs.ko):
[ 3326.280882] myfs: Unknown symbol security_file_lock

system call implementation

Submitted by veeraiyan
on May 22, 2009 - 7:49am
Linux

Hi

i am trying to implement a system call in linux kernel-2.6.29 but this file was missing /usr/src/linux/include/asm-i386/unistd.h

any idea
plz

Need help deciphring mcelog output

Submitted by Anonymous
on May 21, 2009 - 2:44am

Folks,

I have 5 machines getting the following errors:

here's what mcelog spat out

MCE 0
HARDWARE ERROR. This is *NOT* a software problem!
Please contact your hardware vendor
HARDWARE ERROR. This is *NOT* a software problem!
Please contact your hardware vendor
CPU 0 0 data cache bit57 = processor context corrupt
bit59 = misc error valid

crc error when uncompressing linux image

Submitted by rohitkugve
on May 19, 2009 - 2:57pm
Linux

Hi,
I compiled kernel 2.6.29 for ixp425 processor. When I load thy zImage and run on my board (which is an E2Brain module with ixp425 processor, called EB425, manufactured by Kontron), it says

Starting user's image 0 ...

Uncompressing Linux.............................................................

crc error

-- System halted

Scheduling in interrupt Kernel 2.4.19

Submitted by Anonymous
on May 18, 2009 - 6:26am
Linux

Hello,
I'm writing a char device module which should implement a cyclic buffer (with forced overwriting of older data). I want another module (a network device) to write on such cdev, while on the other hand I'd like to access the cdev with read operations from userspace.
On the network device I'm using sys_write (declared as extern) function,which seems the right function to do the job.

reserving memory for PCI device under 4GB in 16GB RAM PAE 32-bit system

Submitted by msz
on May 17, 2009 - 1:04pm
Linux

I am preparing a server for data acquisition from a big CCD camera. It uses PCI controllers which came with some software including a kernel driver module for 32-bit systems. Specs say Fedora 8 (2.6.26 kernel) but I found it working also in Centos 5.3 (2.6.18 PAE kernel). The driver requires that the appropriate amount of RAM is reserved for its use and it seems that it MUST be under 4GB.

kgdb on ARM

Submitted by DEF
on May 17, 2009 - 11:56am
Linux

Anyone got kgdb successfully patched on kernel 2.6.25.7 for ARM (arm-iwmmxt-linux-gnueabi)?

I get the following using 'linux-2.6.15.5-kgdb-2.4.tar.bz2' (couldn't find the exact kernel / patch?):

me@pc:~/sysbuild/linux-2.6.25.7$ sudo patch -p1 < linux-2.6.15.5-kgdb-2.4/core-lite.patch
patching file Documentation/DocBook/Makefile
Hunk #1 FAILED at 10.

MMC card locking

Submitted by tarigo
on May 15, 2009 - 11:54am
Linux

Hello all!
Does anybody know how to detect that MMC card is locked (by write-protection switch)? For example by ioctl or via sysfs?

P.S. I know that I could guess by write operations failure. :)

linux-netdev 82573E jumbo frames

Submitted by Anonymous
on May 15, 2009 - 10:09am
Linux

Hi Netdev,
Does the 82573E support jumbo frames,
I have about 130 Supermicro servers with this ethernet card, and im trying to slightly increase the mtu ie: babyjumbo.
I know that Intel does not support it, but comparing the FreeBsd em-6.9.8 driver to the linux e1000 shows that perhaps it is supported if ASPM is disabled.

if_em.c FreeBsd driver:

case e1000_82573: