[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20190328100510.g5zxthxm3ymsw6q5@breakpoint.cc>
Date: Thu, 28 Mar 2019 11:05:10 +0100
From: Florian Westphal <fw@...len.de>
To: Alexander Potapenko <glider@...gle.com>
Cc: pablo@...filter.org, kadlec@...ckhole.kfki.hu, fw@...len.de,
davem@...emloft.net, linux-kernel@...r.kernel.org,
dvyukov@...gle.com, netfilter-devel@...r.kernel.org,
coreteam@...filter.org, netdev@...r.kernel.org
Subject: Re: [PATCH] netfilter: conntrack: initialize ct->timeout
Alexander Potapenko <glider@...gle.com> wrote:
> KMSAN started reporting an error when accessing ct->timeout for the
> first time without initialization:
>
> BUG: KMSAN: uninit-value in __nf_ct_refresh_acct+0x1ae/0x470 net/netfilter/nf_conntrack_core.c:1765
> ...
> dump_stack+0x173/0x1d0 lib/dump_stack.c:113
> kmsan_report+0x131/0x2a0 mm/kmsan/kmsan.c:624
> __msan_warning+0x7a/0xf0 mm/kmsan/kmsan_instr.c:310
> __nf_ct_refresh_acct+0x1ae/0x470 net/netfilter/nf_conntrack_core.c:1765
> nf_ct_refresh_acct ./include/net/netfilter/nf_conntrack.h:201
> nf_conntrack_udp_packet+0xb44/0x1040 net/netfilter/nf_conntrack_proto_udp.c:122
> nf_conntrack_handle_packet net/netfilter/nf_conntrack_core.c:1605
> nf_conntrack_in+0x1250/0x26c9 net/netfilter/nf_conntrack_core.c:1696
> ...
> Uninit was created at:
> kmsan_save_stack_with_flags mm/kmsan/kmsan.c:205
> kmsan_internal_poison_shadow+0x92/0x150 mm/kmsan/kmsan.c:159
> kmsan_kmalloc+0xa9/0x130 mm/kmsan/kmsan_hooks.c:173
> kmem_cache_alloc+0x554/0xb10 mm/slub.c:2789
> __nf_conntrack_alloc+0x16f/0x690 net/netfilter/nf_conntrack_core.c:1342
> init_conntrack+0x6cb/0x2490 net/netfilter/nf_conntrack_core.c:1421
Acked-by: Florian Westphal <fw@...len.de>
Powered by blists - more mailing lists