syzbot


suspicious RCU usage at ./include/trace/events/kmem.h:LINE

Status: closed as dup on 2017/11/29 04:59
Subsystems: crypto
[Documentation on labels]
Reported-by: syzbot+fbbeacd3de00d98d2fe5a9e69d8025f36dbd2ddb@syzkaller.appspotmail.com
First crash: 2584d, last: 2561d
Duplicate of
Title Repro Cause bisect Fix bisect Count Last Reported
WARNING: suspicious RCU usage (3) mm 16 2579d 2579d

Sample crash report:
=============================
WARNING: suspicious RCU usage
4.15.0-rc1+ #203 Not tainted
-----------------------------
./include/trace/events/kmem.h:142 suspicious rcu_dereference_check() usage!

other info that might help us debug this:


rcu_scheduler_active = 2, debug_locks = 1
1 lock held by syzkaller938817/3084:
 #0:  (sk_lock-AF_ALG){+.+.}, at: [<000000007fde27e4>] lock_sock include/net/sock.h:1465 [inline]
 #0:  (sk_lock-AF_ALG){+.+.}, at: [<000000007fde27e4>] af_alg_wait_for_data+0x2f2/0x650 crypto/af_alg.c:768

stack backtrace:
CPU: 0 PID: 3084 Comm: syzkaller938817 Not tainted 4.15.0-rc1+ #203
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/0x257 lib/dump_stack.c:53
 lockdep_rcu_suspicious+0x123/0x170 kernel/locking/lockdep.c:4675
 trace_kfree include/trace/events/kmem.h:137 [inline]
 kfree+0x20a/0x250 mm/slab.c:3796
 blkcipher_walk_done+0x72b/0xde0 crypto/blkcipher.c:139
 encrypt+0x50a/0xaf0 crypto/salsa20_generic.c:208
 skcipher_crypt_blkcipher crypto/skcipher.c:622 [inline]
 skcipher_decrypt_blkcipher+0x213/0x310 crypto/skcipher.c:640
 crypto_skcipher_decrypt include/crypto/skcipher.h:463 [inline]
 _skcipher_recvmsg crypto/algif_skcipher.c:144 [inline]
 skcipher_recvmsg+0xa54/0xf20 crypto/algif_skcipher.c:165
 sock_recvmsg_nosec net/socket.c:805 [inline]
 sock_recvmsg+0xc9/0x110 net/socket.c:812
 ___sys_recvmsg+0x29b/0x630 net/socket.c:2207
 __sys_recvmsg+0xe2/0x210 net/socket.c:2252
 SYSC_recvmsg net/socket.c:2264 [inline]
 SyS_recvmsg+0x2d/0x50 net/socket.c:2259
 entry_SYSCALL_64_fastpath+0x1f/0x96
