x_tables: ip_tables: rpfilter match: used from hooks INPUT, but only valid from PREROUTING x_tables: ip_tables: rpfilter match: used from hooks INPUT, but only valid from PREROUTING x_tables: ip_tables: rpfilter match: used from hooks INPUT, but only valid from PREROUTING INFO: task syz-executor.1:25930 blocked for more than 140 seconds. Not tainted 4.19.99-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. syz-executor.1 D28064 25930 25225 0x00000004 Call Trace: context_switch kernel/sched/core.c:2826 [inline] __schedule+0x866/0x1dc0 kernel/sched/core.c:3515 schedule+0x92/0x1c0 kernel/sched/core.c:3559 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:3617 __mutex_lock_common kernel/locking/mutex.c:1002 [inline] __mutex_lock+0x726/0x1300 kernel/locking/mutex.c:1072 mutex_lock_nested+0x16/0x20 kernel/locking/mutex.c:1087 htable_put+0x21/0x220 net/netfilter/xt_hashlimit.c:440 hashlimit_mt_destroy+0x56/0x70 net/netfilter/xt_hashlimit.c:979 cleanup_match+0xde/0x170 net/ipv6/netfilter/ip6_tables.c:481 cleanup_entry+0xd7/0x270 net/ipv4/netfilter/ip_tables.c:648 translate_table+0xd86/0x17d0 net/ipv4/netfilter/ip_tables.c:731 do_replace net/ipv4/netfilter/ip_tables.c:1139 [inline] do_ipt_set_ctl+0x2ef/0x492 net/ipv4/netfilter/ip_tables.c:1675 nf_sockopt net/netfilter/nf_sockopt.c:106 [inline] nf_setsockopt+0x77/0xd0 net/netfilter/nf_sockopt.c:115 ip_setsockopt net/ipv4/ip_sockglue.c:1258 [inline] ip_setsockopt+0xdf/0x100 net/ipv4/ip_sockglue.c:1238 tcp_setsockopt net/ipv4/tcp.c:3075 [inline] tcp_setsockopt+0x8f/0xe0 net/ipv4/tcp.c:3069 sock_common_setsockopt+0x94/0xd0 net/core/sock.c:3046 __sys_setsockopt+0x17a/0x280 net/socket.c:1901 __do_sys_setsockopt net/socket.c:1912 [inline] __se_sys_setsockopt net/socket.c:1909 [inline] __x64_sys_setsockopt+0xbe/0x150 net/socket.c:1909 do_syscall_64+0xfd/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x45b349 Code: Bad RIP value. RSP: 002b:00007ff7f1b08c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000036 RAX: ffffffffffffffda RBX: 00007ff7f1b096d4 RCX: 000000000045b349 RDX: 0000000000000040 RSI: 0004000000000000 RDI: 0000000000000004 RBP: 000000000075bf20 R08: 00000000000003c0 R09: 0000000000000000 R10: 0000000020000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 00000000000009fc R14: 00000000004cb5e1 R15: 000000000075bf2c INFO: task syz-executor.1:26097 blocked for more than 140 seconds. Not tainted 4.19.99-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. syz-executor.1 D28872 26097 25225 0x00000004 Call Trace: context_switch kernel/sched/core.c:2826 [inline] __schedule+0x866/0x1dc0 kernel/sched/core.c:3515 schedule+0x92/0x1c0 kernel/sched/core.c:3559 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:3617 __mutex_lock_common kernel/locking/mutex.c:1002 [inline] __mutex_lock+0x726/0x1300 kernel/locking/mutex.c:1072 mutex_lock_nested+0x16/0x20 kernel/locking/mutex.c:1087 hashlimit_mt_check_common.isra.0+0x341/0x1500 net/netfilter/xt_hashlimit.c:897 hashlimit_mt_check+0xa4/0xd0 net/netfilter/xt_hashlimit.c:957 xt_check_match+0x280/0x690 net/netfilter/x_tables.c:506 check_match net/ipv4/netfilter/ip_tables.c:475 [inline] find_check_match net/ipv4/netfilter/ip_tables.c:491 [inline] find_check_entry.isra.0+0x32f/0x920 net/ipv4/netfilter/ip_tables.c:541 translate_table+0xcb4/0x17d0 net/ipv4/netfilter/ip_tables.c:720 do_replace net/ipv4/netfilter/ip_tables.c:1139 [inline] do_ipt_set_ctl+0x2ef/0x492 net/ipv4/netfilter/ip_tables.c:1675 nf_sockopt net/netfilter/nf_sockopt.c:106 [inline] nf_setsockopt+0x77/0xd0 net/netfilter/nf_sockopt.c:115 ip_setsockopt net/ipv4/ip_sockglue.c:1258 [inline] ip_setsockopt+0xdf/0x100 net/ipv4/ip_sockglue.c:1238 tcp_setsockopt net/ipv4/tcp.c:3075 [inline] tcp_setsockopt+0x8f/0xe0 net/ipv4/tcp.c:3069 sock_common_setsockopt+0x94/0xd0 net/core/sock.c:3046 __sys_setsockopt+0x17a/0x280 net/socket.c:1901 __do_sys_setsockopt net/socket.c:1912 [inline] __se_sys_setsockopt net/socket.c:1909 [inline] __x64_sys_setsockopt+0xbe/0x150 net/socket.c:1909 do_syscall_64+0xfd/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x45b349 Code: Bad RIP value. RSP: 002b:00007ff7f1ac6c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000036 RAX: ffffffffffffffda RBX: 00007ff7f1ac76d4 RCX: 000000000045b349 RDX: 0000000000000040 RSI: 0004000000000000 RDI: 0000000000000004 RBP: 000000000075c070 R08: 00000000000003c0 R09: 0000000000000000 R10: 0000000020000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 00000000000009fc R14: 00000000004cb5e1 R15: 000000000075c07c INFO: task syz-executor.2:25933 blocked for more than 140 seconds. Not tainted 4.19.99-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. syz-executor.2 D28344 25933 25223 0x00000004 Call Trace: context_switch kernel/sched/core.c:2826 [inline] __schedule+0x866/0x1dc0 kernel/sched/core.c:3515 schedule+0x92/0x1c0 kernel/sched/core.c:3559 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:3617 __mutex_lock_common kernel/locking/mutex.c:1002 [inline] __mutex_lock+0x726/0x1300 kernel/locking/mutex.c:1072 mutex_lock_nested+0x16/0x20 kernel/locking/mutex.c:1087 htable_put+0x21/0x220 net/netfilter/xt_hashlimit.c:440 hashlimit_mt_destroy+0x56/0x70 net/netfilter/xt_hashlimit.c:979 cleanup_match+0xde/0x170 net/ipv6/netfilter/ip6_tables.c:481 cleanup_entry+0xd7/0x270 net/ipv4/netfilter/ip_tables.c:648 translate_table+0xd86/0x17d0 net/ipv4/netfilter/ip_tables.c:731 do_replace net/ipv4/netfilter/ip_tables.c:1139 [inline] do_ipt_set_ctl+0x2ef/0x492 net/ipv4/netfilter/ip_tables.c:1675 nf_sockopt net/netfilter/nf_sockopt.c:106 [inline] nf_setsockopt+0x77/0xd0 net/netfilter/nf_sockopt.c:115 ip_setsockopt net/ipv4/ip_sockglue.c:1258 [inline] ip_setsockopt+0xdf/0x100 net/ipv4/ip_sockglue.c:1238 tcp_setsockopt net/ipv4/tcp.c:3075 [inline] tcp_setsockopt+0x8f/0xe0 net/ipv4/tcp.c:3069 sock_common_setsockopt+0x94/0xd0 net/core/sock.c:3046 __sys_setsockopt+0x17a/0x280 net/socket.c:1901 __do_sys_setsockopt net/socket.c:1912 [inline] __se_sys_setsockopt net/socket.c:1909 [inline] __x64_sys_setsockopt+0xbe/0x150 net/socket.c:1909 do_syscall_64+0xfd/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x45b349 Code: Bad RIP value. RSP: 002b:00007f8ab20a7c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000036 RAX: ffffffffffffffda RBX: 00007f8ab20a86d4 RCX: 000000000045b349 RDX: 0000000000000040 RSI: 0004000000000000 RDI: 0000000000000004 RBP: 000000000075bf20 R08: 00000000000003c0 R09: 0000000000000000 R10: 0000000020000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 00000000000009fc R14: 00000000004cb5e1 R15: 000000000075bf2c Showing all locks held in the system: 2 locks held by kworker/1:1/24: 1 lock held by khungtaskd/1079: #0: 000000001b29b21d (rcu_read_lock){....}, at: debug_show_all_locks+0x5f/0x27e kernel/locking/lockdep.c:4438 1 lock held by rsyslogd/8089: #0: 00000000ebc5b554 (&f->f_pos_lock){+.+.}, at: __fdget_pos+0xee/0x110 fs/file.c:767 2 locks held by getty/8211: #0: 000000001e48bcdd (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:362 #1: 000000006d7dd961 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x232/0x1b70 drivers/tty/n_tty.c:2154 2 locks held by getty/8212: #0: 00000000d042b9ae (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:362 #1: 000000009d9eb02d (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x232/0x1b70 drivers/tty/n_tty.c:2154 2 locks held by getty/8213: #0: 000000004bfbee05 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:362 #1: 000000007acc6101 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x232/0x1b70 drivers/tty/n_tty.c:2154 2 locks held by getty/8214: #0: 00000000faf7f7b5 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:362 #1: 0000000011d839eb (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x232/0x1b70 drivers/tty/n_tty.c:2154 2 locks held by getty/8215: #0: 00000000fdcc1b6d (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:362 #1: 00000000d09ff304 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x232/0x1b70 drivers/tty/n_tty.c:2154 2 locks held by getty/8216: #0: 00000000d0f9f501 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:362 #1: 00000000233733f3 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x232/0x1b70 drivers/tty/n_tty.c:2154 2 locks held by getty/8217: #0: 000000009eaf09a3 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:362 #1: 00000000dac464d0 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x232/0x1b70 drivers/tty/n_tty.c:2154 2 locks held by syz-executor.5/25924: 1 lock held by syz-executor.1/25930: #0: 00000000d362b87e (hashlimit_mutex){+.+.}, at: htable_put+0x21/0x220 net/netfilter/xt_hashlimit.c:440 1 lock held by syz-executor.1/26097: #0: 00000000d362b87e (hashlimit_mutex){+.+.}, at: hashlimit_mt_check_common.isra.0+0x341/0x1500 net/netfilter/xt_hashlimit.c:897 1 lock held by syz-executor.2/25933: #0: 00000000d362b87e (hashlimit_mutex){+.+.}, at: htable_put+0x21/0x220 net/netfilter/xt_hashlimit.c:440 ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 1079 Comm: khungtaskd Not tainted 4.19.99-syzkaller #0 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+0x197/0x210 lib/dump_stack.c:118 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+0x354/0x420 kernel/kthread.c:246 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 25924 Comm: syz-executor.5 Not tainted 4.19.99-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:arch_local_save_flags arch/x86/include/asm/paravirt.h:784 [inline] RIP: 0010:lockdep_hardirqs_on+0x2d2/0x5d0 kernel/locking/lockdep.c:2862 Code: 00 00 00 00 00 00 5b 41 5c 5d c3 48 c7 c0 40 57 f2 88 48 ba 00 00 00 00 00 fc ff df 48 c1 e8 03 80 3c 10 00 0f 85 ba 02 00 00 <48> 83 3d 76 14 a0 07 00 0f 84 96 02 00 00 9c 58 0f 1f 44 00 00 f6 RSP: 0018:ffff8880650777f8 EFLAGS: 00000046 RAX: 1ffffffff11e4ae8 RBX: ffffffff8ac87960 RCX: 1ffffffff1278b10 RDX: dffffc0000000000 RSI: ffffffff8170405e RDI: ffff8880644a8cc8 RBP: ffff888065077808 R08: ffff8880644a8480 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: ffffffff8140221a R13: ffffffff8754cb21 R14: ffffffff8140221a R15: 0000000003257538 FS: 00007fabf84d0700(0000) GS:ffff8880ae800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000000045b31f CR3: 000000006c08f000 CR4: 00000000001406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: trace_hardirqs_on+0x67/0x220 kernel/trace/trace_preemptirq.c:30 __local_bh_enable_ip+0x15a/0x270 kernel/softirq.c:194 __raw_spin_unlock_bh include/linux/spinlock_api_smp.h:176 [inline] _raw_spin_unlock_bh+0x31/0x40 kernel/locking/spinlock.c:200 spin_unlock_bh include/linux/spinlock.h:374 [inline] htable_selective_cleanup+0x219/0x330 net/netfilter/xt_hashlimit.c:381 htable_destroy net/netfilter/xt_hashlimit.c:416 [inline] htable_put+0x176/0x220 net/netfilter/xt_hashlimit.c:443 hashlimit_mt_destroy+0x56/0x70 net/netfilter/xt_hashlimit.c:979 cleanup_match+0xde/0x170 net/ipv6/netfilter/ip6_tables.c:481 cleanup_entry+0xd7/0x270 net/ipv4/netfilter/ip_tables.c:648 translate_table+0xd86/0x17d0 net/ipv4/netfilter/ip_tables.c:731 do_replace net/ipv4/netfilter/ip_tables.c:1139 [inline] do_ipt_set_ctl+0x2ef/0x492 net/ipv4/netfilter/ip_tables.c:1675 nf_sockopt net/netfilter/nf_sockopt.c:106 [inline] nf_setsockopt+0x77/0xd0 net/netfilter/nf_sockopt.c:115 ip_setsockopt net/ipv4/ip_sockglue.c:1258 [inline] ip_setsockopt+0xdf/0x100 net/ipv4/ip_sockglue.c:1238 tcp_setsockopt net/ipv4/tcp.c:3075 [inline] tcp_setsockopt+0x8f/0xe0 net/ipv4/tcp.c:3069 sock_common_setsockopt+0x94/0xd0 net/core/sock.c:3046 __sys_setsockopt+0x17a/0x280 net/socket.c:1901 __do_sys_setsockopt net/socket.c:1912 [inline] __se_sys_setsockopt net/socket.c:1909 [inline] __x64_sys_setsockopt+0xbe/0x150 net/socket.c:1909 do_syscall_64+0xfd/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x45b349 Code: ad b6 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 7b b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007fabf84cfc78 EFLAGS: 00000246 ORIG_RAX: 0000000000000036 RAX: ffffffffffffffda RBX: 00007fabf84d06d4 RCX: 000000000045b349 RDX: 0000000000000040 RSI: 0004000000000000 RDI: 0000000000000004 RBP: 000000000075bf20 R08: 00000000000003c0 R09: 0000000000000000 R10: 0000000020000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 00000000000009fc R14: 00000000004cb5e1 R15: 000000000075bf2c