Extracting prog: 2m35.219841451s
Minimizing prog: 55m18.645374738s
Simplifying prog options: 0s
Extracting C: 27.081798858s
Simplifying C: 20m41.160170779s
extracting reproducer from 1 programs
testing a last program of every proc
single: executing 1 programs separately with timeout 30s
testing program (duration=30s, {Threaded:true Repeat:true RepeatTimes:0 Procs:6 Slowdown:1 Sandbox:none SandboxArg:0 Leak:false NetInjection:true NetDevices:true NetReset:true Cgroups:true BinfmtMisc:true CloseFDs:true KCSAN:false DevlinkPCI:false NicVF:false USB:true VhciInjection:true Wifi:true IEEE802154:true Sysctl:true Swap:true UseTmpDir:true HandleSegv:true Trace:false LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): socket$inet-sendto$inet-socket$inet_smc-setsockopt$inet_mreqsrc-socket$nl_rdma-sendmsg$RDMA_NLDEV_CMD_NEWLINK
detailed listing:
executing program 0:
r0 = socket$inet(0x2, 0x1, 0x100)
sendto$inet(r0, 0x0, 0x0, 0x200007fd, 0x0, 0x0)
r1 = socket$inet_smc(0x2b, 0x1, 0x0)
setsockopt$inet_mreqsrc(r1, 0x0, 0x28, 0x0, 0x0)
r2 = socket$nl_rdma(0x10, 0x3, 0x14)
sendmsg$RDMA_NLDEV_CMD_NEWLINK(r2, &(0x7f00000004c0)={0x0, 0x0, &(0x7f0000000480)={&(0x7f00000005c0)={0x38, 0x1403, 0x6c08c44bda12f87d, 0xfffffffc, 0x25dfdbfb, "", [{{0x9, 0x2, 'syz2\x00'}, {0x8, 0x41, 'siw\x00'}, {0x14, 0x33, 'bridge0\x00'}}]}, 0x38}, 0x1, 0x0, 0x0, 0x44810}, 0x200040c0)
program did not crash
single: failed to extract reproducer
single: executing 1 programs separately with timeout 6m0s
testing program (duration=6m0s, {Threaded:true Repeat:true RepeatTimes:0 Procs:6 Slowdown:1 Sandbox:none SandboxArg:0 Leak:false NetInjection:true NetDevices:true NetReset:true Cgroups:true BinfmtMisc:true CloseFDs:true KCSAN:false DevlinkPCI:false NicVF:false USB:true VhciInjection:true Wifi:true IEEE802154:true Sysctl:true Swap:true UseTmpDir:true HandleSegv:true Trace:false LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): socket$inet-sendto$inet-socket$inet_smc-setsockopt$inet_mreqsrc-socket$nl_rdma-sendmsg$RDMA_NLDEV_CMD_NEWLINK
detailed listing:
executing program 0:
r0 = socket$inet(0x2, 0x1, 0x100)
sendto$inet(r0, 0x0, 0x0, 0x200007fd, 0x0, 0x0)
r1 = socket$inet_smc(0x2b, 0x1, 0x0)
setsockopt$inet_mreqsrc(r1, 0x0, 0x28, 0x0, 0x0)
r2 = socket$nl_rdma(0x10, 0x3, 0x14)
sendmsg$RDMA_NLDEV_CMD_NEWLINK(r2, &(0x7f00000004c0)={0x0, 0x0, &(0x7f0000000480)={&(0x7f00000005c0)={0x38, 0x1403, 0x6c08c44bda12f87d, 0xfffffffc, 0x25dfdbfb, "", [{{0x9, 0x2, 'syz2\x00'}, {0x8, 0x41, 'siw\x00'}, {0x14, 0x33, 'bridge0\x00'}}]}, 0x38}, 0x1, 0x0, 0x0, 0x44810}, 0x200040c0)
program crashed: possible deadlock in sock_set_reuseaddr
single: successfully extracted reproducer
found reproducer with 6 syscalls
minimizing guilty program
testing program (duration=6m0s, {Threaded:true Repeat:true RepeatTimes:0 Procs:6 Slowdown:1 Sandbox:none SandboxArg:0 Leak:false NetInjection:true NetDevices:true NetReset:true Cgroups:true BinfmtMisc:true CloseFDs:true KCSAN:false DevlinkPCI:false NicVF:false USB:true VhciInjection:true Wifi:true IEEE802154:true Sysctl:true Swap:true UseTmpDir:true HandleSegv:true Trace:false LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): socket$inet-sendto$inet-socket$inet_smc-setsockopt$inet_mreqsrc-socket$nl_rdma
detailed listing:
executing program 0:
r0 = socket$inet(0x2, 0x1, 0x100)
sendto$inet(r0, 0x0, 0x0, 0x200007fd, 0x0, 0x0)
r1 = socket$inet_smc(0x2b, 0x1, 0x0)
setsockopt$inet_mreqsrc(r1, 0x0, 0x28, 0x0, 0x0)
socket$nl_rdma(0x10, 0x3, 0x14)
program did not crash
testing program (duration=6m0s, {Threaded:true Repeat:true RepeatTimes:0 Procs:6 Slowdown:1 Sandbox:none SandboxArg:0 Leak:false NetInjection:true NetDevices:true NetReset:true Cgroups:true BinfmtMisc:true CloseFDs:true KCSAN:false DevlinkPCI:false NicVF:false USB:true VhciInjection:true Wifi:true IEEE802154:true Sysctl:true Swap:true UseTmpDir:true HandleSegv:true Trace:false LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): socket$inet-sendto$inet-socket$inet_smc-setsockopt$inet_mreqsrc-sendmsg$RDMA_NLDEV_CMD_NEWLINK
detailed listing:
executing program 0:
r0 = socket$inet(0x2, 0x1, 0x100)
sendto$inet(r0, 0x0, 0x0, 0x200007fd, 0x0, 0x0)
r1 = socket$inet_smc(0x2b, 0x1, 0x0)
setsockopt$inet_mreqsrc(r1, 0x0, 0x28, 0x0, 0x0)
sendmsg$RDMA_NLDEV_CMD_NEWLINK(0xffffffffffffffff, &(0x7f00000004c0)={0x0, 0x0, &(0x7f0000000480)={&(0x7f00000005c0)={0x38, 0x1403, 0x6c08c44bda12f87d, 0xfffffffc, 0x25dfdbfb, "", [{{0x9, 0x2, 'syz2\x00'}, {0x8, 0x41, 'siw\x00'}, {0x14, 0x33, 'bridge0\x00'}}]}, 0x38}, 0x1, 0x0, 0x0, 0x44810}, 0x200040c0)
program did not crash
testing program (duration=6m0s, {Threaded:true Repeat:true RepeatTimes:0 Procs:6 Slowdown:1 Sandbox:none SandboxArg:0 Leak:false NetInjection:true NetDevices:true NetReset:true Cgroups:true BinfmtMisc:true CloseFDs:true KCSAN:false DevlinkPCI:false NicVF:false USB:true VhciInjection:true Wifi:true IEEE802154:true Sysctl:true Swap:true UseTmpDir:true HandleSegv:true Trace:false LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): socket$inet-sendto$inet-socket$inet_smc-socket$nl_rdma-sendmsg$RDMA_NLDEV_CMD_NEWLINK
detailed listing:
executing program 0:
r0 = socket$inet(0x2, 0x1, 0x100)
sendto$inet(r0, 0x0, 0x0, 0x200007fd, 0x0, 0x0)
socket$inet_smc(0x2b, 0x1, 0x0)
r1 = socket$nl_rdma(0x10, 0x3, 0x14)
sendmsg$RDMA_NLDEV_CMD_NEWLINK(r1, &(0x7f00000004c0)={0x0, 0x0, &(0x7f0000000480)={&(0x7f00000005c0)={0x38, 0x1403, 0x6c08c44bda12f87d, 0xfffffffc, 0x25dfdbfb, "", [{{0x9, 0x2, 'syz2\x00'}, {0x8, 0x41, 'siw\x00'}, {0x14, 0x33, 'bridge0\x00'}}]}, 0x38}, 0x1, 0x0, 0x0, 0x44810}, 0x200040c0)
program did not crash
testing program (duration=6m0s, {Threaded:true Repeat:true RepeatTimes:0 Procs:6 Slowdown:1 Sandbox:none SandboxArg:0 Leak:false NetInjection:true NetDevices:true NetReset:true Cgroups:true BinfmtMisc:true CloseFDs:true KCSAN:false DevlinkPCI:false NicVF:false USB:true VhciInjection:true Wifi:true IEEE802154:true Sysctl:true Swap:true UseTmpDir:true HandleSegv:true Trace:false LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): socket$inet-sendto$inet-setsockopt$inet_mreqsrc-socket$nl_rdma-sendmsg$RDMA_NLDEV_CMD_NEWLINK
detailed listing:
executing program 0:
r0 = socket$inet(0x2, 0x1, 0x100)
sendto$inet(r0, 0x0, 0x0, 0x200007fd, 0x0, 0x0)
setsockopt$inet_mreqsrc(0xffffffffffffffff, 0x0, 0x28, 0x0, 0x0)
r1 = socket$nl_rdma(0x10, 0x3, 0x14)
sendmsg$RDMA_NLDEV_CMD_NEWLINK(r1, &(0x7f00000004c0)={0x0, 0x0, &(0x7f0000000480)={&(0x7f00000005c0)={0x38, 0x1403, 0x6c08c44bda12f87d, 0xfffffffc, 0x25dfdbfb, "", [{{0x9, 0x2, 'syz2\x00'}, {0x8, 0x41, 'siw\x00'}, {0x14, 0x33, 'bridge0\x00'}}]}, 0x38}, 0x1, 0x0, 0x0, 0x44810}, 0x200040c0)
program did not crash
testing program (duration=6m0s, {Threaded:true Repeat:true RepeatTimes:0 Procs:6 Slowdown:1 Sandbox:none SandboxArg:0 Leak:false NetInjection:true NetDevices:true NetReset:true Cgroups:true BinfmtMisc:true CloseFDs:true KCSAN:false DevlinkPCI:false NicVF:false USB:true VhciInjection:true Wifi:true IEEE802154:true Sysctl:true Swap:true UseTmpDir:true HandleSegv:true Trace:false LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): socket$inet-socket$inet_smc-setsockopt$inet_mreqsrc-socket$nl_rdma-sendmsg$RDMA_NLDEV_CMD_NEWLINK
detailed listing:
executing program 0:
socket$inet(0x2, 0x1, 0x100)
r0 = socket$inet_smc(0x2b, 0x1, 0x0)
setsockopt$inet_mreqsrc(r0, 0x0, 0x28, 0x0, 0x0)
r1 = socket$nl_rdma(0x10, 0x3, 0x14)
sendmsg$RDMA_NLDEV_CMD_NEWLINK(r1, &(0x7f00000004c0)={0x0, 0x0, &(0x7f0000000480)={&(0x7f00000005c0)={0x38, 0x1403, 0x6c08c44bda12f87d, 0xfffffffc, 0x25dfdbfb, "", [{{0x9, 0x2, 'syz2\x00'}, {0x8, 0x41, 'siw\x00'}, {0x14, 0x33, 'bridge0\x00'}}]}, 0x38}, 0x1, 0x0, 0x0, 0x44810}, 0x200040c0)
program did not crash
testing program (duration=6m0s, {Threaded:true Repeat:true RepeatTimes:0 Procs:6 Slowdown:1 Sandbox:none SandboxArg:0 Leak:false NetInjection:true NetDevices:true NetReset:true Cgroups:true BinfmtMisc:true CloseFDs:true KCSAN:false DevlinkPCI:false NicVF:false USB:true VhciInjection:true Wifi:true IEEE802154:true Sysctl:true Swap:true UseTmpDir:true HandleSegv:true Trace:false LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): sendto$inet-socket$inet_smc-setsockopt$inet_mreqsrc-socket$nl_rdma-sendmsg$RDMA_NLDEV_CMD_NEWLINK
detailed listing:
executing program 0:
sendto$inet(0xffffffffffffffff, 0x0, 0x0, 0x200007fd, 0x0, 0x0)
r0 = socket$inet_smc(0x2b, 0x1, 0x0)
setsockopt$inet_mreqsrc(r0, 0x0, 0x28, 0x0, 0x0)
r1 = socket$nl_rdma(0x10, 0x3, 0x14)
sendmsg$RDMA_NLDEV_CMD_NEWLINK(r1, &(0x7f00000004c0)={0x0, 0x0, &(0x7f0000000480)={&(0x7f00000005c0)={0x38, 0x1403, 0x6c08c44bda12f87d, 0xfffffffc, 0x25dfdbfb, "", [{{0x9, 0x2, 'syz2\x00'}, {0x8, 0x41, 'siw\x00'}, {0x14, 0x33, 'bridge0\x00'}}]}, 0x38}, 0x1, 0x0, 0x0, 0x44810}, 0x200040c0)
program did not crash
testing program (duration=6m0s, {Threaded:true Repeat:true RepeatTimes:0 Procs:6 Slowdown:1 Sandbox:none SandboxArg:0 Leak:false NetInjection:true NetDevices:true NetReset:true Cgroups:true BinfmtMisc:true CloseFDs:true KCSAN:false DevlinkPCI:false NicVF:false USB:true VhciInjection:true Wifi:true IEEE802154:true Sysctl:true Swap:true UseTmpDir:true HandleSegv:true Trace:false LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): socket$inet-sendto$inet-socket$inet_smc-setsockopt$inet_mreqsrc-socket$nl_rdma-sendmsg$RDMA_NLDEV_CMD_NEWLINK
detailed listing:
executing program 0:
r0 = socket$inet(0x2, 0x1, 0x100)
sendto$inet(r0, 0x0, 0x0, 0x200007fd, 0x0, 0x0)
r1 = socket$inet_smc(0x2b, 0x1, 0x0)
setsockopt$inet_mreqsrc(r1, 0x0, 0x28, 0x0, 0x0)
r2 = socket$nl_rdma(0x10, 0x3, 0x14)
sendmsg$RDMA_NLDEV_CMD_NEWLINK(r2, 0x0, 0x200040c0)
program did not crash
testing program (duration=6m0s, {Threaded:true Repeat:true RepeatTimes:0 Procs:6 Slowdown:1 Sandbox:none SandboxArg:0 Leak:false NetInjection:true NetDevices:true NetReset:true Cgroups:true BinfmtMisc:true CloseFDs:true KCSAN:false DevlinkPCI:false NicVF:false USB:true VhciInjection:true Wifi:true IEEE802154:true Sysctl:true Swap:true UseTmpDir:true HandleSegv:true Trace:false LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): socket$inet-sendto$inet-socket$inet_smc-setsockopt$inet_mreqsrc-socket$nl_rdma-sendmsg$RDMA_NLDEV_CMD_NEWLINK
detailed listing:
executing program 0:
r0 = socket$inet(0x2, 0x1, 0x100)
sendto$inet(r0, 0x0, 0x0, 0x200007fd, 0x0, 0x0)
r1 = socket$inet_smc(0x2b, 0x1, 0x0)
setsockopt$inet_mreqsrc(r1, 0x0, 0x28, 0x0, 0x0)
r2 = socket$nl_rdma(0x10, 0x3, 0x14)
sendmsg$RDMA_NLDEV_CMD_NEWLINK(r2, &(0x7f00000004c0)={0x0, 0x0, 0x0, 0x1, 0x0, 0x0, 0x44810}, 0x200040c0)
program did not crash
testing program (duration=6m0s, {Threaded:true Repeat:true RepeatTimes:0 Procs:6 Slowdown:1 Sandbox:none SandboxArg:0 Leak:false NetInjection:true NetDevices:true NetReset:true Cgroups:true BinfmtMisc:true CloseFDs:true KCSAN:false DevlinkPCI:false NicVF:false USB:true VhciInjection:true Wifi:true IEEE802154:true Sysctl:true Swap:true UseTmpDir:true HandleSegv:true Trace:false LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): socket$inet-sendto$inet-socket$inet_smc-setsockopt$inet_mreqsrc-socket$nl_rdma-sendmsg$RDMA_NLDEV_CMD_NEWLINK
detailed listing:
executing program 0:
r0 = socket$inet(0x2, 0x1, 0x100)
sendto$inet(r0, 0x0, 0x0, 0x200007fd, 0x0, 0x0)
r1 = socket$inet_smc(0x2b, 0x1, 0x0)
setsockopt$inet_mreqsrc(r1, 0x0, 0x28, 0x0, 0x0)
r2 = socket$nl_rdma(0x10, 0x3, 0x14)
sendmsg$RDMA_NLDEV_CMD_NEWLINK(r2, &(0x7f00000004c0)={0x0, 0x0, &(0x7f0000000480)={0x0}, 0x1, 0x0, 0x0, 0x44810}, 0x200040c0)
program did not crash
extracting C reproducer
testing compiled C program (duration=6m0s, {Threaded:true Repeat:true RepeatTimes:0 Procs:6 Slowdown:1 Sandbox:none SandboxArg:0 Leak:false NetInjection:true NetDevices:true NetReset:true Cgroups:true BinfmtMisc:true CloseFDs:true KCSAN:false DevlinkPCI:false NicVF:false USB:true VhciInjection:true Wifi:true IEEE802154:true Sysctl:true Swap:true UseTmpDir:true HandleSegv:true Trace:false LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): socket$inet-sendto$inet-socket$inet_smc-setsockopt$inet_mreqsrc-socket$nl_rdma-sendmsg$RDMA_NLDEV_CMD_NEWLINK
program crashed: possible deadlock in sock_set_reuseaddr
simplifying C reproducer
testing compiled C program (duration=6m0s, {Threaded:false Repeat:true RepeatTimes:0 Procs:6 Slowdown:1 Sandbox:none SandboxArg:0 Leak:false NetInjection:true NetDevices:true NetReset:true Cgroups:true BinfmtMisc:true CloseFDs:true KCSAN:false DevlinkPCI:false NicVF:false USB:true VhciInjection:true Wifi:true IEEE802154:true Sysctl:true Swap:true UseTmpDir:true HandleSegv:true Trace:false LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): socket$inet-sendto$inet-socket$inet_smc-setsockopt$inet_mreqsrc-socket$nl_rdma-sendmsg$RDMA_NLDEV_CMD_NEWLINK
program crashed: possible deadlock in sock_set_reuseaddr
testing compiled C program (duration=6m0s, {Threaded:false Repeat:true RepeatTimes:0 Procs:1 Slowdown:1 Sandbox:none SandboxArg:0 Leak:false NetInjection:true NetDevices:true NetReset:true Cgroups:true BinfmtMisc:true CloseFDs:true KCSAN:false DevlinkPCI:false NicVF:false USB:true VhciInjection:true Wifi:true IEEE802154:true Sysctl:true Swap:true UseTmpDir:true HandleSegv:true Trace:false LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): socket$inet-sendto$inet-socket$inet_smc-setsockopt$inet_mreqsrc-socket$nl_rdma-sendmsg$RDMA_NLDEV_CMD_NEWLINK
program crashed: possible deadlock in sock_set_reuseaddr
testing compiled C program (duration=6m0s, {Threaded:false Repeat:true RepeatTimes:0 Procs:1 Slowdown:1 Sandbox: SandboxArg:0 Leak:false NetInjection:false NetDevices:false NetReset:false Cgroups:false BinfmtMisc:false CloseFDs:false KCSAN:false DevlinkPCI:false NicVF:false USB:false VhciInjection:false Wifi:false IEEE802154:true Sysctl:true Swap:false UseTmpDir:true HandleSegv:true Trace:false LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): socket$inet-sendto$inet-socket$inet_smc-setsockopt$inet_mreqsrc-socket$nl_rdma-sendmsg$RDMA_NLDEV_CMD_NEWLINK
program crashed: no output from test machine
a never seen crash title: no output from test machine, ignore
testing compiled C program (duration=6m0s, {Threaded:false Repeat:true RepeatTimes:0 Procs:1 Slowdown:1 Sandbox:none SandboxArg:0 Leak:false NetInjection:false NetDevices:true NetReset:true Cgroups:true BinfmtMisc:true CloseFDs:true KCSAN:false DevlinkPCI:false NicVF:false USB:true VhciInjection:true Wifi:true IEEE802154:true Sysctl:true Swap:true UseTmpDir:true HandleSegv:true Trace:false LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): socket$inet-sendto$inet-socket$inet_smc-setsockopt$inet_mreqsrc-socket$nl_rdma-sendmsg$RDMA_NLDEV_CMD_NEWLINK
program crashed: possible deadlock in sock_set_reuseaddr
testing compiled C program (duration=6m0s, {Threaded:false Repeat:true RepeatTimes:0 Procs:1 Slowdown:1 Sandbox:none SandboxArg:0 Leak:false NetInjection:false NetDevices:false NetReset:true Cgroups:true BinfmtMisc:true CloseFDs:true KCSAN:false DevlinkPCI:false NicVF:false USB:true VhciInjection:true Wifi:true IEEE802154:true Sysctl:true Swap:true UseTmpDir:true HandleSegv:true Trace:false LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): socket$inet-sendto$inet-socket$inet_smc-setsockopt$inet_mreqsrc-socket$nl_rdma-sendmsg$RDMA_NLDEV_CMD_NEWLINK
program crashed: no output from test machine
a never seen crash title: no output from test machine, ignore
testing compiled C program (duration=6m0s, {Threaded:false Repeat:true RepeatTimes:0 Procs:1 Slowdown:1 Sandbox:none SandboxArg:0 Leak:false NetInjection:false NetDevices:true NetReset:false Cgroups:true BinfmtMisc:true CloseFDs:true KCSAN:false DevlinkPCI:false NicVF:false USB:true VhciInjection:true Wifi:true IEEE802154:true Sysctl:true Swap:true UseTmpDir:true HandleSegv:true Trace:false LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): socket$inet-sendto$inet-socket$inet_smc-setsockopt$inet_mreqsrc-socket$nl_rdma-sendmsg$RDMA_NLDEV_CMD_NEWLINK
program crashed: possible deadlock in sock_set_reuseaddr
testing compiled C program (duration=6m0s, {Threaded:false Repeat:true RepeatTimes:0 Procs:1 Slowdown:1 Sandbox:none SandboxArg:0 Leak:false NetInjection:false NetDevices:true NetReset:false Cgroups:false BinfmtMisc:true CloseFDs:true KCSAN:false DevlinkPCI:false NicVF:false USB:true VhciInjection:true Wifi:true IEEE802154:true Sysctl:true Swap:true UseTmpDir:true HandleSegv:true Trace:false LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): socket$inet-sendto$inet-socket$inet_smc-setsockopt$inet_mreqsrc-socket$nl_rdma-sendmsg$RDMA_NLDEV_CMD_NEWLINK
program crashed: possible deadlock in sock_set_reuseaddr
testing compiled C program (duration=6m0s, {Threaded:false Repeat:true RepeatTimes:0 Procs:1 Slowdown:1 Sandbox:none SandboxArg:0 Leak:false NetInjection:false NetDevices:true NetReset:false Cgroups:false BinfmtMisc:false CloseFDs:true KCSAN:false DevlinkPCI:false NicVF:false USB:true VhciInjection:true Wifi:true IEEE802154:true Sysctl:true Swap:true UseTmpDir:true HandleSegv:true Trace:false LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): socket$inet-sendto$inet-socket$inet_smc-setsockopt$inet_mreqsrc-socket$nl_rdma-sendmsg$RDMA_NLDEV_CMD_NEWLINK
program crashed: possible deadlock in sock_set_reuseaddr
testing compiled C program (duration=6m0s, {Threaded:false Repeat:true RepeatTimes:0 Procs:1 Slowdown:1 Sandbox:none SandboxArg:0 Leak:false NetInjection:false NetDevices:true NetReset:false Cgroups:false BinfmtMisc:false CloseFDs:true KCSAN:false DevlinkPCI:false NicVF:false USB:false VhciInjection:true Wifi:true IEEE802154:true Sysctl:true Swap:true UseTmpDir:true HandleSegv:true Trace:false LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): socket$inet-sendto$inet-socket$inet_smc-setsockopt$inet_mreqsrc-socket$nl_rdma-sendmsg$RDMA_NLDEV_CMD_NEWLINK
program crashed: possible deadlock in sock_set_reuseaddr
testing compiled C program (duration=6m0s, {Threaded:false Repeat:true RepeatTimes:0 Procs:1 Slowdown:1 Sandbox:none SandboxArg:0 Leak:false NetInjection:false NetDevices:true NetReset:false Cgroups:false BinfmtMisc:false CloseFDs:true KCSAN:false DevlinkPCI:false NicVF:false USB:false VhciInjection:false Wifi:true IEEE802154:true Sysctl:true Swap:true UseTmpDir:true HandleSegv:true Trace:false LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): socket$inet-sendto$inet-socket$inet_smc-setsockopt$inet_mreqsrc-socket$nl_rdma-sendmsg$RDMA_NLDEV_CMD_NEWLINK
program crashed: possible deadlock in sock_set_reuseaddr
testing compiled C program (duration=6m0s, {Threaded:false Repeat:true RepeatTimes:0 Procs:1 Slowdown:1 Sandbox:none SandboxArg:0 Leak:false NetInjection:false NetDevices:true NetReset:false Cgroups:false BinfmtMisc:false CloseFDs:true KCSAN:false DevlinkPCI:false NicVF:false USB:false VhciInjection:false Wifi:false IEEE802154:true Sysctl:true Swap:true UseTmpDir:true HandleSegv:true Trace:false LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): socket$inet-sendto$inet-socket$inet_smc-setsockopt$inet_mreqsrc-socket$nl_rdma-sendmsg$RDMA_NLDEV_CMD_NEWLINK
program crashed: possible deadlock in sock_set_reuseaddr
testing compiled C program (duration=6m0s, {Threaded:false Repeat:true RepeatTimes:0 Procs:1 Slowdown:1 Sandbox:none SandboxArg:0 Leak:false NetInjection:false NetDevices:true NetReset:false Cgroups:false BinfmtMisc:false CloseFDs:true KCSAN:false DevlinkPCI:false NicVF:false USB:false VhciInjection:false Wifi:false IEEE802154:false Sysctl:true Swap:true UseTmpDir:true HandleSegv:true Trace:false LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): socket$inet-sendto$inet-socket$inet_smc-setsockopt$inet_mreqsrc-socket$nl_rdma-sendmsg$RDMA_NLDEV_CMD_NEWLINK
program crashed: possible deadlock in sock_set_reuseaddr
testing compiled C program (duration=6m0s, {Threaded:false Repeat:true RepeatTimes:0 Procs:1 Slowdown:1 Sandbox:none SandboxArg:0 Leak:false NetInjection:false NetDevices:true NetReset:false Cgroups:false BinfmtMisc:false CloseFDs:true KCSAN:false DevlinkPCI:false NicVF:false USB:false VhciInjection:false Wifi:false IEEE802154:false Sysctl:true Swap:true UseTmpDir:false HandleSegv:true Trace:false LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): socket$inet-sendto$inet-socket$inet_smc-setsockopt$inet_mreqsrc-socket$nl_rdma-sendmsg$RDMA_NLDEV_CMD_NEWLINK
program crashed: possible deadlock in sock_set_reuseaddr
testing compiled C program (duration=6m0s, {Threaded:false Repeat:true RepeatTimes:0 Procs:1 Slowdown:1 Sandbox:none SandboxArg:0 Leak:false NetInjection:false NetDevices:true NetReset:false Cgroups:false BinfmtMisc:false CloseFDs:true KCSAN:false DevlinkPCI:false NicVF:false USB:false VhciInjection:false Wifi:false IEEE802154:false Sysctl:true Swap:true UseTmpDir:false HandleSegv:false Trace:false LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): socket$inet-sendto$inet-socket$inet_smc-setsockopt$inet_mreqsrc-socket$nl_rdma-sendmsg$RDMA_NLDEV_CMD_NEWLINK
program crashed: possible deadlock in sock_set_reuseaddr
testing compiled C program (duration=6m0s, {Threaded:false Repeat:true RepeatTimes:0 Procs:1 Slowdown:1 Sandbox:none SandboxArg:0 Leak:false NetInjection:false NetDevices:true NetReset:false Cgroups:false BinfmtMisc:false CloseFDs:true KCSAN:false DevlinkPCI:false NicVF:false USB:false VhciInjection:false Wifi:false IEEE802154:false Sysctl:false Swap:true UseTmpDir:false HandleSegv:false Trace:false LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): socket$inet-sendto$inet-socket$inet_smc-setsockopt$inet_mreqsrc-socket$nl_rdma-sendmsg$RDMA_NLDEV_CMD_NEWLINK
program crashed: possible deadlock in sock_set_reuseaddr
testing compiled C program (duration=6m0s, {Threaded:false Repeat:true RepeatTimes:0 Procs:1 Slowdown:1 Sandbox:none SandboxArg:0 Leak:false NetInjection:false NetDevices:true NetReset:false Cgroups:false BinfmtMisc:false CloseFDs:true KCSAN:false DevlinkPCI:false NicVF:false USB:false VhciInjection:false Wifi:false IEEE802154:false Sysctl:false Swap:false UseTmpDir:false HandleSegv:false Trace:false LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): socket$inet-sendto$inet-socket$inet_smc-setsockopt$inet_mreqsrc-socket$nl_rdma-sendmsg$RDMA_NLDEV_CMD_NEWLINK
program crashed: possible deadlock in sock_set_reuseaddr
reproducing took 1h19m2.107207213s
repro crashed as (corrupted=false):
iwpm_register_pid: Unable to send a nlmsg (client = 2)
======================================================
WARNING: possible circular locking dependency detected
6.14.0-rc6-syzkaller-00212-geb88e6bfbc0a #0 Not tainted
------------------------------------------------------
syz-executor870/5312 is trying to acquire lock:
ffff888043e45b98 (sk_lock-AF_INET){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1624 [inline]
ffff888043e45b98 (sk_lock-AF_INET){+.+.}-{0:0}, at: sock_set_reuseaddr+0x17/0x60 net/core/sock.c:788
but task is already holding lock:
ffffffff8fc6da68 (lock#8){+.+.}-{4:4}, at: cma_add_one+0x6bc/0xcd0 drivers/infiniband/core/cma.c:5370
which lock already depends on the new lock.
the existing dependency chain (in reverse order) is:
-> #3 (lock#8){+.+.}-{4:4}:
lock_acquire+0x1ed/0x550 kernel/locking/lockdep.c:5851
__mutex_lock_common kernel/locking/mutex.c:585 [inline]
__mutex_lock+0x19c/0x1010 kernel/locking/mutex.c:730
cma_init+0x1e/0x140 drivers/infiniband/core/cma.c:5454
do_one_initcall+0x248/0x930 init/main.c:1257
do_initcall_level+0x157/0x210 init/main.c:1319
do_initcalls+0x71/0xd0 init/main.c:1335
kernel_init_freeable+0x435/0x5d0 init/main.c:1568
kernel_init+0x1d/0x2b0 init/main.c:1457
ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:148
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244
-> #2 (rtnl_mutex){+.+.}-{4:4}:
lock_acquire+0x1ed/0x550 kernel/locking/lockdep.c:5851
__mutex_lock_common kernel/locking/mutex.c:585 [inline]
__mutex_lock+0x19c/0x1010 kernel/locking/mutex.c:730
do_ip_setsockopt+0x11ef/0x3ae0 net/ipv4/ip_sockglue.c:1077
ip_setsockopt+0x63/0x100 net/ipv4/ip_sockglue.c:1417
smc_setsockopt+0x275/0xd10 net/smc/af_smc.c:3081
do_sock_setsockopt+0x3af/0x720 net/socket.c:2303
__sys_setsockopt net/socket.c:2328 [inline]
__do_sys_setsockopt net/socket.c:2334 [inline]
__se_sys_setsockopt net/socket.c:2331 [inline]
__x64_sys_setsockopt+0x1ee/0x280 net/socket.c:2331
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
-> #1 (&smc->clcsock_release_lock){+.+.}-{4:4}:
lock_acquire+0x1ed/0x550 kernel/locking/lockdep.c:5851
__mutex_lock_common kernel/locking/mutex.c:585 [inline]
__mutex_lock+0x19c/0x1010 kernel/locking/mutex.c:730
smc_switch_to_fallback+0x35/0xd90 net/smc/af_smc.c:903
smc_sendmsg+0x11f/0x530 net/smc/af_smc.c:2781
sock_sendmsg_nosec net/socket.c:718 [inline]
__sock_sendmsg+0x221/0x270 net/socket.c:733
__sys_sendto+0x363/0x4c0 net/socket.c:2187
__do_sys_sendto net/socket.c:2194 [inline]
__se_sys_sendto net/socket.c:2190 [inline]
__x64_sys_sendto+0xde/0x100 net/socket.c:2190
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
-> #0 (sk_lock-AF_INET){+.+.}-{0:0}:
check_prev_add kernel/locking/lockdep.c:3163 [inline]
check_prevs_add kernel/locking/lockdep.c:3282 [inline]
validate_chain+0x18ef/0x5920 kernel/locking/lockdep.c:3906
__lock_acquire+0x1397/0x2100 kernel/locking/lockdep.c:5228
lock_acquire+0x1ed/0x550 kernel/locking/lockdep.c:5851
lock_sock_nested+0x48/0x100 net/core/sock.c:3662
lock_sock include/net/sock.h:1624 [inline]
sock_set_reuseaddr+0x17/0x60 net/core/sock.c:788
siw_create_listen+0x19d/0x11d0 drivers/infiniband/sw/siw/siw_cm.c:1777
iw_cm_listen+0x15e/0x230 drivers/infiniband/core/iwcm.c:585
cma_iw_listen drivers/infiniband/core/cma.c:2684 [inline]
rdma_listen+0xac8/0xdd0 drivers/infiniband/core/cma.c:3969
cma_listen_on_dev+0x3e0/0x6f0 drivers/infiniband/core/cma.c:2743
cma_add_one+0x7d7/0xcd0 drivers/infiniband/core/cma.c:5373
add_client_context+0x536/0x8b0 drivers/infiniband/core/device.c:711
enable_device_and_get+0x1e6/0x440 drivers/infiniband/core/device.c:1322
ib_register_device+0x1120/0x1460 drivers/infiniband/core/device.c:1433
siw_device_register drivers/infiniband/sw/siw/siw_main.c:72 [inline]
siw_newlink+0x938/0xda0 drivers/infiniband/sw/siw/siw_main.c:431
nldev_newlink+0x5ea/0x680 drivers/infiniband/core/nldev.c:1795
rdma_nl_rcv_skb drivers/infiniband/core/netlink.c:239 [inline]
rdma_nl_rcv+0x6dd/0x9e0 drivers/infiniband/core/netlink.c:259
netlink_unicast_kernel net/netlink/af_netlink.c:1312 [inline]
netlink_unicast+0x7f6/0x990 net/netlink/af_netlink.c:1338
netlink_sendmsg+0x8de/0xcb0 net/netlink/af_netlink.c:1882
sock_sendmsg_nosec net/socket.c:718 [inline]
__sock_sendmsg+0x221/0x270 net/socket.c:733
____sys_sendmsg+0x53a/0x860 net/socket.c:2573
___sys_sendmsg net/socket.c:2627 [inline]
__sys_sendmsg+0x269/0x350 net/socket.c:2659
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
other info that might help us debug this:
Chain exists of:
sk_lock-AF_INET --> rtnl_mutex --> lock#8
Possible unsafe locking scenario:
CPU0 CPU1
---- ----
lock(lock#8);
lock(rtnl_mutex);
lock(lock#8);
lock(sk_lock-AF_INET);
*** DEADLOCK ***
6 locks held by syz-executor870/5312:
#0: ffffffff9aa11b98 (&rdma_nl_types[idx].sem){.+.+}-{4:4}, at: rdma_nl_rcv_msg drivers/infiniband/core/netlink.c:164 [inline]
#0: ffffffff9aa11b98 (&rdma_nl_types[idx].sem){.+.+}-{4:4}, at: rdma_nl_rcv_skb drivers/infiniband/core/netlink.c:239 [inline]
#0: ffffffff9aa11b98 (&rdma_nl_types[idx].sem){.+.+}-{4:4}, at: rdma_nl_rcv+0x32d/0x9e0 drivers/infiniband/core/netlink.c:259
#1: ffffffff8fc59c30 (link_ops_rwsem){++++}-{4:4}, at: nldev_newlink+0x454/0x680 drivers/infiniband/core/nldev.c:1785
#2: ffffffff8fc4c8d0 (devices_rwsem){++++}-{4:4}, at: enable_device_and_get+0x12e/0x440 drivers/infiniband/core/device.c:1312
#3: ffffffff8fc4cbd0 (clients_rwsem){++++}-{4:4}, at: enable_device_and_get+0x196/0x440 drivers/infiniband/core/device.c:1320
#4: ffff888048e2c5e0 (&device->client_data_rwsem){++++}-{4:4}, at: add_client_context+0x4f4/0x8b0 drivers/infiniband/core/device.c:709
#5: ffffffff8fc6da68 (lock#8){+.+.}-{4:4}, at: cma_add_one+0x6bc/0xcd0 drivers/infiniband/core/cma.c:5370
stack backtrace:
CPU: 0 UID: 0 PID: 5312 Comm: syz-executor870 Not tainted 6.14.0-rc6-syzkaller-00212-geb88e6bfbc0a #0
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014
Call Trace:
__dump_stack lib/dump_stack.c:94 [inline]
dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120
print_circular_bug+0x13a/0x1b0 kernel/locking/lockdep.c:2076
check_noncircular+0x36a/0x4a0 kernel/locking/lockdep.c:2208
check_prev_add kernel/locking/lockdep.c:3163 [inline]
check_prevs_add kernel/locking/lockdep.c:3282 [inline]
validate_chain+0x18ef/0x5920 kernel/locking/lockdep.c:3906
__lock_acquire+0x1397/0x2100 kernel/locking/lockdep.c:5228
lock_acquire+0x1ed/0x550 kernel/locking/lockdep.c:5851
lock_sock_nested+0x48/0x100 net/core/sock.c:3662
lock_sock include/net/sock.h:1624 [inline]
sock_set_reuseaddr+0x17/0x60 net/core/sock.c:788
siw_create_listen+0x19d/0x11d0 drivers/infiniband/sw/siw/siw_cm.c:1777
iw_cm_listen+0x15e/0x230 drivers/infiniband/core/iwcm.c:585
cma_iw_listen drivers/infiniband/core/cma.c:2684 [inline]
rdma_listen+0xac8/0xdd0 drivers/infiniband/core/cma.c:3969
cma_listen_on_dev+0x3e0/0x6f0 drivers/infiniband/core/cma.c:2743
cma_add_one+0x7d7/0xcd0 drivers/infiniband/core/cma.c:5373
add_client_context+0x536/0x8b0 drivers/infiniband/core/device.c:711
enable_device_and_get+0x1e6/0x440 drivers/infiniband/core/device.c:1322
ib_register_device+0x1120/0x1460 drivers/infiniband/core/device.c:1433
siw_device_register drivers/infiniband/sw/siw/siw_main.c:72 [inline]
siw_newlink+0x938/0xda0 drivers/infiniband/sw/siw/siw_main.c:431
nldev_newlink+0x5ea/0x680 drivers/infiniband/core/nldev.c:1795
rdma_nl_rcv_skb drivers/infiniband/core/netlink.c:239 [inline]
rdma_nl_rcv+0x6dd/0x9e0 drivers/infiniband/core/netlink.c:259
netlink_unicast_kernel net/netlink/af_netlink.c:1312 [inline]
netlink_unicast+0x7f6/0x990 net/netlink/af_netlink.c:1338
netlink_sendmsg+0x8de/0xcb0 net/netlink/af_netlink.c:1882
sock_sendmsg_nosec net/socket.c:718 [inline]
__sock_sendmsg+0x221/0x270 net/socket.c:733
____sys_sendmsg+0x53a/0x860 net/socket.c:2573
___sys_sendmsg net/socket.c:2627 [inline]
__sys_sendmsg+0x269/0x350 net/socket.c:2659
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f0d470a2ee9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 01 1a 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffd6d99e648 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007f0d470a2ee9
RDX: 00000000200040c0 RSI: 00004000000004c0 RDI: 0000000000000005
RBP: 00000000000f4240 R08: 0000000000000001 R09: 0000000000000001
R10: 0000000000000001 R11: 0000000000000246 R12: 00007ffd6d99e6a0
R13: 00007f0d470f03fe R14: 0000000000000003 R15: 00007ffd6d99e680
infiniband syz2: RDMA CMA: cma_listen_on_dev, error -98
final repro crashed as (corrupted=false):
iwpm_register_pid: Unable to send a nlmsg (client = 2)
======================================================
WARNING: possible circular locking dependency detected
6.14.0-rc6-syzkaller-00212-geb88e6bfbc0a #0 Not tainted
------------------------------------------------------
syz-executor870/5312 is trying to acquire lock:
ffff888043e45b98 (sk_lock-AF_INET){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1624 [inline]
ffff888043e45b98 (sk_lock-AF_INET){+.+.}-{0:0}, at: sock_set_reuseaddr+0x17/0x60 net/core/sock.c:788
but task is already holding lock:
ffffffff8fc6da68 (lock#8){+.+.}-{4:4}, at: cma_add_one+0x6bc/0xcd0 drivers/infiniband/core/cma.c:5370
which lock already depends on the new lock.
the existing dependency chain (in reverse order) is:
-> #3 (lock#8){+.+.}-{4:4}:
lock_acquire+0x1ed/0x550 kernel/locking/lockdep.c:5851
__mutex_lock_common kernel/locking/mutex.c:585 [inline]
__mutex_lock+0x19c/0x1010 kernel/locking/mutex.c:730
cma_init+0x1e/0x140 drivers/infiniband/core/cma.c:5454
do_one_initcall+0x248/0x930 init/main.c:1257
do_initcall_level+0x157/0x210 init/main.c:1319
do_initcalls+0x71/0xd0 init/main.c:1335
kernel_init_freeable+0x435/0x5d0 init/main.c:1568
kernel_init+0x1d/0x2b0 init/main.c:1457
ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:148
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244
-> #2 (rtnl_mutex){+.+.}-{4:4}:
lock_acquire+0x1ed/0x550 kernel/locking/lockdep.c:5851
__mutex_lock_common kernel/locking/mutex.c:585 [inline]
__mutex_lock+0x19c/0x1010 kernel/locking/mutex.c:730
do_ip_setsockopt+0x11ef/0x3ae0 net/ipv4/ip_sockglue.c:1077
ip_setsockopt+0x63/0x100 net/ipv4/ip_sockglue.c:1417
smc_setsockopt+0x275/0xd10 net/smc/af_smc.c:3081
do_sock_setsockopt+0x3af/0x720 net/socket.c:2303
__sys_setsockopt net/socket.c:2328 [inline]
__do_sys_setsockopt net/socket.c:2334 [inline]
__se_sys_setsockopt net/socket.c:2331 [inline]
__x64_sys_setsockopt+0x1ee/0x280 net/socket.c:2331
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
-> #1 (&smc->clcsock_release_lock){+.+.}-{4:4}:
lock_acquire+0x1ed/0x550 kernel/locking/lockdep.c:5851
__mutex_lock_common kernel/locking/mutex.c:585 [inline]
__mutex_lock+0x19c/0x1010 kernel/locking/mutex.c:730
smc_switch_to_fallback+0x35/0xd90 net/smc/af_smc.c:903
smc_sendmsg+0x11f/0x530 net/smc/af_smc.c:2781
sock_sendmsg_nosec net/socket.c:718 [inline]
__sock_sendmsg+0x221/0x270 net/socket.c:733
__sys_sendto+0x363/0x4c0 net/socket.c:2187
__do_sys_sendto net/socket.c:2194 [inline]
__se_sys_sendto net/socket.c:2190 [inline]
__x64_sys_sendto+0xde/0x100 net/socket.c:2190
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
-> #0 (sk_lock-AF_INET){+.+.}-{0:0}:
check_prev_add kernel/locking/lockdep.c:3163 [inline]
check_prevs_add kernel/locking/lockdep.c:3282 [inline]
validate_chain+0x18ef/0x5920 kernel/locking/lockdep.c:3906
__lock_acquire+0x1397/0x2100 kernel/locking/lockdep.c:5228
lock_acquire+0x1ed/0x550 kernel/locking/lockdep.c:5851
lock_sock_nested+0x48/0x100 net/core/sock.c:3662
lock_sock include/net/sock.h:1624 [inline]
sock_set_reuseaddr+0x17/0x60 net/core/sock.c:788
siw_create_listen+0x19d/0x11d0 drivers/infiniband/sw/siw/siw_cm.c:1777
iw_cm_listen+0x15e/0x230 drivers/infiniband/core/iwcm.c:585
cma_iw_listen drivers/infiniband/core/cma.c:2684 [inline]
rdma_listen+0xac8/0xdd0 drivers/infiniband/core/cma.c:3969
cma_listen_on_dev+0x3e0/0x6f0 drivers/infiniband/core/cma.c:2743
cma_add_one+0x7d7/0xcd0 drivers/infiniband/core/cma.c:5373
add_client_context+0x536/0x8b0 drivers/infiniband/core/device.c:711
enable_device_and_get+0x1e6/0x440 drivers/infiniband/core/device.c:1322
ib_register_device+0x1120/0x1460 drivers/infiniband/core/device.c:1433
siw_device_register drivers/infiniband/sw/siw/siw_main.c:72 [inline]
siw_newlink+0x938/0xda0 drivers/infiniband/sw/siw/siw_main.c:431
nldev_newlink+0x5ea/0x680 drivers/infiniband/core/nldev.c:1795
rdma_nl_rcv_skb drivers/infiniband/core/netlink.c:239 [inline]
rdma_nl_rcv+0x6dd/0x9e0 drivers/infiniband/core/netlink.c:259
netlink_unicast_kernel net/netlink/af_netlink.c:1312 [inline]
netlink_unicast+0x7f6/0x990 net/netlink/af_netlink.c:1338
netlink_sendmsg+0x8de/0xcb0 net/netlink/af_netlink.c:1882
sock_sendmsg_nosec net/socket.c:718 [inline]
__sock_sendmsg+0x221/0x270 net/socket.c:733
____sys_sendmsg+0x53a/0x860 net/socket.c:2573
___sys_sendmsg net/socket.c:2627 [inline]
__sys_sendmsg+0x269/0x350 net/socket.c:2659
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
other info that might help us debug this:
Chain exists of:
sk_lock-AF_INET --> rtnl_mutex --> lock#8
Possible unsafe locking scenario:
CPU0 CPU1
---- ----
lock(lock#8);
lock(rtnl_mutex);
lock(lock#8);
lock(sk_lock-AF_INET);
*** DEADLOCK ***
6 locks held by syz-executor870/5312:
#0: ffffffff9aa11b98 (&rdma_nl_types[idx].sem){.+.+}-{4:4}, at: rdma_nl_rcv_msg drivers/infiniband/core/netlink.c:164 [inline]
#0: ffffffff9aa11b98 (&rdma_nl_types[idx].sem){.+.+}-{4:4}, at: rdma_nl_rcv_skb drivers/infiniband/core/netlink.c:239 [inline]
#0: ffffffff9aa11b98 (&rdma_nl_types[idx].sem){.+.+}-{4:4}, at: rdma_nl_rcv+0x32d/0x9e0 drivers/infiniband/core/netlink.c:259
#1: ffffffff8fc59c30 (link_ops_rwsem){++++}-{4:4}, at: nldev_newlink+0x454/0x680 drivers/infiniband/core/nldev.c:1785
#2: ffffffff8fc4c8d0 (devices_rwsem){++++}-{4:4}, at: enable_device_and_get+0x12e/0x440 drivers/infiniband/core/device.c:1312
#3: ffffffff8fc4cbd0 (clients_rwsem){++++}-{4:4}, at: enable_device_and_get+0x196/0x440 drivers/infiniband/core/device.c:1320
#4: ffff888048e2c5e0 (&device->client_data_rwsem){++++}-{4:4}, at: add_client_context+0x4f4/0x8b0 drivers/infiniband/core/device.c:709
#5: ffffffff8fc6da68 (lock#8){+.+.}-{4:4}, at: cma_add_one+0x6bc/0xcd0 drivers/infiniband/core/cma.c:5370
stack backtrace:
CPU: 0 UID: 0 PID: 5312 Comm: syz-executor870 Not tainted 6.14.0-rc6-syzkaller-00212-geb88e6bfbc0a #0
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014
Call Trace:
__dump_stack lib/dump_stack.c:94 [inline]
dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120
print_circular_bug+0x13a/0x1b0 kernel/locking/lockdep.c:2076
check_noncircular+0x36a/0x4a0 kernel/locking/lockdep.c:2208
check_prev_add kernel/locking/lockdep.c:3163 [inline]
check_prevs_add kernel/locking/lockdep.c:3282 [inline]
validate_chain+0x18ef/0x5920 kernel/locking/lockdep.c:3906
__lock_acquire+0x1397/0x2100 kernel/locking/lockdep.c:5228
lock_acquire+0x1ed/0x550 kernel/locking/lockdep.c:5851
lock_sock_nested+0x48/0x100 net/core/sock.c:3662
lock_sock include/net/sock.h:1624 [inline]
sock_set_reuseaddr+0x17/0x60 net/core/sock.c:788
siw_create_listen+0x19d/0x11d0 drivers/infiniband/sw/siw/siw_cm.c:1777
iw_cm_listen+0x15e/0x230 drivers/infiniband/core/iwcm.c:585
cma_iw_listen drivers/infiniband/core/cma.c:2684 [inline]
rdma_listen+0xac8/0xdd0 drivers/infiniband/core/cma.c:3969
cma_listen_on_dev+0x3e0/0x6f0 drivers/infiniband/core/cma.c:2743
cma_add_one+0x7d7/0xcd0 drivers/infiniband/core/cma.c:5373
add_client_context+0x536/0x8b0 drivers/infiniband/core/device.c:711
enable_device_and_get+0x1e6/0x440 drivers/infiniband/core/device.c:1322
ib_register_device+0x1120/0x1460 drivers/infiniband/core/device.c:1433
siw_device_register drivers/infiniband/sw/siw/siw_main.c:72 [inline]
siw_newlink+0x938/0xda0 drivers/infiniband/sw/siw/siw_main.c:431
nldev_newlink+0x5ea/0x680 drivers/infiniband/core/nldev.c:1795
rdma_nl_rcv_skb drivers/infiniband/core/netlink.c:239 [inline]
rdma_nl_rcv+0x6dd/0x9e0 drivers/infiniband/core/netlink.c:259
netlink_unicast_kernel net/netlink/af_netlink.c:1312 [inline]
netlink_unicast+0x7f6/0x990 net/netlink/af_netlink.c:1338
netlink_sendmsg+0x8de/0xcb0 net/netlink/af_netlink.c:1882
sock_sendmsg_nosec net/socket.c:718 [inline]
__sock_sendmsg+0x221/0x270 net/socket.c:733
____sys_sendmsg+0x53a/0x860 net/socket.c:2573
___sys_sendmsg net/socket.c:2627 [inline]
__sys_sendmsg+0x269/0x350 net/socket.c:2659
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f0d470a2ee9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 01 1a 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffd6d99e648 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007f0d470a2ee9
RDX: 00000000200040c0 RSI: 00004000000004c0 RDI: 0000000000000005
RBP: 00000000000f4240 R08: 0000000000000001 R09: 0000000000000001
R10: 0000000000000001 R11: 0000000000000246 R12: 00007ffd6d99e6a0
R13: 00007f0d470f03fe R14: 0000000000000003 R15: 00007ffd6d99e680
infiniband syz2: RDMA CMA: cma_listen_on_dev, error -98