RIP: 0033:0x43fe99
RSP: 002b:00007ffc46416548 EFLAGS: 00000207 ORIG_RAX: 000000000000002f
RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 000000000043fe99
RDX: 0000000000000000 RSI: 0000000020d63fc8 RDI: 0000000000000004
RBP: 00000000006ca018 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000207 R12: 0000000000401800
R13: 0000000000401890 R14: 0000000000000000 R15: 0000000000000000
BUG: unable to handle kernel NULL pointer dereference at 0000000084b9663a
IP: virt_to_cache mm/slab.c:400 [inline]
IP: kfree+0xb2/0x250 mm/slab.c:3802
PGD 1cb57d067 P4D 1cb57d067 PUD 1cb57c067 PMD 0 
Oops: 0000 [#1] SMP KASAN
Dumping ftrace buffer:
   (ftrace buffer empty)
Modules linked in:
CPU: 0 PID: 3084 Comm: syzkaller938817 Not tainted 4.15.0-rc1+ #203
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
task: 000000003b250d90 task.stack: 000000005c2057e6
RIP: 0010:virt_to_cache mm/slab.c:400 [inline]
RIP: 0010:kfree+0xb2/0x250 mm/slab.c:3802
RSP: 0018:ffff8801cb587780 EFLAGS: 00010046
RAX: 0000000000000000 RBX: ffff8801cb587948 RCX: ffffffffffffffff
RDX: ffffea00072d61c0 RSI: 0000000000000000 RDI: ffff8801cb587948
RBP: ffff8801cb5877a0 R08: 1ffff100396b0ea2 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000286
R13: 0000000000000000 R14: ffff8801cb587948 R15: ffff8801cb5878b0
FS:  000000000091a880(0000) GS:ffff8801db400000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000074 CR3: 00000001cb564000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 blkcipher_walk_done+0x72b/0xde0 crypto/blkcipher.c:139
 encrypt+0x50a/0xaf0 crypto/salsa20_generic.c:208
 skcipher_crypt_blkcipher crypto/skcipher.c:622 [inline]
 skcipher_decrypt_blkcipher+0x213/0x310 crypto/skcipher.c:640
 crypto_skcipher_decrypt include/crypto/skcipher.h:463 [inline]
 _skcipher_recvmsg crypto/algif_skcipher.c:144 [inline]
 skcipher_recvmsg+0xa54/0xf20 crypto/algif_skcipher.c:165
 sock_recvmsg_nosec net/socket.c:805 [inline]
 sock_recvmsg+0xc9/0x110 net/socket.c:812
 ___sys_recvmsg+0x29b/0x630 net/socket.c:2207
 __sys_recvmsg+0xe2/0x210 net/socket.c:2252
 SYSC_recvmsg net/socket.c:2264 [inline]
 SyS_recvmsg+0x2d/0x50 net/socket.c:2259
 entry_SYSCALL_64_fastpath+0x1f/0x96
RIP: 0033:0x43fe99
RSP: 002b:00007ffc46416548 EFLAGS: 00000207 ORIG_RAX: 000000000000002f
RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 000000000043fe99
RDX: 0000000000000000 RSI: 0000000020d63fc8 RDI: 0000000000000004
RBP: 00000000006ca018 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000207 R12: 0000000000401800
R13: 0000000000401890 R14: 0000000000000000 R15: 0000000000000000
Code: c2 48 b8 00 00 00 00 00 ea ff ff 48 89 df 48 c1 ea 0c 48 c1 e2 06 48 01 c2 48 8b 42 20 48 8d 48 ff a8 01 48 0f 45 d1 4c 8b 6a 30 <49> 63 75 74 e8 f5 76 af ff 48 89 de 4c 89 ef 4c 8b 75 08 e8 06 
RIP: virt_to_cache mm/slab.c:400 [inline] RSP: ffff8801cb587780
RIP: kfree+0xb2/0x250 mm/slab.c:3802 RSP: ffff8801cb587780
CR2: 0000000000000074
---[ end trace 52b07bdff7be1a6e ]---

Crashes (7891):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2017/12/01 14:07 upstream 3c1c4ddffb58 2fa91450 .config console log report syz C ci-upstream-kasan-gce
2017/11/24 15:39 net-next-old 1d3b78bbc6e9 deb5f6ae .config console log report syz C ci-upstream-kasan-gce
2017/12/10 19:06 net-next-old 51e18a453f5f 5ad0ce95 .config console log report syz C ci-upstream-net-kasan-gce
2017/12/01 13:42 net-next-old 201c78e05c5a 16668351 .config console log report syz C ci-upstream-net-kasan-gce
2017/11/24 16:12 net-next-old 0c86a6bd85ff ddf7b3e0 .config console log report syz C ci-upstream-net-kasan-gce
2017/12/01 14:00 mmots 4131d5166185 29b0fd90 .config console log report syz C ci-upstream-mmots-kasan-gce
2017/11/24 16:05 mmots 1ea8d039f9ed deb5f6ae .config console log report syz C ci-upstream-mmots-kasan-gce
2017/11/24 15:43 linux-next 6fc478f80f68 4bd70f88 .config console log report syz C ci-upstream-next-kasan-gce
2017/11/27 03:25 upstream bbecb1cfcca5 4bd70f88 .config console log report ci-upstream-kasan-gce
2017/11/27 07:10 net-next-old 1d3b78bbc6e9 deb5f6ae .config console log report ci-upstream-kasan-gce-386
2017/11/27 05:01 net-next-old 1d3b78bbc6e9 deb5f6ae .config console log report ci-upstream-kasan-gce-386
2017/11/26 20:52 upstream 844056fd74eb 4bd70f88 .config console log report ci-upstream-kasan-gce-386
2017/11/26 18:40 net-next-old 1d3b78bbc6e9 deb5f6ae .config console log report ci-upstream-kasan-gce-386
2017/11/26 18:04 net-next-old 1d3b78bbc6e9 deb5f6ae .config console log report ci-upstream-kasan-gce-386
2017/11/26 17:49 upstream 844056fd74eb 4bd70f88 .config console log report ci-upstream-kasan-gce-386
2017/11/26 16:45 net-next-old 1d3b78bbc6e9 deb5f6ae .config console log report ci-upstream-kasan-gce-386
2017/11/26 15:29 net-next-old 1d3b78bbc6e9 deb5f6ae .config console log report ci-upstream-kasan-gce-386
2017/11/26 11:57 net-next-old 1d3b78bbc6e9 deb5f6ae .config console log report ci-upstream-kasan-gce-386
2017/11/26 10:59 net-next-old 1d3b78bbc6e9 deb5f6ae .config console log report ci-upstream-kasan-gce-386
2017/11/26 05:45 net-next-old 1d3b78bbc6e9 deb5f6ae .config console log report ci-upstream-kasan-gce-386
2017/11/26 00:03 net-next-old 1d3b78bbc6e9 deb5f6ae .config console log report ci-upstream-kasan-gce-386
2017/11/25 23:16 net-next-old 1d3b78bbc6e9 deb5f6ae .config console log report ci-upstream-kasan-gce-386
2017/11/25 22:57 net-next-old 1d3b78bbc6e9 deb5f6ae .config console log report ci-upstream-kasan-gce-386
2017/11/25 22:48 net-next-old 1d3b78bbc6e9 deb5f6ae .config console log report ci-upstream-kasan-gce-386
2017/12/16 01:10 net-next-old 3b07d7884ca2 ac20b98c .config console log report ci-upstream-net-kasan-gce
2017/12/14 21:33 net-next-old 5c13e07580c8 ac20b98c .config console log report ci-upstream-net-kasan-gce
2017/12/14 12:18 net-next-old 5c13e07580c8 ac20b98c .config console log report ci-upstream-net-kasan-gce
2017/12/14 09:09 net-next-old 5c13e07580c8 ac20b98c .config console log report ci-upstream-net-kasan-gce
2017/12/14 06:57 net-next-old f93ea3bf151d 06ea774d .config console log report ci-upstream-net-kasan-gce
2017/12/13 17:12 net-next-old f93ea3bf151d ce7f2399 .config console log report ci-upstream-net-kasan-gce
2017/12/13 15:27 net-next-old 48d79b49e168 ce7f2399 .config console log report ci-upstream-net-kasan-gce
2017/12/13 13:25 net-next-old 48d79b49e168 ce7f2399 .config console log report ci-upstream-net-kasan-gce
2017/12/13 11:00 net-next-old 48d79b49e168 ce7f2399 .config console log report ci-upstream-net-kasan-gce
2017/12/13 04:11 net-next-old 48d79b49e168 ce7f2399 .config console log report ci-upstream-net-kasan-gce
2017/12/12 20:15 net-next-old c360f2b58ee4 414a185f .config console log report ci-upstream-net-kasan-gce
2017/12/12 19:10 net-next-old c360f2b58ee4 414a185f .config console log report ci-upstream-net-kasan-gce
2017/12/02 14:52 net-next-old c5f66a858997 48359b97 .config console log report ci-upstream-net-kasan-gce
2017/11/27 12:34 net-next-old 1d3b78bbc6e9 deb5f6ae .config console log report ci-upstream-net-kasan-gce
2017/11/27 09:45 net-next-old 1d3b78bbc6e9 deb5f6ae .config console log report ci-upstream-net-kasan-gce
2017/11/27 09:00 net-next-old 1d3b78bbc6e9 deb5f6ae .config console log report ci-upstream-net-kasan-gce
2017/11/27 15:46 mmots 1ea8d039f9ed afba0b55 .config console log report ci-upstream-mmots-kasan-gce
2017/11/27 12:54 linux-next b0a84f19a516 deb5f6ae .config console log report ci-upstream-next-kasan-gce
2017/11/27 11:30 linux-next b0a84f19a516 deb5f6ae .config console log report ci-upstream-next-kasan-gce
2017/11/26 22:43 mmots 1ea8d039f9ed deb5f6ae .config console log report ci-upstream-mmots-kasan-gce
2017/11/26 19:27 linux-next 6fc478f80f68 4bd70f88 .config console log report ci-upstream-next-kasan-gce
2017/11/26 15:27 linux-next 6fc478f80f68 4bd70f88 .config console log report ci-upstream-next-kasan-gce
2017/11/26 11:45 linux-next 6fc478f80f68 4bd70f88 .config console log report ci-upstream-next-kasan-gce
2017/11/26 01:43 linux-next 6fc478f80f68 4bd70f88 .config console log report ci-upstream-next-kasan-gce
* Struck through repros no longer work on HEAD.