From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932733AbeCIXFc (ORCPT ); Fri, 9 Mar 2018 18:05:32 -0500 Received: from mail-pg0-f54.google.com ([74.125.83.54]:33883 "EHLO mail-pg0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932195AbeCIXFa (ORCPT ); Fri, 9 Mar 2018 18:05:30 -0500 X-Google-Smtp-Source: AG47ELuRik5JrQk4n9LJh/rcVIUQE0iSTXkTgE/nQE1xsLpq8y/5kxmwffau1S883kBQA3yBGRMGxoz1QMNl5T/kNyU= MIME-Version: 1.0 In-Reply-To: References: <001a113f2be668a1e9056701e617@google.com> From: Cong Wang Date: Fri, 9 Mar 2018 15:05:09 -0800 Message-ID: Subject: Re: WARNING in __proc_create To: Eric Dumazet Cc: syzbot , coreteam@netfilter.org, David Miller , Florian Westphal , Jozsef Kadlecsik , LKML , Linux Kernel Network Developers , netfilter-devel@vger.kernel.org, Pablo Neira Ayuso , syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 9, 2018 at 2:58 PM, Eric Dumazet wrote: > > > On 03/09/2018 02:56 PM, Eric Dumazet wrote: > >> >> I sent a patch a while back, but Pablo/Florian wanted more than that >> simple fix. >> >> We also need to filter special characters like '/' proc_create_data() itself accepts '/', so it must be xt_hashlimit doesn't want it. >> >> Or maybe I am mixing with something else. > > > Yes, Florian mentioned that we also had to reject "." and ".." > It could be, but looks like not as trivial as just strstr(".")? BTW, the warning itself is all about empty names, so perhaps it's better to fix them separately.