syzbot


UBSAN: shift-out-of-bounds in xprt_do_reserve

Status: closed as dup on 2021/02/11 00:52
Subsystems: net nfs
[Documentation on labels]
Reported-by: syzbot+f3a0fa110fd630ab56c8@syzkaller.appspotmail.com
Fix commit: c09f11ef3595 NFS: fs_context: validate UDP retrans to prevent shift out-of-bounds
First crash: 1401d, last: 1325d
Duplicate of
Title Repro Cause bisect Fix bisect Count Last Reported
UBSAN: shift-out-of-bounds in xprt_calc_majortimeo net nfs C unreliable 149 1324d 1453d
Discussions (5)
Title Replies (including bot) Last reply
[PATCH 5.10 000/299] 5.10.36-rc1 review 323 (323) 2021/05/28 16:59
[PATCH 5.11 000/342] 5.11.20-rc1 review 354 (354) 2021/05/12 06:38
[PATCH 5.12 000/384] 5.12.3-rc1 review 395 (395) 2021/05/11 21:07
[PATCH] NFS: fs_context: validate UDP retrans to prevent shift out-of-bounds 3 (3) 2021/03/16 23:19
UBSAN: shift-out-of-bounds in xprt_do_reserve 2 (3) 2021/02/11 01:07
Cause bisection attempts (1)
Created Duration User Patch Repo Result
2021/02/06 01:44 0m bisect upstream error job log

Sample crash report:
================================================================================
UBSAN: shift-out-of-bounds in net/sunrpc/xprt.c:658:14
shift exponent 536870976 is too large for 64-bit type 'unsigned long'
CPU: 1 PID: 8411 Comm: syz-executor902 Not tainted 5.11.0-rc6-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:79 [inline]
 dump_stack+0x137/0x1be lib/dump_stack.c:120
 ubsan_epilogue lib/ubsan.c:148 [inline]
 __ubsan_handle_shift_out_of_bounds+0x432/0x4d0 lib/ubsan.c:395
 xprt_calc_majortimeo net/sunrpc/xprt.c:658 [inline]
 xprt_init_majortimeo net/sunrpc/xprt.c:686 [inline]
 xprt_request_init net/sunrpc/xprt.c:1805 [inline]
 xprt_do_reserve+0x751/0x770 net/sunrpc/xprt.c:1815
 __rpc_execute+0x1e1/0xb00 net/sunrpc/sched.c:891
 rpc_run_task+0x5a4/0x740 net/sunrpc/clnt.c:1140
 rpc_call_sync net/sunrpc/clnt.c:1169 [inline]
 rpc_ping net/sunrpc/clnt.c:2682 [inline]
 rpc_create_xprt+0x2f3/0x700 net/sunrpc/clnt.c:477
 rpc_create+0x5df/0x8a0 net/sunrpc/clnt.c:593
 nfs_create_rpc_client+0x5a0/0x740 fs/nfs/client.c:536
 nfs_init_client+0x53/0xf0 fs/nfs/client.c:653
 nfs_init_server fs/nfs/client.c:692 [inline]
 nfs_create_server+0x82d/0x2130 fs/nfs/client.c:996
 nfs_try_get_tree+0x385/0x1040 fs/nfs/super.c:939
 vfs_get_tree+0x86/0x270 fs/super.c:1496
 do_new_mount fs/namespace.c:2881 [inline]
 path_mount+0x17ad/0x2a00 fs/namespace.c:3211
 do_mount fs/namespace.c:3224 [inline]
 __do_sys_mount fs/namespace.c:3432 [inline]
 __se_sys_mount+0x28c/0x320 fs/namespace.c:3409
 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x43ef89
Code: 28 c3 e8 2a 14 00 00 66 2e 0f 1f 84 00 00 00 00 00 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 73 01 c3 48 c7 c1 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffe0a856338 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 0030656c69662f2e RCX: 000000000043ef89
RDX: 0000000020fb5ffc RSI: 0000000020000080 RDI: 00000000200000c0
RBP: 0000000000402f70 R08: 000000002000a000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000403000
R13: 0000000000000000 R14: 00000000004ac018 R15: 0000000000400488
================================================================================

