syzbot


INFO: suspicious RCU usage in xfrm4_rcv_encap

Status: public: reported C repro on 2019/04/13 00:00
Reported-by: syzbot+231c883d06b77d8dbd9f@syzkaller.appspotmail.com
First crash: 2303d, last: 1836d

Sample crash report:
===============================
[ INFO: suspicious RCU usage. ]
4.4.147-ga5fc665 #80 Not tainted
-------------------------------
net/ipv4/xfrm4_protocol.c:80 suspicious rcu_dereference_check() usage!

other info that might help us debug this:


rcu_scheduler_active = 1, debug_locks = 0
no locks held by syz-executor170/7452.

stack backtrace:
CPU: 0 PID: 7452 Comm: syz-executor170 Not tainted 4.4.147-ga5fc665 #80
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
 0000000000000000 bab0e37a634fe800 ffff8801ca3277a0 ffffffff81e12a4d
 ffff8801cefb6000 0000000000000000 0000000000000001 ffffffff83f25700
 0000000000000002 ffff8801ca3277d0 ffffffff814108b7 ffffffff8497e6c0
Call Trace:
 [<ffffffff81e12a4d>] __dump_stack lib/dump_stack.c:15 [inline]
 [<ffffffff81e12a4d>] dump_stack+0xc1/0x124 lib/dump_stack.c:51
 [<ffffffff814108b7>] lockdep_rcu_suspicious.cold.47+0x110/0x141 kernel/locking/lockdep.c:4305
 [<ffffffff833c49fa>] xfrm4_rcv_encap+0x30a/0x370 net/ipv4/xfrm4_protocol.c:80
 [<ffffffff833c2f2e>] xfrm4_udp_encap_rcv+0x4de/0x720 net/ipv4/xfrm4_input.c:148
 [<ffffffff832d9868>] udp_queue_rcv_skb+0xb38/0x1580 net/ipv4/udp.c:1547
 [<ffffffff82f30e0b>] sk_backlog_rcv include/net/sock.h:871 [inline]
 [<ffffffff82f30e0b>] __release_sock net/core/sock.c:2023 [inline]
 [<ffffffff82f30e0b>] release_sock+0x17b/0x500 net/core/sock.c:2473
 [<ffffffff832d6ae2>] udp_sendmsg+0x1152/0x1c70 net/ipv4/udp.c:1107
 [<ffffffff83306c83>] inet_sendmsg+0x203/0x4d0 net/ipv4/af_inet.c:755
 [<ffffffff82f2391c>] sock_sendmsg_nosec net/socket.c:626 [inline]
 [<ffffffff82f2391c>] sock_sendmsg+0xcc/0x110 net/socket.c:636
 [<ffffffff82f23b83>] sock_write_iter+0x223/0x3b0 net/socket.c:835
 [<ffffffff8151f3cd>] new_sync_write fs/read_write.c:478 [inline]
 [<ffffffff8151f3cd>] __vfs_write+0x30d/0x3f0 fs/read_write.c:491
 [<ffffffff81520fb1>] vfs_write+0x191/0x4e0 fs/read_write.c:538
 [<ffffffff815235b9>] SYSC_write fs/read_write.c:585 [inline]
 [<ffffffff815235b9>] SyS_write+0xd9/0x1c0 fs/read_write.c:577
 [<ffffffff838c8c65>] entry_SYSCALL_64_fastpath+0x22/0x9e

Crashes (17):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/08/15 02:59 https://android.googlesource.com/kernel/common android-4.4 a5fc66599b61 0e6dcb88 .config console log report syz C ci-android-44-kasan-gce
2018/08/15 03:01 https://android.googlesource.com/kernel/common android-4.4 a5fc66599b61 0e6dcb88 .config console log report syz C ci-android-44-kasan-gce-386
2019/10/29 08:23 https://android.googlesource.com/kernel/common android-4.4 62872f952d6b 5ea87a66 .config console log report ci-android-44-kasan-gce
2019/06/22 15:50 https://android.googlesource.com/kernel/common android-4.4 62872f952d6b 34bf9440 .config console log report ci-android-44-kasan-gce
2019/06/15 22:05 https://android.googlesource.com/kernel/common android-4.4 62872f952d6b 442206d7 .config console log report ci-android-44-kasan-gce
2019/04/14 03:32 https://android.googlesource.com/kernel/common android-4.4 62872f952d6b c402d8f1 .config console log report ci-android-44-kasan-gce
2018/08/04 15:15 https://android.googlesource.com/kernel/common android-4.4 2241aa98c9aa 3476a2df .config console log report ci-android-44-kasan-gce
2019/11/14 07:50 https://android.googlesource.com/kernel/common android-4.4 62872f952d6b 048f2d49 .config console log report ci-android-44-kasan-gce-386
2019/08/31 08:16 https://android.googlesource.com/kernel/common android-4.4 62872f952d6b fd37b39e .config console log report ci-android-44-kasan-gce-386
2019/07/25 14:14 https://android.googlesource.com/kernel/common android-4.4 62872f952d6b 32329ceb .config console log report ci-android-44-kasan-gce-386
2019/06/24 12:48 https://android.googlesource.com/kernel/common android-4.4 62872f952d6b 472f0082 .config console log report ci-android-44-kasan-gce-386
2019/06/02 05:40 https://android.googlesource.com/kernel/common android-4.4 62872f952d6b 53c81ea5 .config console log report ci-android-44-kasan-gce-386
2019/05/28 05:35 https://android.googlesource.com/kernel/common android-4.4 62872f952d6b 6bd61501 .config console log report ci-android-44-kasan-gce-386
2019/05/01 00:20 https://android.googlesource.com/kernel/common android-4.4 62872f952d6b 618456b4 .config console log report ci-android-44-kasan-gce-386
2019/04/24 08:27 https://android.googlesource.com/kernel/common android-4.4 62872f952d6b 4d3d6a50 .config console log report ci-android-44-kasan-gce-386
2019/01/10 04:11 https://android.googlesource.com/kernel/common android-4.4 d08574b6f0ae 45c0c1b1 .config console log report ci-android-44-kasan-gce-386
2018/10/06 19:13 https://android.googlesource.com/kernel/common android-4.4 ea3a6005d280 8b311eaf .config console log report ci-android-44-kasan-gce-386
* Struck through repros no longer work on HEAD.