)]}'
{
  "commit": "1e31071695ea26f96e9801ba4ff1a70a57fa9218",
  "tree": "18a39d2da8e315ce1d6bb52527f065c05158fd51",
  "parents": [
    "3e9fc9129e553b54933bec2a30fed29131cd6d80"
  ],
  "author": {
    "name": "Tomasz Figa",
    "email": "tfiga@chromium.org",
    "time": "Sun Jul 29 01:06:47 2018 +0900"
  },
  "committer": {
    "name": "Tim Detwiler",
    "email": "tjdetwiler@google.com",
    "time": "Tue Oct 09 16:36:32 2018 -0700"
  },
  "message": "CHROMIUM: virtio/wl: Fix locking order in do_new()\n\nFix following lockdep splat. It is a false positive, since the vfd-\u003elock\nbelongs to a vfd just created and nobody else could reference it, but it\nconfuses lock debugging tools and the fix is trivial, so just fix it.\n\n[    4.634549] \u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\n[    4.634549] WARNING: possible circular locking dependency detected\n[    4.634551] 4.14.58-06408-ge3d9dad0bb21 #10 Not tainted\n[    4.634551] ------------------------------------------------------\n[    4.634552] kworker/0:2/144 is trying to acquire lock:\n[    4.634552]  (\u0026vfd-\u003elock){+.+.}, at: [\u003cffffffff814c889a\u003e] vq_in_work_handler+0x1ac/0x366\n[    4.634567]\n[    4.634567] but task is already holding lock:\n[    4.634567]  (\u0026vi-\u003evfds_lock){+.+.}, at: [\u003cffffffff814c8877\u003e] vq_in_work_handler+0x189/0x366\n[    4.634570]\n[    4.634570] which lock already depends on the new lock.\n[    4.634570]\n[    4.634570]\n[    4.634570] the existing dependency chain (in reverse order) is:\n[    4.634571]\n[    4.634571] -\u003e #1 (\u0026vi-\u003evfds_lock){+.+.}:\n[    4.634579]        __mutex_lock+0x81/0x39d\n[    4.634580]        do_new+0x95/0x276\n[    4.634581]        virtwl_ioctl_ptr+0x14c/0x20f\n[    4.634588]        compat_SyS_ioctl+0x50d/0x1d0d\n[    4.634591]        do_fast_syscall_32+0xbb/0xff\n[    4.634593]        entry_SYSENTER_compat+0x84/0x96\n[    4.634593]\n[    4.634593] -\u003e #0 (\u0026vfd-\u003elock){+.+.}:\n[    4.634599]        lock_acquire+0x185/0x1bf\n[    4.634600]        __mutex_lock+0x81/0x39d\n[    4.634602]        vq_in_work_handler+0x1ac/0x366\n[    4.634604]        process_one_work+0x2aa/0x4d8\n[    4.634605]        worker_thread+0x193/0x24b\n[    4.634606]        kthread+0xf8/0x100\n[    4.634608]        ret_from_fork+0x3a/0x50\n[    4.634608]\n[    4.634608] other info that might help us debug this:\n[    4.634608]\n[    4.634609]  Possible unsafe locking scenario:\n[    4.634609]\n[    4.634609]        CPU0                    CPU1\n[    4.634609]        ----                    ----\n[    4.634610]   lock(\u0026vi-\u003evfds_lock);\n[    4.634610]                                lock(\u0026vfd-\u003elock);\n[    4.634611]                                lock(\u0026vi-\u003evfds_lock);\n[    4.634612]   lock(\u0026vfd-\u003elock);\n[    4.634613]\n[    4.634613]  *** DEADLOCK ***\n[    4.634613]\n[    4.634614] 3 locks held by kworker/0:2/144:\n[    4.634614]  #0:  (\"events\"){+.+.}, at: [\u003cffffffff810d1486\u003e] process_one_work+0x146/0x4d8\n[    4.634617]  #1:  ((\u0026vi-\u003ein_vq_work)){+.+.}, at: [\u003cffffffff810d1486\u003e] process_one_work+0x146/0x4d8\n[    4.634619]  #2:  (\u0026vi-\u003evfds_lock){+.+.}, at: [\u003cffffffff814c8877\u003e] vq_in_work_handler+0x189/0x366\n[    4.634621]\n[    4.634621] stack backtrace:\n[    4.634623] CPU: 0 PID: 144 Comm: kworker/0:2 Not tainted 4.14.58-06408-ge3d9dad0bb21 #10\n[    4.634625] Workqueue: events vq_in_work_handler\n[    4.634626] Call Trace:\n[    4.634630]  dump_stack+0x9f/0xd5\n[    4.634632]  print_circular_bug.isra.42+0x1c7/0x1d4\n[    4.634634]  __lock_acquire+0xbbd/0xe7d\n[    4.634637]  ? vq_in_work_handler+0x1ac/0x366\n[    4.634638]  ? lock_acquire+0x185/0x1bf\n[    4.634639]  lock_acquire+0x185/0x1bf\n[    4.634641]  ? vq_in_work_handler+0x1ac/0x366\n[    4.634642]  __mutex_lock+0x81/0x39d\n[    4.634643]  ? vq_in_work_handler+0x1ac/0x366\n[    4.634645]  ? vq_in_work_handler+0x1ac/0x366\n[    4.634647]  ? vq_in_work_handler+0x1ac/0x366\n[    4.634648]  vq_in_work_handler+0x1ac/0x366\n[    4.634650]  process_one_work+0x2aa/0x4d8\n[    4.634651]  ? worker_thread+0x1d0/0x24b\n[    4.634653]  ? rescuer_thread+0x2ab/0x2ab\n[    4.634654]  worker_thread+0x193/0x24b\n[    4.634655]  ? rescuer_thread+0x2ab/0x2ab\n[    4.634656]  kthread+0xf8/0x100\n[    4.634658]  ? kthread_create_on_node+0x5d/0x5d\n[    4.634659]  ? do_fast_syscall_32+0xbb/0xff\n[    4.634661]  ? SyS_exit_group+0xb/0xb\n[    4.634662]  ret_from_fork+0x3a/0x50\n\nBUG\u003dnone\nTEST\u003dEnable CONFIG_PROVE_LOCKING and do not see the splat anymore\n\nChange-Id: I24d2f01bf8266fd6ae4bc558cf52295fe3b07773\nSigned-off-by: Tomasz Figa \u003ctfiga@chromium.org\u003e\nReviewed-on: https://chromium-review.googlesource.com/1154233\nReviewed-by: Zach Reizner \u003czachr@chromium.org\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "6636313831ea15b7936ea6ea3c9a38fdbb541083",
      "old_mode": 33188,
      "old_path": "drivers/virtio/virtio_wl.c",
      "new_id": "553b81d8bda4fee1fd54d0ce4f85265f0015a176",
      "new_mode": 33188,
      "new_path": "drivers/virtio/virtio_wl.c"
    }
  ]
}
