cormander / tpe-lkm

Trusted Path Execution (TPE) Linux Kernel Module
Other
157 stars 55 forks source link

Case of large file name #1

Closed le4ker closed 12 years ago

le4ker commented 12 years ago

In case of file name larger than you MAX_FILE_LEN you will have a crash because the pointer will point to the error number. You have to use the IS_ERR macro in the exe_from_mm in order to catch this case from d_path call. Then just return a NULL in order to use it for error handling when calling the exe_from_mm function.

Cheers! Panos

le4ker commented 12 years ago

I didn't know that when you do a pull request an issue is automatically opened. Sorry!

cormander commented 12 years ago

It's fine that it's an open issue, I haven't merged it yet ^.^

I've confirmed the problem and the patches you sent don't appear to fix it. At least, not how I am trying it. Could you send me the steps you're using to reproduce it?

cormander commented 12 years ago

Hehe I just noticed what you were talking about. Okay, I'll update that one instead.