What is the memory region ?

2013-03-07 Thread Jacky
Dear all, This is the Program Header for cat info: readelf -l /bin/cat ... Program Headers: Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align PHDR 0x34 0x08048034 0x08048034 0x00120 0x00120 R E 0x4 INTERP 0x000154

Re: What is the memory region ?

2013-03-07 Thread Prabhu nath
Looks like they have added a new section GNU_RELRO in the later versions. The one you are referring is read-only section. It would be nice if you share the section header table. Plz see inline Regards, Prabhunath G Linux Trainer Bangalore On Thu, Mar 7, 2013 at 3:31 PM, Jacky

Re: Several unrelated beginner questions.

2013-03-07 Thread Prabhakar Lad
Hi Konstantin, On Thu, Mar 7, 2013 at 4:49 AM, Konstantin Kowalski kostya-...@mail.ru wrote: Hello everyone, I am interested in Linux kernel programming (and OS kernels and general), and I am currently reading several books about Linux kernel. I have a few questions about it: 1.)

Re: zap_low_mappings

2013-03-07 Thread ishare
On Thu, Mar 07, 2013 at 12:34:27AM -0500, valdis.kletni...@vt.edu wrote: On Thu, 07 Mar 2013 12:48:06 +0800, ishare said: because all the pde (0-768) are set to 0x0 ,so no phsical pages are mapping to these pde . isn't it? The pdes don't end at 768. Think about what pde numbers

Re:Re: What is the memory region ?

2013-03-07 Thread Jacky
Thanks Prabhunath! The following is section header table: == readelf -S /bin/cat There are 28 section headers, starting at offset 0xb260: Section Headers: [Nr] Name TypeAddr OffSize ES Flg Lk Inf Al [ 0] NULL

Disabling interrupts and masking interrupts

2013-03-07 Thread Kevin Wilson
Hello, what is the difference between disabling interrupts and masking interrupts ? Disabling interrupts is done, AFAIK, with irq_disable(). (see below) Can someone gives an example of how to mask interrupts with x86/x86_64 ? irq_disable() in x86 goes to native_irq_disable(), which eventually

Is this normal or wrong?

2013-03-07 Thread ishare
In init procedure ,I use kmem_cache_alloc to apply for memory to locate a inode struct. it returns to me a inode whose i_dentry element cantain a struct list_head pointing to address 0x3, Is the address within low momery resonable or illegal? thanks!

Re: Disabling interrupts and masking interrupts

2013-03-07 Thread anish singh
On Thu, Mar 7, 2013 at 7:28 PM, Kevin Wilson wkev...@gmail.com wrote: Hello, what is the difference between disabling interrupts and masking interrupts ? Disabling interrupts is done, AFAIK, with irq_disable(). Disabling interrupts means that you have disabled the source of interrupt. Masking

Re: Disabling interrupts and masking interrupts

2013-03-07 Thread Kevin Wilson
Hi. First: Thanks, Anish, for your quick response. Does this mean that once you are disabling interrupts, these interrupts are lost ? even later, when we will enable interrupts, the interrupts from the past that should have been created (but interrupts were disabled at that time interval) are in

Re: Disabling interrupts and masking interrupts

2013-03-07 Thread anish singh
On Thu, Mar 7, 2013 at 8:47 PM, Kevin Wilson wkev...@gmail.com wrote: Hi. First: Thanks, Anish, for your quick response. Does this mean that once you are disabling interrupts, these interrupts are lost ? even later, when we will enable interrupts, the interrupts from the past that should

Re: Disabling interrupts and masking interrupts

2013-03-07 Thread Valdis . Kletnieks
On Thu, 07 Mar 2013 17:17:19 +0200, Kevin Wilson said: Does this mean that once you are disabling interrupts, these interrupts are lost ? even later, when we will enable interrupts, the interrupts from the past that should have been created (but interrupts were disabled at that time

Re: Disabling interrupts and masking interrupts

2013-03-07 Thread Dave Hylands
Hi, On Thu, Mar 7, 2013 at 8:53 AM, valdis.kletni...@vt.edu wrote: On Thu, 07 Mar 2013 17:17:19 +0200, Kevin Wilson said: Does this mean that once you are disabling interrupts, these interrupts are lost ? even later, when we will enable interrupts, the interrupts from the past that

Re: Disabling interrupts and masking interrupts

2013-03-07 Thread Valdis . Kletnieks
On Thu, 07 Mar 2013 09:28:58 -0800, Dave Hylands said: In my experience, edges triggered interrupts are always latched by the HW when they arrive. If another edge comes along between the initial edge and the time that the interrupt is cleared, then this second edge is lost. The fact that an

Re: Disabling interrupts and masking interrupts

2013-03-07 Thread Dave Hylands
Hi, Sorry about my previous post in HTML. On Thu, Mar 7, 2013 at 9:40 AM, valdis.kletni...@vt.edu wrote: On Thu, 07 Mar 2013 09:28:58 -0800, Dave Hylands said: In my experience, edges triggered interrupts are always latched by the HW when they arrive. If another edge comes along between

signals handling: kill() successful, but nothing delivered

2013-03-07 Thread michi1
Hi! I am trying to test for signal handling race conditions (specifically, I suspect the kernel side of connect() does interesting things if the server response arrives while the program executes a signal handler) and want to flood a program with lots of signals. So I have run this: ---

Re: Re: What is the memory region ?

2013-03-07 Thread Prabhu nath
On Thu, Mar 7, 2013 at 7:38 PM, Jacky jackycli...@163.com wrote: Thanks Prabhunath! The following is section header table: == readelf -S /bin/cat There are 28 section headers, starting at offset 0xb260: Section Headers: [Nr] Name Type