audit: type=1400 audit(1557458221.945:147): avc: denied { map } for pid=31309 comm="sh" path="/bin/dash" dev="sda1" ino=1473 scontext=system_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=system_u:object_r:file_t:s0 tclass=file permissive=1 INFO: task syz-executor.3:31160 blocked for more than 140 seconds. Not tainted 4.19.41 #10 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. syz-executor.3 D28776 31160 13912 0x00000004 Call Trace: context_switch kernel/sched/core.c:2826 [inline] __schedule+0x813/0x1d00 kernel/sched/core.c:3474 schedule+0x92/0x1c0 kernel/sched/core.c:3518 __rwsem_down_write_failed_common kernel/locking/rwsem-xadd.c:573 [inline] rwsem_down_write_failed+0x774/0xcc0 kernel/locking/rwsem-xadd.c:602 call_rwsem_down_write_failed+0x17/0x30 arch/x86/lib/rwsem.S:117 __down_write arch/x86/include/asm/rwsem.h:142 [inline] down_write+0x53/0x90 kernel/locking/rwsem.c:72 register_netdevice_notifier+0x7e/0x630 net/core/dev.c:1642 bcm_init+0x1a8/0x220 net/can/bcm.c:1502 can_create+0x28a/0x4b0 net/can/af_can.c:183 __sock_create+0x3e6/0x750 net/socket.c:1276 sock_create net/socket.c:1316 [inline] __sys_socket+0x103/0x220 net/socket.c:1346 __do_sys_socket net/socket.c:1355 [inline] __se_sys_socket net/socket.c:1353 [inline] __x64_sys_socket+0x73/0xb0 net/socket.c:1353 do_syscall_64+0x103/0x610 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x458da9 Code: Bad RIP value. RSP: 002b:00007f83c06fcc78 EFLAGS: 00000246 ORIG_RAX: 0000000000000029 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000458da9 RDX: 0000000000000002 RSI: 0000000000000002 RDI: 000000000000001d RBP: 000000000073bf00 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f83c06fd6d4 R13: 00000000004c7398 R14: 00000000004dd070 R15: 00000000ffffffff INFO: task syz-executor.3:31191 blocked for more than 140 seconds. Not tainted 4.19.41 #10 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. syz-executor.3 D29480 31191 13912 0x00000004 Call Trace: context_switch kernel/sched/core.c:2826 [inline] __schedule+0x813/0x1d00 kernel/sched/core.c:3474 schedule+0x92/0x1c0 kernel/sched/core.c:3518 __rwsem_down_write_failed_common kernel/locking/rwsem-xadd.c:573 [inline] rwsem_down_write_failed+0x774/0xcc0 kernel/locking/rwsem-xadd.c:602 call_rwsem_down_write_failed+0x17/0x30 arch/x86/lib/rwsem.S:117 __down_write arch/x86/include/asm/rwsem.h:142 [inline] down_write+0x53/0x90 kernel/locking/rwsem.c:72 register_netdevice_notifier+0x7e/0x630 net/core/dev.c:1642 bcm_init+0x1a8/0x220 net/can/bcm.c:1502 can_create+0x28a/0x4b0 net/can/af_can.c:183 __sock_create+0x3e6/0x750 net/socket.c:1276 sock_create net/socket.c:1316 [inline] __sys_socket+0x103/0x220 net/socket.c:1346 __do_sys_socket net/socket.c:1355 [inline] __se_sys_socket net/socket.c:1353 [inline] __x64_sys_socket+0x73/0xb0 net/socket.c:1353 do_syscall_64+0x103/0x610 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x458da9 Code: Bad RIP value. RSP: 002b:00007f83c06dbc78 EFLAGS: 00000246 ORIG_RAX: 0000000000000029 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000458da9 RDX: 0000000000000002 RSI: 0000000000000002 RDI: 000000000000001d RBP: 000000000073bfa0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f83c06dc6d4 R13: 00000000004c7398 R14: 00000000004dd070 R15: 00000000ffffffff Showing all locks held in the system: 4 locks held by kworker/u4:3/89: 1 lock held by khungtaskd/1033: #0: 0000000011c5c206 (rcu_read_lock){....}, at: debug_show_all_locks+0x5f/0x27e kernel/locking/lockdep.c:4435 1 lock held by rsyslogd/7671: #0: 00000000d18751de (&f->f_pos_lock){+.+.}, at: __fdget_pos+0xee/0x110 fs/file.c:767 2 locks held by getty/7792: #0: 0000000022b3f579 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:363 #1: 00000000dc01f696 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x232/0x1b30 drivers/tty/n_tty.c:2154 2 locks held by getty/7793: #0: 00000000d3dc84a2 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:363 #1: 000000002deecc84 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x232/0x1b30 drivers/tty/n_tty.c:2154 2 locks held by getty/7794: #0: 0000000028ba0557 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:363 #1: 000000004e92e529 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x232/0x1b30 drivers/tty/n_tty.c:2154 2 locks held by getty/7795: #0: 00000000bb84ed77 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:363 #1: 000000003aee24d1 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x232/0x1b30 drivers/tty/n_tty.c:2154 2 locks held by getty/7796: #0: 0000000005dc85bf (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:363 #1: 0000000075d7cc2a (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x232/0x1b30 drivers/tty/n_tty.c:2154 2 locks held by getty/7797: #0: 000000004090b30e (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:363 #1: 000000009d577a61 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x232/0x1b30 drivers/tty/n_tty.c:2154 2 locks held by getty/7798: #0: 000000009e2c08df (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:363 #1: 00000000b6ab02d0 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x232/0x1b30 drivers/tty/n_tty.c:2154 3 locks held by kworker/u4:6/28407: #0: 000000008bb8bf4f (&rq->lock){-.-.}, at: rq_lock kernel/sched/sched.h:1821 [inline] #0: 000000008bb8bf4f (&rq->lock){-.-.}, at: __schedule+0x1f8/0x1d00 kernel/sched/core.c:3412 #1: 00000000a09ce9a5 ((work_completion)(&(&bat_priv->nc.work)->work)){+.+.}, at: process_one_work+0x8b4/0x1760 kernel/workqueue.c:2128 #2: 00000000d45c3e25 (&base->lock){-.-.}, at: lock_timer_base+0x56/0x1b0 kernel/time/timer.c:938 1 lock held by syz-executor.3/31160: #0: 00000000c43c3b16 (pernet_ops_rwsem){++++}, at: register_netdevice_notifier+0x7e/0x630 net/core/dev.c:1642 1 lock held by syz-executor.3/31191: #0: 00000000c43c3b16 (pernet_ops_rwsem){++++}, at: register_netdevice_notifier+0x7e/0x630 net/core/dev.c:1642 ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 1033 Comm: khungtaskd Not tainted 4.19.41 #10 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+0x172/0x1f0 lib/dump_stack.c:113 nmi_cpu_backtrace.cold+0x63/0xa4 lib/nmi_backtrace.c:101 nmi_trigger_cpumask_backtrace+0x1b0/0x1f8 lib/nmi_backtrace.c:62 arch_trigger_cpumask_backtrace+0x14/0x20 arch/x86/kernel/apic/hw_nmi.c:38 trigger_all_cpu_backtrace include/linux/nmi.h:146 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:203 [inline] watchdog+0x9df/0xee0 kernel/hung_task.c:287 kthread+0x357/0x430 kernel/kthread.c:246 ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:413 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 89 Comm: kworker/u4:3 Not tainted 4.19.41 #10 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: netns cleanup_net RIP: 0010:mark_lock+0xc8/0x1380 kernel/locking/lockdep.c:3154 Code: ff df 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 9e 0e 00 00 4c 85 6b 30 0f 84 c1 00 00 00 41 bd 01 00 00 00 48 83 c4 20 44 89 e8 <5b> 41 5c 41 5d 41 5e 41 5f 5d c3 48 c7 c0 60 f6 35 8a 48 ba 00 00 RSP: 0000:ffff8880a996fa28 EFLAGS: 00000086 RAX: 0000000000000001 RBX: ffffffff89e84bb0 RCX: 1ffff11015342d3e RDX: 1ffffffff13d097c RSI: ffff8880a9a169d0 RDI: ffffffff89e84be0 RBP: ffff8880a996fa50 R08: ffff8880a9a16100 R09: ffff8880a9a169f0 R10: 0000000000000000 R11: 0000000000000000 R12: ffff8880a9a169d0 R13: 0000000000000001 R14: 0000000000000007 R15: ffff8880a9a16100 FS: 0000000000000000(0000) GS:ffff8880ae800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000000088f218 CR3: 0000000094e65000 CR4: 00000000001406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000600 Call Trace: mark_held_locks+0xb1/0x100 kernel/locking/lockdep.c:2805 __trace_hardirqs_on_caller kernel/locking/lockdep.c:2834 [inline] lockdep_hardirqs_on+0x415/0x5d0 kernel/locking/lockdep.c:2879 trace_hardirqs_on+0x67/0x230 kernel/trace/trace_preemptirq.c:30 __local_bh_enable_ip+0x15a/0x270 kernel/softirq.c:194 local_bh_enable include/linux/bottom_half.h:32 [inline] get_next_corpse net/netfilter/nf_conntrack_core.c:1893 [inline] nf_ct_iterate_cleanup+0x217/0x4e0 net/netfilter/nf_conntrack_core.c:1916 nf_conntrack_cleanup_net_list+0x7a/0x250 net/netfilter/nf_conntrack_core.c:2103 nf_conntrack_pernet_exit+0x11d/0x170 net/netfilter/nf_conntrack_standalone.c:663 ops_exit_list.isra.0+0x105/0x160 net/core/net_namespace.c:156 cleanup_net+0x3fb/0x960 net/core/net_namespace.c:552 process_one_work+0x98e/0x1760 kernel/workqueue.c:2153 worker_thread+0x98/0xe40 kernel/workqueue.c:2296 kthread+0x357/0x430 kernel/kthread.c:246 ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:413