Bug 3863 - [ANCK 4.19]多个nvme磁盘同时执行分区创建分区、删除分区时有几率引起宕机
Summary: [ANCK 4.19]多个nvme磁盘同时执行分区创建分区、删除分区时有几率引起宕机
Status: RESOLVED FIXED
Alias: None
Product: ANCK 4.19 Dev
Classification: ANCK
Component: block/storage (show other bugs) block/storage
Version: 4.19-026.x
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: cuishw
QA Contact: shuming
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-01-29 11:00 UTC by cuishw
Modified: 2023-01-30 15:04 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description cuishw inspur_group 2023-01-29 11:00:00 UTC
复现方法:
系统中存在多个nvme磁盘,同时对这些磁盘执行创建分区、删除分区,可能会导致新建的分区使用了重复的次设备号,进而导致后续的一系列异常(可能导致gendisk被异常释放),4.19-stable已经解决了这个问题,需要合入以下patch:
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-4.19.y&id=cc019421d037864fe0a7d34ac091c24f48036f62
Comment 1 Joseph Qi alibaba_cloud_group 2023-01-30 09:10:40 UTC
5.10 stable 在 5.10.158 合入,目前 ANCK 5.10 也受影响,需要合入
Comment 2 cuishw inspur_group 2023-01-30 09:12:50 UTC
(In reply to josephqi from comment #1)
> 5.10 stable 在 5.10.158 合入,目前 ANCK 5.10 也受影响,需要合入

4.19和5.10,我已经提了PR,审核下吧
Comment 3 Joseph Qi alibaba_cloud_group 2023-01-30 09:14:39 UTC
(In reply to cuishw from comment #2)
> (In reply to josephqi from comment #1)
> > 5.10 stable 在 5.10.158 合入,目前 ANCK 5.10 也受影响,需要合入
> 
> 4.19和5.10,我已经提了PR,审核下吧

PR 链接发我下,我没收到相关 review 的消息
Comment 4 cuishw inspur_group 2023-01-30 09:16:10 UTC
(In reply to josephqi from comment #3)
> (In reply to cuishw from comment #2)
> > (In reply to josephqi from comment #1)
> > > 5.10 stable 在 5.10.158 合入,目前 ANCK 5.10 也受影响,需要合入
> > 
> > 4.19和5.10,我已经提了PR,审核下吧
> 
> PR 链接发我下,我没收到相关 review 的消息

https://gitee.com/anolis/cloud-kernel/pulls/1082
https://gitee.com/anolis/cloud-kernel/pulls/1081
Comment 5 Joseph Qi alibaba_cloud_group 2023-01-30 09:23:23 UTC
(In reply to cuishw from comment #4)
> (In reply to josephqi from comment #3)
> > (In reply to cuishw from comment #2)
> > > (In reply to josephqi from comment #1)
> > > > 5.10 stable 在 5.10.158 合入,目前 ANCK 5.10 也受影响,需要合入
> > > 
> > > 4.19和5.10,我已经提了PR,审核下吧
> > 
> > PR 链接发我下,我没收到相关 review 的消息
> 
> https://gitee.com/anolis/cloud-kernel/pulls/1082
> https://gitee.com/anolis/cloud-kernel/pulls/1081

麻烦将我添加为审查人员(gitee id: josephhz),否则我没办法合并 PR。
Comment 6 cuishw inspur_group 2023-01-30 09:31:34 UTC
(In reply to josephqi from comment #5)
> (In reply to cuishw from comment #4)
> > (In reply to josephqi from comment #3)
> > > (In reply to cuishw from comment #2)
> > > > (In reply to josephqi from comment #1)
> > > > > 5.10 stable 在 5.10.158 合入,目前 ANCK 5.10 也受影响,需要合入
> > > > 
> > > > 4.19和5.10,我已经提了PR,审核下吧
> > > 
> > > PR 链接发我下,我没收到相关 review 的消息
> > 
> > https://gitee.com/anolis/cloud-kernel/pulls/1082
> > https://gitee.com/anolis/cloud-kernel/pulls/1081
> 
> 麻烦将我添加为审查人员(gitee id: josephhz),否则我没办法合并 PR。

已添加,谢谢。
Comment 7 Joseph Qi alibaba_cloud_group 2023-01-30 10:28:34 UTC
(In reply to cuishw from comment #6)
> (In reply to josephqi from comment #5)
> > (In reply to cuishw from comment #4)
> > > (In reply to josephqi from comment #3)
> > > > (In reply to cuishw from comment #2)
> > > > > (In reply to josephqi from comment #1)
> > > > > > 5.10 stable 在 5.10.158 合入,目前 ANCK 5.10 也受影响,需要合入
> > > > > 
> > > > > 4.19和5.10,我已经提了PR,审核下吧
> > > > 
> > > > PR 链接发我下,我没收到相关 review 的消息
> > > 
> > > https://gitee.com/anolis/cloud-kernel/pulls/1082
> > > https://gitee.com/anolis/cloud-kernel/pulls/1081
> > 
> > 麻烦将我添加为审查人员(gitee id: josephhz),否则我没办法合并 PR。
> 
> 已添加,谢谢。

请在补丁末尾加上你的签名,另外建议 ANCK 5.10 重新提交一个 bugzilla。
相关信息我已在 PR 上评论。
Comment 8 Joseph Qi alibaba_cloud_group 2023-01-30 15:04:00 UTC
merged at:
https://gitee.com/anolis/cloud-kernel/pulls/1081