1.$esp & 0xffffe000 可以得到当前thread_info结构体
thread_info{task,……}
2.根据得到的task地址,得到当前用户态进程号
((struct task_struct *)task)->pid