syzbot


WARNING: suspicious RCU usage in nf_reinject

Status: upstream: reported C repro on 2020/03/02 06:20
Reported-by: syzbot+f077f84b754e74484909@syzkaller.appspotmail.com
First crash: 1760d, last: 933d
Fix bisection: failed (error log, bisect log)
  
Last patch testing requests (10)
Created Duration User Patch Repo Result
2023/03/01 12:32 11m retest repro linux-4.14.y report log
2023/03/01 11:32 9m retest repro linux-4.14.y report log
2023/03/01 10:32 10m retest repro linux-4.14.y report log
2023/03/01 09:32 14m retest repro linux-4.14.y report log
2023/02/28 23:32 13m retest repro linux-4.14.y report log
2023/02/28 22:32 11m retest repro linux-4.14.y report log
2023/02/28 21:32 11m retest repro linux-4.14.y report log
2023/02/28 19:32 9m retest repro linux-4.14.y report log
2023/02/28 18:32 10m retest repro linux-4.14.y report log
2023/02/28 16:32 11m retest repro linux-4.14.y report log
Fix bisection attempts (4)
Created Duration User Patch Repo Result
2020/06/30 17:41 0m (2) bisect fix linux-4.14.y error job log
2020/05/31 14:43 26m bisect fix linux-4.14.y OK (0) job log log
2020/05/01 14:18 25m bisect fix linux-4.14.y OK (0) job log log
2020/04/01 06:20 23m bisect fix linux-4.14.y OK (0) job log log

Sample crash report:
ip_tables: iptables: counters copy to user failed while replacing table
ip_tables: iptables: counters copy to user failed while replacing table
ip_tables: iptables: counters copy to user failed while replacing table
ip_tables: iptables: counters copy to user failed while replacing table
=============================
WARNING: suspicious RCU usage
4.14.249-syzkaller #0 Not tainted
-----------------------------
net/netfilter/nf_queue.c:227 suspicious rcu_dereference_check() usage!

other info that might help us debug this:


rcu_scheduler_active = 2, debug_locks = 1
2 locks held by syz-executor599/8001:
 #0:  (rcu_callback){....}, at: [<ffffffff8146d8ee>] __rcu_reclaim kernel/rcu/rcu.h:185 [inline]
 #0:  (rcu_callback){....}, at: [<ffffffff8146d8ee>] rcu_do_batch kernel/rcu/tree.c:2699 [inline]
 #0:  (rcu_callback){....}, at: [<ffffffff8146d8ee>] invoke_rcu_callbacks kernel/rcu/tree.c:2962 [inline]
 #0:  (rcu_callback){....}, at: [<ffffffff8146d8ee>] __rcu_process_callbacks kernel/rcu/tree.c:2929 [inline]
 #0:  (rcu_callback){....}, at: [<ffffffff8146d8ee>] rcu_process_callbacks+0x84e/0x1180 kernel/rcu/tree.c:2946
 #1:  (&(&inst->lock)->rlock){+.-.}, at: [<ffffffff85e4211f>] spin_lock_bh include/linux/spinlock.h:322 [inline]
 #1:  (&(&inst->lock)->rlock){+.-.}, at: [<ffffffff85e4211f>] nfqnl_flush+0x2f/0x2a0 net/netfilter/nfnetlink_queue.c:232

stack backtrace:
CPU: 0 PID: 8001 Comm: syz-executor599 Not tainted 4.14.249-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 <IRQ>
 __dump_stack lib/dump_stack.c:17 [inline]
 dump_stack+0x1b2/0x281 lib/dump_stack.c:58
 nf_reinject+0x56e/0x700 net/netfilter/nf_queue.c:227
 nfqnl_flush+0x1ab/0x2a0 net/netfilter/nfnetlink_queue.c:237
 instance_destroy_rcu+0x19/0x30 net/netfilter/nfnetlink_queue.c:171
 __rcu_reclaim kernel/rcu/rcu.h:195 [inline]
 rcu_do_batch kernel/rcu/tree.c:2699 [inline]
 invoke_rcu_callbacks kernel/rcu/tree.c:2962 [inline]
 __rcu_process_callbacks kernel/rcu/tree.c:2929 [inline]
 rcu_process_callbacks+0x780/0x1180 kernel/rcu/tree.c:2946
 __do_softirq+0x24d/0x9ff kernel/softirq.c:288
 invoke_softirq kernel/softirq.c:368 [inline]
 irq_exit+0x193/0x240 kernel/softirq.c:409
 exiting_irq arch/x86/include/asm/apic.h:638 [inline]
 smp_apic_timer_interrupt+0x141/0x5e0 arch/x86/kernel/apic/apic.c:1106
 apic_timer_interrupt+0x93/0xa0 arch/x86/entry/entry_64.S:793
 </IRQ>
