nbd, sysfs: cannot create duplicate filename '/dev/block/43:0'
From: Borislav Petkov
Date: Sat Apr 02 2022 - 13:36:22 EST
Hi,
so I enabled CONFIG_BLK_DEV_NBD=y on a test box here and I'm getting the
below.
Kernel is Linus' branch from today + a couple of unrelated arch/x86/ patches.
.config is attached.
Thx.
...
[ 4.501239] sysfs: cannot create duplicate filename '/dev/block/43:0'
[ 4.507878] CPU: 1 PID: 1 Comm: swapper/0 Not tainted 5.17.0+ #1
[ 4.508866] Hardware name: Dell Inc. Precision T3600/0PTTT9, BIOS A13 05/11/2014
[ 4.508866] Call Trace:
[ 4.508866] <TASK>
[ 4.508866] dump_stack_lvl+0x57/0x7d
[ 4.508866] sysfs_warn_dup.cold+0x17/0x24
[ 4.508866] sysfs_do_create_link_sd+0xc0/0xd0
[ 4.508866] device_add+0x5b4/0x930
[ 4.508866] ? dev_set_name+0x43/0x50
[ 4.508866] device_add_disk+0xd5/0x370
[ 4.508866] nbd_dev_add+0x2b0/0x3a0
[ 4.508866] ? node_dev_init+0xa9/0xa9
[ 4.508866] nbd_init+0x157/0x160
[ 4.508866] do_one_initcall+0x5b/0x300
[ 4.508866] ? rcu_read_lock_sched_held+0x3f/0x70
[ 4.508866] kernel_init_freeable+0x184/0x1ce
[ 4.508866] ? rest_init+0x260/0x260
[ 4.508866] kernel_init+0x16/0x120
[ 4.508866] ret_from_fork+0x22/0x30
[ 4.584022] tsc: Refined TSC clocksource calibration: 3591.342 MHz
[ 4.508866] </TASK>
[ 4.590606] clocksource: tsc: mask: 0xffffffffffffffff max_cycles: 0x33c46016c57, max_idle_ns: 440795207857 ns
[ 4.595335] sysfs: cannot create duplicate filename '/dev/block/43:0'
[ 4.609336] clocksource: Switched to clocksource tsc
[ 4.609338] CPU: 5 PID: 1 Comm: swapper/0 Not tainted 5.17.0+ #1
[ 4.609797] Hardware name: Dell Inc. Precision T3600/0PTTT9, BIOS A13 05/11/2014
[ 4.609797] Call Trace:
[ 4.609797] <TASK>
[ 4.609797] dump_stack_lvl+0x57/0x7d
[ 4.609797] sysfs_warn_dup.cold+0x17/0x24
[ 4.609797] sysfs_do_create_link_sd+0xc0/0xd0
[ 4.609797] device_add+0x5b4/0x930
[ 4.609797] ? dev_set_name+0x43/0x50
[ 4.609797] device_add_disk+0xd5/0x370
[ 4.609797] nbd_dev_add+0x2b0/0x3a0
[ 4.609797] ? node_dev_init+0xa9/0xa9
[ 4.609797] nbd_init+0x157/0x160
[ 4.609797] do_one_initcall+0x5b/0x300
[ 4.609797] ? rcu_read_lock_sched_held+0x3f/0x70
[ 4.609797] kernel_init_freeable+0x184/0x1ce
[ 4.609797] ? rest_init+0x260/0x260
[ 4.609797] kernel_init+0x16/0x120
[ 4.609797] ret_from_fork+0x22/0x30
[ 4.609797] </TASK>
[ 4.699735] sysfs: cannot create duplicate filename '/dev/block/43:0'
[ 4.706887] CPU: 1 PID: 1 Comm: swapper/0 Not tainted 5.17.0+ #1
[ 4.707815] Hardware name: Dell Inc. Precision T3600/0PTTT9, BIOS A13 05/11/2014
[ 4.707815] Call Trace:
[ 4.707815] <TASK>
[ 4.707815] dump_stack_lvl+0x57/0x7d
[ 4.707815] sysfs_warn_dup.cold+0x17/0x24
[ 4.707815] sysfs_do_create_link_sd+0xc0/0xd0
[ 4.707815] device_add+0x5b4/0x930
[ 4.707815] ? dev_set_name+0x43/0x50
[ 4.707815] device_add_disk+0xd5/0x370
[ 4.707815] nbd_dev_add+0x2b0/0x3a0
[ 4.707815] ? node_dev_init+0xa9/0xa9
[ 4.707815] nbd_init+0x157/0x160
[ 4.707815] do_one_initcall+0x5b/0x300
[ 4.707815] ? rcu_read_lock_sched_held+0x3f/0x70
[ 4.707815] kernel_init_freeable+0x184/0x1ce
[ 4.707815] ? rest_init+0x260/0x260
[ 4.707815] kernel_init+0x16/0x120
[ 4.707815] ret_from_fork+0x22/0x30
[ 4.707815] </TASK>
[ 4.798004] sysfs: cannot create duplicate filename '/dev/block/43:0'
[ 4.805074] CPU: 5 PID: 1 Comm: swapper/0 Not tainted 5.17.0+ #1
[ 4.806045] Hardware name: Dell Inc. Precision T3600/0PTTT9, BIOS A13 05/11/2014
[ 4.806045] Call Trace:
[ 4.806045] <TASK>
[ 4.806045] dump_stack_lvl+0x57/0x7d
[ 4.806045] sysfs_warn_dup.cold+0x17/0x24
[ 4.806045] sysfs_do_create_link_sd+0xc0/0xd0
[ 4.806045] device_add+0x5b4/0x930
[ 4.806045] ? dev_set_name+0x43/0x50
[ 4.806045] device_add_disk+0xd5/0x370
[ 4.806045] nbd_dev_add+0x2b0/0x3a0
[ 4.806045] ? node_dev_init+0xa9/0xa9
[ 4.806045] nbd_init+0x157/0x160
[ 4.806045] do_one_initcall+0x5b/0x300
[ 4.806045] ? rcu_read_lock_sched_held+0x3f/0x70
[ 4.806045] kernel_init_freeable+0x184/0x1ce
[ 4.806045] ? rest_init+0x260/0x260
[ 4.806045] kernel_init+0x16/0x120
[ 4.806045] ret_from_fork+0x22/0x30
[ 4.806045] </TASK>
[ 4.896273] sysfs: cannot create duplicate filename '/dev/block/43:0'
[ 4.903350] CPU: 5 PID: 1 Comm: swapper/0 Not tainted 5.17.0+ #1
[ 4.904321] Hardware name: Dell Inc. Precision T3600/0PTTT9, BIOS A13 05/11/2014
[ 4.904321] Call Trace:
[ 4.904321] <TASK>
[ 4.904321] dump_stack_lvl+0x57/0x7d
[ 4.904321] sysfs_warn_dup.cold+0x17/0x24
[ 4.904321] sysfs_do_create_link_sd+0xc0/0xd0
[ 4.904321] device_add+0x5b4/0x930
[ 4.904321] ? dev_set_name+0x43/0x50
[ 4.904321] device_add_disk+0xd5/0x370
[ 4.904321] nbd_dev_add+0x2b0/0x3a0
[ 4.904321] ? node_dev_init+0xa9/0xa9
[ 4.904321] nbd_init+0x157/0x160
[ 4.904321] do_one_initcall+0x5b/0x300
[ 4.904321] ? rcu_read_lock_sched_held+0x3f/0x70
[ 4.904321] kernel_init_freeable+0x184/0x1ce
[ 4.904321] ? rest_init+0x260/0x260
[ 4.904321] kernel_init+0x16/0x120
[ 4.904321] ret_from_fork+0x22/0x30
[ 4.904321] </TASK>
[ 4.993677] sysfs: cannot create duplicate filename '/dev/block/43:0'
[ 5.000739] CPU: 5 PID: 1 Comm: swapper/0 Not tainted 5.17.0+ #1
[ 5.001711] Hardware name: Dell Inc. Precision T3600/0PTTT9, BIOS A13 05/11/2014
[ 5.001711] Call Trace:
[ 5.001711] <TASK>
[ 5.001711] dump_stack_lvl+0x57/0x7d
[ 5.001711] sysfs_warn_dup.cold+0x17/0x24
[ 5.001711] sysfs_do_create_link_sd+0xc0/0xd0
[ 5.001711] device_add+0x5b4/0x930
[ 5.001711] ? dev_set_name+0x43/0x50
[ 5.001711] device_add_disk+0xd5/0x370
[ 5.001711] nbd_dev_add+0x2b0/0x3a0
[ 5.001711] ? node_dev_init+0xa9/0xa9
[ 5.001711] nbd_init+0x157/0x160
[ 5.001711] do_one_initcall+0x5b/0x300
[ 5.001711] ? rcu_read_lock_sched_held+0x3f/0x70
[ 5.001711] kernel_init_freeable+0x184/0x1ce
[ 5.001711] ? rest_init+0x260/0x260
[ 5.001711] kernel_init+0x16/0x120
[ 5.001711] ret_from_fork+0x22/0x30
[ 5.001711] </TASK>
[ 5.090612] sysfs: cannot create duplicate filename '/dev/block/43:0'
[ 5.097295] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 5.17.0+ #1
[ 5.098240] Hardware name: Dell Inc. Precision T3600/0PTTT9, BIOS A13 05/11/2014
[ 5.098240] Call Trace:
[ 5.098240] <TASK>
[ 5.098240] dump_stack_lvl+0x57/0x7d
[ 5.098240] sysfs_warn_dup.cold+0x17/0x24
[ 5.098240] sysfs_do_create_link_sd+0xc0/0xd0
[ 5.098240] device_add+0x5b4/0x930
[ 5.098240] ? dev_set_name+0x43/0x50
[ 5.098240] device_add_disk+0xd5/0x370
[ 5.098240] nbd_dev_add+0x2b0/0x3a0
[ 5.098240] ? node_dev_init+0xa9/0xa9
[ 5.098240] nbd_init+0x157/0x160
[ 5.098240] do_one_initcall+0x5b/0x300
[ 5.098240] ? rcu_read_lock_sched_held+0x3f/0x70
[ 5.098240] kernel_init_freeable+0x184/0x1ce
[ 5.098240] ? rest_init+0x260/0x260
[ 5.098240] kernel_init+0x16/0x120
[ 5.098240] ret_from_fork+0x22/0x30
[ 5.098240] </TASK>
[ 5.179303] sysfs: cannot create duplicate filename '/dev/block/43:0'
[ 5.185944] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 5.17.0+ #1
[ 5.186930] Hardware name: Dell Inc. Precision T3600/0PTTT9, BIOS A13 05/11/2014
[ 5.186930] Call Trace:
[ 5.186930] <TASK>
[ 5.186930] dump_stack_lvl+0x57/0x7d
[ 5.186930] sysfs_warn_dup.cold+0x17/0x24
[ 5.186930] sysfs_do_create_link_sd+0xc0/0xd0
[ 5.186930] device_add+0x5b4/0x930
[ 5.186930] ? dev_set_name+0x43/0x50
[ 5.186930] device_add_disk+0xd5/0x370
[ 5.186930] nbd_dev_add+0x2b0/0x3a0
[ 5.186930] ? node_dev_init+0xa9/0xa9
[ 5.186930] nbd_init+0x157/0x160
[ 5.186930] do_one_initcall+0x5b/0x300
[ 5.186930] ? rcu_read_lock_sched_held+0x3f/0x70
[ 5.186930] kernel_init_freeable+0x184/0x1ce
[ 5.186930] ? rest_init+0x260/0x260
[ 5.186930] kernel_init+0x16/0x120
[ 5.186930] ret_from_fork+0x22/0x30
[ 5.186930] </TASK>
[ 5.267928] sysfs: cannot create duplicate filename '/dev/block/43:0'
[ 5.274577] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 5.17.0+ #1
[ 5.275554] Hardware name: Dell Inc. Precision T3600/0PTTT9, BIOS A13 05/11/2014
[ 5.275554] Call Trace:
[ 5.275554] <TASK>
[ 5.275554] dump_stack_lvl+0x57/0x7d
[ 5.275554] sysfs_warn_dup.cold+0x17/0x24
[ 5.275554] sysfs_do_create_link_sd+0xc0/0xd0
[ 5.275554] device_add+0x5b4/0x930
[ 5.275554] ? dev_set_name+0x43/0x50
[ 5.275554] device_add_disk+0xd5/0x370
[ 5.275554] nbd_dev_add+0x2b0/0x3a0
[ 5.275554] ? node_dev_init+0xa9/0xa9
[ 5.275554] nbd_init+0x157/0x160
[ 5.275554] do_one_initcall+0x5b/0x300
[ 5.275554] ? rcu_read_lock_sched_held+0x3f/0x70
[ 5.275554] kernel_init_freeable+0x184/0x1ce
[ 5.275554] ? rest_init+0x260/0x260
[ 5.275554] kernel_init+0x16/0x120
[ 5.275554] ret_from_fork+0x22/0x30
[ 5.275554] </TASK>
[ 5.356536] sysfs: cannot create duplicate filename '/dev/block/43:0'
[ 5.363177] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 5.17.0+ #1
[ 5.364163] Hardware name: Dell Inc. Precision T3600/0PTTT9, BIOS A13 05/11/2014
[ 5.364163] Call Trace:
[ 5.364163] <TASK>
[ 5.364163] dump_stack_lvl+0x57/0x7d
[ 5.364163] sysfs_warn_dup.cold+0x17/0x24
[ 5.364163] sysfs_do_create_link_sd+0xc0/0xd0
[ 5.364163] device_add+0x5b4/0x930
[ 5.364163] ? dev_set_name+0x43/0x50
[ 5.364163] device_add_disk+0xd5/0x370
[ 5.364163] nbd_dev_add+0x2b0/0x3a0
[ 5.364163] ? node_dev_init+0xa9/0xa9
[ 5.364163] nbd_init+0x157/0x160
[ 5.364163] do_one_initcall+0x5b/0x300
[ 5.364163] ? rcu_read_lock_sched_held+0x3f/0x70
[ 5.364163] kernel_init_freeable+0x184/0x1ce
[ 5.364163] ? rest_init+0x260/0x260
[ 5.364163] kernel_init+0x16/0x120
[ 5.364163] ret_from_fork+0x22/0x30
[ 5.364163] </TASK>
[ 5.445097] sysfs: cannot create duplicate filename '/dev/block/43:0'
[ 5.451747] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 5.17.0+ #1
[ 5.452720] Hardware name: Dell Inc. Precision T3600/0PTTT9, BIOS A13 05/11/2014
[ 5.452720] Call Trace:
[ 5.452720] <TASK>
[ 5.452720] dump_stack_lvl+0x57/0x7d
[ 5.452720] sysfs_warn_dup.cold+0x17/0x24
[ 5.452720] sysfs_do_create_link_sd+0xc0/0xd0
[ 5.452720] device_add+0x5b4/0x930
[ 5.452720] ? dev_set_name+0x43/0x50
[ 5.452720] device_add_disk+0xd5/0x370
[ 5.452720] nbd_dev_add+0x2b0/0x3a0
[ 5.452720] ? node_dev_init+0xa9/0xa9
[ 5.452720] nbd_init+0x157/0x160
[ 5.452720] do_one_initcall+0x5b/0x300
[ 5.452720] ? rcu_read_lock_sched_held+0x3f/0x70
[ 5.452720] kernel_init_freeable+0x184/0x1ce
[ 5.452720] ? rest_init+0x260/0x260
[ 5.452720] kernel_init+0x16/0x120
[ 5.452720] ret_from_fork+0x22/0x30
[ 5.452720] </TASK>
[ 5.533707] sysfs: cannot create duplicate filename '/dev/block/43:0'
[ 5.540359] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 5.17.0+ #1
[ 5.541340] Hardware name: Dell Inc. Precision T3600/0PTTT9, BIOS A13 05/11/2014
[ 5.541340] Call Trace:
[ 5.541340] <TASK>
[ 5.541340] dump_stack_lvl+0x57/0x7d
[ 5.541340] sysfs_warn_dup.cold+0x17/0x24
[ 5.541340] sysfs_do_create_link_sd+0xc0/0xd0
[ 5.541340] device_add+0x5b4/0x930
[ 5.541340] ? dev_set_name+0x43/0x50
[ 5.541340] device_add_disk+0xd5/0x370
[ 5.541340] nbd_dev_add+0x2b0/0x3a0
[ 5.541340] ? node_dev_init+0xa9/0xa9
[ 5.541340] nbd_init+0x157/0x160
[ 5.541340] do_one_initcall+0x5b/0x300
[ 5.541340] ? rcu_read_lock_sched_held+0x3f/0x70
[ 5.541340] kernel_init_freeable+0x184/0x1ce
[ 5.541340] ? rest_init+0x260/0x260
[ 5.541340] kernel_init+0x16/0x120
[ 5.541340] ret_from_fork+0x22/0x30
[ 5.541340] </TASK>
[ 5.622295] sysfs: cannot create duplicate filename '/dev/block/43:0'
[ 5.628929] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 5.17.0+ #1
[ 5.629916] Hardware name: Dell Inc. Precision T3600/0PTTT9, BIOS A13 05/11/2014
[ 5.629916] Call Trace:
[ 5.629916] <TASK>
[ 5.629916] dump_stack_lvl+0x57/0x7d
[ 5.629916] sysfs_warn_dup.cold+0x17/0x24
[ 5.629916] sysfs_do_create_link_sd+0xc0/0xd0
[ 5.629916] device_add+0x5b4/0x930
[ 5.629916] ? dev_set_name+0x43/0x50
[ 5.629916] device_add_disk+0xd5/0x370
[ 5.629916] nbd_dev_add+0x2b0/0x3a0
[ 5.629916] ? node_dev_init+0xa9/0xa9
[ 5.629916] nbd_init+0x157/0x160
[ 5.629916] do_one_initcall+0x5b/0x300
[ 5.629916] ? rcu_read_lock_sched_held+0x3f/0x70
[ 5.629916] kernel_init_freeable+0x184/0x1ce
[ 5.629916] ? rest_init+0x260/0x260
[ 5.629916] kernel_init+0x16/0x120
[ 5.629916] ret_from_fork+0x22/0x30
[ 5.629916] </TASK>
[ 5.710887] sysfs: cannot create duplicate filename '/dev/block/43:0'
[ 5.717528] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 5.17.0+ #1
[ 5.718511] Hardware name: Dell Inc. Precision T3600/0PTTT9, BIOS A13 05/11/2014
[ 5.718511] Call Trace:
[ 5.718511] <TASK>
[ 5.718511] dump_stack_lvl+0x57/0x7d
[ 5.718511] sysfs_warn_dup.cold+0x17/0x24
[ 5.718511] sysfs_do_create_link_sd+0xc0/0xd0
[ 5.718511] device_add+0x5b4/0x930
[ 5.718511] ? dev_set_name+0x43/0x50
[ 5.718511] device_add_disk+0xd5/0x370
[ 5.718511] nbd_dev_add+0x2b0/0x3a0
[ 5.718511] ? node_dev_init+0xa9/0xa9
[ 5.718511] nbd_init+0x157/0x160
[ 5.718511] do_one_initcall+0x5b/0x300
[ 5.718511] ? rcu_read_lock_sched_held+0x3f/0x70
[ 5.718511] kernel_init_freeable+0x184/0x1ce
[ 5.718511] ? rest_init+0x260/0x260
[ 5.718511] kernel_init+0x16/0x120
[ 5.718511] ret_from_fork+0x22/0x30
[ 5.718511] </TASK>
[ 5.799465] sysfs: cannot create duplicate filename '/dev/block/43:0'
[ 5.806100] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 5.17.0+ #1
[ 5.807088] Hardware name: Dell Inc. Precision T3600/0PTTT9, BIOS A13 05/11/2014
[ 5.807088] Call Trace:
[ 5.807088] <TASK>
[ 5.807088] dump_stack_lvl+0x57/0x7d
[ 5.807088] sysfs_warn_dup.cold+0x17/0x24
[ 5.807088] sysfs_do_create_link_sd+0xc0/0xd0
[ 5.807088] device_add+0x5b4/0x930
[ 5.807088] ? dev_set_name+0x43/0x50
[ 5.807088] device_add_disk+0xd5/0x370
[ 5.807088] nbd_dev_add+0x2b0/0x3a0
[ 5.807088] ? node_dev_init+0xa9/0xa9
[ 5.807088] nbd_init+0x157/0x160
[ 5.807088] do_one_initcall+0x5b/0x300
[ 5.807088] ? rcu_read_lock_sched_held+0x3f/0x70
[ 5.807088] kernel_init_freeable+0x184/0x1ce
[ 5.807088] ? rest_init+0x260/0x260
[ 5.807088] kernel_init+0x16/0x120
[ 5.807088] ret_from_fork+0x22/0x30
[ 5.807088] </TASK>
[ 5.887611] megasas: 07.719.03.00-rc1
[ 5.891571] st: Version 20160209, fixed bufsize 32768, s/g segs 256
[ 5.898195] ahci 0000:00:1f.2: version 3.0
[ 5.903171] ahci 0000:00:1f.2: AHCI 0001.0300 32 slots 6 ports 6 Gbps 0x3 impl SATA mode
[ 5.911473] ahci 0000:00:1f.2: flags: 64bit ncq sntf pm led clo pio slum part ems apst
[ 5.924018] scsi host0: ahci
[ 5.928042] scsi host1: ahci
[ 5.932574] scsi host2: ahci
[ 5.937278] scsi host3: ahci
[ 5.941884] scsi host4: ahci
[ 5.946452] scsi host5: ahci
[ 5.950364] ata1: SATA max UDMA/133 abar m2048@0xf3326000 port 0xf3326100 irq 32
[ 5.958491] ata2: SATA max UDMA/133 abar m2048@0xf3326000 port 0xf3326180 irq 32
[ 5.966476] ata3: DUMMY
[ 5.969468] ata4: DUMMY
[ 5.972465] ata5: DUMMY
[ 5.975459] ata6: DUMMY
...
--
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquette
Attachment:
.config.gz
Description: application/gzip