)]}'
{
  "commit": "fbc3edf7d7731d7a22c483c679700589bab936a3",
  "tree": "c91f4ba712dd9dd44399e170f0c676ef32a74d07",
  "parents": [
    "a817e73fe693f0718b6210f4b959478877fb2e2f"
  ],
  "author": {
    "name": "Borislav Petkov",
    "email": "bp@suse.de",
    "time": "Tue Nov 07 17:37:24 2017 +0100"
  },
  "committer": {
    "name": "Linus Torvalds",
    "email": "torvalds@linux-foundation.org",
    "time": "Tue Nov 07 09:12:04 2017 -0800"
  },
  "message": "drivers/ide-cd: Handle missing driver data during status check gracefully\n\nThe 0day bot reports the below failure which happens occasionally, with\ntheir randconfig testing (once every ~100 boots).  The Code points at\nthe private pointer -\u003edriver_data being NULL, which hints at a race of\nsorts where the private driver_data descriptor has disappeared by the\ntime we get to run the workqueue.\n\nSo let\u0027s check that pointer before we continue with issuing the command\nto the drive.\n\nThis fix is of the brown paper bag nature but considering that IDE is\nlong deprecated, let\u0027s do that so that random testing which happens to\nenable CONFIG_IDE during randconfig builds, doesn\u0027t fail because of\nthis.\n\nBesides, failing the TEST_UNIT_READY command because the drive private\ndata is gone is something which we could simply do anyway, to denote\nthat there was a problem communicating with the device.\n\n  BUG: unable to handle kernel NULL pointer dereference at 000001c0\n  IP: cdrom_check_status\n  *pde \u003d 00000000\n  Oops: 0000 [#1] SMP\n  CPU: 1 PID: 155 Comm: kworker/1:2 Not tainted 4.14.0-rc8 #127\n  Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1 04/01/2014\n  Workqueue: events_freezable_power_ disk_events_workfn\n  task: 4fe90980 task.stack: 507ac000\n  EIP: cdrom_check_status+0x2c/0x90\n  EFLAGS: 00210246 CPU: 1\n  EAX: 00000000 EBX: 4fefec00 ECX: 00000000 EDX: 00000000\n  ESI: 00000003 EDI: ffffffff EBP: 467a9340 ESP: 507aded0\n   DS: 007b ES: 007b FS: 00d8 GS: 00e0 SS: 0068\n  CR0: 80050033 CR2: 000001c0 CR3: 06e0f000 CR4: 00000690\n  Call Trace:\n   ? ide_cdrom_check_events_real\n   ? cdrom_check_events\n   ? disk_check_events\n   ? process_one_work\n   ? process_one_work\n   ? worker_thread\n   ? kthread\n   ? process_one_work\n   ? __kthread_create_on_node\n   ? ret_from_fork\n  Code: 53 83 ec 14 89 c3 89 d1 be 03 00 00 00 65 a1 14 00 00 00 89 44 24 10 31 c0 8b 43 18 c7 44 24 04 00 00 00 00 c7 04 24 00 00 00 00 \u003c8a\u003e 80 c0 01 00 00 c7 44 24 08 00 00 00 00 83 e0 03 c7 44 24 0c\n  EIP: cdrom_check_status+0x2c/0x90 SS:ESP: 0068:507aded0\n  CR2: 00000000000001c0\n  ---[ end trace 2410e586dd8f88b2 ]---\n\nReported-and-tested-by: Fengguang Wu \u003cfengguang.wu@intel.com\u003e\nSigned-off-by: Borislav Petkov \u003cbp@suse.de\u003e\nCc: \"David S. Miller\" \u003cdavem@davemloft.net\u003e\nCc: Jens Axboe \u003caxboe@kernel.dk\u003e\nCc: Bart Van Assche \u003cbart.vanassche@sandisk.com\u003e\nSigned-off-by: Linus Torvalds \u003ctorvalds@linux-foundation.org\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "a7355ab3bb221a0a6438d336719f1f3a30e4e00a",
      "old_mode": 33188,
      "old_path": "drivers/ide/ide-cd.c",
      "new_id": "6ff0be8cbdc980e1671e6a6bcd4faaf5537f0014",
      "new_mode": 33188,
      "new_path": "drivers/ide/ide-cd.c"
    }
  ]
}