RIP: 0010:get_current arch/x86/include/asm/current.h:15 [inline]
RIP: 0010:__sanitizer_cov_trace_pc+0x0/0x50 kernel/kcov.c:60
RSP: 0018:ffff8880b353faf8 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff10
RAX: 1ffff110166a7531 RBX: ffff8880b353a988 RCX: 1ffffffff126c314
RDX: 0000000000000000 RSI: ffffffff87895de0 RDI: ffff8880959a4318
RBP: ffff8880959a4300 R08: ffffffff8b9d21a0 R09: 0000000000000000
R10: 0000000000000000 R11: ffff8880959a4300 R12: dffffc0000000000
R13: ffff8880b3538000 R14: ffff8880b353f680 R15: ffff8880959a4830
 stack_not_used include/linux/sched/task_stack.h:99 [inline]
 check_stack_usage kernel/exit.c:754 [inline]
 do_exit+0x153a/0x2850 kernel/exit.c:911
 do_group_exit+0x100/0x2e0 kernel/exit.c:965
 get_signal+0x38d/0x1ca0 kernel/signal.c:2423
 do_signal+0x7c/0x1550 arch/x86/kernel/signal.c:792
 exit_to_usermode_loop+0x160/0x200 arch/x86/entry/common.c:160
 prepare_exit_to_usermode arch/x86/entry/common.c:199 [inline]
 syscall_return_slowpath arch/x86/entry/common.c:270 [inline]
 do_syscall_64+0x4a3/0x640 arch/x86/entry/common.c:297
 entry_SYSCALL_64_after_hwframe+0x46/0xbb
RIP: 0033:0x7f5539643289
RSP: 002b:00007f55395d22f8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca
RAX: fffffffffffffe00 RBX: 00007f55396cb410 RCX: 00007f5539643289
RDX: 0000000000000000 RSI: 0000000000000080 RDI: 00007f55396cb418
RBP: 00007f5539699074 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00000000200007a0 R14: 0001000800000000 R15: 00007f55396cb418
nla_parse: 2410 callbacks suppressed
netlink: 12 bytes leftover after parsing attributes in process `syz-executor599'.
netlink: 12 bytes leftover after parsing attributes in process `syz-executor599'.
netlink: 12 bytes leftover after parsing attributes in process `syz-executor599'.
netlink: 12 bytes leftover after parsing attributes in process `syz-executor599'.
netlink: 12 bytes leftover after parsing attributes in process `syz-executor599'.
netlink: 12 bytes leftover after parsing attributes in process `syz-executor599'.
netlink: 12 bytes leftover after parsing attributes in process `syz-executor599'.
netlink: 12 bytes leftover after parsing attributes in process `syz-executor599'.
net_ratelimit: 2416 callbacks suppressed
ip_tables: iptables: counters copy to user failed while replacing table
netlink: 12 bytes leftover after parsing attributes in process `syz-executor599'.
netlink: 12 bytes leftover after parsing attributes in process `syz-executor599'.
ip_tables: iptables: counters copy to user failed while replacing table
ip_tables: iptables: counters copy to user failed while replacing table
ip_tables: iptables: counters copy to user failed while replacing table
ip_tables: iptables: counters copy to user failed while replacing table
ip_tables: iptables: counters copy to user failed while replacing table
ip_tables: iptables: counters copy to user failed while replacing table
ip_tables: iptables: counters copy to user failed while replacing table
ip_tables: iptables: counters copy to user failed while replacing table
ip_tables: iptables: counters copy to user failed while replacing table
nla_parse: 2511 callbacks suppressed
netlink: 12 bytes leftover after parsing attributes in process `syz-executor599'.
netlink: 12 bytes leftover after parsing attributes in process `syz-executor599'.
netlink: 12 bytes leftover after parsing attributes in process `syz-executor599'.
netlink: 12 bytes leftover after parsing attributes in process `syz-executor599'.
netlink: 12 bytes leftover after parsing attributes in process `syz-executor599'.
netlink: 12 bytes leftover after parsing attributes in process `syz-executor599'.
netlink: 12 bytes leftover after parsing attributes in process `syz-executor599'.
netlink: 12 bytes leftover after parsing attributes in process `syz-executor599'.
net_ratelimit: 2513 callbacks suppressed
ip_tables: iptables: counters copy to user failed while replacing table
netlink: 12 bytes leftover after parsing attributes in process `syz-executor599'.
netlink: 12 bytes leftover after parsing attributes in process `syz-executor599'.
ip_tables: iptables: counters copy to user failed while replacing table
ip_tables: iptables: counters copy to user failed while replacing table
ip_tables: iptables: counters copy to user failed while replacing table
ip_tables: iptables: counters copy to user failed while replacing table
ip_tables: iptables: counters copy to user failed while replacing table

