linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* copy_mount_options() problem
@ 2019-10-15 18:09 Pavel V. Panteleev
  2019-10-15 18:40 ` Al Viro
  0 siblings, 1 reply; 6+ messages in thread
From: Pavel V. Panteleev @ 2019-10-15 18:09 UTC (permalink / raw)
  To: linux-fsdevel

Hello,

copy_mount_options() checks that data doesn't 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

^ permalink raw reply	[flat|nested] 6+ messages in thread
* copy_mount_options() problem
@ 2019-10-15 15:12 Pavel V. Panteleev
  0 siblings, 0 replies; 6+ messages in thread
From: Pavel V. Panteleev @ 2019-10-15 15:12 UTC (permalink / raw)
  To: linux-fsdevel

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2019-10-16  7:40 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-10-15 18:09 copy_mount_options() problem Pavel V. Panteleev
2019-10-15 18:40 ` Al Viro
2019-10-15 22:03   ` Al Viro
2019-10-16  7:39     ` Pavel V. Panteleev
2019-10-16  7:31   ` Pavel V. Panteleev
  -- strict thread matches above, loose matches on Subject: below --
2019-10-15 15:12 Pavel V. Panteleev

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).