From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932738AbeAOJAr (ORCPT + 1 other); Mon, 15 Jan 2018 04:00:47 -0500 Received: from mail-pg0-f52.google.com ([74.125.83.52]:43870 "EHLO mail-pg0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932231AbeAOJAo (ORCPT ); Mon, 15 Jan 2018 04:00:44 -0500 X-Google-Smtp-Source: ACJfBosXZOioOAPI02tsJV+mnNFbX9wY7KvLf6vUTrjQOnzcUhyiA4Xe4ss3LsNZCX+5OqbEvh6R/8yMXpBSFuoAQJk= MIME-Version: 1.0 In-Reply-To: <1516004561.410.3.camel@sipsolutions.net> References: <94eb2c05e11e2f85150562b007ef@google.com> <1516004561.410.3.camel@sipsolutions.net> From: Dmitry Vyukov Date: Mon, 15 Jan 2018 10:00:23 +0100 Message-ID: Subject: Re: WARNING in wiphy_register To: Johannes Berg Cc: syzbot , David Miller , LKML , linux-wireless@vger.kernel.org, netdev , 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 Return-Path: On Mon, Jan 15, 2018 at 9:22 AM, Johannes Berg wrote: > Hi syzbot maintainers, > > Thanks for the report. > >> hwsim_new_radio_nl+0x5b7/0x7c0 drivers/net/wireless/mac80211_hwsim.c:3152 >> genl_family_rcv_msg+0x7b7/0xfb0 net/netlink/genetlink.c:599 >> genl_rcv_msg+0xb2/0x140 net/netlink/genetlink.c:624 > > You're getting into the kernel via generic netlink receive, so just as > an FYI - the generic netlink numbers aren't stable across systems, so > your reproducer has a quite good chance of not working without your > kernel .config and (virt) hardware environment. Hi Johannes, Thanks for the feeback. syzbot tests within a net namespace (which is free of eth0 and other stuff) and does setup of devices in that namespace. For bugs, it first tries to reproduce them in that environment and if that succeeds it tries to simplify the reproducer by stripping namespace/device setup (which is quite verbose), and if that succeeds it provides this simplified reproducer. In this case it decided that namespace setup is not important. .config is still important, but it is provided. Are you able to reproduce the WARNING with the provided config? If not, we can look as to how to improve this. > I'll take a look at this and the rfkill one, I assume that there are > some sanity checks missing in hwsim generic netlink when it builds a > radio struct. > > However, I can't really promise that I'll be able to validate the > changes against your reproducer. > > johannes > > -- > You received this message because you are subscribed to the Google Groups "syzkaller-bugs" group. > To unsubscribe from this group and stop receiving emails from it, send an email to syzkaller-bugs+unsubscribe@googlegroups.com. > To view this discussion on the web visit https://groups.google.com/d/msgid/syzkaller-bugs/1516004561.410.3.camel%40sipsolutions.net. > For more options, visit https://groups.google.com/d/optout.