kmalloc vs vmalloc in kretprobe

From: Srinivas Murthy
Date: Sat Nov 02 2019 - 17:27:20 EST


Is it safe to use kmalloc( x, GFP_ATOMIC) in kretprobe pre/post handlers?

What is the recommended way to alloc mem in the kprobe/kretprobe handlers?