syzbot


BUG: unable to handle kernel paging request in dst_dev_put

Status: fixed on 2019/07/10 21:40
Subsystems: net
[Documentation on labels]
Reported-by: syzbot+a43d8d4e7e8a7a9e149e@syzkaller.appspotmail.com
Fix commit: c3bcde026684 tipc: pass tunnel dev as NULL to udp_tunnel(6)_xmit_skb
First crash: 1930d, last: 1787d
Discussions (6)
Title Replies (including bot) Last reply
[PATCH 4.14 00/43] 4.14.132-stable review 57 (57) 2019/08/03 07:11
[PATCH 4.9 000/102] 4.9.185-stable review 108 (108) 2019/07/10 06:11
[PATCH 4.19 00/72] 4.19.57-stable review 84 (84) 2019/07/04 05:29
[PATCH 5.1 00/55] 5.1.16-stable review 69 (69) 2019/07/04 05:27
[PATCH net 0/3] net: fix quite a few dst_cache crashes reported by syzbot 5 (5) 2019/06/19 00:49
BUG: unable to handle kernel paging request in dst_dev_put 0 (1) 2019/01/07 09:55
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in dst_dev_put (6) net 40 800d 1206d 0/26 auto-closed as invalid on 2022/06/10 11:20

Sample crash report:
BUG: unable to handle page fault for address: ffffff85e7d9d038
#PF: supervisor read access in kernel mode
#PF: error_code(0x0000) - not-present page
PGD 8a70067 P4D 8a70067 PUD 0 
Oops: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 29688 Comm: syz-executor.4 Not tainted 5.2.0-rc1+ #6
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:dst_dev_put+0xaa/0x280 net/core/dst.c:159
Code: 00 0f 85 e2 01 00 00 48 b8 00 00 00 00 00 fc ff df 4c 8b 6b 08 49 8d 7d 38 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 b5 01 00 00 <4d> 8b 75 38 4d 89 e5 4d 85 f6 74 31 e8 75 ef eb fb ba 01 00 00 00
RSP: 0018:ffff888090f7e920 EFLAGS: 00010246
RAX: dffffc0000000000 RBX: ffff88807288f21f RCX: ffffc9000dc5c000
RDX: 1ffffff0bcfb3a07 RSI: ffffffff8584b453 RDI: ffffff85e7d9d038
RBP: ffff888090f7e940 R08: 1ffffd1ffffad6c6 R09: fffff91ffffad6c7
R10: fffff91ffffad6c6 R11: ffffe8ffffd6b637 R12: 0000000000000000
R13: ffffff85e7d9d000 R14: ffff888090f7e9d0 R15: 0000000000000001
FS:  00007f9825b99700(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffff85e7d9d038 CR3: 0000000063fba000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 rt_cache_route+0x2c8/0x310 net/ipv4/route.c:1488
 rt_set_nexthop.constprop.0+0x4bc/0x1210 net/ipv4/route.c:1598
 __mkroute_output net/ipv4/route.c:2369 [inline]
 ip_route_output_key_hash_rcu+0x9cf/0x2d50 net/ipv4/route.c:2568
 ip_route_output_key_hash+0x1ef/0x360 net/ipv4/route.c:2397
 __ip_route_output_key include/net/route.h:129 [inline]
 ip_route_output_flow+0x28/0xc0 net/ipv4/route.c:2655
 ip_route_output_key include/net/route.h:139 [inline]
 ip_tunnel_xmit+0x785/0x2c38 net/ipv4/ip_tunnel.c:766
 ipip_tunnel_xmit+0x25e/0x2a0 net/ipv4/ipip.c:307
 __netdev_start_xmit include/linux/netdevice.h:4410 [inline]
 netdev_start_xmit include/linux/netdevice.h:4424 [inline]
 xmit_one net/core/dev.c:3292 [inline]
 dev_hard_start_xmit+0x18a/0x950 net/core/dev.c:3308
 __dev_queue_xmit+0x2a8e/0x36b0 net/core/dev.c:3881
 dev_queue_xmit+0x18/0x20 net/core/dev.c:3914
 neigh_direct_output+0x16/0x20 net/core/neighbour.c:1532
 neigh_output include/net/neighbour.h:511 [inline]
 ip_finish_output2+0x8e7/0x24c0 net/ipv4/ip_output.c:228
 ip_finish_output+0x729/0xd40 net/ipv4/ip_output.c:315
 NF_HOOK_COND include/linux/netfilter.h:294 [inline]
 ip_output+0x21f/0x670 net/ipv4/ip_output.c:403
 dst_output include/net/dst.h:433 [inline]
 ip_local_out+0xbb/0x1b0 net/ipv4/ip_output.c:125
 ip_send_skb+0x42/0xf0 net/ipv4/ip_output.c:1461
 udp_send_skb.isra.0+0x6b2/0x1180 net/ipv4/udp.c:901
 udp_sendmsg+0x1dfa/0x2820 net/ipv4/udp.c:1188
 udpv6_sendmsg+0x13a4/0x28d0 net/ipv6/udp.c:1290
 inet_sendmsg+0x141/0x5d0 net/ipv4/af_inet.c:802
 sock_sendmsg_nosec net/socket.c:652 [inline]
 sock_sendmsg+0xd7/0x130 net/socket.c:671
 ___sys_sendmsg+0x3e2/0x920 net/socket.c:2292
 __sys_sendmmsg+0x1bf/0x4d0 net/socket.c:2387
 __do_sys_sendmmsg net/socket.c:2416 [inline]
 __se_sys_sendmmsg net/socket.c:2413 [inline]
 __x64_sys_sendmmsg+0x9d/0x100 net/socket.c:2413
 do_syscall_64+0xfd/0x680 arch/x86/entry/common.c:301
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x459279
Code: fd b7 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 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 0f 83 cb b7 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007f9825b98c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000133
RAX: ffffffffffffffda RBX: 0000000000000004 RCX: 0000000000459279
RDX: 00000000080000db RSI: 00000000200092c0 RDI: 0000000000000005
RBP: 000000000075c060 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f9825b996d4
R13: 00000000004c65fc R14: 00000000004db280 R15: 00000000ffffffff
Modules linked in:
CR2: ffffff85e7d9d038
---[ end trace 68c01b651956bcc0 ]---
RIP: 0010:dst_dev_put+0xaa/0x280 net/core/dst.c:159
Code: 00 0f 85 e2 01 00 00 48 b8 00 00 00 00 00 fc ff df 4c 8b 6b 08 49 8d 7d 38 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 b5 01 00 00 <4d> 8b 75 38 4d 89 e5 4d 85 f6 74 31 e8 75 ef eb fb ba 01 00 00 00
RSP: 0018:ffff888090f7e920 EFLAGS: 00010246
RAX: dffffc0000000000 RBX: ffff88807288f21f RCX: ffffc9000dc5c000
RDX: 1ffffff0bcfb3a07 RSI: ffffffff8584b453 RDI: ffffff85e7d9d038
RBP: ffff888090f7e940 R08: 1ffffd1ffffad6c6 R09: fffff91ffffad6c7
R10: fffff91ffffad6c6 R11: ffffe8ffffd6b637 R12: 0000000000000000
R13: ffffff85e7d9d000 R14: ffff888090f7e9d0 R15: 0000000000000001
FS:  00007f9825b99700(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffff85e7d9d038 CR3: 0000000063fba000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/05/30 02:04 net-next-old 7da33a8f87a4 d9aaf3c2 .config console log report ci-upstream-net-kasan-gce
2019/02/28 04:58 net-next-old 1d9978757d38 34ec456b .config console log report ci-upstream-net-kasan-gce
2019/01/07 02:54 net-next-old b71acb0e3721 ee332608 .config console log report ci-upstream-net-kasan-gce
* Struck through repros no longer work on HEAD.