All of lore.kernel.org
 help / color / mirror / Atom feed
* [v2]serial_core:recognize invalid pointer from userspace
@ 2016-03-10  3:17 ` Jiang Lu
  0 siblings, 0 replies; 11+ messages in thread
From: Jiang Lu @ 2016-03-10  3:17 UTC (permalink / raw)
  To: gregkh, linux-kernel, linux-serial




Hi,
[v1 -> v2]

Fix a compile warning with data convert.

[v1 log]

When running setserial, application issue a TIOCGSERIAL iotcl to get serial setting, then update 
serial setting with TIOCSSERIAL ioctl. It always failed with TIOCSSERIAL ioctl, for application
pass 0xffffffff for iomem_base in serial_struct to kernel.

On 32bit rootfs & 64bit kernel, compat_ioctl use 0xffffffff as a magic number to mark invalid pointer
for iomem_base in serial_struct when truncating a 64bit pointer into 32bit.

Serial driver need recognize this invalid pointer when parsing serial_struct from userspace.

Thanks
Jiang Lu

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

end of thread, other threads:[~2016-03-11  2:31 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-10  3:17 [v2]serial_core:recognize invalid pointer from userspace Jiang Lu
2016-03-10  3:17 ` Jiang Lu
2016-03-10  3:17 ` [v2] serial_core:recognize " Jiang Lu
2016-03-10  3:17   ` Jiang Lu
2016-03-10  3:34   ` Greg KH
2016-03-10  4:56     ` Lu.Jiang
2016-03-10  4:56       ` Lu.Jiang
2016-03-10 13:46       ` One Thousand Gnomes
2016-03-10 13:46         ` One Thousand Gnomes
2016-03-11  2:30         ` Lu.Jiang
2016-03-11  2:30           ` Lu.Jiang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.