The kernel of operating systems popularly known as Linux, or sometimes GNU/Linux.

learn more… | top users | synonyms

4
votes
0answers
28 views

How to enable random PIDs on Linux?

I'm currently comparing random PID implementation on OpenBSD, FreeBSD and Linux from security perspective. As long as OpenBSD and FreeBSD are concerned, my work is done. However, while the answer ...
3
votes
0answers
33 views

Linux does not reply to ARP request messages if requested IP address is associated with another (disabled) interface

I have a PC(kernel 3.2.0-23-generic) which has 192.168.1.2/24 configured to eth0 interface and also uses 192.168.1.1 and 192.168.1.2 addresses for tun0 interface: root@T42:~# ip addr show 1: lo: ...
3
votes
2answers
2k views

Ping IP works, nslookup fails. New Kernel

I am compiling my own 3.14 kernel. I fear I may have left out some important networking feature to get DNS working. I can't resolve domain names. I can ping my DNS server. I can resolve using that ...
3
votes
1answer
46 views

Linux doesn't drop FS Caches. Instead Memory starts Swapping

I'm quite confused about this behaviour of linux memory caching. total used free shared buffers cached Mem: 15953 14188 1765 64 ...
1
vote
0answers
32 views

Understand logging in Linux

As I understand, Linux kernel logs to /proc/kmsg file(mostly hardware-related messages) and /dev/log socket? Anywhere else? Are other applications also able to send messages to /proc/kmsg or /dev/log? ...
1
vote
2answers
31 views

Triggering hardware interrupts by connecting parallel port pins 9 and 10 does not work

I want to trigger hardware interrupts as described in the book Linux Device Drivers by connecting pins 9 and 10 with a wire. I tried that but apparently there's no interrupt beeing triggered: cat ...
3
votes
0answers
33 views

How to create Linux Kernel Headers from Linux Kernel Source?

I'm working with Tiny Core Linux and attempting to install Vmware Tools, which of course needs the Kernel Headers :-). It does not appear they have the Kernel Headers readily available in a package, ...
0
votes
1answer
483 views

custom kernel and firmware loading

After I have compiled my kernel, and when I type make modules_install, not only are the modules copied into /lib/modules/ but also firmware is copied into /lib/firmware/. The following is the end of ...
6
votes
1answer
3k views

How interpret kworker threads names?

