netfilter: nfnetlink_queue: fix timestamp attribute
Subsystems (2)
Florian Westphal
maintainerPATCH 1/1 netfilter: nfnetlink_queue: fix timestamp attribute
Since 4.4 we erronously use timestamp of the netlink skb (which is zero).
Bugzilla: https://bugzilla.netfilter.org/show_bug.cgi?id=1066
Fixes b28b1e826f818c30ea7 ("netfilter: nfnetlink_queue: use y2038 safe timestamp")
Signed-off-by Florian Westphal <[email protected]>
--- net/netfilter/nfnetlink_queue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/netfilter/nfnetlink_queue.c +1 -1
@@ -499,7 +499,7 @@ nfqnl_build_packet_message(struct net *net, struct nfqnl_instance *queue,if (entskb->tstamp.tv64) {struct nfqnl_msg_packet_timestamp ts; -struct timespec64 kts =ktime_to_timespec64 (skb->tstamp); +struct timespec64 kts =ktime_to_timespec64 (entskb->tstamp); ts.sec =cpu_to_be64 (kts.tv_sec); ts.usec =cpu_to_be64 (kts.tv_nsec /NSEC_PER_USEC );
Signature · 1 line
2.7.3
Pablo Neira Ayuso
maintainerQuoted 5 lines · Florian Westphal
Since 4.4 we erronously use timestamp of the netlink skb (which is zero).
Bugzilla: https://bugzilla.netfilter.org/show_bug.cgi?id=1066
Fixes b28b1e826f818c30ea7 ("netfilter: nfnetlink_queue: use y2038 safe timestamp")Signed-off-by Florian Westphal <[email protected]>
Argh, my fault. Thanks for fixing up this, applied.
Pablo Neira Ayuso
maintainerQuoted 8 lines · Pablo Neira Ayuso
Quoted 5 lines · Florian Westphal
Since 4.4 we erronously use timestamp of the netlink skb (which is zero).
Bugzilla: https://bugzilla.netfilter.org/show_bug.cgi?id=1066
Fixes b28b1e826f818c30ea7 ("netfilter: nfnetlink_queue: use y2038 safe timestamp")Signed-off-by Florian Westphal <[email protected]>Argh, my fault. Thanks for fixing up this, applied.
And enqueued for stable 4.4, btw.