team0: Cannot enslave team device to itself batman_adv: batadv0: Adding interface: team0 batman_adv: batadv0: The MTU of interface team0 is too small (1500) to handle the transport of batman-adv packets. Packets going over this interface will be fragmented on layer2 which could impact the performance. Setting the MTU to 1560 would solve the problem. batman_adv: batadv0: Interface activated: team0 ====================================================== WARNING: possible circular locking dependency detected 4.14.288-syzkaller #0 Not tainted ------------------------------------------------------ syz-executor.3/9784 is trying to acquire lock: (sb_writers#6){.+.+}, at: [] file_start_write include/linux/fs.h:2714 [inline] (sb_writers#6){.+.+}, at: [] vfs_fallocate+0x5c1/0x790 fs/open.c:318 but task is already holding lock: (ashmem_mutex){+.+.}, at: [] ashmem_shrink_scan drivers/staging/android/ashmem.c:494 [inline] (ashmem_mutex){+.+.}, at: [] ashmem_ioctl+0x27e/0xd00 drivers/staging/android/ashmem.c:843 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:756 [inline] __mutex_lock+0xc4/0x1310 kernel/locking/mutex.c:893 ashmem_mmap+0x50/0x5c0 drivers/staging/android/ashmem.c:393 call_mmap include/linux/fs.h:1785 [inline] mmap_region+0xa1a/0x1220 mm/mmap.c:1717 do_mmap+0x5b3/0xcb0 mm/mmap.c:1495 do_mmap_pgoff include/linux/mm.h:2187 [inline] vm_mmap_pgoff+0x14e/0x1a0 mm/util.c:366 SYSC_mmap_pgoff mm/mmap.c:1545 [inline] SyS_mmap_pgoff+0x249/0x510 mm/mmap.c:1503 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x46/0xbb -> #2 (&mm->mmap_sem){++++}: __might_fault mm/memory.c:4700 [inline] __might_fault+0x137/0x1b0 mm/memory.c:4685 _copy_to_user+0x27/0xd0 lib/usercopy.c:25 copy_to_user include/linux/uaccess.h:155 [inline] filldir+0x1d5/0x390 fs/readdir.c:237 dir_emit_dot include/linux/fs.h:3361 [inline] dir_emit_dots include/linux/fs.h:3372 [inline] dcache_readdir+0x180/0x860 fs/libfs.c:192 iterate_dir+0x1a0/0x5e0 fs/readdir.c:52 SYSC_getdents fs/readdir.c:272 [inline] SyS_getdents+0x125/0x240 fs/readdir.c:253 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x46/0xbb -> #1 (&type->i_mutex_dir_key#5){++++}: down_write+0x34/0x90 kernel/locking/rwsem.c:54 inode_lock include/linux/fs.h:719 [inline] do_last fs/namei.c:3331 [inline] path_openat+0xde2/0x2970 fs/namei.c:3569 do_filp_open+0x179/0x3c0 fs/namei.c:3603 do_sys_open+0x296/0x410 fs/open.c:1081 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x46/0xbb -> #0 (sb_writers#6){.+.+}: lock_acquire+0x170/0x3f0 kernel/locking/lockdep.c:3998 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+0x64/0x260 fs/super.c:1342 file_start_write include/linux/fs.h:2714 [inline] vfs_fallocate+0x5c1/0x790 fs/open.c:318 ashmem_shrink_scan.part.0+0x135/0x3d0 drivers/staging/android/ashmem.c:501 ashmem_shrink_scan drivers/staging/android/ashmem.c:494 [inline] ashmem_ioctl+0x294/0xd00 drivers/staging/android/ashmem.c:843 vfs_ioctl fs/ioctl.c:46 [inline] file_ioctl fs/ioctl.c:500 [inline] do_vfs_ioctl+0x75a/0xff0 fs/ioctl.c:684 SYSC_ioctl fs/ioctl.c:701 [inline] SyS_ioctl+0x7f/0xb0 fs/ioctl.c:692 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x46/0xbb other info that might help us debug this: Chain exists of: sb_writers#6 --> &mm->mmap_sem --> ashmem_mutex Possible unsafe locking scenario: CPU0 CPU1 ---- ---- lock(ashmem_mutex); lock(&mm->mmap_sem); lock(ashmem_mutex); lock(sb_writers#6); *** DEADLOCK *** 1 lock held by syz-executor.3/9784: #0: (ashmem_mutex){+.+.}, at: [] ashmem_shrink_scan drivers/staging/android/ashmem.c:494 [inline] #0: (ashmem_mutex){+.+.}, at: [] ashmem_ioctl+0x27e/0xd00 drivers/staging/android/ashmem.c:843 stack backtrace: CPU: 1 PID: 9784 Comm: syz-executor.3 Not tainted 4.14.288-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/29/2022 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x1b2/0x281 lib/dump_stack.c:58 print_circular_bug.constprop.0.cold+0x2d7/0x41e kernel/locking/lockdep.c:1258 check_prev_add kernel/locking/lockdep.c:1905 [inline] check_prevs_add kernel/locking/lockdep.c:2022 [inline] validate_chain kernel/locking/lockdep.c:2464 [inline] __lock_acquire+0x2e0e/0x3f20 kernel/locking/lockdep.c:3491 lock_acquire+0x170/0x3f0 kernel/locking/lockdep.c:3998 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+0x64/0x260 fs/super.c:1342 file_start_write include/linux/fs.h:2714 [inline] vfs_fallocate+0x5c1/0x790 fs/open.c:318 ashmem_shrink_scan.part.0+0x135/0x3d0 drivers/staging/android/ashmem.c:501 ashmem_shrink_scan drivers/staging/android/ashmem.c:494 [inline] ashmem_ioctl+0x294/0xd00 drivers/staging/android/ashmem.c:843 vfs_ioctl fs/ioctl.c:46 [inline] file_ioctl fs/ioctl.c:500 [inline] do_vfs_ioctl+0x75a/0xff0 fs/ioctl.c:684 SYSC_ioctl fs/ioctl.c:701 [inline] SyS_ioctl+0x7f/0xb0 fs/ioctl.c:692 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x46/0xbb RIP: 0033:0x7f47d4d461f9 RSP: 002b:00007f47d36bb168 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f47d4e58f60 RCX: 00007f47d4d461f9 RDX: 0000000000000000 RSI: 000000000000770a RDI: 0000000000000004 RBP: 00007f47d4da0161 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fff5442f51f R14: 00007f47d36bb300 R15: 0000000000022000 batman_adv: batadv0: Interface deactivated: team0 batman_adv: batadv0: Removing interface: team0 team0: Cannot enslave team device to itself batman_adv: batadv0: Adding interface: team0 batman_adv: batadv0: The MTU of interface team0 is too small (1500) to handle the transport of batman-adv packets. Packets going over this interface will be fragmented on layer2 which could impact the performance. Setting the MTU to 1560 would solve the problem. batman_adv: batadv0: Interface activated: team0 netlink: 24 bytes leftover after parsing attributes in process `syz-executor.4'. sch_tbf: burst 127 is lower than device batadv_slave_0 mtu (1514) ! batman_adv: batadv0: Interface deactivated: team0 batman_adv: batadv0: Removing interface: team0 team0: Cannot enslave team device to itself netlink: 24 bytes leftover after parsing attributes in process `syz-executor.4'. batman_adv: batadv0: Adding interface: team0 batman_adv: batadv0: The MTU of interface team0 is too small (1500) to handle the transport of batman-adv packets. Packets going over this interface will be fragmented on layer2 which could impact the performance. Setting the MTU to 1560 would solve the problem. batman_adv: batadv0: Interface activated: team0 sch_tbf: burst 127 is lower than device batadv_slave_1 mtu (1514) ! device gretap1 entered promiscuous mode netlink: 24 bytes leftover after parsing attributes in process `syz-executor.3'. sch_tbf: burst 127 is lower than device batadv_slave_1 mtu (1514) ! netlink: 24 bytes leftover after parsing attributes in process `syz-executor.4'. sch_tbf: burst 127 is lower than device veth1_to_hsr mtu (1514) ! EXT4-fs error (device sda1): mb_free_blocks:1464: group 5, inode 13948: block 182302:freeing already freed block (bit 18462); block bitmap corrupt. EXT4-fs error (device sda1): ext4_mb_generate_buddy:754: group 5, block bitmap and bg descriptor inconsistent: 15231 vs 15242 free clusters EXT4-fs (sda1): pa ffff88805ece8818: logic 32768, phys. 182272, len 2048 EXT4-fs error (device sda1): ext4_mb_release_inode_pa:3901: group 5, free 2018, pa_free 2007 netlink: 24 bytes leftover after parsing attributes in process `syz-executor.4'. netlink: 24 bytes leftover after parsing attributes in process `syz-executor.3'. sch_tbf: burst 127 is lower than device hsr_slave_0 mtu (1514) ! sch_tbf: burst 127 is lower than device hsr0 mtu (1508) ! netlink: 24 bytes leftover after parsing attributes in process `syz-executor.3'. sch_tbf: burst 127 is lower than device hsr0 mtu (1508) ! EXT4-fs error (device sda1): mb_free_blocks:1464: group 8, inode 13971: block 268318:freeing already freed block (bit 6174); block bitmap corrupt. EXT4-fs error (device sda1): ext4_mb_generate_buddy:754: group 8, block bitmap and bg descriptor inconsistent: 4031 vs 4042 free clusters EXT4-fs (sda1): pa ffff88805ece8230: logic 32768, phys. 268288, len 2048 EXT4-fs error (device sda1): ext4_mb_release_inode_pa:3901: group 8, free 2018, pa_free 2007 EXT4-fs error (device sda1): mb_free_blocks:1464: group 9, inode 13973: block 317470:freeing already freed block (bit 22558); block bitmap corrupt. audit: type=1800 audit(1658402221.421:2): pid=9911 uid=0 auid=4294967295 ses=4294967295 op="collect_data" cause="failed(directio)" comm="syz-executor.3" name="bus" dev="sda1" ino=13979 res=0 EXT4-fs error (device sda1): ext4_mb_generate_buddy:754: group 9, block bitmap and bg descriptor inconsistent: 2024 vs 2035 free clusters EXT4-fs (sda1): pa ffff888090447628: logic 32768, phys. 317440, len 2048 EXT4-fs error (device sda1): ext4_mb_release_inode_pa:3901: group 9, free 2018, pa_free 2007 EXT4-fs error (device sda1): mb_free_blocks:1464: group 10, inode 13975: block 337950:freeing already freed block (bit 10270); block bitmap corrupt. EXT4-fs (sda1): pa ffff888090447550: logic 32768, phys. 337920, len 2048 EXT4-fs (sda1): pa ffff88805ece83e0: logic 32768, phys. 382976, len 2048 EXT4-fs (sda1): pa ffff88805ece8590: logic 32768, phys. 454656, len 2048 EXT4-fs (sda1): pa ffff888055864bd0: logic 32768, phys. 489464, len 2048 EXT4-fs (sda1): pa ffff88805ece8740: logic 32768, phys. 137216, len 2048 EXT4-fs (sda1): pa ffff888055864948: logic 32768, phys. 241664, len 2048 EXT4-fs (sda1): pa ffff888090447478: logic 32768, phys. 407552, len 2048 audit: type=1800 audit(1658402224.011:3): pid=9991 uid=0 auid=4294967295 ses=4294967295 op="collect_data" cause="failed(directio)" comm="syz-executor.3" name="bus" dev="sda1" ino=13982 res=0 audit: type=1800 audit(1658402224.041:4): pid=10008 uid=0 auid=4294967295 ses=4294967295 op="collect_data" cause="failed(directio)" comm="syz-executor.2" name="bus" dev="sda1" ino=13983 res=0 audit: type=1800 audit(1658402224.071:5): pid=9998 uid=0 auid=4294967295 ses=4294967295 op="collect_data" cause="failed(directio)" comm="syz-executor.0" name="bus" dev="sda1" ino=13984 res=0 audit: type=1800 audit(1658402224.101:6): pid=9996 uid=0 auid=4294967295 ses=4294967295 op="collect_data" cause="failed(directio)" comm="syz-executor.5" name="bus" dev="sda1" ino=13985 res=0 audit: type=1800 audit(1658402224.181:7): pid=9997 uid=0 auid=4294967295 ses=4294967295 op="collect_data" cause="failed(directio)" comm="syz-executor.4" name="bus" dev="sda1" ino=13986 res=0 audit: type=1800 audit(1658402225.131:8): pid=10011 uid=0 auid=4294967295 ses=4294967295 op="collect_data" cause="failed(directio)" comm="syz-executor.1" name="bus" dev="sda1" ino=13987 res=0 audit: type=1800 audit(1658402227.241:9): pid=10038 uid=0 auid=4294967295 ses=4294967295 op="collect_data" cause="failed(directio)" comm="syz-executor.0" name="bus" dev="sda1" ino=13988 res=0 audit: type=1800 audit(1658402227.371:10): pid=10037 uid=0 auid=4294967295 ses=4294967295 op="collect_data" cause="failed(directio)" comm="syz-executor.3" name="bus" dev="sda1" ino=13989 res=0 audit: type=1800 audit(1658402227.471:11): pid=10042 uid=0 auid=4294967295 ses=4294967295 op="collect_data" cause="failed(directio)" comm="syz-executor.5" name="bus" dev="sda1" ino=13990 res=0 audit: type=1800 audit(1658402227.531:12): pid=10046 uid=0 auid=4294967295 ses=4294967295 op="collect_data" cause="failed(directio)" comm="syz-executor.2" name="bus" dev="sda1" ino=13991 res=0 audit: type=1800 audit(1658402227.551:13): pid=10043 uid=0 auid=4294967295 ses=4294967295 op="collect_data" cause="failed(directio)" comm="syz-executor.4" name="bus" dev="sda1" ino=13992 res=0 audit: type=1800 audit(1658402228.551:14): pid=10054 uid=0 auid=4294967295 ses=4294967295 op="collect_data" cause="failed(directio)" comm="syz-executor.1" name="bus" dev="sda1" ino=13993 res=0