kvm: apic: phys broadcast and lowest prio ====================================================== WARNING: possible circular locking dependency detected 4.18.0+ #195 Not tainted ------------------------------------------------------ syz-executor0/26001 is trying to acquire lock: 0000000021e8c7be (sb_writers#3){.+.+}, at: file_start_write include/linux/fs.h:2755 [inline] 0000000021e8c7be (sb_writers#3){.+.+}, at: vfs_fallocate+0x5be/0x8d0 fs/open.c:318 but task is already holding lock: 00000000539867ab (ashmem_mutex){+.+.}, at: ashmem_shrink_scan+0xb4/0x580 drivers/staging/android/ashmem.c:442 which lock already depends on the new lock. the existing dependency chain (in reverse order) is: -> #3 (ashmem_mutex){+.+.}: __mutex_lock_common kernel/locking/mutex.c:925 [inline] __mutex_lock+0x171/0x1700 kernel/locking/mutex.c:1073 mutex_lock_nested+0x16/0x20 kernel/locking/mutex.c:1088 ashmem_mmap+0x53/0x4a0 drivers/staging/android/ashmem.c:361 call_mmap include/linux/fs.h:1816 [inline] mmap_region+0xf27/0x1c50 mm/mmap.c:1762 do_mmap+0xa06/0x1320 mm/mmap.c:1535 do_mmap_pgoff include/linux/mm.h:2306 [inline] vm_mmap_pgoff+0x213/0x2c0 mm/util.c:357 ksys_mmap_pgoff+0x4da/0x660 mm/mmap.c:1585 __do_sys_mmap arch/x86/kernel/sys_x86_64.c:100 [inline] __se_sys_mmap arch/x86/kernel/sys_x86_64.c:91 [inline] __x64_sys_mmap+0xe9/0x1b0 arch/x86/kernel/sys_x86_64.c:91 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe -> #2 (&mm->mmap_sem){++++}: __might_fault+0x155/0x1e0 mm/memory.c:4583 _copy_to_user+0x30/0x110 lib/usercopy.c:25 copy_to_user include/linux/uaccess.h:155 [inline] filldir+0x1ea/0x3a0 fs/readdir.c:196 dir_emit_dot include/linux/fs.h:3420 [inline] dir_emit_dots include/linux/fs.h:3431 [inline] dcache_readdir+0x13a/0x620 fs/libfs.c:192 iterate_dir+0x4b0/0x5d0 fs/readdir.c:51 __do_sys_getdents fs/readdir.c:231 [inline] __se_sys_getdents fs/readdir.c:212 [inline] __x64_sys_getdents+0x29f/0x510 fs/readdir.c:212 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe -> #1 (&sb->s_type->i_mutex_key#10){++++}: down_write+0x8f/0x130 kernel/locking/rwsem.c:70 inode_lock include/linux/fs.h:733 [inline] generic_file_write_iter+0xed/0x870 mm/filemap.c:3289 call_write_iter include/linux/fs.h:1811 [inline] new_sync_write fs/read_write.c:474 [inline] __vfs_write+0x6af/0x9d0 fs/read_write.c:487 vfs_write+0x1f8/0x560 fs/read_write.c:549 kernel_write+0xab/0x120 fs/read_write.c:526 fork_usermode_blob+0x11c/0x1b0 kernel/umh.c:493 load_umh+0x2b/0xbd net/bpfilter/bpfilter_kern.c:93 do_one_initcall+0x127/0x913 init/main.c:884 do_initcall_level init/main.c:952 [inline] do_initcalls init/main.c:960 [inline] do_basic_setup init/main.c:978 [inline] kernel_init_freeable+0x49b/0x58e init/main.c:1142 kernel_init+0x11/0x1b3 init/main.c:1061 ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:413 -> #0 (sb_writers#3){.+.+}: lock_acquire+0x1e4/0x540 kernel/locking/lockdep.c:3924 percpu_down_read_preempt_disable include/linux/percpu-rwsem.h:36 [inline] percpu_down_read include/linux/percpu-rwsem.h:59 [inline] __sb_start_write+0x1e9/0x300 fs/super.c:1406 file_start_write include/linux/fs.h:2755 [inline] vfs_fallocate+0x5be/0x8d0 fs/open.c:318 ashmem_shrink_scan+0x1f9/0x580 drivers/staging/android/ashmem.c:449 ashmem_ioctl+0x3dd/0x13c0 drivers/staging/android/ashmem.c:791 vfs_ioctl fs/ioctl.c:46 [inline] file_ioctl fs/ioctl.c:500 [inline] do_vfs_ioctl+0x1de/0x1720 fs/ioctl.c:684 ksys_ioctl+0xa9/0xd0 fs/ioctl.c:701 __do_sys_ioctl fs/ioctl.c:708 [inline] __se_sys_ioctl fs/ioctl.c:706 [inline] __x64_sys_ioctl+0x73/0xb0 fs/ioctl.c:706 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe other info that might help us debug this: Chain exists of: sb_writers#3 --> &mm->mmap_sem --> ashmem_mutex Possible unsafe locking scenario: CPU0 CPU1 ---- ---- lock(ashmem_mutex); lock(&mm->mmap_sem); lock(ashmem_mutex); lock(sb_writers#3); *** DEADLOCK *** 1 lock held by syz-executor0/26001: #0: 00000000539867ab (ashmem_mutex){+.+.}, at: ashmem_shrink_scan+0xb4/0x580 drivers/staging/android/ashmem.c:442 stack backtrace: CPU: 1 PID: 26001 Comm: syz-executor0 Not tainted 4.18.0+ #195 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1c9/0x2b4 lib/dump_stack.c:113 print_circular_bug.isra.37.cold.58+0x1bd/0x27d kernel/locking/lockdep.c:1227 check_prev_add kernel/locking/lockdep.c:1867 [inline] check_prevs_add kernel/locking/lockdep.c:1980 [inline] validate_chain kernel/locking/lockdep.c:2421 [inline] __lock_acquire+0x3449/0x5020 kernel/locking/lockdep.c:3435 lock_acquire+0x1e4/0x540 kernel/locking/lockdep.c:3924 percpu_down_read_preempt_disable include/linux/percpu-rwsem.h:36 [inline] percpu_down_read include/linux/percpu-rwsem.h:59 [inline] __sb_start_write+0x1e9/0x300 fs/super.c:1406 file_start_write include/linux/fs.h:2755 [inline] vfs_fallocate+0x5be/0x8d0 fs/open.c:318 ashmem_shrink_scan+0x1f9/0x580 drivers/staging/android/ashmem.c:449 ashmem_ioctl+0x3dd/0x13c0 drivers/staging/android/ashmem.c:791 vfs_ioctl fs/ioctl.c:46 [inline] file_ioctl fs/ioctl.c:500 [inline] do_vfs_ioctl+0x1de/0x1720 fs/ioctl.c:684 ksys_ioctl+0xa9/0xd0 fs/ioctl.c:701 __do_sys_ioctl fs/ioctl.c:708 [inline] __se_sys_ioctl fs/ioctl.c:706 [inline] __x64_sys_ioctl+0x73/0xb0 fs/ioctl.c:706 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x457089 Code: fd b4 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 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 0f 83 cb b4 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007fc569c07c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007fc569c086d4 RCX: 0000000000457089 RDX: 0000000000000000 RSI: 000000000000770a RDI: 0000000000000003 RBP: 00000000009300a0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 00000000004cd2f0 R14: 00000000004c3dca R15: 0000000000000000 kvm: apic: phys broadcast and lowest prio kvm: apic: phys broadcast and lowest prio NFS: bad mount option value specified: vboxnet1GPL NFS: bad mount option value specified: vboxnet1GPL kvm: apic: phys broadcast and lowest prio *** Guest State *** CR0: actual=0x0000000000000030, shadow=0x0000000060000010, gh_mask=fffffffffffffff7 CR4: actual=0x0000000000002040, shadow=0x0000000000000000, gh_mask=ffffffffffffe871 CR3 = 0x0000000000000000 RSP = 0x0000000000000000 RIP = 0x0000000000000000 RFLAGS=0x0001a202 DR7 = 0x0000000000000400 Sysenter RSP=0000000000000000 CS:RIP=0000:0000000000000000 CS: sel=0xf000, attr=0x0009b, limit=0x0000ffff, base=0x00000000ffff0000 DS: sel=0x0000, attr=0x00093, limit=0x0000ffff, base=0x0000000000000000 SS: sel=0x0000, attr=0x00093, limit=0x0000ffff, base=0x0000000000000000 ES: sel=0x0000, attr=0x00093, limit=0x0000ffff, base=0x0000000000000000 FS: sel=0x0000, attr=0x00093, limit=0x0000ffff, base=0x0000000000000000 GS: sel=0x0000, attr=0x00093, limit=0x0000ffff, base=0x0000000000000000 GDTR: limit=0x0000ffff, base=0x0000000000000000 LDTR: sel=0x0000, attr=0x00082, limit=0x0000ffff, base=0x0000000000000000 IDTR: limit=0x0000ffff, base=0x0000000000000000 TR: sel=0x0000, attr=0x0008b, limit=0x0000ffff, base=0x0000000000000000 EFER = 0x0000000000000000 PAT = 0x0007040600070406 DebugCtl = 0x0000000000000000 DebugExceptions = 0x0000000000000000 Interruptibility = 00000000 ActivityState = 00000000 *** Host State *** RIP = 0xffffffff812079c4 RSP = 0xffff8801b2677350 CS=0010 SS=0018 DS=0000 ES=0000 FS=0000 GS=0000 TR=0040 FSBase=00007faf984a3700 GSBase=ffff8801db100000 TRBase=fffffe0000034000 GDTBase=fffffe0000032000 IDTBase=fffffe0000000000 CR0=0000000080050033 CR3=0000000197491000 CR4=00000000001426e0 Sysenter RSP=fffffe0000033200 CS:RIP=0010:ffffffff86c01380 EFER = 0x0000000000000d01 PAT = 0x0000000000000000 *** Control State *** PinBased=0000003f CPUBased=b5a06dfa SecondaryExec=000000c3 EntryControls=0000d1ff ExitControls=0023efff ExceptionBitmap=00060042 PFECmask=00000000 PFECmatch=00000000 VMEntry: intr_info=00000000 errcode=00000000 ilen=00000000 VMExit: intr_info=00000000 errcode=00000000 ilen=00000000 reason=80000021 qualification=0000000000000000 IDTVectoring: info=00000000 errcode=00000000 TSC Offset = 0xfffffe7b927653d9 TPR Threshold = 0x00 EPT pointer = 0x00000001c39a301e *** Guest State *** CR0: actual=0x0000000000000030, shadow=0x0000000060000010, gh_mask=fffffffffffffff7 CR4: actual=0x0000000000002040, shadow=0x0000000000000000, gh_mask=ffffffffffffe871 CR3 = 0x0000000000000000 RSP = 0x0000000000000000 RIP = 0x0000000000000000 RFLAGS=0x0001a202 DR7 = 0x0000000000000400 Sysenter RSP=0000000000000000 CS:RIP=0000:0000000000000000 CS: sel=0xf000, attr=0x0009b, limit=0x0000ffff, base=0x00000000ffff0000 DS: sel=0x0000, attr=0x00093, limit=0x0000ffff, base=0x0000000000000000 SS: sel=0x0000, attr=0x00093, limit=0x0000ffff, base=0x0000000000000000 ES: sel=0x0000, attr=0x00093, limit=0x0000ffff, base=0x0000000000000000 FS: sel=0x0000, attr=0x00093, limit=0x0000ffff, base=0x0000000000000000 GS: sel=0x0000, attr=0x00093, limit=0x0000ffff, base=0x0000000000000000 GDTR: limit=0x0000ffff, base=0x0000000000000000 LDTR: sel=0x0000, attr=0x00082, limit=0x0000ffff, base=0x0000000000000000 IDTR: limit=0x0000ffff, base=0x0000000000000000 TR: sel=0x0000, attr=0x0008b, limit=0x0000ffff, base=0x0000000000000000 EFER = 0x0000000000000000 PAT = 0x0007040600070406 DebugCtl = 0x0000000000000000 DebugExceptions = 0x0000000000000000 Interruptibility = 00000000 ActivityState = 00000000 *** Host State *** RIP = 0xffffffff812079c4 RSP = 0xffff88018c437350 CS=0010 SS=0018 DS=0000 ES=0000 FS=0000 GS=0000 TR=0040 kvm: apic: phys broadcast and lowest prio FSBase=00007faf98481700 GSBase=ffff8801db100000 TRBase=fffffe0000034000 GDTBase=fffffe0000032000 IDTBase=fffffe0000000000 CR0=0000000080050033 CR3=0000000197491000 CR4=00000000001426e0 Sysenter RSP=fffffe0000033200 CS:RIP=0010:ffffffff86c01380 EFER = 0x0000000000000d01 PAT = 0x0000000000000000 *** Control State *** PinBased=0000003f CPUBased=b5a06dfa SecondaryExec=000000c3 EntryControls=0000d1ff ExitControls=0023efff ExceptionBitmap=00060042 PFECmask=00000000 PFECmatch=00000000 VMEntry: intr_info=00000000 errcode=00000000 ilen=00000000 VMExit: intr_info=00000000 errcode=00000000 ilen=00000000 reason=80000021 qualification=0000000000000000 IDTVectoring: info=00000000 errcode=00000000 TSC Offset = 0xfffffe7b927653d9 TPR Threshold = 0x00 EPT pointer = 0x00000001c39a301e kvm: apic: phys broadcast and lowest prio REISERFS (device loop5): found reiserfs format "3.5" with non-standard journal REISERFS (device loop5): using ordered data mode reiserfs: using flush barriers REISERFS warning (device loop5): sh-459 journal_init: unable to read journal header REISERFS warning (device loop5): sh-2022 reiserfs_fill_super: unable to initialize journal space kvm: apic: phys broadcast and lowest prio REISERFS (device loop5): found reiserfs format "3.5" with non-standard journal REISERFS (device loop5): using ordered data mode reiserfs: using flush barriers REISERFS warning (device loop5): sh-459 journal_init: unable to read journal header REISERFS warning (device loop5): sh-2022 reiserfs_fill_super: unable to initialize journal space kvm: apic: phys broadcast and lowest prio REISERFS (device loop5): found reiserfs format "3.5" with non-standard journal REISERFS (device loop5): using ordered data mode reiserfs: using flush barriers REISERFS warning (device loop5): sh-459 journal_init: unable to read journal header REISERFS warning (device loop5): sh-2022 reiserfs_fill_super: unable to initialize journal space kvm: apic: phys broadcast and lowest prio REISERFS (device loop5): found reiserfs format "3.5" with non-standard journal REISERFS (device loop5): using ordered data mode reiserfs: using flush barriers REISERFS warning (device loop5): sh-459 journal_init: unable to read journal header REISERFS warning (device loop5): sh-2022 reiserfs_fill_super: unable to initialize journal space kvm: apic: phys broadcast and lowest prio REISERFS (device loop5): found reiserfs format "3.5" with non-standard journal kvm: apic: phys broadcast and lowest prio REISERFS (device loop5): using ordered data mode reiserfs: using flush barriers REISERFS warning (device loop5): sh-459 journal_init: unable to read journal header REISERFS warning (device loop5): sh-2022 reiserfs_fill_super: unable to initialize journal space kvm: apic: phys broadcast and lowest prio REISERFS (device loop5): found reiserfs format "3.5" with non-standard journal REISERFS (device loop5): using ordered data mode reiserfs: using flush barriers REISERFS warning (device loop5): sh-459 journal_init: unable to read journal header REISERFS warning (device loop5): sh-2022 reiserfs_fill_super: unable to initialize journal space kvm: apic: phys broadcast and lowest prio REISERFS (device loop5): found reiserfs format "3.5" with non-standard journal REISERFS (device loop5): using ordered data mode reiserfs: using flush barriers REISERFS warning (device loop5): sh-459 journal_init: unable to read journal header REISERFS warning (device loop5): sh-2022 reiserfs_fill_super: unable to initialize journal space kvm: apic: phys broadcast and lowest prio REISERFS (device loop5): found reiserfs format "3.5" with non-standard journal REISERFS (device loop5): using ordered data mode reiserfs: using flush barriers REISERFS warning (device loop5): sh-459 journal_init: unable to read journal header REISERFS warning (device loop5): sh-2022 reiserfs_fill_super: unable to initialize journal space kvm: apic: phys broadcast and lowest prio REISERFS (device loop5): found reiserfs format "3.5" with non-standard journal kvm: apic: phys broadcast and lowest prio REISERFS (device loop5): using ordered data mode reiserfs: using flush barriers REISERFS warning (device loop5): sh-459 journal_init: unable to read journal header REISERFS warning (device loop5): sh-2022 reiserfs_fill_super: unable to initialize journal space kvm: apic: phys broadcast and lowest prio REISERFS (device loop5): found reiserfs format "3.5" with non-standard journal REISERFS (device loop5): using ordered data mode reiserfs: using flush barriers REISERFS warning (device loop5): sh-459 journal_init: unable to read journal header REISERFS warning (device loop5): sh-2022 reiserfs_fill_super: unable to initialize journal space kvm: apic: phys broadcast and lowest prio kvm: apic: phys broadcast and lowest prio REISERFS (device loop5): found reiserfs format "3.5" with non-standard journal REISERFS warning (device loop5): reiserfs_fill_super: Filesystem cannot be mounted because it is bigger than the device REISERFS warning (device loop5): reiserfs_fill_super: You may need to run fsck or increase size of your LVM partition REISERFS warning (device loop5): reiserfs_fill_super: Or may be you forgot to reboot after fdisk when it told you to kvm: apic: phys broadcast and lowest prio REISERFS (device loop5): found reiserfs format "3.5" with non-standard journal REISERFS warning (device loop5): reiserfs_fill_super: Filesystem cannot be mounted because it is bigger than the device REISERFS warning (device loop5): reiserfs_fill_super: You may need to run fsck or increase size of your LVM partition REISERFS warning (device loop5): reiserfs_fill_super: Or may be you forgot to reboot after fdisk when it told you to kvm: apic: phys broadcast and lowest prio REISERFS (device loop5): found reiserfs format "3.5" with non-standard journal REISERFS warning (device loop5): reiserfs_fill_super: Filesystem cannot be mounted because it is bigger than the device REISERFS warning (device loop5): reiserfs_fill_super: You may need to run fsck or increase size of your LVM partition REISERFS warning (device loop5): reiserfs_fill_super: Or may be you forgot to reboot after fdisk when it told you to kvm: apic: phys broadcast and lowest prio REISERFS warning (device loop5): sh-2021 reiserfs_fill_super: can not find reiserfs on loop5 kvm: apic: phys broadcast and lowest prio REISERFS warning (device loop5): sh-2021 reiserfs_fill_super: can not find reiserfs on loop5 kvm: apic: phys broadcast and lowest prio REISERFS warning (device loop5): sh-2021 reiserfs_fill_super: can not find reiserfs on loop5 kvm: apic: phys broadcast and lowest prio REISERFS warning (device loop5): sh-2021 reiserfs_fill_super: can not find reiserfs on loop5 kvm: apic: phys broadcast and lowest prio kvm: apic: phys broadcast and lowest prio REISERFS warning (device loop5): sh-2021 reiserfs_fill_super: can not find reiserfs on loop5 kvm: apic: phys broadcast and lowest prio REISERFS warning (device loop5): sh-2021 reiserfs_fill_super: can not find reiserfs on loop5 kvm: apic: phys broadcast and lowest prio REISERFS warning (device loop5): sh-2021 reiserfs_fill_super: can not find reiserfs on loop5 kvm: apic: phys broadcast and lowest prio REISERFS (device loop0): found reiserfs format "3.5" with non-standard journal REISERFS (device loop0): using ordered data mode reiserfs: using flush barriers REISERFS warning (device loop5): sh-2021 reiserfs_fill_super: can not find reiserfs on loop5 REISERFS warning (device loop0): sh-459 journal_init: unable to read journal header REISERFS warning (device loop0): sh-2022 reiserfs_fill_super: unable to initialize journal space kvm: apic: phys broadcast and lowest prio REISERFS warning (device loop5): sh-2021 reiserfs_fill_super: can not find reiserfs on loop5 REISERFS (device loop0): found reiserfs format "3.5" with non-standard journal REISERFS (device loop0): using ordered data mode reiserfs: using flush barriers kvm: apic: phys broadcast and lowest prio REISERFS warning (device loop0): sh-459 journal_init: unable to read journal header REISERFS warning (device loop0): sh-2022 reiserfs_fill_super: unable to initialize journal space REISERFS warning (device loop5): sh-2021 reiserfs_fill_super: can not find reiserfs on loop5 kvm: apic: phys broadcast and lowest prio REISERFS (device loop0): found reiserfs format "3.5" with non-standard journal REISERFS (device loop0): using ordered data mode reiserfs: using flush barriers REISERFS warning (device loop0): sh-459 journal_init: unable to read journal header REISERFS warning (device loop0): sh-2022 reiserfs_fill_super: unable to initialize journal space REISERFS warning (device loop5): sh-2021 reiserfs_fill_super: can not find reiserfs on loop5 kvm: apic: phys broadcast and lowest prio REISERFS (device loop0): found reiserfs format "3.5" with non-standard journal REISERFS (device loop0): using ordered data mode reiserfs: using flush barriers REISERFS warning (device loop0): sh-459 journal_init: unable to read journal header REISERFS warning (device loop0): sh-2022 reiserfs_fill_super: unable to initialize journal space kvm: apic: phys broadcast and lowest prio