Crashes (42):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/02/06 01:44 upstream dd86e7fa07a3 23a562df .config console log report syz C ci-upstream-kasan-gce-smack-root UBSAN: shift-out-of-bounds in xprt_do_reserve
2021/04/22 15:29 upstream 16fc44d6387e 33c28d03 .config console log report info ci-upstream-kasan-gce-smack-root UBSAN: shift-out-of-bounds in xprt_do_reserve
2021/04/22 02:20 upstream 16fc44d6387e 2bc8999a .config console log report info ci-upstream-kasan-gce-smack-root UBSAN: shift-out-of-bounds in xprt_do_reserve
2021/04/18 23:55 upstream c98ff1d013d2 7e2b734b .config console log report info ci-upstream-kasan-gce-smack-root UBSAN: shift-out-of-bounds in xprt_do_reserve
2021/04/17 14:18 upstream 9cdbf6467424 7e2b734b .config console log report info ci-upstream-kasan-gce-smack-root UBSAN: shift-out-of-bounds in xprt_do_reserve
2021/04/17 14:18 upstream 9cdbf6467424 7e2b734b .config console log report info ci-upstream-kasan-gce-smack-root UBSAN: shift-out-of-bounds in xprt_do_reserve
2021/04/16 09:05 upstream 7e25f40eab52 c59079a6 .config console log report info ci-upstream-kasan-gce-smack-root UBSAN: shift-out-of-bounds in xprt_do_reserve
2021/04/14 20:19 upstream 50987beca096 3134b37f .config console log report info ci-upstream-kasan-gce-smack-root UBSAN: shift-out-of-bounds in xprt_do_reserve
2021/04/12 06:40 upstream 7d900724913c bfeda1b1 .config console log report info ci-upstream-kasan-gce-smack-root UBSAN: shift-out-of-bounds in xprt_do_reserve
2021/04/11 20:36 upstream 52e44129fba5 bfeda1b1 .config console log report info ci-upstream-kasan-gce-smack-root UBSAN: shift-out-of-bounds in xprt_do_reserve
2021/04/10 16:51 upstream d4961772226d bfeda1b1 .config console log report info ci-upstream-kasan-gce-smack-root UBSAN: shift-out-of-bounds in xprt_do_reserve
2021/04/10 16:51 upstream d4961772226d bfeda1b1 .config console log report info ci-upstream-kasan-gce-smack-root UBSAN: shift-out-of-bounds in xprt_do_reserve
2021/04/10 16:43 upstream d4961772226d bfeda1b1 .config console log report info ci-upstream-kasan-gce-smack-root UBSAN: shift-out-of-bounds in xprt_do_reserve
2021/04/10 16:43 upstream d4961772226d bfeda1b1 .config console log report info ci-upstream-kasan-gce-smack-root UBSAN: shift-out-of-bounds in xprt_do_reserve
2021/04/10 14:50 upstream d4961772226d bfeda1b1 .config console log report info ci-upstream-kasan-gce-smack-root UBSAN: shift-out-of-bounds in xprt_do_reserve
2021/04/05 03:09 upstream e49d033bddf5 6a81331a .config console log report info ci-upstream-kasan-gce-smack-root UBSAN: shift-out-of-bounds in xprt_do_reserve
2021/03/28 08:33 upstream 0f4498cef9f5 a8529b82 .config console log report info ci-upstream-kasan-gce-smack-root UBSAN: shift-out-of-bounds in xprt_do_reserve
2021/03/27 07:48 upstream db24726bfefa a8529b82 .config console log report info ci-upstream-kasan-gce-smack-root UBSAN: shift-out-of-bounds in xprt_do_reserve
2021/03/24 00:53 upstream 7acac4b3196c e613994b .config console log report info ci-upstream-kasan-gce-smack-root UBSAN: shift-out-of-bounds in xprt_do_reserve
2021/03/24 00:41 upstream 7acac4b3196c e613994b .config console log report info ci-upstream-kasan-gce-smack-root UBSAN: shift-out-of-bounds in xprt_do_reserve
2021/03/24 00:39 upstream 7acac4b3196c e613994b .config console log report info ci-upstream-kasan-gce-smack-root UBSAN: shift-out-of-bounds in xprt_do_reserve
2021/03/21 14:42 upstream 812da4d39463 17810eae .config console log report info ci-upstream-kasan-gce-smack-root UBSAN: shift-out-of-bounds in xprt_do_reserve
2021/03/21 14:39 upstream 812da4d39463 17810eae .config console log report info ci-upstream-kasan-gce-smack-root UBSAN: shift-out-of-bounds in xprt_do_reserve
2021/03/09 12:32 upstream 144c79ef3353 09fbf400 .config console log report info ci-upstream-kasan-gce-smack-root UBSAN: shift-out-of-bounds in xprt_do_reserve
2021/03/09 12:32 upstream 144c79ef3353 09fbf400 .config console log report info ci-upstream-kasan-gce-smack-root UBSAN: shift-out-of-bounds in xprt_do_reserve
2021/03/09 12:27 upstream 144c79ef3353 09fbf400 .config console log report info ci-upstream-kasan-gce-smack-root UBSAN: shift-out-of-bounds in xprt_do_reserve
2021/03/09 11:49 upstream 144c79ef3353 09fbf400 .config console log report info ci-upstream-kasan-gce-smack-root UBSAN: shift-out-of-bounds in xprt_do_reserve
2021/03/09 11:46 upstream 144c79ef3353 09fbf400 .config console log report info ci-upstream-kasan-gce-smack-root UBSAN: shift-out-of-bounds in xprt_do_reserve
2021/03/04 09:27 upstream f69d02e37a85 d7e4e604 .config console log report info ci-upstream-kasan-gce-smack-root UBSAN: shift-out-of-bounds in xprt_do_reserve
2021/03/03 06:34 upstream 7a7fd0de4a98 e5b64d68 .config console log report info ci-upstream-kasan-gce-smack-root UBSAN: shift-out-of-bounds in xprt_do_reserve
2021/03/01 03:53 upstream cd278456d4ca 4c37c133 .config console log report info ci-upstream-kasan-gce-smack-root UBSAN: shift-out-of-bounds in xprt_do_reserve
2021/02/27 10:42 upstream 3fb6d0e00efc 4c37c133 .config console log report info ci-upstream-kasan-gce-smack-root UBSAN: shift-out-of-bounds in xprt_do_reserve
2021/02/26 00:38 upstream 29c395c77a9a 76f7fc95 .config console log report info ci-upstream-kasan-gce-smack-root UBSAN: shift-out-of-bounds in xprt_do_reserve
2021/02/19 05:51 upstream f40ddce88593 14052202 .config console log report info ci-upstream-kasan-gce-smack-root UBSAN: shift-out-of-bounds in xprt_do_reserve
2021/02/19 01:44 upstream f40ddce88593 14052202 .config console log report info ci-upstream-kasan-gce-smack-root UBSAN: shift-out-of-bounds in xprt_do_reserve
2021/02/15 16:32 upstream f40ddce88593 98682e5e .config console log report info ci-upstream-kasan-gce-smack-root UBSAN: shift-out-of-bounds in xprt_do_reserve
2021/02/15 09:05 upstream f40ddce88593 98682e5e .config console log report info ci-upstream-kasan-gce-smack-root UBSAN: shift-out-of-bounds in xprt_do_reserve
2021/02/10 04:09 upstream e0756cfc7d7c 2bd9619f .config console log report info ci-upstream-kasan-gce-smack-root UBSAN: shift-out-of-bounds in xprt_do_reserve
2021/02/06 11:17 upstream 1e0d27fce010 23a562df .config console log report info ci-upstream-kasan-gce-smack-root UBSAN: shift-out-of-bounds in xprt_do_reserve
2021/02/06 11:12 upstream 1e0d27fce010 23a562df .config console log report info ci-upstream-kasan-gce-smack-root UBSAN: shift-out-of-bounds in xprt_do_reserve
2021/02/06 10:57 upstream 1e0d27fce010 23a562df .config console log report info ci-upstream-kasan-gce-smack-root UBSAN: shift-out-of-bounds in xprt_do_reserve
2021/02/06 01:23 upstream dd86e7fa07a3 23a562df .config console log report info ci-upstream-kasan-gce-smack-root UBSAN: shift-out-of-bounds in xprt_do_reserve
* Struck through repros no longer work on HEAD.