]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nfnetlink_queue: use y2038 safe timestamp
authorPablo Neira Ayuso <pablo@netfilter.org>
Sun, 4 Oct 2015 17:38:14 +0000 (19:38 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 5 Oct 2015 15:27:25 +0000 (17:27 +0200)
commitd3c3651a67f2e2eb5c600aca94d13eb267ca8106
treef8fd6e422d38df6ca9866b6b2829100819ddc23e
parent130c23bae24307a44929be4e67e955838ec56d4a
netfilter: nfnetlink_queue: use y2038 safe timestamp

The __build_packet_message function fills a nfulnl_msg_packet_timestamp
structure that uses 64-bit seconds and is therefore y2038 safe, but
it uses an intermediate 'struct timespec' which is not.

This trivially changes the code to use 'struct timespec64' instead,
to correct the result on 32-bit architectures.

This is a copy and paste of Arnd's original patch for nfnetlink_log.

Suggested-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nfnetlink_queue.c