lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAMhUBjkVME8D5KsHvT=uddBsW_Bh6wr7qeXS=UpQD4LgPmHffQ@mail.gmail.com>
Date:   Sun, 10 Apr 2022 14:30:18 +0800
From:   Zheyu Ma <zheyuma97@...il.com>
To:     Sergey Shtylyov <s.shtylyov@....ru>,
        Damien Le Moal <damien.lemoal@...nsource.wdc.com>
Cc:     linux-ide@...r.kernel.org,
        Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: [BUG] ata: pata_marvell: Warning when probing the module

Hello,

I found a bug in the pata_marvell module.
When probing the driver, it seems to trigger the error path and
executes the function marvell_cable_detect(), but the
'ap->ioaddr.bmdma_addr' is not initialized, which causes a warning.

The following log can reveal it:

[    3.453943] Bad IO access at port 0x1 (return inb(port))
[    3.454430] WARNING: CPU: 7 PID: 291 at lib/iomap.c:44 ioread8+0x4a/0x60
[    3.457962] RIP: 0010:ioread8+0x4a/0x60
[    3.466362] Call Trace:
[    3.466572]  <TASK>
[    3.466756]  marvell_cable_detect+0xad/0xf0 [pata_marvell]
[    3.467699]  ata_eh_recover+0x3520/0x6cc0
[    3.473262]  ata_do_eh+0x49/0x3c0
[    3.473906]  ata_scsi_port_error_handler+0xd96/0x1d00
[    3.474355]  ata_scsi_error+0x243/0x290
[    3.475428]  scsi_error_handler+0x2ff/0xea0
[    3.477244]  kthread+0x262/0x2e0

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