lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1435587807-10008-1-git-send-email-bamvor.zhangjian@linaro.org>
Date:	Mon, 29 Jun 2015 22:23:23 +0800
From:	Bamvor Zhang Jian <bamvor.zhangjian@...aro.org>
To:	arnd@...db.de, john.stultz@...aro.org, tglx@...utronix.de
Cc:	y2039@...ts.linaro.org, linux-kernel@...r.kernel.org,
	bamvor.zhangjian@...aro.org
Subject: [RFC PATCH v2 0/4] Convert ppdev to y2038 safe

Hi, guys

This is my second attempt to convert ppdev to y2038 safe. The first
version is here[1].

There are two parts in my patches.
01/02 migrate timeval relative struct to 64bit time_t types.
03/04 convert ppdev to y2038 safe in both native 32bit and compat
application.

My patches try to follow the idea from arnd y2038 syscalls patches[2],
but my patches not depend on them.

The reason why I choose ppdev is the ppdev use the timexxx directly
in ioctl compare with the other drivers embedded timexxx in their
own type.

Build pass on arm and arm64 on each patches(with and without
CONFIG_COMPAT_TIME). Unfortunately, there is no parport device
(printer) in my test environment. Hope others could help to test
it.

[1] https://lists.linaro.org/pipermail/y2038/2015-June/000522.html
[2] http://git.kernel.org/cgit/linux/kernel/git/arnd/playground.git/log/?h=y2038-syscalls

Bamvor Zhang Jian (4):
  y2038: add 64bit time_t support in timeval for 32bit architecture
  time64: add timeval64 helper for compat syscalls
  ppdev: add compat ioctl
  y2038: convert ppdev to 2038 safe

 drivers/char/ppdev.c       | 41 ++++++++++++++++++++++++++++++++++-------
 include/linux/compat.h     |  3 +++
 include/linux/time64.h     | 20 ++++++++++++++++++--
 include/uapi/linux/ppdev.h | 14 ++++++++++++--
 include/uapi/linux/time.h  | 16 ++++++++++++++++
 kernel/compat.c            | 17 +++++++++++++++++
 kernel/time/time.c         | 36 ++++++++++++++++++++++++++++++++++++
 7 files changed, 136 insertions(+), 11 deletions(-)

-- 
2.1.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