Crashes (991):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/10/11 18:36 linux-4.14.y 756db2ba8bde 838e7e2c .config console log report syz C ci2-linux-4-14 WARNING: suspicious RCU usage in nf_reinject
2021/10/11 05:55 linux-4.14.y 756db2ba8bde 838e7e2c .config console log report syz C ci2-linux-4-14 WARNING: suspicious RCU usage in nf_reinject
2021/09/20 05:22 linux-4.14.y f96eb53cbd76 70b76c1d .config console log report syz C ci2-linux-4-14 WARNING: suspicious RCU usage in nf_reinject
2021/09/20 02:15 linux-4.14.y f96eb53cbd76 70b76c1d .config console log report syz C ci2-linux-4-14 WARNING: suspicious RCU usage in nf_reinject
2020/12/30 01:14 linux-4.14.y 1752938529c6 80910769 .config console log report syz C ci2-linux-4-14
2020/09/29 06:44 linux-4.14.y cbfa1702aaf6 1b88c6d5 .config console log report syz C ci2-linux-4-14
2020/09/22 15:44 linux-4.14.y cbfa1702aaf6 3e8f6c27 .config console log report syz C ci2-linux-4-14
2022/05/12 00:13 linux-4.14.y e3a56aaade89 beb0b407 .config console log report syz ci2-linux-4-14 WARNING: suspicious RCU usage in nf_reinject
2020/07/28 21:55 linux-4.14.y 69b94dd6dcd1 cb93dc6a .config console log report syz ci2-linux-4-14
2020/03/02 06:20 linux-4.14.y 78d697fc93f9 4a4e0509 .config console log report syz ci2-linux-4-14
2022/06/07 15:06 linux-4.14.y b8f3be299d51 b2706118 .config console log report info ci2-linux-4-14 WARNING: suspicious RCU usage in nf_reinject
2022/06/07 13:36 linux-4.14.y b8f3be299d51 b2706118 .config console log report info ci2-linux-4-14 WARNING: suspicious RCU usage in nf_reinject
2022/06/06 08:04 linux-4.14.y b8f3be299d51 c8857892 .config console log report info ci2-linux-4-14 WARNING: suspicious RCU usage in nf_reinject
2022/06/04 02:26 linux-4.14.y 501eec4f9e13 c8857892 .config console log report info ci2-linux-4-14 WARNING: suspicious RCU usage in nf_reinject
2022/06/04 00:59 linux-4.14.y 501eec4f9e13 c8857892 .config console log report info ci2-linux-4-14 WARNING: suspicious RCU usage in nf_reinject
2022/06/03 12:37 linux-4.14.y 501eec4f9e13 eee80d3c .config console log report info ci2-linux-4-14 WARNING: suspicious RCU usage in nf_reinject
2022/06/03 01:04 linux-4.14.y 501eec4f9e13 02dddea8 .config console log report info ci2-linux-4-14 WARNING: suspicious RCU usage in nf_reinject
2022/06/02 13:08 linux-4.14.y 501eec4f9e13 6e12f05f .config console log report info ci2-linux-4-14 WARNING: suspicious RCU usage in nf_reinject
2022/06/02 10:41 linux-4.14.y 501eec4f9e13 6e12f05f .config console log report info ci2-linux-4-14 WARNING: suspicious RCU usage in nf_reinject
2022/06/01 20:45 linux-4.14.y 501eec4f9e13 b4bc6a3d .config console log report info ci2-linux-4-14 WARNING: suspicious RCU usage in nf_reinject
2022/06/01 18:31 linux-4.14.y 501eec4f9e13 b4bc6a3d .config console log report info ci2-linux-4-14 WARNING: suspicious RCU usage in nf_reinject
2022/06/01 15:36 linux-4.14.y 501eec4f9e13 b4bc6a3d .config console log report info ci2-linux-4-14 WARNING: suspicious RCU usage in nf_reinject
2022/06/01 00:52 linux-4.14.y 501eec4f9e13 3666edfe .config console log report info ci2-linux-4-14 WARNING: suspicious RCU usage in nf_reinject
2022/05/31 21:41 linux-4.14.y 501eec4f9e13 3666edfe .config console log report info ci2-linux-4-14 WARNING: suspicious RCU usage in nf_reinject
2022/05/31 09:20 linux-4.14.y 501eec4f9e13 af70c3a9 .config console log report info ci2-linux-4-14 WARNING: suspicious RCU usage in nf_reinject
2022/05/30 18:06 linux-4.14.y 501eec4f9e13 af70c3a9 .config console log report info ci2-linux-4-14 WARNING: suspicious RCU usage in nf_reinject
2022/05/27 22:04 linux-4.14.y 501eec4f9e13 a46af346 .config console log report info ci2-linux-4-14 WARNING: suspicious RCU usage in nf_reinject
2022/05/27 11:44 linux-4.14.y 501eec4f9e13 116e7a7b .config console log report info ci2-linux-4-14 WARNING: suspicious RCU usage in nf_reinject
2022/05/27 09:13 linux-4.14.y 501eec4f9e13 116e7a7b .config console log report info ci2-linux-4-14 WARNING: suspicious RCU usage in nf_reinject
2022/05/25 16:42 linux-4.14.y 501eec4f9e13 3037caa9 .config console log report info ci2-linux-4-14 WARNING: suspicious RCU usage in nf_reinject
2022/05/25 14:01 linux-4.14.y 501eec4f9e13 3037caa9 .config console log report info ci2-linux-4-14 WARNING: suspicious RCU usage in nf_reinject
2022/05/25 10:36 linux-4.14.y 501eec4f9e13 647c0e27 .config console log report info ci2-linux-4-14 WARNING: suspicious RCU usage in nf_reinject
2022/05/25 08:44 linux-4.14.y 501eec4f9e13 647c0e27 .config console log report info ci2-linux-4-14 WARNING: suspicious RCU usage in nf_reinject
2022/05/24 12:20 linux-4.14.y dffb5c6ff09c fcfad4ff .config console log report info ci2-linux-4-14 WARNING: suspicious RCU usage in nf_reinject
2022/05/24 01:21 linux-4.14.y dffb5c6ff09c e7f9308d .config console log report info ci2-linux-4-14 WARNING: suspicious RCU usage in nf_reinject
2022/05/23 22:23 linux-4.14.y dffb5c6ff09c e7f9308d .config console log report info ci2-linux-4-14 WARNING: suspicious RCU usage in nf_reinject
2022/05/23 13:55 linux-4.14.y dffb5c6ff09c 4c7657cb .config console log report info ci2-linux-4-14 WARNING: suspicious RCU usage in nf_reinject
2022/05/23 10:20 linux-4.14.y dffb5c6ff09c 4c7657cb .config console log report info ci2-linux-4-14 WARNING: suspicious RCU usage in nf_reinject
2022/05/21 07:00 linux-4.14.y dffb5c6ff09c 7268fa62 .config console log report info ci2-linux-4-14 WARNING: suspicious RCU usage in nf_reinject
2022/05/20 18:56 linux-4.14.y dffb5c6ff09c bd37ad7e .config console log report info ci2-linux-4-14 WARNING: suspicious RCU usage in nf_reinject
2022/05/19 13:28 linux-4.14.y dffb5c6ff09c cb1ac2e7 .config console log report info ci2-linux-4-14 WARNING: suspicious RCU usage in nf_reinject
2022/05/18 16:24 linux-4.14.y dffb5c6ff09c 50c53f39 .config console log report info ci2-linux-4-14 WARNING: suspicious RCU usage in nf_reinject
2022/05/18 14:55 linux-4.14.y dffb5c6ff09c 50c53f39 .config console log report info ci2-linux-4-14 WARNING: suspicious RCU usage in nf_reinject
2022/05/18 08:30 linux-4.14.y dffb5c6ff09c 744a39e2 .config console log report info ci2-linux-4-14 WARNING: suspicious RCU usage in nf_reinject
2022/05/15 21:37 linux-4.14.y 690285a9380d 744a39e2 .config console log report info ci2-linux-4-14 WARNING: suspicious RCU usage in nf_reinject
2022/05/15 20:01 linux-4.14.y 690285a9380d 744a39e2 .config console log report info ci2-linux-4-14 WARNING: suspicious RCU usage in nf_reinject
2022/05/14 11:06 linux-4.14.y 569d1abf9402 744a39e2 .config console log report info ci2-linux-4-14 WARNING: suspicious RCU usage in nf_reinject
2022/05/13 23:12 linux-4.14.y 569d1abf9402 107f6434 .config console log report info ci2-linux-4-14 WARNING: suspicious RCU usage in nf_reinject
2022/05/12 15:28 linux-4.14.y 569d1abf9402 9ad6612a .config console log report info ci2-linux-4-14 WARNING: suspicious RCU usage in nf_reinject
2022/05/12 13:56 linux-4.14.y 569d1abf9402 9ad6612a .config console log report info ci2-linux-4-14 WARNING: suspicious RCU usage in nf_reinject
2022/05/12 12:35 linux-4.14.y 569d1abf9402 beb0b407 .config console log report info ci2-linux-4-14 WARNING: suspicious RCU usage in nf_reinject
2022/05/11 18:27 linux-4.14.y e3a56aaade89 beb0b407 .config console log report info ci2-linux-4-14 WARNING: suspicious RCU usage in nf_reinject
2021/01/17 14:08 linux-4.14.y 2762b48e9611 813be542 .config console log report info ci2-linux-4-14
* Struck through repros no longer work on HEAD.