Project

General

Profile

Actions

Bug #305

closed

OOPses regarding netlink

Added by Linus Lüssing about 8 years ago. Updated almost 8 years ago.

Status:
Closed
Priority:
Normal
Target version:
Start date:
11/01/2016
Due date:
% Done:

0%

Estimated time:

Description

And another round of bisect'ing (I just want to rebase and fixup my patch, seems like the current code does not want me to :D).

Compiling batman-adv for a 4.9-rc3 kernel, I get the following traces when restarting batman-adv:

[ 1096.202195] batman_adv: loading out-of-tree module taints kernel.
[ 1096.221003] batman_adv: B.A.T.M.A.N. advanced 2016.4-59-gc776b4a (compatibility version 15) loaded
[ 1096.938371] batman_adv: bat0: Adding interface: ens4
[ 1096.939126] batman_adv: bat0: Interface activated: ens4
[ 1104.157213] BUG: unable to handle kernel paging request at ffffffffa0603070
[ 1104.158016] IP: [<ffffffff814dd474>] list_del+0x2d/0x51
[ 1104.158555] PGD 1e0b067 [ 1104.158794] PUD 1e0c063
PMD b4bb067 [ 1104.159162] PTE 800000000058a161
[ 1104.159493]
[ 1104.159665] Oops: 0003 [#1] SMP
[ 1104.159986] Modules linked in: batman_adv(O-) cfg80211 kvm_amd kvm irqbypass evdev acpi_cpufreq serio_raw tpm_tis tpm_tis_core tpm i2c_piix4 processor button i2c_core bridge stp llc ipv6 autofs4 dm_mirror dm_region_hash dm_log dm_mod 9p fscache 9pnet_virtio 9pnet 8139too ata_generic libata virtio_pci 8139cp scsi_mod e1000 virtio_ring virtio mii
[ 1104.160404] CPU: 0 PID: 2151 Comm: rmmod Tainted: G           O    4.9.0-rc3+ #1
[ 1104.160404] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.7.5-20140531_083030-gandalf 04/01/2014
[ 1104.160404] task: ffff880009230300 task.stack: ffffc9000024c000
[ 1104.160404] RIP: 0010:[<ffffffff814dd474>]  [<ffffffff814dd474>] list_del+0x2d/0x51
[ 1104.160404] RSP: 0018:ffffc9000024fe30  EFLAGS: 00010282
[ 1104.160404] RAX: dead000000000100 RBX: ffffffffa0603070 RCX: 0000000000000000
[ 1104.160404] RDX: 0000000000000050 RSI: ffffffff81f91160 RDI: ffffffffa0603070
[ 1104.160404] RBP: ffffc9000024fe38 R08: 0000000000000000 R09: ffffffff81b9cf7c
[ 1104.160404] R10: ffffc9000024fc08 R11: ffff8800054128d0 R12: 0000000000000001
[ 1104.160404] R13: 000000000000000a R14: 0000000000000000 R15: 0000000000000000
[ 1104.160404] FS:  00007f0b9d635700(0000) GS:ffff88000ee00000(0000) knlGS:0000000000000000
[ 1104.160404] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 1104.160404] CR2: ffffffffa0603070 CR3: 000000000db87000 CR4: 00000000000006f0
[ 1104.160404] Stack:
[ 1104.160404]  ffffffffa0603000 ffffc9000024feb0 ffffffff8179c735 0000000108a44fa8
[ 1104.160404]  ffffffffa0603070 ffffffff81131d6c ffffffff826b16c0 ffff880008a44ea8
[ 1104.160404]  ffffc9000024feb0 ffffffff813a9d46 ffff880005e08108 ffffffffa0606580
[ 1104.160404] Call Trace:
[ 1104.160404]  [<ffffffff8179c735>] genl_unregister_family+0x27f/0x36b
[ 1104.160404]  [<ffffffff81131d6c>] ? synchronize_srcu+0x2d/0x30
[ 1104.160404]  [<ffffffff813a9d46>] ? debugfs_remove_recursive+0x19a/0x263
[ 1104.160404]  [<ffffffffa05f1363>] batadv_netlink_unregister+0x10/0x12 [batman_adv]
[ 1104.160404]  [<ffffffffa05fdd05>] batadv_exit+0xe/0x309 [batman_adv]
[ 1104.160404]  [<ffffffff81168473>] SyS_delete_module+0x213/0x286
[ 1104.160404]  [<ffffffff818aa2ea>] entry_SYSCALL_64_fastpath+0x18/0xad
[ 1104.160404]  [<ffffffff811016e8>] ? trace_hardirqs_off_caller+0x5a/0x168
[ 1104.160404] Code: 89 e5 53 48 89 fb e8 9b fe ff ff 48 85 db 75 0e 31 f6 48 c7 c7 e0 c4 3d 82 e8 67 6d 02 00 48 b8 00 01 00 00 00 00 ad de 48 85 db <48> 89 03 75 0e 31 f6 48 c7 c7 b0 c4 3d 82 e8 47 6d 02 00 48 b8
[ 1104.160404] RIP  [<ffffffff814dd474>] list_del+0x2d/0x51
[ 1104.160404]  RSP <ffffc9000024fe30>
[ 1104.160404] CR2: ffffffffa0603070
[ 1104.160404] ---[ end trace f1bad3aa0c610690 ]---
[ 1104.160404] BUG: sleeping function called from invalid context at ./include/linux/sched.h:3109
[ 1104.160404] in_atomic(): 0, irqs_disabled(): 1, pid: 2151, name: rmmod
[ 1104.160404] INFO: lockdep is turned off.
[ 1104.160404] irq event stamp: 29092
[ 1104.160404] hardirqs last  enabled at (29091): [ 1104.160404] [<ffffffff818a9dae>] _raw_spin_unlock_irqrestore+0x3a/0x48
[ 1104.160404] hardirqs last disabled at (29092): [ 1104.160404] [<ffffffff818ac1b6>] error_entry+0x66/0xc0
[ 1104.160404] softirqs last  enabled at (28500): [ 1104.160404] [<ffffffff8109de26>] __do_softirq+0x63b/0x85a
[ 1104.160404] softirqs last disabled at (28415): [ 1104.160404] [<ffffffff8109e2f4>] irq_exit+0x6f/0x11c
[ 1104.160404] CPU: 0 PID: 2151 Comm: rmmod Tainted: G      D    O    4.9.0-rc3+ #1
[ 1104.160404] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.7.5-20140531_083030-gandalf 04/01/2014
[ 1104.160404]  ffffc9000024fe30 ffffffff814a1fe3 0000000000000006 ffffc9000024c000
[ 1104.160404]  0000000000000867 ffffc9000024fe60 ffffffff810d42f9 ffff880009230300
[ 1104.160404]  ffffffff81b85605 0000000000000c25 0000000000000000 ffffc9000024fea0
[ 1104.160404] Call Trace:
[ 1104.160404]  [<ffffffff814a1fe3>] dump_stack+0x68/0x99
[ 1104.160404]  [<ffffffff810d42f9>] ___might_sleep+0x257/0x26c
[ 1104.160404]  [<ffffffff810d439d>] __might_sleep+0x8f/0x132
[ 1104.160404]  [<ffffffff810aef6d>] exit_signals+0x1e/0x26b
[ 1104.160404]  [<ffffffff810991c1>] do_exit+0x1ef/0x1558
[ 1104.160404]  [<ffffffff81168473>] ? SyS_delete_module+0x213/0x286
[ 1104.160404]  [<ffffffff818ac3d7>] rewind_stack_do_exit+0x17/0x20
[ 1104.160404]  [<ffffffff811016e8>] ? trace_hardirqs_off_caller+0x5a/0x168

Bisec'ting leads me to:

c776b4a071d82f8 ("batman-adv: genetlink: mark families as __ro_after_init")

Actions #1

Updated by Sven Eckelmann about 8 years ago

  • Status changed from New to In Progress
  • Assignee set to Linus Lüssing
Actions #2

Updated by Sven Eckelmann about 8 years ago

  • Status changed from In Progress to Closed

Applied. Thanks for testing

Actions #3

Updated by Sven Eckelmann almost 8 years ago

  • Target version set to 2016.5
Actions

Also available in: Atom PDF