syzbot


WARNING: bad unlock balance detected! (2)

Status: closed as invalid on 2019/02/06 08:32
Subsystems: net
[Documentation on labels]
First crash: 1920d, last: 1920d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING: bad unlock balance detected! net 1 2342d 2338d 0/26 closed as invalid on 2018/01/30 23:45
upstream WARNING: bad unlock balance detected! (3) net syz done unreliable 6 1302d 1902d 0/26 auto-obsoleted due to no activity on 2022/09/26 08:14

Sample crash report:
Started in network mode
Own node identity ac1414aa, cluster identity 4711
New replicast peer: 172.20.20.187
Enabled bearer <udp:syz1>, priority 10
=====================================
WARNING: bad unlock balance detected!
5.0.0-rc5 #59 Not tainted
-------------------------------------
Enabling of bearer <udp:syz1> rejected, already enabled
kworker/1:3/7754 is trying to release lock (
==================================================================
BUG: KASAN: slab-out-of-bounds in print_unlock_imbalance_bug kernel/locking/lockdep.c:3383 [inline]
BUG: KASAN: slab-out-of-bounds in print_unlock_imbalance_bug.cold+0x97/0x123 kernel/locking/lockdep.c:3368
kobject: 'loop3' (00000000530598ed): kobject_uevent_env
Read of size 8 at addr ffff88821643f24c by task kworker/1:3/7754

CPU: 1 PID: 7754 Comm: kworker/1:3 Not tainted 5.0.0-rc5 #59
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue:  addrconf_dad_work (ipv6_addrconf)
kobject: 'loop3' (00000000530598ed): fill_kobj_path: path = '/devices/virtual/block/loop3'
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x172/0x1f0 lib/dump_stack.c:113
 print_address_description.cold+0x7c/0x20d mm/kasan/report.c:187
 kasan_report.cold+0x1b/0x40 mm/kasan/report.c:317
Started in network mode
Own node identity ac1414aa, cluster identity 4711
 __asan_report_load8_noabort+0x14/0x20 mm/kasan/generic_report.c:135
 print_unlock_imbalance_bug kernel/locking/lockdep.c:3383 [inline]
 print_unlock_imbalance_bug.cold+0x97/0x123 kernel/locking/lockdep.c:3368
 __lock_release kernel/locking/lockdep.c:3601 [inline]
 lock_release+0x67e/0xa00 kernel/locking/lockdep.c:3860
New replicast peer: 172.20.20.187
 process_one_work+0xa47/0x1790 kernel/workqueue.c:2180
 worker_thread+0x98/0xe40 kernel/workqueue.c:2319
 kthread+0x357/0x430 kernel/kthread.c:246
Enabled bearer <udp:syz1>, priority 10
 ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:352

Enabling of bearer <udp:syz1> rejected, already enabled
Allocated by task 1:
 save_stack+0x45/0xd0 mm/kasan/common.c:73
 set_track mm/kasan/common.c:85 [inline]
 __kasan_kmalloc mm/kasan/common.c:496 [inline]
 __kasan_kmalloc.constprop.0+0xcf/0xe0 mm/kasan/common.c:469
 kasan_kmalloc+0x9/0x10 mm/kasan/common.c:504
 kmem_cache_alloc_trace+0x151/0x760 mm/slab.c:3609
 kmalloc include/linux/slab.h:545 [inline]
 kzalloc include/linux/slab.h:740 [inline]
 __alloc_workqueue_key+0x79c/0xe00 kernel/workqueue.c:4099
 addrconf_init+0x9a/0x3b1 net/ipv6/addrconf.c:6905
 inet6_init+0x36c/0x6e1 net/ipv6/af_inet6.c:1022
 do_one_initcall+0x109/0x796 init/main.c:888
Started in network mode
 do_initcall_level init/main.c:956 [inline]
 do_initcalls init/main.c:964 [inline]
 do_basic_setup init/main.c:982 [inline]
 kernel_init_freeable+0x4d5/0x5c4 init/main.c:1135
 kernel_init+0x12/0x1c5 init/main.c:1055
 ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:352
Own node identity ac1414aa, cluster identity 4711

Freed by task 0:
(stack is not available)

The buggy address belongs to the object at ffff88821643f040
 which belongs to the cache kmalloc-512 of size 512
The buggy address is located 12 bytes to the right of
 512-byte region [ffff88821643f040, ffff88821643f240)
The buggy address belongs to the page:
New replicast peer: 172.20.20.187
page:ffffea0008590fc0 count:1 mapcount:0 mapping:ffff88812c3f0940 index:0xffff88821643f2c0
flags: 0x6fffc0000000200(slab)
raw: 06fffc0000000200 ffffea0008598808 ffffea0008590c08 ffff88812c3f0940
raw: ffff88821643f2c0 ffff88821643f040 0000000100000004 0000000000000000
Enabled bearer <udp:syz1>, priority 10
page dumped because: kasan: bad access detected

Memory state around the buggy address:
 ffff88821643f100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 ffff88821643f180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffff88821643f200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
                                              ^
 ffff88821643f280: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb
 ffff88821643f300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/02/06 07:11 upstream 8834f5600cf3 d672172c .config console log report syz ci-upstream-kasan-gce
* Struck through repros no longer work on HEAD.