From: Bart Van Assche <bvanassche@acm.org>
To: Guenter Roeck <linux@roeck-us.net>
Cc: Isaac Manjarres <isaacmanjarres@google.com>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
"Rafael J. Wysocki" <rafael@kernel.org>,
Ulf Hansson <ulf.hansson@linaro.org>,
Tomeu Vizoso <tomeu.vizoso@collabora.com>,
Russell King <rmk+kernel@arm.linux.org.uk>,
Marek Szyprowski <m.szyprowski@samsung.com>,
Saravana Kannan <saravanak@google.com>,
stable@kernel.org, kernel-team@android.com,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2] driver core: Fix bus_type.match() error handling
Date: Sun, 21 Aug 2022 14:39:48 -0700 [thread overview]
Message-ID: <27d0dde8-344c-1dd0-cc26-0e10c4e1f296@acm.org> (raw)
In-Reply-To: <20220820114801.GA3958319@roeck-us.net>
On 8/20/22 04:48, Guenter Roeck wrote:
> INFO: task init:283 blocked for more than 122 seconds.
> Tainted: G N 6.0.0-rc1-00303-g963a70bee588 #3
> "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
> task:init state:D stack: 0 pid: 283 ppid: 1 flags:0x00000000
> __schedule from schedule+0x70/0x118
> schedule from scsi_remove_host+0x178/0x1c4
> scsi_remove_host from usb_stor_disconnect+0x40/0xe8
> usb_stor_disconnect from usb_unbind_interface+0x78/0x274
> usb_unbind_interface from device_release_driver_internal+0x1a4/0x230
> device_release_driver_internal from bus_remove_device+0xd0/0x100
> bus_remove_device from device_del+0x174/0x3ec
> device_del from usb_disable_device+0xcc/0x178
> usb_disable_device from usb_disconnect+0xcc/0x274
> usb_disconnect from usb_disconnect+0x98/0x274
> usb_disconnect from usb_remove_hcd+0xd0/0x16c
> usb_remove_hcd from host_stop+0x38/0xa8
> host_stop from ci_hdrc_remove+0x40/0x134
> ci_hdrc_remove from platform_remove+0x24/0x54
> platform_remove from device_release_driver_internal+0x1a4/0x230
> device_release_driver_internal from bus_remove_device+0xd0/0x100
> bus_remove_device from device_del+0x174/0x3ec
> device_del from platform_device_del.part.0+0x10/0x78
> platform_device_del.part.0 from platform_device_unregister+0x18/0x28
> platform_device_unregister from ci_hdrc_remove_device+0xc/0x24
> ci_hdrc_remove_device from ci_hdrc_imx_remove+0x28/0xfc
> ci_hdrc_imx_remove from device_shutdown+0x178/0x230
> device_shutdown from __do_sys_reboot+0x168/0x258
> __do_sys_reboot from ret_fast_syscall+0x0/0x1c
Hi Guenter,
Thank you for having shared this information. I think this deadlock is
the result of holding a reference on /dev/sda (by the mount() system
call) while calling scsi_remove_host().
It seems wrong to me that ci_hdrc_imx_shutdown() calls
ci_hdrc_imx_remove() - I think that function should only do the minimum
that is required to prepare for shutdown instead of calling
scsi_remove_host() indirectly.
That being said, the patch series "scsi: core: Call
blk_mq_free_tag_set() earlier" probably will have to be reverted because
of the following deadlock reported by syzbot:
https://lore.kernel.org/linux-scsi/000000000000b5187d05e6c08086@google.com/
Thanks,
Bart.
next prev parent reply other threads:[~2022-08-21 21:39 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CGME20220815211927eucas1p275ed3f63f1baf76b319a828c214c651f@eucas1p2.samsung.com>
2022-08-15 21:19 ` Isaac J. Manjarres
2022-08-16 4:25 ` Guenter Roeck
2022-08-16 5:17 ` Isaac Manjarres
2022-08-16 11:13 ` Guenter Roeck
2022-08-16 17:13 ` Isaac Manjarres
2022-08-17 1:05 ` Guenter Roeck
2022-08-17 1:12 ` Isaac Manjarres
2022-08-18 22:59 ` Guenter Roeck
2022-08-19 0:38 ` Isaac Manjarres
2022-08-19 11:28 ` Guenter Roeck
2022-08-19 17:45 ` Isaac Manjarres
2022-08-19 20:01 ` Bart Van Assche
2022-08-19 20:55 ` Guenter Roeck
2022-08-19 22:08 ` Guenter Roeck
2022-08-20 0:07 ` Bart Van Assche
2022-08-20 11:48 ` Guenter Roeck
2022-08-21 21:39 ` Bart Van Assche [this message]
2022-08-25 9:22 ` Marek Szyprowski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=27d0dde8-344c-1dd0-cc26-0e10c4e1f296@acm.org \
--to=bvanassche@acm.org \
--cc=gregkh@linuxfoundation.org \
--cc=isaacmanjarres@google.com \
--cc=kernel-team@android.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@roeck-us.net \
--cc=m.szyprowski@samsung.com \
--cc=rafael@kernel.org \
--cc=rmk+kernel@arm.linux.org.uk \
--cc=saravanak@google.com \
--cc=stable@kernel.org \
--cc=tomeu.vizoso@collabora.com \
--cc=ulf.hansson@linaro.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®