Re: [C/R ARM][PATCH 1/3] ARM: Rudimentary syscall interfaces

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Oren Laadan
Date: Wednesday, March 24, 2010 - 8:53 am

Matt Helsley wrote:

Actually, the signal path doesn't have the syscall number, it has
a binary "in syscall" value.


vfork() uses freezer_do_not_count() to tell the freezer that it's
effectively frozen. It's also used by drivers/char/apm-emulation.c

Looking at calls to ptrace_notify(), ptrace_stop() and ptace_event(),
there are several places where a ptraced task can stop with TASK_TRACED
(which is good enough for the freezer), outside the signal handling
path.

This means that recording the syscall number for all these cases is
going to be tedious and intrusive.

I prefer to somehow figure out the syscall from the task's state or
pt_regs, or by (re)using the same assembly code that already does that.

Oren.

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[C/R ARM][PATCH 0/3] Linux Checkpoint-Restart - ARM port, Christoffer Dall, (Sun Mar 21, 6:06 pm)
[C/R ARM][PATCH 1/3] ARM: Rudimentary syscall interfaces, Christoffer Dall, (Sun Mar 21, 6:06 pm)
[C/R ARM][PATCH 2/3] ARM: Add the eclone system call, Christoffer Dall, (Sun Mar 21, 6:06 pm)
Re: [C/R ARM][PATCH 1/3] ARM: Rudimentary syscall interfaces, Russell King - ARM Linux, (Tue Mar 23, 1:53 pm)
Re: [C/R ARM][PATCH 2/3] ARM: Add the eclone system call, Russell King - ARM Linux, (Tue Mar 23, 2:06 pm)
Re: [C/R ARM][PATCH 3/3] c/r: ARM implementation of checkp ..., Russell King - ARM Linux, (Tue Mar 23, 2:18 pm)
Re: [C/R ARM][PATCH 1/3] ARM: Rudimentary syscall interfaces, Oren Laadan, (Wed Mar 24, 8:53 am)
Re: [C/R ARM][PATCH 2/3] ARM: Add the eclone system call, Sukadev Bhattiprolu, (Wed Mar 24, 11:19 am)
Re: [C/R ARM][PATCH 1/3] ARM: Rudimentary syscall interfaces, Christoffer Dall, (Wed Mar 24, 12:36 pm)
Re: [C/R ARM][PATCH 2/3] ARM: Add the eclone system call, Christoffer Dall, (Wed Mar 24, 12:42 pm)
Re: [C/R ARM][PATCH 3/3] c/r: ARM implementation of check ..., Christoffer Dall, (Wed Mar 24, 12:46 pm)
Re: [C/R ARM][PATCH 3/3] c/r: ARM implementation of check ..., Christoffer Dall, (Wed Mar 24, 1:48 pm)
Re: [C/R ARM][PATCH 1/3] ARM: Rudimentary syscall interfaces, Christoffer Dall, (Thu Mar 25, 3:29 am)
Re: [C/R ARM][PATCH 1/3] ARM: Rudimentary syscall interfaces, Christoffer Dall, (Thu Mar 25, 3:34 am)
Re: [C/R ARM][PATCH 3/3] c/r: ARM implementation of check ..., Christoffer Dall, (Sun Mar 28, 3:55 pm)