kernel

How to load kernel into memory from CD-ROM using Assembly (NASM)

Hello Everyone, I'm writing a bootstrap and kernel for myself and both bootstrap and kernel will be burn on a CD-R and will function as a CD-live. It is not a linux CD-Live or something else,is totally my own bootloader and kernel. I do not want to use other booloaders (i.e. GRUB) so please don't suggest me to use them. Here is my ques...

For kernel/OS is C still it?

I like operating systems and would eventually like to become a OS developer mostly working on kernels. In the future will C still be the language of choice and what else should I be trying to learn? ...

.NET CLR that does not require an operating system?

In the world of Java, BEA (now Oracle) has created LiquidVM which doesn't require an OS. Likewise, there are a variety of open source projects including SANOS, JNODE OS, Project Guest VM, JavaOS, etc. Is there an equivalent being created for .NET? ...

Developing Kernels to support Multiple CPUs

I am looking to get into operating system kernel development and figured my contribution would be to extend the SANOS operating system in order to support multiple core machines. I have been reading books on operating systems (Tannenbaum) as well as studying how BSD and Linux have tackled this challenge but still am stuck on several conc...

Methodology for upgrading OS Kernel

I am looking to get into operating system kernel development and figured my contribution would be to extend the SANOS operating system in order to support JDK 1.6 and 1.7. I have been reading books on operating systems (Tannenbaum) as well as studying how BSD and Linux have tackled this challenge but still am stuck on several concepts. ...

Adding Blue Screen of Death to Non-Windows OS

I am looking to get into operating system kernel development and figured and have been reading books on operating systems (Tannenbaum) as well as studying how BSD and Linux have tackled this challenge but still am stuck on several concepts. If I wanted to mimic the Windows Blue Screen of Death on an operating system, would I simply put...

AIX kernel programming help needed

What is the system call table variable name in the AIX kernel? I know it's called sys_call_table[] in the Linux kernel. I am new to kernel programming. But I need to know in which variables in the kernel the system calls addresses are stored... ...

problems during linux kernel init

What are the possible culprits for crashes during kernel init? I am running a kernel that has initramfs, the inittab is very basic rcS (as sysinit) and getty (respawn). While booting I don't get any error message, however the init gives me this message: S0 respawning too fast: disabled for 5 minutes, where S0 is actually the respawn::g...

kernel stack for linux process

Is the kernel stack for all process shared or there is a seperate kernel stack for each process? If it is seperate for each process where is this stack pointer stored? In task_struct ? ...

Adding stackless threading to BSD Kernel?

IronPort developed a stackless threading model that allows the IronPort appliance to support more than 10,000 simultaneous connections in contrast to the 100 connections supported on a traditional OS. If one wanted to do the same but to make it open source, where should they start? ...

Incorporating I/O driven scheduling into OS Kernel

IronPort developed a high performance file system and an I/O driven scheduler optimized for the asynchronous nature of messaging (hence "Async"OS). If you wanted to do the same but make it open source, what exactly would need to change? ...

How to let kernel choose a port number in the range (1024,5000) in TCP socket programming

When I run the following code: struct sockaddr_in sin; int addrlen; addrlen=sizeof(sin); memset(&sin, 0, sizeof(sin)); sin.sin_family = AF_INET; sin.sin_addr.s_addr=inet_addr("123.456.789.112"); sin.sin_port=htons(0); // so that the kernel reserves a unique port for us sd_server = socket(PF_INET, SOCK_STREAM, 0); bind(...

Learning Kernel Programming

Guys, I want to learn linux kernel programming. What would be the starting points for that ? What could be some of the simpler problems to target ? thanks in advance ...

Oops: kernel access of bad area, sig: 11 - 'swapper' - killing interrupt handler

Hi all In an embedded linux environment (customized 2.4.25 on PowerPC) I get the following kernel panic after some hours: Oops: kernel access of bad area, sig: 11 NIP: C9471C7C XER: 20000000 LR: C0018C74 SP: C0198E20 REGS: c0198d70 TRAP: 0800 Not tainted MSR: 00009030 EE: 1 PR: 0 FP: 0 ME: 1 IR/DR: 11 DEAR: C9876FFF, ESR: 00000000 ...

How does iwlist() command scans the wireless networks??

I want to know how iwlist command scans the wireless networks available, in linux. I read its source code and there was an ioctl call using SIOCSIWSCAN to trigger the scan and SIOCGIWSCAN to get the scan results. But how the beacon frames are captured and analyzed by these system calls? ...

cscope or ctags why choose one over the other?

I primarily use vim / gvim as an editor and am looking at using a combination of lxr ( the Linux Cross Reference ) and either cscope or ctags for exploring the kernel source. However I haven't ever used either cscope or ctags and would like to hear why one might choose one over the other taking into consideration my use of vim as a prim...

set_memory_* functions in Linux Kernel >=2.6.25

Hi, I'm doing research about rootkits and I have received a lot of warnings like` "BUG: unable to handle kernel paging request at [addr]" when I tried to attach my own function to sys_call_table[__NR_read], for example. In kernels <=2.6.25, function change_page_attr() helped with changing page attributes of a certain address. However...

Custom prolog/epilog functions for profiling

Hello, Is it possible, with Visual Studio compilers, to write 2 functions that get called before calling into other functions and after the functions have executed? In gcc you could do that with __cyg_profile_func_*() functions: void __cyg_profile_func_enter(void *func_address, void *call_site ) __attrib...

Is it possible to debug a userland application from kernel land ?

Hey, I'm debugging some win32 application which has loads of anti-debugging, I've tried different stealth options w/ olly and IDA but none of them seem to work. I was wondering if it's possible to debug this userland app from kernelland so the app won't know it's being debugged ? if so - which debugger should I use ? ...

Windows Memory Mapped Files

Hi, I am trying to investigate the behaviour of the Windows Kernel with respect to Memory Mapped Files / Virtual Memory. Specifically I am interested in determining how frequently the contents of a memory mapped file are flushed (by Windows) to disk and what criterion Windows uses for deciding it is time to do so. I have done a bit of ...