Use struct sctp_assoc_value instead audit: type=1400 audit(1521521675.733:163): avc: denied { setopt } for pid=17306 comm="syz-executor0" 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 l2tp_core: tunl 4: sockfd_lookup(fd=19) returned -9 bond0 (unregistering): Released all slaves INFO: task syz-executor6:17262 blocked for more than 120 seconds. Not tainted 4.16.0-rc6+ #360 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. syz-executor6 D24976 17262 4288 0x00000004 Call Trace: context_switch kernel/sched/core.c:2862 [inline] __schedule+0x8fb/0x1ec0 kernel/sched/core.c:3440 schedule+0xf5/0x430 kernel/sched/core.c:3499 io_schedule+0x1c/0x70 kernel/sched/core.c:5115 wait_on_page_bit_common mm/filemap.c:1099 [inline] __lock_page+0x574/0x720 mm/filemap.c:1272 lock_page include/linux/pagemap.h:483 [inline] truncate_inode_pages_range+0x197c/0x1fe0 mm/truncate.c:448 blkdev_fallocate+0x1ff/0x3b0 fs/block_dev.c:2006 vfs_fallocate+0x33c/0x6f0 fs/open.c:319 SYSC_fallocate fs/open.c:342 [inline] SyS_fallocate+0x53/0x90 fs/open.c:336 do_syscall_64+0x281/0x940 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_hwframe+0x42/0xb7 RIP: 0033:0x453e69 RSP: 002b:00007f5844faac68 EFLAGS: 00000246 ORIG_RAX: 000000000000011d RAX: ffffffffffffffda RBX: 00007f5844fab6d4 RCX: 0000000000453e69 RDX: 0000000000000000 RSI: 0000000000000003 RDI: 0000000000000013 RBP: 000000000072bea0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000800000000ada R11: 0000000000000246 R12: 00000000ffffffff R13: 000000000000007d R14: 00000000006f0c58 R15: 0000000000000000 Showing all locks held in the system: 2 locks held by khungtaskd/800: #0: (rcu_read_lock){....}, at: [<00000000b6c2d1d2>] check_hung_uninterruptible_tasks kernel/hung_task.c:175 [inline] #0: (rcu_read_lock){....}, at: [<00000000b6c2d1d2>] watchdog+0x1c5/0xd60 kernel/hung_task.c:249 #1: (tasklist_lock){.+.+}, at: [<000000007a7349d7>] debug_show_all_locks+0xd3/0x3d0 kernel/locking/lockdep.c:4470 1 lock held by rsyslogd/4081: #0: (&f->f_pos_lock){+.+.}, at: [<0000000083807be1>] __fdget_pos+0x12b/0x190 fs/file.c:765 2 locks held by getty/4203: #0: (&tty->ldisc_sem){++++}, at: [<000000009e11c923>] ldsem_down_read+0x37/0x40 drivers/tty/tty_ldsem.c:365 #1: (&ldata->atomic_read_lock){+.+.}, at: [<0000000010270d99>] n_tty_read+0x2ef/0x1a40 drivers/tty/n_tty.c:2131 2 locks held by getty/4204: #0: (&tty->ldisc_sem){++++}, at: [<000000009e11c923>] ldsem_down_read+0x37/0x40 drivers/tty/tty_ldsem.c:365 #1: (&ldata->atomic_read_lock){+.+.}, at: [<0000000010270d99>] n_tty_read+0x2ef/0x1a40 drivers/tty/n_tty.c:2131 2 locks held by getty/4205: #0: (&tty->ldisc_sem){++++}, at: [<000000009e11c923>] ldsem_down_read+0x37/0x40 drivers/tty/tty_ldsem.c:365 #1: (&ldata->atomic_read_lock){+.+.}, at: [<0000000010270d99>] n_tty_read+0x2ef/0x1a40 drivers/tty/n_tty.c:2131 2 locks held by getty/4206: #0: (&tty->ldisc_sem){++++}, at: [<000000009e11c923>] ldsem_down_read+0x37/0x40 drivers/tty/tty_ldsem.c:365 #1: (&ldata->atomic_read_lock){+.+.}, at: [<0000000010270d99>] n_tty_read+0x2ef/0x1a40 drivers/tty/n_tty.c:2131 2 locks held by getty/4207: #0: (&tty->ldisc_sem){++++}, at: [<000000009e11c923>] ldsem_down_read+0x37/0x40 drivers/tty/tty_ldsem.c:365 #1: (&ldata->atomic_read_lock){+.+.}, at: [<0000000010270d99>] n_tty_read+0x2ef/0x1a40 drivers/tty/n_tty.c:2131 2 locks held by getty/4208: #0: (&tty->ldisc_sem){++++}, at: [<000000009e11c923>] ldsem_down_read+0x37/0x40 drivers/tty/tty_ldsem.c:365 #1: (&ldata->atomic_read_lock){+.+.}, at: [<0000000010270d99>] n_tty_read+0x2ef/0x1a40 drivers/tty/n_tty.c:2131 2 locks held by getty/4209: #0: (&tty->ldisc_sem){++++}, at: [<000000009e11c923>] ldsem_down_read+0x37/0x40 drivers/tty/tty_ldsem.c:365 #1: (&ldata->atomic_read_lock){+.+.}, at: [<0000000010270d99>] n_tty_read+0x2ef/0x1a40 drivers/tty/n_tty.c:2131 ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 800 Comm: khungtaskd Not tainted 4.16.0-rc6+ #360 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+0x194/0x24d lib/dump_stack.c:53 nmi_cpu_backtrace+0x1d2/0x210 lib/nmi_backtrace.c:103 nmi_trigger_cpumask_backtrace+0x123/0x180 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:138 [inline] check_hung_task kernel/hung_task.c:132 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:190 [inline] watchdog+0x90c/0xd60 kernel/hung_task.c:249 kthread+0x33c/0x400 kernel/kthread.c:238 ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:406 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 0 Comm: swapper/1 Not tainted 4.16.0-rc6+ #360 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:trace_softirqs_off+0xfd/0x340 kernel/locking/lockdep.c:2988 RSP: 0018:ffff8801db307d08 EFLAGS: 00000806 RAX: 0000000000000000 RBX: ffff8801d9b12300 RCX: 1ffff1003b6646e9 RDX: 1ffff1003b36256c RSI: 0000000080000001 RDI: ffff8801d9b12b60 RBP: ffff8801db307d20 R08: 0000000000000000 R09: 0000000000000001 R10: 0000000000000000 R11: 0000000000000000 R12: ffff8801d9b12300 R13: ffffffff81437240 R14: ffff8801db307e68 R15: 0000000000000001 FS: 0000000000000000(0000) GS:ffff8801db300000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: ffffffffff600400 CR3: 0000000006e22006 CR4: 00000000001606e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __local_bh_disable_ip+0xae/0x120 kernel/softirq.c:125 local_bh_disable include/linux/bottom_half.h:19 [inline] irq_enter+0xb1/0xd0 kernel/softirq.c:345 scheduler_ipi+0x23d/0x820 kernel/sched/core.c:1794 smp_reschedule_interrupt+0xe6/0x650 arch/x86/kernel/smp.c:277 reschedule_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:881 RIP: 0010:native_safe_halt+0x6/0x10 arch/x86/include/asm/irqflags.h:54 RSP: 0018:ffff8801d9b1fcb0 EFLAGS: 00000282 ORIG_RAX: ffffffffffffff02 RAX: dffffc0000000000 RBX: 1ffff1003b363f99 RCX: 0000000000000000 RDX: 1ffffffff0dd93a0 RSI: 0000000000000001 RDI: ffffffff86ec9d00 RBP: ffff8801d9b1fcb0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000001 R13: ffff8801d9b1fd68 R14: ffffffff876e80a0 R15: 0000000000000000 arch_safe_halt arch/x86/include/asm/paravirt.h:94 [inline] default_idle+0xbf/0x430 arch/x86/kernel/process.c:354 arch_cpu_idle+0xa/0x10 arch/x86/kernel/process.c:345 default_idle_call+0x36/0x90 kernel/sched/idle.c:98 cpuidle_idle_call kernel/sched/idle.c:156 [inline] do_idle+0x24a/0x3b0 kernel/sched/idle.c:246 cpu_startup_entry+0x104/0x120 kernel/sched/idle.c:351 start_secondary+0x40a/0x590 arch/x86/kernel/smpboot.c:267 secondary_startup_64+0xa5/0xb0 arch/x86/kernel/head_64.S:239 Code: 00 8b 3d 67 fa 05 07 85 ff 0f 84 f2 00 00 00 48 8d bb 60 08 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 0f b6 04 02 <84> c0 74 08 3c 03 0f 8e ec 01 00 00 8b 8b 60 08 00 00 85 c9 0f