syzbot


BUG: bad unlock balance in ipmr_mfc_seq_stop

Status: fixed on 2018/02/14 02:00
Fix commit: 7d3d60ef2256 ip6mr: fix stale iterator
First crash: 2554d, last: 2476d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-44 BUG: bad unlock balance in ipmr_mfc_seq_stop C 98 2486d 2542d 2/2 fixed on 2018/02/20 22:33

Sample crash report:
=====================================
[ BUG: bad unlock balance detected! ]
4.9.74-g9e5dd8e #12 Not tainted
-------------------------------------
syzkaller010086/3702 is trying to release lock (mrt_lock) at:
[<ffffffff834e5574>] ipmr_mfc_seq_stop+0xe4/0x140 net/ipv6/ip6mr.c:553
but there are no more locks to release!

other info that might help us debug this:
1 lock held by syzkaller010086/3702:
 #0:  (&p->lock){+.+.+.}, at: [<ffffffff815e5f6d>] seq_read+0xdd/0x1290 fs/seq_file.c:178

stack backtrace:
CPU: 1 PID: 3702 Comm: syzkaller010086 Not tainted 4.9.74-g9e5dd8e #12
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
 ffff8801c7eef878 ffffffff81d91d19 ffffffff849b0678 ffff8801c977c800
 ffffffff834e5574 ffffffff849b0678 ffff8801c977d088 ffff8801c7eef8a8
 ffffffff81235ad4 dffffc0000000000 ffffffff849b0678 00000000ffffffff
Call Trace:
 [<ffffffff81d91d19>] __dump_stack lib/dump_stack.c:15 [inline]
 [<ffffffff81d91d19>] dump_stack+0xc1/0x128 lib/dump_stack.c:51
 [<ffffffff81235ad4>] print_unlock_imbalance_bug+0x174/0x1a0 kernel/locking/lockdep.c:3398
 [<ffffffff8123e5a8>] __lock_release kernel/locking/lockdep.c:3540 [inline]
 [<ffffffff8123e5a8>] lock_release+0x6f8/0xb80 kernel/locking/lockdep.c:3775
 [<ffffffff838af5fa>] __raw_read_unlock include/linux/rwlock_api_smp.h:225 [inline]
 [<ffffffff838af5fa>] _raw_read_unlock+0x1a/0x50 kernel/locking/spinlock.c:255
 [<ffffffff834e5574>] ipmr_mfc_seq_stop+0xe4/0x140 net/ipv6/ip6mr.c:553
 [<ffffffff815e2f27>] traverse+0x3a7/0x900 fs/seq_file.c:148
 [<ffffffff815e667a>] seq_read+0x7ea/0x1290 fs/seq_file.c:195
 [<ffffffff816bf60f>] proc_reg_read+0xef/0x170 fs/proc/inode.c:202
 [<ffffffff81569353>] __vfs_read+0x103/0x670 fs/read_write.c:452
 [<ffffffff8156d0ee>] vfs_read+0x11e/0x380 fs/read_write.c:475
 [<ffffffff815711df>] SYSC_pread64 fs/read_write.c:629 [inline]
 [<ffffffff815711df>] SyS_pread64+0x13f/0x170 fs/read_write.c:616
 [<ffffffff8111ab89>] sys32_pread+0x39/0x50 arch/x86/ia32/sys_ia32.c:179
 [<ffffffff81006fc7>] do_syscall_32_irqs_on arch/x86/entry/common.c:322 [inline]
 [<ffffffff81006fc7>] do_fast_syscall_32+0x2f7/0x890 arch/x86/entry/common.c:384
 [<ffffffff838b10e1>] entry_SYSENTER_compat+0x51/0x60 arch/x86/entry/entry_64_compat.S:124

