[<prev] [next>] [day] [month] [year] [list]
Message-ID: <CAMhUBjmVvALtNANHOv-H1dBJ4MpHWhVVrxkzQSg_Zz9RwqTgsA@mail.gmail.com>
Date: Sat, 21 May 2022 21:32:08 +0800
From: Zheyu Ma <zheyuma97@...il.com>
To: hare@...nel.org, jejb@...ux.ibm.com,
"Martin K. Petersen" <martin.petersen@...cle.com>
Cc: linux-scsi <linux-scsi@...r.kernel.org>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: [BUG] scsi: myrb: null-pointer-dereference in myrb_cleanup
Hello,
I found a bug in the driver myrb when probing the module.
The following log can reveal it:
[ 0.985741] myrb 0000:00:05.0: Unknown Initialization Error 49
[ 0.986078] myrb 0000:00:05.0: Failed to initialize Controller
[ 0.986376] BUG: kernel NULL pointer dereference, address: 0000000000000000
[ 0.987368] Call Trace:
[ 0.987368] myrb_cleanup+0x4ad/0x7b0
[ 0.987368] myrb_probe.cold+0x95/0x12a0
The reason is that the driver does not initialize the disable_intr,
resulting in a null-pointer-dereference bug.
Zheyu Ma
Powered by blists - more mailing lists