lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CA+icZUWxGCmxbSi6wZvu9+khtxqiBbxB9XBk=H6rkdZ=c6+5TA@mail.gmail.com>
Date:	Sat, 27 Dec 2014 11:46:01 +0100
From:	Sedat Dilek <sedat.dilek@...il.com>
To:	Johannes Berg <johannes.berg@...el.com>
Cc:	"netdev@...r.kernel.org" <netdev@...r.kernel.org>,
	"David S. Miller" <davem@...emloft.net>
Subject: Re: net.git: Call-trace after "Merge branch 'netlink_multicast'"

On Sat, Dec 27, 2014 at 11:30 AM, Sedat Dilek <sedat.dilek@...il.com> wrote:
> Hi johill :-),
>
> I am seeing here a call-trace after pulling net.git#master on top of upstream.
>
> [   21.095849] ------------[ cut here ]------------
> [   21.095862] WARNING: CPU: 1 PID: 1291 at
> net/netlink/genetlink.c:1011 genl_bind+0xeb/0x100()
> [   21.095864] Modules linked in: arc4 iwldvm snd_hda_codec_hdmi
> uvcvideo snd_hda_codec_realtek mac80211 snd_hda_codec_generic
> snd_hda_intel videobuf2_vmalloc snd_hda_controller videobuf2_memops
> snd_hda_codec videobuf2_core bnep rfcomm v4l2_common joydev option
> i915 usb_wwan videodev snd_hwdep cdc_ether usbserial snd_pcm usbnet
> snd_seq_midi snd_seq_midi_event iwlwifi snd_rawmidi psmouse btusb
> snd_seq i2c_algo_bit parport_pc snd_timer drm_kms_helper bluetooth
> ppdev snd_seq_device serio_raw cfg80211 drm snd samsung_laptop lpc_ich
> soundcore video wmi intel_rst mac_hid lp parport binfmt_misc
> hid_generic usbhid hid usb_storage r8169 mii
> [   21.095942] CPU: 1 PID: 1291 Comm: acpid Not tainted
> 3.19.0-rc1-55.2-iniza-small #1
> [   21.095945] Hardware name: SAMSUNG ELECTRONICS CO., LTD.
> 530U3BI/530U4BI/530U4BH/530U3BI/530U4BI/530U4BH, BIOS 13XK 03/28/2013
> [   21.095948]  ffffffff81ae3fda ffff8800b8877dc8 ffffffff8175b61c
> 0000000000000000
> [   21.095955]  0000000000000000 ffff8800b8877e08 ffffffff810753da
> ffffffff82c82f40
> [   21.095962]  0000000000000001 ffffffff82c82f40 0000000000000000
> 0000000000000000
> [   21.095967] Call Trace:
> [   21.095976]  [<ffffffff8175b61c>] dump_stack+0x4c/0x65
> [   21.095983]  [<ffffffff810753da>] warn_slowpath_common+0x8a/0xc0
> [   21.095989]  [<ffffffff810754ca>] warn_slowpath_null+0x1a/0x20
> [   21.095993]  [<ffffffff8169738b>] genl_bind+0xeb/0x100
> [   21.095998]  [<ffffffff81695d97>] netlink_bind+0xb7/0x280
> [   21.096004]  [<ffffffff811add89>] ? might_fault+0xb9/0xc0
> [   21.096009]  [<ffffffff811add2e>] ? might_fault+0x5e/0xc0
> [   21.096015]  [<ffffffff8164d038>] SYSC_bind+0xb8/0xf0
> [   21.096021]  [<ffffffff810c2f0d>] ? trace_hardirqs_on+0xd/0x10
> [   21.096027]  [<ffffffff81025ae5>] ? syscall_trace_enter_phase1+0x105/0x180
> [   21.096033]  [<ffffffff813b4e1e>] ? trace_hardirqs_on_thunk+0x3a/0x3f
> [   21.096038]  [<ffffffff8164e65e>] SyS_bind+0xe/0x10
> [   21.096044]  [<ffffffff817654ed>] system_call_fastpath+0x16/0x1b
> [   21.096047] ---[ end trace 7dceb0e985894682 ]---
>
> My kernel-config, full dmesg and my patchset on top of Linux
> v.3.19-rc1 are attached.
>
> Please CC me if you need more informations.
>

It looks like the WARN_ON() in commit "genetlink: pass multicast
bind/unbind to families" [1] causes this...

[ dmesg ]
...
[   21.095862] WARNING: CPU: 1 PID: 1291 at
net/netlink/genetlink.c:1011 genl_bind+0xeb/0x100()

[ patch ]
...
+static int genl_bind(int group)
+{
+ int i, err;
+ bool found = false;
+
+ down_read(&cb_lock);
+ for (i = 0; i < GENL_FAM_TAB_SIZE; i++) {
+ struct genl_family *f;
+
+ list_for_each_entry(f, genl_family_chain(i), family_list) {
+ if (group >= f->mcgrp_offset &&
+ group < f->mcgrp_offset + f->n_mcgrps) {
+ int fam_grp = group - f->mcgrp_offset;
+
+ if (f->mcast_bind)
+ err = f->mcast_bind(fam_grp);
+ else
+ err = 0;
+ found = true;
+ break;
+ }
+ }
+ }
+ up_read(&cb_lock);
+
+ if (WARN_ON(!found)) <--- *** Line #1011 ***
+ err = 0;
+
+ return err;
+}

Hope this helps.

Regards,
- Sedat -

[1] http://git.kernel.org/cgit/linux/kernel/git/davem/net.git/commit/net/netlink/genetlink.c?id=c380d9a7afff0e4c2e5f3c1c2dc7d2f4214dd962
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