syzbot


general protection fault in ip_route_output_key_hash_rcu

Status: auto-closed as invalid on 2019/12/10 05:04
Reported-by: syzbot+d6c1d54d8dc9fc24fb50@syzkaller.appspotmail.com
First crash: 1942d, last: 1935d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in ip_route_output_key_hash_rcu (2) net 2 181d 191d 0/28 closed as invalid on 2024/07/26 12:16
upstream general protection fault in ip_route_output_key_hash_rcu net 46 1928d 1957d 0/28 closed as invalid on 2019/10/03 03:38
upstream KMSAN: uninit-value in IP6_ECN_decapsulate net C 981 345d 2261d 25/28 fixed on 2023/12/21 03:45

Sample crash report:
kasan: CONFIG_KASAN_INLINE enabled
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 19 Comm: kworker/1:0 Not tainted 4.19.66 #40
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
delete_channel: no stack
Workqueue: krxrpcd rxrpc_peer_keepalive_worker
RIP: 0010:__read_once_size include/linux/compiler.h:193 [inline]
RIP: 0010:__in_dev_get_rcu include/linux/inetdevice.h:218 [inline]
RIP: 0010:__mkroute_output net/ipv4/route.c:2236 [inline]
RIP: 0010:ip_route_output_key_hash_rcu+0x460/0x30e0 net/ipv4/route.c:2541
Code: 00 0f 85 64 28 00 00 48 8b 85 70 ff ff ff 4c 89 f2 48 c1 ea 03 48 8b 40 10 48 89 85 30 ff ff ff 48 b8 00 00 00 00 00 fc ff df <80> 3c 02 00 0f 85 09 28 00 00 48 8b 85 68 ff ff ff 4c 8b b8 28 03
RSP: 0018:ffff8880aa2b7550 EFLAGS: 00010206
RAX: dffffc0000000000 RBX: ffff8880aa2b78d0 RCX: 0000000000000000
RDX: 0000000000000065 RSI: ffffffff85c866ee RDI: ffff8880aa2b7676
RBP: ffff8880aa2b7628 R08: ffff8880aa2a8500 R09: ffffed1015d24733
R10: ffffed1015d24732 R11: ffff8880ae923993 R12: ffff88806047c140
delete_channel: no stack
R13: 0000000000000000 R14: 0000000000000328 R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000000 CR3: 0000000082c9b000 CR4: 00000000001406e0
Call Trace:
kobject: 'loop5' (0000000044e79344): kobject_uevent_env
 ip_route_output_key_hash+0x212/0x380 net/ipv4/route.c:2370
 __ip_route_output_key include/net/route.h:124 [inline]
 ip_route_output_flow+0x28/0xc0 net/ipv4/route.c:2625
 udp_sendmsg+0x1adb/0x25e0 net/ipv4/udp.c:1094
kobject: 'loop5' (0000000044e79344): fill_kobj_path: path = '/devices/virtual/block/loop5'
 inet_sendmsg+0x141/0x5d0 net/ipv4/af_inet.c:798
 sock_sendmsg_nosec net/socket.c:622 [inline]
 sock_sendmsg+0xd7/0x130 net/socket.c:632
 kernel_sendmsg+0x44/0x50 net/socket.c:640
 rxrpc_send_keepalive+0x1ff/0x8e0 net/rxrpc/output.c:658
kobject: 'loop3' (000000005927a95d): kobject_uevent_env
 rxrpc_peer_keepalive_dispatch net/rxrpc/peer_event.c:366 [inline]
 rxrpc_peer_keepalive_worker+0x7be/0xd02 net/rxrpc/peer_event.c:427
 process_one_work+0x989/0x1750 kernel/workqueue.c:2153
kobject: 'loop3' (000000005927a95d): fill_kobj_path: path = '/devices/virtual/block/loop3'
 worker_thread+0x98/0xe40 kernel/workqueue.c:2296
 kthread+0x354/0x420 kernel/kthread.c:246
 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415
Modules linked in:
---[ end trace c361ea51ac469161 ]---
RIP: 0010:__read_once_size include/linux/compiler.h:193 [inline]
RIP: 0010:__in_dev_get_rcu include/linux/inetdevice.h:218 [inline]
RIP: 0010:__mkroute_output net/ipv4/route.c:2236 [inline]
RIP: 0010:ip_route_output_key_hash_rcu+0x460/0x30e0 net/ipv4/route.c:2541
Code: 00 0f 85 64 28 00 00 48 8b 85 70 ff ff ff 4c 89 f2 48 c1 ea 03 48 8b 40 10 48 89 85 30 ff ff ff 48 b8 00 00 00 00 00 fc ff df <80> 3c 02 00 0f 85 09 28 00 00 48 8b 85 68 ff ff ff 4c 8b b8 28 03
RSP: 0018:ffff8880aa2b7550 EFLAGS: 00010206
kobject: 'loop5' (0000000044e79344): kobject_uevent_env
RAX: dffffc0000000000 RBX: ffff8880aa2b78d0 RCX: 0000000000000000
kobject: 'loop5' (0000000044e79344): fill_kobj_path: path = '/devices/virtual/block/loop5'
RDX: 0000000000000065 RSI: ffffffff85c866ee RDI: ffff8880aa2b7676
RBP: ffff8880aa2b7628 R08: ffff8880aa2a8500 R09: ffffed1015d24733
R10: ffffed1015d24732 R11: ffff8880ae923993 R12: ffff88806047c140
R13: 0000000000000000 R14: 0000000000000328 R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000
delete_channel: no stack
delete_channel: no stack
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000400 CR3: 0000000094070000 CR4: 00000000001406e0

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/08/12 05:03 linux-4.19.y 893af1c79e42 acb51638 .config console log report ci2-linux-4-19
2019/08/05 17:05 linux-4.19.y b3060a1a313f 6affd8e8 .config console log report ci2-linux-4-19
* Struck through repros no longer work on HEAD.