These are two simple modules to reproduce a problem with the
post_handler on kprobes found on i386 architecture.  Build the modules
with:

make  -C /lib/modules/`uname -r`/build M=`pwd` modules

One modules works fine:

/sbin/insmod kprobe_post_handler_work.ko
/sbin/rmmod kprobe_post_handler_work

The other module will die when the probe fires:

/sbin/insmod kprobe_post_handler_broke.ko
/sbin/rmmod kprobe_post_handler_broke

There shouldn't be a need for the pre_handler when using the post_handler.

-Will





