syzbot


BUG: unable to handle kernel paging request in tcf_action_dump_terse

Status: fixed on 2020/11/16 12:12
Subsystems: net
[Documentation on labels]
Reported-by: syzbot+5f66662adc70969940fd@syzkaller.appspotmail.com
Fix commit: 580e4273d7a8 net_sched: check error pointer in tcf_dump_walker()
First crash: 1363d, last: 1357d
Cause bisection: introduced by (bisect log) :
commit 0fedc63fadf0404a729e73a35349481c8009c02f
Author: Cong Wang <xiyou.wangcong@gmail.com>
Date: Wed Sep 23 03:56:24 2020 +0000

  net_sched: commit action insertions together

Crash: BUG: unable to handle kernel paging request in tcf_action_dump_terse (log)
Repro: C syz .config
  
Discussions (1)
Title Replies (including bot) Last reply
BUG: unable to handle kernel paging request in tcf_action_dump_terse 1 (4) 2020/10/11 19:15

Sample crash report:
BUG: unable to handle page fault for address: fffffffffffffff0
#PF: supervisor read access in kernel mode
#PF: error_code(0x0000) - not-present page
PGD a291067 P4D a291067 PUD a293067 PMD 0 
Oops: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 8162 Comm: syz-executor344 Not tainted 5.9.0-rc7-next-20201002-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:tcf_action_dump_terse+0x8c/0x4e0 net/sched/act_api.c:759
Code: 3c 03 0f 8e 0a 03 00 00 48 89 da 44 8b ad b8 00 00 00 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 80 3c 02 00 0f 85 10 04 00 00 <48> 8b 03 4c 8d 60 10 4c 89 e7 e8 55 5b 58 fd 4c 89 e1 be 01 00 00
RSP: 0018:ffffc90009bff178 EFLAGS: 00010246
RAX: dffffc0000000000 RBX: fffffffffffffff0 RCX: 0000000000000000
RDX: 1ffffffffffffffe RSI: ffffffff867eb859 RDI: ffff888097102eb8
RBP: ffff888097102e00 R08: 0000000000000000 R09: ffff88809ea92024
R10: 0000000000000000 R11: 0000000000000000 R12: fffffffffffffff0
R13: 0000000000000024 R14: ffff88809ea92000 R15: ffff888097102ec0
FS:  00007f6bfe65f700(0000) GS:ffff8880ae500000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: fffffffffffffff0 CR3: 0000000096ec4000 CR4: 00000000001506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 tcf_action_dump_1+0xd2/0x5a0 net/sched/act_api.c:788
 tcf_dump_walker net/sched/act_api.c:249 [inline]
 tcf_generic_walker+0x207/0xba0 net/sched/act_api.c:343
 tc_dump_action+0x6d5/0xe60 net/sched/act_api.c:1610
 netlink_dump+0x4df/0xba0 net/netlink/af_netlink.c:2268
 __netlink_dump_start+0x643/0x900 net/netlink/af_netlink.c:2373
 netlink_dump_start include/linux/netlink.h:246 [inline]
 rtnetlink_rcv_msg+0x70f/0xad0 net/core/rtnetlink.c:5526
 netlink_rcv_skb+0x15a/0x430 net/netlink/af_netlink.c:2489
 netlink_unicast_kernel net/netlink/af_netlink.c:1304 [inline]
 netlink_unicast+0x533/0x7d0 net/netlink/af_netlink.c:1330
 netlink_sendmsg+0x856/0xd90 net/netlink/af_netlink.c:1919
 sock_sendmsg_nosec net/socket.c:651 [inline]
 sock_sendmsg+0xcf/0x120 net/socket.c:671
 ____sys_sendmsg+0x331/0x810 net/socket.c:2362
 ___sys_sendmsg+0xf3/0x170 net/socket.c:2416
 __sys_sendmmsg+0x196/0x4b0 net/socket.c:2506
 __do_sys_sendmmsg net/socket.c:2535 [inline]
 __se_sys_sendmmsg net/socket.c:2532 [inline]
 __x64_sys_sendmmsg+0x99/0x100 net/socket.c:2532
 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x44a569
