netlink: 144 bytes leftover after parsing attributes in process `syz-executor.3'. IPv6: RTM_NEWROUTE with no NLM_F_CREATE or NLM_F_REPLACE ====================================================== WARNING: possible circular locking dependency detected 4.14.164-syzkaller #0 Not tainted ------------------------------------------------------ syz-executor.5/2567 is trying to acquire lock: ((&strp->work)){+.+.}, at: [] flush_work+0x84/0x730 kernel/workqueue.c:2884 but task is already holding lock: (sk_lock-AF_INET){+.+.}, at: [] lock_sock include/net/sock.h:1467 [inline] (sk_lock-AF_INET){+.+.}, at: [] kcm_attach net/kcm/kcmsock.c:1390 [inline] (sk_lock-AF_INET){+.+.}, at: [] kcm_attach_ioctl net/kcm/kcmsock.c:1490 [inline] (sk_lock-AF_INET){+.+.}, at: [] kcm_ioctl+0x35d/0x1120 net/kcm/kcmsock.c:1701 which lock already depends on the new lock. the existing dependency chain (in reverse order) is: -> #1 (sk_lock-AF_INET){+.+.}: lock_acquire+0x16f/0x430 kernel/locking/lockdep.c:3994 lock_sock_nested+0xbd/0x110 net/core/sock.c:2770 lock_sock include/net/sock.h:1467 [inline] strp_sock_lock+0x2e/0x40 net/strparser/strparser.c:451 do_strp_work net/strparser/strparser.c:415 [inline] strp_work+0x43/0x100 net/strparser/strparser.c:434 process_one_work+0x863/0x1600 kernel/workqueue.c:2114 worker_thread+0x5d9/0x1050 kernel/workqueue.c:2248 kthread+0x319/0x430 kernel/kthread.c:232 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:404 -> #0 ((&strp->work)){+.+.}: check_prev_add kernel/locking/lockdep.c:1901 [inline] check_prevs_add kernel/locking/lockdep.c:2018 [inline] validate_chain kernel/locking/lockdep.c:2460 [inline] __lock_acquire+0x2cb3/0x4620 kernel/locking/lockdep.c:3487 lock_acquire+0x16f/0x430 kernel/locking/lockdep.c:3994 flush_work+0xae/0x730 kernel/workqueue.c:2887 __cancel_work_timer+0x2f0/0x480 kernel/workqueue.c:2962 cancel_work_sync+0x18/0x20 kernel/workqueue.c:2998 strp_done+0x58/0xe0 net/strparser/strparser.c:519 kcm_attach net/kcm/kcmsock.c:1429 [inline] kcm_attach_ioctl net/kcm/kcmsock.c:1490 [inline] kcm_ioctl+0x8d9/0x1120 net/kcm/kcmsock.c:1701 sock_do_ioctl+0x64/0xb0 net/socket.c:974 sock_ioctl+0x2a6/0x470 net/socket.c:1071 vfs_ioctl fs/ioctl.c:46 [inline] file_ioctl fs/ioctl.c:500 [inline] do_vfs_ioctl+0x7ae/0x1060 fs/ioctl.c:684 SYSC_ioctl fs/ioctl.c:701 [inline] SyS_ioctl+0x8f/0xc0 fs/ioctl.c:692 do_syscall_64+0x1e8/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x42/0xb7 other info that might help us debug this: Possible unsafe locking scenario: CPU0 CPU1 ---- ---- lock(sk_lock-AF_INET); lock((&strp->work)); lock(sk_lock-AF_INET); lock((&strp->work)); *** DEADLOCK *** 1 lock held by syz-executor.5/2567: #0: (sk_lock-AF_INET){+.+.}, at: [] lock_sock include/net/sock.h:1467 [inline] #0: (sk_lock-AF_INET){+.+.}, at: [] kcm_attach net/kcm/kcmsock.c:1390 [inline] #0: (sk_lock-AF_INET){+.+.}, at: [] kcm_attach_ioctl net/kcm/kcmsock.c:1490 [inline] #0: (sk_lock-AF_INET){+.+.}, at: [] kcm_ioctl+0x35d/0x1120 net/kcm/kcmsock.c:1701 stack backtrace: CPU: 0 PID: 2567 Comm: syz-executor.5 Not tainted 4.14.164-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x142/0x197 lib/dump_stack.c:58 print_circular_bug.isra.0.cold+0x1cc/0x28f kernel/locking/lockdep.c:1258 check_prev_add kernel/locking/lockdep.c:1901 [inline] check_prevs_add kernel/locking/lockdep.c:2018 [inline] validate_chain kernel/locking/lockdep.c:2460 [inline] __lock_acquire+0x2cb3/0x4620 kernel/locking/lockdep.c:3487 lock_acquire+0x16f/0x430 kernel/locking/lockdep.c:3994 flush_work+0xae/0x730 kernel/workqueue.c:2887 __cancel_work_timer+0x2f0/0x480 kernel/workqueue.c:2962 cancel_work_sync+0x18/0x20 kernel/workqueue.c:2998 strp_done+0x58/0xe0 net/strparser/strparser.c:519 kcm_attach net/kcm/kcmsock.c:1429 [inline] kcm_attach_ioctl net/kcm/kcmsock.c:1490 [inline] kcm_ioctl+0x8d9/0x1120 net/kcm/kcmsock.c:1701 sock_do_ioctl+0x64/0xb0 net/socket.c:974 sock_ioctl+0x2a6/0x470 net/socket.c:1071 vfs_ioctl fs/ioctl.c:46 [inline] file_ioctl fs/ioctl.c:500 [inline] do_vfs_ioctl+0x7ae/0x1060 fs/ioctl.c:684 SYSC_ioctl fs/ioctl.c:701 [inline] SyS_ioctl+0x8f/0xc0 fs/ioctl.c:692 do_syscall_64+0x1e8/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x42/0xb7 RIP: 0033:0x45af49 kauditd_printk_skb: 337 callbacks suppressed audit: type=1400 audit(2000002085.660:72540): avc: denied { map } for pid=2573 comm="blkid" path="/sbin/blkid" dev="sda1" ino=16128 scontext=system_u:system_r:kernel_t:s0 tcontext=system_u:object_r:file_t:s0 tclass=file permissive=1 RSP: 002b:00007fd50323bc78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 000000000045af49 RDX: 000000002031aff8 RSI: 00000000000089e0 RDI: 0000000000000009 audit: type=1400 audit(2000002085.680:72541): avc: denied { map } for pid=2573 comm="blkid" path="/sbin/blkid" dev="sda1" ino=16128 scontext=system_u:system_r:kernel_t:s0 tcontext=system_u:object_r:file_t:s0 tclass=file permissive=1 RBP: 000000000075bfc8 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007fd50323c6d4 R13: 00000000004c7e44 R14: 00000000004dfc98 R15: 00000000ffffffff net_ratelimit: 6 callbacks suppressed protocol 88fb is buggy, dev hsr_slave_0 protocol 88fb is buggy, dev hsr_slave_1 audit: type=1400 audit(2000002085.680:72542): avc: denied { map } for pid=2573 comm="blkid" path="/lib/x86_64-linux-gnu/ld-2.13.so" dev="sda1" ino=2668 scontext=system_u:system_r:kernel_t:s0 tcontext=system_u:object_r:file_t:s0 tclass=file permissive=1 f2fs_msg: 22 callbacks suppressed F2FS-fs (loop1): Unable to read 1th superblock F2FS-fs (loop1): Unable to read 2th superblock audit: type=1400 audit(2000002085.680:72543): avc: denied { map } for pid=2573 comm="blkid" path="/lib/x86_64-linux-gnu/ld-2.13.so" dev="sda1" ino=2668 scontext=system_u:system_r:kernel_t:s0 tcontext=system_u:object_r:file_t:s0 tclass=file permissive=1 F2FS-fs (loop1): Unable to read 1th superblock protocol 88fb is buggy, dev hsr_slave_0 protocol 88fb is buggy, dev hsr_slave_1 F2FS-fs (loop1): Unable to read 2th superblock protocol 88fb is buggy, dev hsr_slave_0 protocol 88fb is buggy, dev hsr_slave_1 F2FS-fs (loop1): Unable to read 1th superblock F2FS-fs (loop1): Unable to read 2th superblock audit: type=1400 audit(2000002085.720:72544): avc: denied { map } for pid=2573 comm="blkid" path="/etc/ld.so.cache" dev="sda1" ino=2251 scontext=system_u:system_r:kernel_t:s0 tcontext=system_u:object_r:file_t:s0 tclass=file permissive=1 F2FS-fs (loop1): Unable to read 1th superblock audit: type=1400 audit(2000002085.730:72545): avc: denied { map } for pid=2573 comm="blkid" path="/lib/x86_64-linux-gnu/libblkid.so.1.1.0" dev="sda1" ino=2825 scontext=system_u:system_r:kernel_t:s0 tcontext=system_u:object_r:file_t:s0 tclass=file permissive=1 F2FS-fs (loop1): Unable to read 2th superblock audit: type=1400 audit(2000002085.740:72546): avc: denied { map } for pid=2573 comm="blkid" path="/lib/x86_64-linux-gnu/libblkid.so.1.1.0" dev="sda1" ino=2825 scontext=system_u:system_r:kernel_t:s0 tcontext=system_u:object_r:file_t:s0 tclass=file permissive=1 audit: audit_backlog=65 > audit_backlog_limit=64 audit: audit_backlog=65 > audit_backlog_limit=64 audit: audit_backlog=65 > audit_backlog_limit=64 netlink: 144 bytes leftover after parsing attributes in process `syz-executor.3'. IPv6: RTM_NEWROUTE with no NLM_F_CREATE or NLM_F_REPLACE F2FS-fs (loop1): Unable to read 1th superblock F2FS-fs (loop1): Unable to read 2th superblock protocol 88fb is buggy, dev hsr_slave_0 protocol 88fb is buggy, dev hsr_slave_1 netlink: 144 bytes leftover after parsing attributes in process `syz-executor.2'. IPv6: RTM_NEWROUTE with no NLM_F_CREATE or NLM_F_REPLACE protocol 88fb is buggy, dev hsr_slave_0 protocol 88fb is buggy, dev hsr_slave_1 netlink: 144 bytes leftover after parsing attributes in process `syz-executor.1'. IPv6: RTM_NEWROUTE with no NLM_F_CREATE or NLM_F_REPLACE netlink: 144 bytes leftover after parsing attributes in process `syz-executor.3'. IPv6: RTM_NEWROUTE with no NLM_F_CREATE or NLM_F_REPLACE netlink: 144 bytes leftover after parsing attributes in process `syz-executor.2'. IPv6: RTM_NEWROUTE with no NLM_F_CREATE or NLM_F_REPLACE tmpfs: Bad value 'm35' for mount option 'nr_inodes' tmpfs: Bad value 'm35' for mount option 'nr_inodes' netlink: 144 bytes leftover after parsing attributes in process `syz-executor.3'. IPv6: RTM_NEWROUTE with no NLM_F_CREATE or NLM_F_REPLACE tmpfs: Bad value 'm35' for mount option 'nr_inodes' netlink: 144 bytes leftover after parsing attributes in process `syz-executor.3'. IPv6: RTM_NEWROUTE with no NLM_F_CREATE or NLM_F_REPLACE tmpfs: Bad value 'm35' for mount option 'nr_inodes' kauditd_printk_skb: 613 callbacks suppressed audit: type=1400 audit(2000002090.680:73088): avc: denied { map } for pid=2724 comm="blkid" path="/lib/x86_64-linux-gnu/libc-2.13.so" dev="sda1" ino=2784 scontext=system_u:system_r:kernel_t:s0 tcontext=system_u:object_r:file_t:s0 tclass=file permissive=1 netlink: 144 bytes leftover after parsing attributes in process `syz-executor.3'. tmpfs: Bad value 'm35' for mount option 'nr_inodes' IPv6: RTM_NEWROUTE with no NLM_F_CREATE or NLM_F_REPLACE netlink: 144 bytes leftover after parsing attributes in process `syz-executor.1'. audit: type=1400 audit(2000002090.680:73089): avc: denied { map } for pid=2724 comm="blkid" path="/lib/x86_64-linux-gnu/libc-2.13.so" dev="sda1" ino=2784 scontext=system_u:system_r:kernel_t:s0 tcontext=system_u:object_r:file_t:s0 tclass=file permissive=1 IPv6: RTM_NEWROUTE with no NLM_F_CREATE or NLM_F_REPLACE net_ratelimit: 20 callbacks suppressed protocol 88fb is buggy, dev hsr_slave_0 protocol 88fb is buggy, dev hsr_slave_1 f2fs_msg: 62 callbacks suppressed F2FS-fs (loop1): Unable to read 1th superblock F2FS-fs (loop1): Unable to read 2th superblock audit: type=1400 audit(2000002090.700:73090): avc: denied { map } for pid=2724 comm="blkid" path="/lib/x86_64-linux-gnu/libuuid.so.1.3.0" dev="sda1" ino=2819 scontext=system_u:system_r:kernel_t:s0 tcontext=system_u:object_r:file_t:s0 tclass=file permissive=1 protocol 88fb is buggy, dev hsr_slave_0 protocol 88fb is buggy, dev hsr_slave_1 protocol 88fb is buggy, dev hsr_slave_0 protocol 88fb is buggy, dev hsr_slave_1 F2FS-fs (loop1): Unable to read 1th superblock F2FS-fs (loop1): Unable to read 2th superblock audit: type=1400 audit(2000002090.710:73091): avc: denied { map } for pid=2724 comm="blkid" path="/lib/x86_64-linux-gnu/libuuid.so.1.3.0" dev="sda1" ino=2819 scontext=system_u:system_r:kernel_t:s0 tcontext=system_u:object_r:file_t:s0 tclass=file permissive=1 audit: type=1400 audit(2000002090.810:73092): avc: denied { map } for pid=2725 comm="syz-executor.3" path="socket:[268220]" dev="sockfs" ino=268220 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=packet_socket permissive=1 audit: type=1400 audit(2000002090.910:73093): avc: denied { map } for pid=2725 comm="syz-executor.3" path="socket:[269263]" dev="sockfs" ino=269263 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=packet_socket permissive=1 F2FS-fs (loop2): Unable to read 1th superblock F2FS-fs (loop2): Unable to read 2th superblock F2FS-fs (loop2): Unable to read 1th superblock F2FS-fs (loop2): Unable to read 2th superblock netlink: 144 bytes leftover after parsing attributes in process `syz-executor.3'. audit: type=1400 audit(2000002090.940:73094): avc: denied { create } for pid=2725 comm="syz-executor.3" scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=netlink_generic_socket permissive=1 audit: audit_backlog=65 > audit_backlog_limit=64 audit: audit_backlog=65 > audit_backlog_limit=64 audit: audit_backlog=65 > audit_backlog_limit=64 IPv6: RTM_NEWROUTE with no NLM_F_CREATE or NLM_F_REPLACE F2FS-fs (loop1): Unable to read 1th superblock F2FS-fs (loop1): Unable to read 2th superblock protocol 88fb is buggy, dev hsr_slave_0 protocol 88fb is buggy, dev hsr_slave_1 tmpfs: Bad value 'm35' for mount option 'nr_inodes' protocol 88fb is buggy, dev hsr_slave_0 protocol 88fb is buggy, dev hsr_slave_1 tmpfs: Bad value 'm35' for mount option 'nr_inodes' netlink: 144 bytes leftover after parsing attributes in process `syz-executor.3'. IPv6: RTM_NEWROUTE with no NLM_F_CREATE or NLM_F_REPLACE tmpfs: Bad value 'm35' for mount option 'nr_inodes' netlink: 144 bytes leftover after parsing attributes in process `syz-executor.1'. IPv6: RTM_NEWROUTE with no NLM_F_CREATE or NLM_F_REPLACE tmpfs: Bad value 'm35' for mount option 'nr_inodes' netlink: 144 bytes leftover after parsing attributes in process `syz-executor.1'. IPv6: RTM_NEWROUTE with no NLM_F_CREATE or NLM_F_REPLACE netlink: 144 bytes leftover after parsing attributes in process `syz-executor.1'. IPv6: RTM_NEWROUTE with no NLM_F_CREATE or NLM_F_REPLACE netlink: 144 bytes leftover after parsing attributes in process `syz-executor.1'. IPv6: RTM_NEWROUTE with no NLM_F_CREATE or NLM_F_REPLACE netlink: 144 bytes leftover after parsing attributes in process `syz-executor.3'. IPv6: RTM_NEWROUTE with no NLM_F_CREATE or NLM_F_REPLACE tmpfs: Bad value 'm35' for mount option 'nr_inodes' tmpfs: Bad value 'm35' for mount option 'nr_inodes' netlink: 144 bytes leftover after parsing attributes in process `syz-executor.3'. IPv6: RTM_NEWROUTE with no NLM_F_CREATE or NLM_F_REPLACE netlink: 144 bytes leftover after parsing attributes in process `syz-executor.0'. IPv6: RTM_NEWROUTE with no NLM_F_CREATE or NLM_F_REPLACE