On Linux 3.11.0-13-generic running on top of a dual socket Xeon X5650 hexa core board, htop shows different kworker threads. Sorted by names (I tweaked the result I am showing here a little bit to ...
10
votes
3answers
702 views

Using real time kernel headers to compile userspace code vs default headers

Per customer requirements, I installed CentOS 5.6 with the default kernel. With this kernel installed, the time.h file includes the #define CLOCK_MONOTONIC. Now, a real-time kernel was installed ...
2
votes
0answers
20 views

How to resolve dracut problem when intall Fedora 21

I'm Ubuntu User. But I wanted to change my OS from Ubuntu to Fedora. So I wanted to Fedora 21. But there is a problem. I'm using USB Drive to boot Fedora 21. When I try to install Fedora I get a ...
300
votes
7answers
26k views

How can I find the implementations of Linux kernel system calls?

I am trying to understand how a function, say mkdir, works by looking at the kernel source. This is an attempt to understand the kernel internals and navigate between various functions. I know mkdir ...
3
votes
2answers
169 views

What are the programs/commands which the magic SysRq key invoke?

From Magic SysRq key The magic SysRq key is a key combination understood by the Linux kernel, which allows the user to perform various low level commands regardless of the system's state. It ...
0
votes
1answer
14 views

what is tagging a socket in linux netfilter [closed]

What is tagging in linux kernel netfilter module? This is the reference code : ...
1
vote
2answers
69 views

What proportion of memory does the Linux kernel use of the installed RAM?

I'm developing a compute cluster and I'm trying to determine the maximum amount of RAM I can give to a single process. On a machine with 16GB of ram, the answer is that I can allocate (and touch) ...
0
votes
0answers
17 views

How SYN and ACK packets counted by the server(Linux)

I have a question about tcp layer of linux kernel. I want, Syn and ack packages received to server will be counted. where total_syn_count and total_ack_count are variables to be defined and will ...
4
votes
1answer
33 views

Do I have to publish kernel source if I release a custom kernel?

I have a kernel for an android phone ready for release. I always have the current source code already pushed to GitHub for release builds. However, I also have an experimental folder on my server ...
5
votes
1answer
1k views

Running bzImage in QEMU: Unable to mount root fs on unknown-block(0.0)

I compiled the kernel by doing make menuconfig and make. I was trying to run the bzImage in qemu, by doing qemu -kernel bzImage but it didn't work out with the error message: Unable to mount root fs ...
1
vote
1answer
527 views

DisplayPort and Intel HD cause GPU hangs

My system has problems with the displayport connection. This is indicated by several problems that, at the first glance, do not have anything in common. The reason why I claim DP for beeing the cause, ...
0
votes
0answers
53 views

SMB/CIFS mount not working with exec() call

To mount CIFS presently I use system() call in source, this works. If I try to run command manually on shell it works too. $ mount -t cifs //IP/dir /mnt -o user=name,pass=PASS,domain=mydomain,nounix ...
1
vote
1answer
32 views

Where is routing table stored internally in the Linux kernel?

When I execute route -n, from where exactly (from which structs) is the information displayed retrieved? I tried executing strace route -n but I didn't help me finding the right place it's stored.
1
vote
1answer
18 views

RHEL not booting with the updated kernel after upgrade [closed]

We have recently upgraded RHEL boxes, but the system only booted with the old kernel. Observation is that there is no link /etc/grub.conf to /boot/grub/grub.conf. Now, to boot the system with the new ...
32
votes
7answers
20k views

Linux Kernel: Good beginners' tutorial [closed]

I'm interested in modifying the kernel internals, applying patches, handling device drivers and modules, for my own personal fun. Is there a comprehensive resource for kernel hacking, intended for ...
18
votes
7answers
11k views

Is it possible to install the linux kernel alone?

I'm just curious if it's possible to install the linux kernel alone, or if you need to use one of the flavours. If it were possible, how would you do it? I don't need a detailed tutorial. I just want ...
0
votes
2answers
47 views

how to untar file in linux red hat?

I am compiling linux red hat stable kernel on red hat linux and the error which I am facing is as below
0
votes
1answer
21 views

Kernel modules for compiled kernel

I cannot find kernel-headers. For the first time I compiled and installed the latest kernel (4.0.3) on my Debian Wheezy, and now I am trying to install ndiswrapper using module assistant. For that, ...
0
votes
0answers
8 views

Can we trace back from a file object all the way back to a mm_struct who is indirectly pointing to it? [migrated]

I find this kernel structure (https://www.kernel.org/doc/gorman/html/understand/understand007.html). And I know the operating system will maintain a page cache for each file. So, through this ...
0
votes
0answers
12 views

Trying to use KDBG, but it produces error 11

I am trying to start kdbg on Ubuntu, but it produces this error message: MNG error 11: function is invalid at this point ; chunk MHDR; subcode 0:0 MNG error 11: function is invalid at this point ; ...
1
vote
1answer
1k views

How to fix make error “No rule to make target 'menuconfig'” when building a kernel for Beagleboard?

The aim is to build and install the USB Video Class (UVC) module, via make modules_install. I'm trying to configure the kernel via make menuconfig on Angstrom distribution, running on BeagleBoard-xM. ...
14
votes
4answers
6k views

Does Android really use the same kernel as Linux?

I read from somewhere that Android uses the Linux Kernel. Is it really true? I thought the Linux Kernel was meant for desktop operating systems.
2
votes
0answers
23 views

How to read the output of the show-memory-usage SysRq?

I couldn’t find any (recent) documentation on reading the output of the show-memory-usage SysRq (Alt+SysRq+m). So what can one learn from looking at it? Here is an example output form my box (Kernel ...
0
votes
0answers
18 views

Modifying the EXT2 Filesystem [migrated]

For a project I'm working on, I need to be able to modify the EXT2 filesystem. I have done extensive research, but as this is not a commonly required task, there seems to be very little helpful ...
0
votes
2answers
42 views

how to check a kernel version which was used when building package

I use apt when downloading packages from Ubuntu repositories. How can I check which kernel version was used when building package? When it is important (kernel version of the build server vs. kernel ...
0
votes
0answers
7 views

Where to find vma->fault()? [migrated]

I understand vma->fault() will take two arguments which are vma and vmf. But I am not sure what vma->fault() will do inside of itself because I cannot find the code or document that talks about ...
1
vote
1answer
585 views

Enable kernel's net_key, inet_esp, crypto_hmac modules for to use in a VPN

I'm trying to turn on modules for VPN so I followed this tutorial to compile new ubuntu kernel 3.8.6 . But the features I've turned on using make menuconfig seem not to be enabled. (the features I ...
2
votes
0answers
30 views

How to work with a kernel one has no information about?

I'm working with a system to automatically assemble Live CDs. It came packaged with a kernel (seemingly based on 3.13.11), that has been working without problems so far. I noticed that, when I try ...
2
votes
1answer
58 views

Change hidraw device from mouse to joystick

I have a wireless PS3 controller adapter that is plugged in to my Ubuntu 14.04 box. It has 2 modes: XInput and DInput, which as far as I can tell, it just passes two different vendor/product id's ...
0
votes
2answers
3k views

Error while installing wireless-bcm43142-dkms-6.20.55.19: dependency linux-headers is not satisfiable

I have to install a .deb file with the firmware for the wifi card (This is the name of the file: wireless-bcm43142-dkms-6.20.55.19_amd64.deb; I've downloaded the file from here: ...
0
votes
2answers
33 views

Find SAS controller that is well supported by the linux kernel

How can I find a SAS controller that is well supported by the official Linux kernel? The controller should use the PCIe bus and needs to connect one LTO-6 tape drive. I have looked through the ...
1
vote
1answer
561 views

Determine whether kernel built-in driver supports a device

I'm trying to find a way to accurately determine whether all the hardware on some system has a valid driver installed either via a kernel module or built-in to the kernel. I'm working with RHEL 5.5 ...
1
vote
0answers
29 views

How to get the mouse/keyboard raw events?

I want to intercept the raw events from the keyboard (or the mouse, eventually). I tried to use the /dev/input/[...] files, they are very practical and I can read the events of any key even caps lock ...
0
votes
0answers
19 views

Want a bash script for file system monitoring for multiple RHEL servers [duplicate]

I'm trying to prepare a bash script to monitor file system utilization for more than 80% on 20 RHEL 6 servers. Below is the script, #!/bin/bash ADMIN="abcd@zxy.com" ALERT=80 dt=`date '+%a %b %e %I:%M ...
9
votes
2answers
2k views

How do I get a linux kernel patch set from the mailing list?

I don't subscribe to the linux-kernel mailing list, but I want to get a set of patches that were posted a few weeks ago and apply them to my kernel for testing. I'm very familiar with patching, ...
1
vote
0answers
30 views

Understand Linux kernel virtual bridge port numbering

I have a Linux kernel virtual bridge which contains interfaces eth1 and tap0: # brctl show br0 bridge name bridge id STP enabled interfaces br0 8000.00016c404fa3 ...
0
votes
0answers
54 views

Gummiboot Kernel Parameters, Cannot find /boot/loader dir

I installed Gummi boot to my EUEFI partition which is sda1. when I do lsblk it show boot is mounted on sda2, which is also my root partition. when I ls '/boot' there is no loader dir. I need the ...
2
votes
2answers
551 views

No build scripts available when compiling module outside of Linux source tree

I am attempting to build a basic module outside of the Linux source tree (3.18.0-rc6). When I build it, I get an error saying it couldn't find scripts/... My directory setup looks like this ...
1
vote
2answers
1k views

File system CRC check

I know that before running the kernel, u-boot (the boot loader) will check the kernel image CRC. Only if it is correct it will go further, else it will give a "Bad CRC" error. I want to do same thing ...
1
vote
1answer
75 views

What happened after I upgraded the kernel version?

I have Linux Mint 17.1 Cinnamon version on my notebook HP Compaq 15-h050nl and about 1 month ago I upgraded the Linux Kernels to the current version (3.18.2-031802-generic) from the last version. ...
1
vote
0answers
6 views

Having problems with negative monitor channel, intimidated!

When I try this command: aireplay-ng -1 0 mon0 -a xx:xx:xx:xx:xx:xx I get this output: No source MAC (-h) specified. Using the device MAC (xx:xx:xx:xx:xx:xx) 17:51:23 Waiting for beacon frame ...