Crashes (7493):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/01/02 21:44 https://android.googlesource.com/kernel/common android-4.9 9e5dd8ed9b9b 00193447 .config console log report syz C ci-android-49-kasan-gce-386
2018/01/02 20:05 https://android.googlesource.com/kernel/common android-4.9 f3f3457d4582 00193447 .config console log report syz C ci-android-49-kasan-gce-386
2018/01/02 10:43 https://android.googlesource.com/kernel/common android-4.9 f3f3457d4582 00193447 .config console log report syz C ci-android-49-kasan-gce-386
2018/01/02 05:22 https://android.googlesource.com/kernel/common android-4.9 f3f3457d4582 00193447 .config console log report syz C ci-android-49-kasan-gce-386
2018/01/02 04:45 https://android.googlesource.com/kernel/common android-4.9 f3f3457d4582 00193447 .config console log report syz C ci-android-49-kasan-gce-386
2018/01/01 12:06 https://android.googlesource.com/kernel/common android-4.9 f3f3457d4582 00193447 .config console log report syz C ci-android-49-kasan-gce-386
2017/12/10 02:06 https://android.googlesource.com/kernel/common android-4.9 f26d3c76d376 5ad0ce95 .config console log report syz C ci-android-49-kasan-gce
2017/12/09 21:53 https://android.googlesource.com/kernel/common android-4.9 f26d3c76d376 5ad0ce95 .config console log report syz C ci-android-49-kasan-gce
2017/12/08 04:08 https://android.googlesource.com/kernel/common android-4.9 f26d3c76d376 5d643f8e .config console log report syz C ci-android-49-kasan-gce
2017/12/04 11:57 https://android.googlesource.com/kernel/common android-4.9 b76348094703 48359b97 .config console log report syz C ci-android-49-kasan-gce
2017/12/01 16:32 https://android.googlesource.com/kernel/common android-4.9 38884cc22714 2fa91450 .config console log report syz C ci-android-49-kasan-gce
2017/12/04 14:42 https://android.googlesource.com/kernel/common android-4.9 b76348094703 48359b97 .config console log report syz ci-android-49-kasan-gce
2018/02/09 18:54 https://android.googlesource.com/kernel/common android-4.9 20c8a0089294 9fb5ec43 .config console log report syz ci-android-49-kasan-gce-386
2018/02/07 15:57 https://android.googlesource.com/kernel/common android-4.9 550c01d0e051 9fb5ec43 .config console log report syz ci-android-49-kasan-gce-386
2018/02/12 21:48 https://android.googlesource.com/kernel/common android-4.9 8a174b4749d3 88bc17df .config console log report ci-android-49-kasan-gce
2018/02/12 10:12 https://android.googlesource.com/kernel/common android-4.9 8a174b4749d3 4e9b726d .config console log report ci-android-49-kasan-gce
2018/02/11 21:43 https://android.googlesource.com/kernel/common android-4.9 8a174b4749d3 4e9b726d .config console log report ci-android-49-kasan-gce
2018/02/11 09:56 https://android.googlesource.com/kernel/common android-4.9 8a174b4749d3 4e9b726d .config console log report ci-android-49-kasan-gce
2018/02/11 00:12 https://android.googlesource.com/kernel/common android-4.9 8a174b4749d3 4e9b726d .config console log report ci-android-49-kasan-gce
2018/02/08 01:54 https://android.googlesource.com/kernel/common android-4.9 20c8a0089294 9fb5ec43 .config console log report ci-android-49-kasan-gce
2018/02/07 11:29 https://android.googlesource.com/kernel/common android-4.9 550c01d0e051 66c15deb .config console log report ci-android-49-kasan-gce
2018/02/07 09:42 https://android.googlesource.com/kernel/common android-4.9 550c01d0e051 66c15deb .config console log report ci-android-49-kasan-gce
2018/02/07 06:39 https://android.googlesource.com/kernel/common android-4.9 550c01d0e051 66c15deb .config console log report ci-android-49-kasan-gce
2018/02/07 01:11 https://android.googlesource.com/kernel/common android-4.9 550c01d0e051 66c15deb .config console log report ci-android-49-kasan-gce
2018/02/06 23:17 https://android.googlesource.com/kernel/common android-4.9 550c01d0e051 66c15deb .config console log report ci-android-49-kasan-gce
2018/02/06 21:54 https://android.googlesource.com/kernel/common android-4.9 550c01d0e051 66c15deb .config console log report ci-android-49-kasan-gce
2018/02/06 20:37 https://android.googlesource.com/kernel/common android-4.9 550c01d0e051 66c15deb .config console log report ci-android-49-kasan-gce
2018/02/03 07:21 https://android.googlesource.com/kernel/common android-4.9 47af77b1dced 632a8c2c .config console log report ci-android-49-kasan-gce
2018/02/02 17:13 https://android.googlesource.com/kernel/common android-4.9 71f146972231 632a8c2c .config console log report ci-android-49-kasan-gce
2018/02/01 11:58 https://android.googlesource.com/kernel/common android-4.9 71f146972231 02553e22 .config console log report ci-android-49-kasan-gce
2018/02/01 05:03 https://android.googlesource.com/kernel/common android-4.9 71f146972231 02553e22 .config console log report ci-android-49-kasan-gce
2018/02/01 01:28 https://android.googlesource.com/kernel/common android-4.9 71f146972231 02553e22 .config console log report ci-android-49-kasan-gce
2018/02/01 00:09 https://android.googlesource.com/kernel/common android-4.9 71f146972231 02553e22 .config console log report ci-android-49-kasan-gce
2018/01/31 22:22 https://android.googlesource.com/kernel/common android-4.9 71f146972231 02553e22 .config console log report ci-android-49-kasan-gce
2018/01/31 15:19 https://android.googlesource.com/kernel/common android-4.9 71f146972231 02553e22 .config console log report ci-android-49-kasan-gce
2018/01/30 04:04 https://android.googlesource.com/kernel/common android-4.9 7be198545491 08d47756 .config console log report ci-android-49-kasan-gce
2018/01/22 13:07 https://android.googlesource.com/kernel/common android-4.9 e12a9c4458ff 228e3d95 .config console log report ci-android-49-kasan-gce
2018/01/14 10:40 https://android.googlesource.com/kernel/common android-4.9 f0f6293fd01a c9e7aeae .config console log report ci-android-49-kasan-gce-386
2018/01/11 21:15 https://android.googlesource.com/kernel/common android-4.9 91549408ceb8 9dc808a6 .config console log report ci-android-49-kasan-gce
2018/01/11 10:28 https://android.googlesource.com/kernel/common android-4.9 91549408ceb8 02a19b64 .config console log report ci-android-49-kasan-gce
2018/01/10 06:00 https://android.googlesource.com/kernel/common android-4.9 8910fa508811 1f60c828 .config console log report ci-android-49-kasan-gce
2018/01/10 03:17 https://android.googlesource.com/kernel/common android-4.9 8910fa508811 1f60c828 .config console log report ci-android-49-kasan-gce
2018/01/09 23:24 https://android.googlesource.com/kernel/common android-4.9 8910fa508811 1f60c828 .config console log report ci-android-49-kasan-gce-386
2018/01/09 18:54 https://android.googlesource.com/kernel/common android-4.9 8910fa508811 a7899a58 .config console log report ci-android-49-kasan-gce
2018/01/09 12:47 https://android.googlesource.com/kernel/common android-4.9 b54d99aa12b4 11dc42f6 .config console log report ci-android-49-kasan-gce
2018/01/09 08:45 https://android.googlesource.com/kernel/common android-4.9 b54d99aa12b4 11dc42f6 .config console log report ci-android-49-kasan-gce
2018/01/09 04:14 https://android.googlesource.com/kernel/common android-4.9 b54d99aa12b4 11dc42f6 .config console log report ci-android-49-kasan-gce
2018/01/08 23:25 https://android.googlesource.com/kernel/common android-4.9 b54d99aa12b4 93b4c6f1 .config console log report ci-android-49-kasan-gce
2018/01/08 21:58 https://android.googlesource.com/kernel/common android-4.9 b54d99aa12b4 93b4c6f1 .config console log report ci-android-49-kasan-gce
2018/01/08 18:45 https://android.googlesource.com/kernel/common android-4.9 5f5e5d4041e3 93b4c6f1 .config console log report ci-android-49-kasan-gce
2018/01/08 11:58 https://android.googlesource.com/kernel/common android-4.9 5f5e5d4041e3 93b4c6f1 .config console log report ci-android-49-kasan-gce
2018/01/08 06:38 https://android.googlesource.com/kernel/common android-4.9 5f5e5d4041e3 19c05fff .config console log report ci-android-49-kasan-gce-386
2018/01/08 05:21 https://android.googlesource.com/kernel/common android-4.9 5f5e5d4041e3 19c05fff .config console log report ci-android-49-kasan-gce
2018/01/07 19:58 https://android.googlesource.com/kernel/common android-4.9 5f5e5d4041e3 19c05fff .config console log report ci-android-49-kasan-gce
* Struck through repros no longer work on HEAD.