Skip to contentSkip to conversation

copy_mount_options() problem

DISCUSSION Pavel V. Panteleev 1 participant 1 message Oct 15, 2019 VFS

lore
Share & tools
lore
#0 lore raw

Hello,

copy_mount_options() checks that data doesn' cross TASK_SIZE boundary. It's not correct. Really it should check USER_DS boudary, because some archs have TASK_SIZE not equal to USER_DS. In this case (USER_DS != TASK_SIZE) exact_copy_from_user() will stop on access_ok() check, if data cross USER_DS, but doesn't cross TASK_SIZE.

Best regards,
Pavel V. Panteleev