Code: e8 8c e7 ff ff 48 83 c4 18 c3 0f 1f 80 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 0f 83 5b 05 fc ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007f6bfe65ed98 EFLAGS: 00000246 ORIG_RAX: 0000000000000133
RAX: ffffffffffffffda RBX: 00000000006dfc48 RCX: 000000000044a569
RDX: 010efe10675dec16 RSI: 0000000020000200 RDI: 0000000000000003
RBP: 00000000006dfc40 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000006dfc4c
R13: 0000000000000005 R14: 00a3a20740000000 R15: 0507002400000038
Modules linked in:
CR2: fffffffffffffff0
---[ end trace c7fd3dfeaf54c122 ]---
RIP: 0010:tcf_action_dump_terse+0x8c/0x4e0 net/sched/act_api.c:759
Code: 3c 03 0f 8e 0a 03 00 00 48 89 da 44 8b ad b8 00 00 00 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 80 3c 02 00 0f 85 10 04 00 00 <48> 8b 03 4c 8d 60 10 4c 89 e7 e8 55 5b 58 fd 4c 89 e1 be 01 00 00
RSP: 0018:ffffc90009bff178 EFLAGS: 00010246
RAX: dffffc0000000000 RBX: fffffffffffffff0 RCX: 0000000000000000
RDX: 1ffffffffffffffe RSI: ffffffff867eb859 RDI: ffff888097102eb8
RBP: ffff888097102e00 R08: 0000000000000000 R09: ffff88809ea92024
R10: 0000000000000000 R11: 0000000000000000 R12: fffffffffffffff0
R13: 0000000000000024 R14: ffff88809ea92000 R15: ffff888097102ec0
FS:  00007f6bfe65f700(0000) GS:ffff8880ae500000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: fffffffffffffff0 CR3: 0000000096ec4000 CR4: 00000000001506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (15):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/10/04 08:48 linux-next 2172e358cd17 1a3f9408 .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2020/10/04 02:27 net-old 1f7e877c2051 1a3f9408 .config console log report info ci-upstream-net-this-kasan-gce
2020/10/03 22:43 net-old ab0faf5f04e8 1a3f9408 .config console log report info ci-upstream-net-this-kasan-gce
2020/10/01 15:18 net-old a59cf619787e a9767fb2 .config console log report info ci-upstream-net-this-kasan-gce
2020/10/01 09:32 net-old a59cf619787e a9767fb2 .config console log report info ci-upstream-net-this-kasan-gce
2020/10/01 05:34 net-old a59cf619787e 8516f6d3 .config console log report info ci-upstream-net-this-kasan-gce
2020/09/30 13:41 net-old 2b3e981a94d8 8516f6d3 .config console log report info ci-upstream-net-this-kasan-gce
2020/09/30 06:40 net-old c92a79829c7c 5abc3f1a .config console log report info ci-upstream-net-this-kasan-gce
2020/09/30 06:40 net-old c92a79829c7c 5abc3f1a .config console log report info ci-upstream-net-this-kasan-gce
2020/09/29 03:49 net-old 1aad8049909a 1b88c6d5 .config console log report info ci-upstream-net-this-kasan-gce
2020/09/29 03:38 net-old 1aad8049909a 1b88c6d5 .config console log report info ci-upstream-net-this-kasan-gce
2020/09/28 17:25 net-old 709a16be0593 6bfdbe89 .config console log report info ci-upstream-net-this-kasan-gce
2020/09/28 01:59 net-old 307eea32b202 5dd8aee8 .config console log report info ci-upstream-net-this-kasan-gce
2020/10/03 22:38 linux-next 2172e358cd17 1a3f9408 .config console log report info ci-upstream-linux-next-kasan-gce-root
2020/10/02 17:15 linux-next 2172e358cd17 4969d6ca .config console log report info ci-upstream-linux-next-kasan-gce-root
* Struck through repros no longer work on HEAD.