====================================================== WARNING: possible circular locking dependency detected 4.14.102+ #17 Not tainted ------------------------------------------------------ syz-executor.1/14587 is trying to acquire lock: (&cpuctx_mutex/1){+.+.}, at: [] mutex_lock_double kernel/events/core.c:9907 [inline] (&cpuctx_mutex/1){+.+.}, at: [] __perf_event_ctx_lock_double kernel/events/core.c:9966 [inline] (&cpuctx_mutex/1){+.+.}, at: [] SYSC_perf_event_open kernel/events/core.c:10231 [inline] (&cpuctx_mutex/1){+.+.}, at: [] SyS_perf_event_open+0x11f1/0x2520 kernel/events/core.c:9986 but task is already holding lock: (&cpuctx_mutex){+.+.}, at: [] mutex_lock_double kernel/events/core.c:9906 [inline] (&cpuctx_mutex){+.+.}, at: [] __perf_event_ctx_lock_double kernel/events/core.c:9966 [inline] (&cpuctx_mutex){+.+.}, at: [] SYSC_perf_event_open kernel/events/core.c:10231 [inline] (&cpuctx_mutex){+.+.}, at: [] SyS_perf_event_open+0x11e4/0x2520 kernel/events/core.c:9986 F2FS-fs (loop3): Magic Mismatch, valid(0xf2f52010) - read(0x0) which lock already depends on the new lock. the existing dependency chain (in reverse order) is: -> #2 (&cpuctx_mutex){+.+.}: -> #1 (pmus_lock){+.+.}: -> #0 (&cpuctx_mutex/1){+.+.}: other info that might help us debug this: Chain exists of: &cpuctx_mutex F2FS-fs (loop3): Can't find valid F2FS filesystem in 1th superblock /1 --> pmus_lock --> &cpuctx_mutex Possible unsafe locking scenario: CPU0 CPU1 ---- ---- lock(&cpuctx_mutex); lock(pmus_lock); lock(&cpuctx_mutex); lock(&cpuctx_mutex/1); *** DEADLOCK *** 1 lock held by syz-executor.1/14587: #0: (&cpuctx_mutex attempt to access beyond end of device ){+.+.}, at: [] mutex_lock_double kernel/events/core.c:9906 [inline] ){+.+.}, at: [] __perf_event_ctx_lock_double kernel/events/core.c:9966 [inline] ){+.+.}, at: [] SYSC_perf_event_open kernel/events/core.c:10231 [inline] ){+.+.}, at: [] SyS_perf_event_open+0x11e4/0x2520 kernel/events/core.c:9986 stack backtrace: CPU: 0 PID: 14587 Comm: syz-executor.1 Not tainted 4.14.102+ #17 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0xb9/0x10e lib/dump_stack.c:53 print_circular_bug.isra.0.cold+0x2dc/0x425 kernel/locking/lockdep.c:1258 loop3: rw=12288, want=8200, limit=20 attempt to access beyond end of device loop3: rw=12288, want=12296, limit=20 F2FS-fs (loop3): Failed to get valid F2FS checkpoint F2FS-fs (loop3): Magic Mismatch, valid(0xf2f52010) - read(0x0) F2FS-fs (loop3): Can't find valid F2FS filesystem in 1th superblock attempt to access beyond end of device loop3: rw=12288, want=8200, limit=20 attempt to access beyond end of device loop3: rw=12288, want=12296, limit=20 F2FS-fs (loop3): Failed to get valid F2FS checkpoint F2FS-fs (loop3): Magic Mismatch, valid(0xf2f52010) - read(0x0) F2FS-fs (loop3): Can't find valid F2FS filesystem in 1th superblock attempt to access beyond end of device loop3: rw=12288, want=8200, limit=20 attempt to access beyond end of device loop3: rw=12288, want=12296, limit=20 F2FS-fs (loop3): Failed to get valid F2FS checkpoint F2FS-fs (loop3): Magic Mismatch, valid(0xf2f52010) - read(0x0) F2FS-fs (loop3): Can't find valid F2FS filesystem in 1th superblock attempt to access beyond end of device loop3: rw=12288, want=8200, limit=20 attempt to access beyond end of device loop3: rw=12288, want=12296, limit=20 F2FS-fs (loop3): Failed to get valid F2FS checkpoint F2FS-fs (loop3): Magic Mismatch, valid(0xf2f52010) - read(0x0) F2FS-fs (loop3): Can't find valid F2FS filesystem in 1th superblock attempt to access beyond end of device loop3: rw=12288, want=8200, limit=20 attempt to access beyond end of device loop3: rw=12288, want=12296, limit=20 F2FS-fs (loop3): Failed to get valid F2FS checkpoint netlink: 8 bytes leftover after parsing attributes in process `syz-executor.5'. F2FS-fs (loop3): Magic Mismatch, valid(0xf2f52010) - read(0x0) F2FS-fs (loop3): Can't find valid F2FS filesystem in 1th superblock netlink: 8 bytes leftover after parsing attributes in process `syz-executor.5'. attempt to access beyond end of device loop3: rw=12288, want=8200, limit=20 attempt to access beyond end of device loop3: rw=12288, want=12296, limit=20 F2FS-fs (loop3): Failed to get valid F2FS checkpoint F2FS-fs (loop3): Magic Mismatch, valid(0xf2f52010) - read(0x0) F2FS-fs (loop3): Can't find valid F2FS filesystem in 1th superblock attempt to access beyond end of device loop3: rw=12288, want=8200, limit=20 attempt to access beyond end of device loop3: rw=12288, want=12296, limit=20 F2FS-fs (loop3): Failed to get valid F2FS checkpoint F2FS-fs (loop3): Magic Mismatch, valid(0xf2f52010) - read(0x0) F2FS-fs (loop3): Can't find valid F2FS filesystem in 1th superblock attempt to access beyond end of device loop3: rw=12288, want=8200, limit=20 attempt to access beyond end of device loop3: rw=12288, want=12296, limit=20 F2FS-fs (loop3): Failed to get valid F2FS checkpoint F2FS-fs (loop3): Magic Mismatch, valid(0xf2f52010) - read(0x0) F2FS-fs (loop3): Can't find valid F2FS filesystem in 1th superblock attempt to access beyond end of device loop3: rw=12288, want=8200, limit=20 attempt to access beyond end of device loop3: rw=12288, want=12296, limit=20 F2FS-fs (loop3): Failed to get valid F2FS checkpoint F2FS-fs (loop3): Magic Mismatch, valid(0xf2f52010) - read(0x0) F2FS-fs (loop3): Can't find valid F2FS filesystem in 1th superblock attempt to access beyond end of device loop3: rw=12288, want=8200, limit=20 attempt to access beyond end of device loop3: rw=12288, want=12296, limit=20 F2FS-fs (loop3): Failed to get valid F2FS checkpoint F2FS-fs (loop3): Magic Mismatch, valid(0xf2f52010) - read(0x0) F2FS-fs (loop3): Can't find valid F2FS filesystem in 1th superblock attempt to access beyond end of device loop3: rw=12288, want=8200, limit=20 attempt to access beyond end of device loop3: rw=12288, want=12296, limit=20 F2FS-fs (loop3): Failed to get valid F2FS checkpoint F2FS-fs (loop3): Magic Mismatch, valid(0xf2f52010) - read(0x0) F2FS-fs (loop3): Can't find valid F2FS filesystem in 1th superblock attempt to access beyond end of device loop3: rw=12288, want=8200, limit=20 attempt to access beyond end of device loop3: rw=12288, want=12296, limit=20 F2FS-fs (loop3): Failed to get valid F2FS checkpoint F2FS-fs (loop3): Magic Mismatch, valid(0xf2f52010) - read(0x0) F2FS-fs (loop3): Can't find valid F2FS filesystem in 1th superblock attempt to access beyond end of device loop3: rw=12288, want=8200, limit=20 attempt to access beyond end of device loop3: rw=12288, want=12296, limit=20 F2FS-fs (loop3): Failed to get valid F2FS checkpoint F2FS-fs (loop3): Magic Mismatch, valid(0xf2f52010) - read(0x0) F2FS-fs (loop3): Can't find valid F2FS filesystem in 1th superblock attempt to access beyond end of device loop3: rw=12288, want=8200, limit=20 attempt to access beyond end of device loop3: rw=12288, want=12296, limit=20 F2FS-fs (loop3): Failed to get valid F2FS checkpoint F2FS-fs (loop3): Magic Mismatch, valid(0xf2f52010) - read(0x0) F2FS-fs (loop3): Can't find valid F2FS filesystem in 1th superblock attempt to access beyond end of device loop3: rw=12288, want=8200, limit=20 attempt to access beyond end of device loop3: rw=12288, want=12296, limit=20 F2FS-fs (loop3): Failed to get valid F2FS checkpoint F2FS-fs (loop3): Magic Mismatch, valid(0xf2f52010) - read(0x0) F2FS-fs (loop3): Can't find valid F2FS filesystem in 1th superblock attempt to access beyond end of device loop3: rw=12288, want=8200, limit=20 attempt to access beyond end of device loop3: rw=12288, want=12296, limit=20 F2FS-fs (loop3): Failed to get valid F2FS checkpoint F2FS-fs (loop3): Magic Mismatch, valid(0xf2f52010) - read(0x0) F2FS-fs (loop3): Can't find valid F2FS filesystem in 1th superblock attempt to access beyond end of device loop3: rw=12288, want=8200, limit=20 attempt to access beyond end of device loop3: rw=12288, want=12296, limit=20 F2FS-fs (loop3): Failed to get valid F2FS checkpoint F2FS-fs (loop3): Magic Mismatch, valid(0xf2f52010) - read(0x0) F2FS-fs (loop3): Can't find valid F2FS filesystem in 1th superblock attempt to access beyond end of device loop3: rw=12288, want=8200, limit=20 attempt to access beyond end of device loop3: rw=12288, want=12296, limit=20 F2FS-fs (loop3): Failed to get valid F2FS checkpoint F2FS-fs (loop3): Magic Mismatch, valid(0xf2f52010) - read(0x0) F2FS-fs (loop3): Can't find valid F2FS filesystem in 1th superblock attempt to access beyond end of device loop3: rw=12288, want=8200, limit=20 attempt to access beyond end of device loop3: rw=12288, want=12296, limit=20 F2FS-fs (loop3): Failed to get valid F2FS checkpoint F2FS-fs (loop3): Magic Mismatch, valid(0xf2f52010) - read(0x0) F2FS-fs (loop3): Can't find valid F2FS filesystem in 1th superblock attempt to access beyond end of device loop3: rw=12288, want=8200, limit=20 attempt to access beyond end of device loop3: rw=12288, want=12296, limit=20 F2FS-fs (loop3): Failed to get valid F2FS checkpoint F2FS-fs (loop3): Magic Mismatch, valid(0xf2f52010) - read(0x0) F2FS-fs (loop3): Can't find valid F2FS filesystem in 1th superblock attempt to access beyond end of device loop3: rw=12288, want=8200, limit=20 attempt to access beyond end of device loop3: rw=12288, want=12296, limit=20 F2FS-fs (loop3): Failed to get valid F2FS checkpoint F2FS-fs (loop3): Magic Mismatch, valid(0xf2f52010) - read(0x0) F2FS-fs (loop3): Can't find valid F2FS filesystem in 1th superblock attempt to access beyond end of device loop3: rw=12288, want=8200, limit=20 attempt to access beyond end of device loop3: rw=12288, want=12296, limit=20 F2FS-fs (loop3): Failed to get valid F2FS checkpoint F2FS-fs (loop3): Magic Mismatch, valid(0xf2f52010) - read(0x0) F2FS-fs (loop3): Can't find valid F2FS filesystem in 1th superblock attempt to access beyond end of device loop3: rw=12288, want=8200, limit=20 attempt to access beyond end of device loop3: rw=12288, want=12296, limit=20 F2FS-fs (loop3): Failed to get valid F2FS checkpoint F2FS-fs (loop3): Magic Mismatch, valid(0xf2f52010) - read(0x0) F2FS-fs (loop3): Can't find valid F2FS filesystem in 1th superblock attempt to access beyond end of device loop3: rw=12288, want=8200, limit=20 attempt to access beyond end of device loop3: rw=12288, want=12296, limit=20 F2FS-fs (loop3): Failed to get valid F2FS checkpoint F2FS-fs (loop3): Magic Mismatch, valid(0xf2f52010) - read(0x0) F2FS-fs (loop3): Can't find valid F2FS filesystem in 1th superblock attempt to access beyond end of device loop3: rw=12288, want=8200, limit=20 attempt to access beyond end of device loop3: rw=12288, want=12296, limit=20 F2FS-fs (loop3): Failed to get valid F2FS checkpoint F2FS-fs (loop3): Magic Mismatch, valid(0xf2f52010) - read(0x0) F2FS-fs (loop3): Can't find valid F2FS filesystem in 1th superblock attempt to access beyond end of device loop3: rw=12288, want=8200, limit=20 attempt to access beyond end of device loop3: rw=12288, want=12296, limit=20 F2FS-fs (loop3): Failed to get valid F2FS checkpoint F2FS-fs (loop3): Magic Mismatch, valid(0xf2f52010) - read(0x0) F2FS-fs (loop3): Can't find valid F2FS filesystem in 1th superblock attempt to access beyond end of device loop3: rw=12288, want=8200, limit=20 attempt to access beyond end of device loop3: rw=12288, want=12296, limit=20 F2FS-fs (loop3): Failed to get valid F2FS checkpoint F2FS-fs (loop3): Magic Mismatch, valid(0xf2f52010) - read(0x0) F2FS-fs (loop3): Can't find valid F2FS filesystem in 1th superblock attempt to access beyond end of device loop3: rw=12288, want=8200, limit=20 attempt to access beyond end of device loop3: rw=12288, want=12296, limit=20 F2FS-fs (loop3): Failed to get valid F2FS checkpoint