)]}'
{
  "commit": "8f5624629105589bcc23d0e51cc01bd8103d09a5",
  "tree": "267766861d83db54607617237cc2c4fdf2b5cd97",
  "parents": [
    "1a8e6b48fbf534028ce4031d0d035e7e72779cef"
  ],
  "author": {
    "name": "Andrey Konovalov",
    "email": "andreyknvl@google.com",
    "time": "Mon Nov 06 13:26:46 2017 +0100"
  },
  "committer": {
    "name": "David S. Miller",
    "email": "davem@davemloft.net",
    "time": "Thu Nov 09 09:22:13 2017 +0900"
  },
  "message": "net: usb: asix: fill null-ptr-deref in asix_suspend\n\nWhen asix_suspend() is called dev-\u003edriver_priv might not have been\nassigned a value, so we need to check that it\u0027s not NULL.\n\nSimilar issue is present in asix_resume(), this patch fixes it as well.\n\nFound by syzkaller.\n\nkasan: CONFIG_KASAN_INLINE enabled\nkasan: GPF could be caused by NULL-ptr deref or user memory access\ngeneral protection fault: 0000 [#1] PREEMPT SMP KASAN\nModules linked in:\nCPU: 0 PID: 24 Comm: kworker/0:1 Not tainted 4.14.0-rc4-43422-geccacdd69a8c #400\nHardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Bochs 01/01/2011\nWorkqueue: usb_hub_wq hub_event\ntask: ffff88006bb36300 task.stack: ffff88006bba8000\nRIP: 0010:asix_suspend+0x76/0xc0 drivers/net/usb/asix_devices.c:629\nRSP: 0018:ffff88006bbae718 EFLAGS: 00010202\nRAX: dffffc0000000000 RBX: ffff880061ba3b80 RCX: 1ffff1000c34d644\nRDX: 0000000000000001 RSI: 0000000000000402 RDI: 0000000000000008\nRBP: ffff88006bbae738 R08: 1ffff1000d775cad R09: 0000000000000000\nR10: 0000000000000000 R11: 0000000000000000 R12: ffff8800630a8b40\nR13: 0000000000000000 R14: 0000000000000402 R15: ffff880061ba3b80\nFS:  0000000000000000(0000) GS:ffff88006c600000(0000) knlGS:0000000000000000\nCS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033\nCR2: 00007ff33cf89000 CR3: 0000000061c0a000 CR4: 00000000000006f0\nCall Trace:\n usb_suspend_interface drivers/usb/core/driver.c:1209\n usb_suspend_both+0x27f/0x7e0 drivers/usb/core/driver.c:1314\n usb_runtime_suspend+0x41/0x120 drivers/usb/core/driver.c:1852\n __rpm_callback+0x339/0xb60 drivers/base/power/runtime.c:334\n rpm_callback+0x106/0x220 drivers/base/power/runtime.c:461\n rpm_suspend+0x465/0x1980 drivers/base/power/runtime.c:596\n __pm_runtime_suspend+0x11e/0x230 drivers/base/power/runtime.c:1009\n pm_runtime_put_sync_autosuspend ./include/linux/pm_runtime.h:251\n usb_new_device+0xa37/0x1020 drivers/usb/core/hub.c:2487\n hub_port_connect drivers/usb/core/hub.c:4903\n hub_port_connect_change drivers/usb/core/hub.c:5009\n port_event drivers/usb/core/hub.c:5115\n hub_event+0x194d/0x3740 drivers/usb/core/hub.c:5195\n process_one_work+0xc7f/0x1db0 kernel/workqueue.c:2119\n worker_thread+0x221/0x1850 kernel/workqueue.c:2253\n kthread+0x3a1/0x470 kernel/kthread.c:231\n ret_from_fork+0x2a/0x40 arch/x86/entry/entry_64.S:431\nCode: 8d 7c 24 20 48 89 fa 48 c1 ea 03 80 3c 02 00 75 5b 48 b8 00 00\n00 00 00 fc ff df 4d 8b 6c 24 20 49 8d 7d 08 48 89 fa 48 c1 ea 03 \u003c80\u003e\n3c 02 00 75 34 4d 8b 6d 08 4d 85 ed 74 0b e8 26 2b 51 fd 4c\nRIP: asix_suspend+0x76/0xc0 RSP: ffff88006bbae718\n---[ end trace dfc4f5649284342c ]---\n\nSigned-off-by: Andrey Konovalov \u003candreyknvl@google.com\u003e\nSigned-off-by: David S. Miller \u003cdavem@davemloft.net\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "b2ff88e69a819cc3098a720ece238d8847d6be57",
      "old_mode": 33188,
      "old_path": "drivers/net/usb/asix_devices.c",
      "new_id": "3d4f7959dabb9c39e17754df4f72013c89743d5a",
      "new_mode": 33188,
      "new_path": "drivers/net/usb/asix_devices.c"
    }
  ]
}
