[FIX] interrupt checking from exception (for x86) 23/75623/3
authorVyacheslav Cherkashin <v.cherkashin@samsung.com>
Mon, 20 Jun 2016 15:23:04 +0000 (18:23 +0300)
committerDmitry Kovalenko <d.kovalenko@samsung.com>
Thu, 23 Jun 2016 15:00:32 +0000 (08:00 -0700)
commit332eeeab0456e0024e2238d3c38cdece326da209
tree7eca3a70f6c376c142a3cfc44e0d0deac50bb9ce
parente2e47c365e21a054689b66bc1d5356ef7b5f2662
[FIX] interrupt checking from exception (for x86)

In LINUX_VERSION_CODE >= 4.0.0 exception handlers wrapped with ist_enter()
and ist_exit() where preempt_count is incremented and decremented, so we
cannot determine interruptable state.

Solution: mask HARDIRQ_OFFSET bit.

Change-Id: If961547e3221ec27157ebc0c993f2a7a3c0e8605
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
kprobe/arch/x86/swap-asm/swap_kprobes.c
kprobe/arch/x86/swap-asm/swap_kprobes.h
kprobe/swap_kprobes.c
kprobe/swap_kprobes.h