syzbot


general protection fault in htb_tcf_block

Status: fixed on 2024/01/30 15:47
Subsystems: net
[Documentation on labels]
Reported-by: syzbot+806b0572c8d06b66b234@syzkaller.appspotmail.com
Fix commit: 94e2557d086a net: sched: move block device tracking into tcf_block_get/put_ext()
First crash: 351d, last: 339d
Cause bisection: introduced by (bisect log) :
commit 913b47d3424e7d99eaf34b798c47dfa840c64a08
Author: Victor Nogueira <victor@mojatatu.com>
Date: Tue Dec 19 18:16:19 2023 +0000

  net/sched: Introduce tc block netdev tracking infra

Crash: BUG: unable to handle kernel paging request in htb_tcf_block (log)
Repro: C syz .config
  
Discussions (3)
Title Replies (including bot) Last reply
[patch net-next] net: sched: move block device tracking into tcf_block_get/put_ext() 11 (11) 2024/01/06 11:49
[PATCH net-next v2 1/1] net/sched: We should only add appropriate qdiscs blocks to ports' xarray 17 (17) 2024/01/04 19:40
[syzbot] [net?] general protection fault in htb_tcf_block 1 (4) 2024/01/04 11:44
Last patch testing requests (2)
Created Duration User Patch Repo Result
2024/01/04 11:44 20m jiri@resnulli.us https://github.com/jpirko/linux_mlxsw.git wip_tc_block_fix OK log
2023/12/31 14:38 24m victor@mojatatu.com patch net-next OK log

Sample crash report:
general protection fault, probably for non-canonical address 0xdffffc000000200c: 0000 [#1] PREEMPT SMP KASAN
KASAN: probably user-memory-access in range [0x0000000000010060-0x0000000000010067]
CPU: 1 PID: 5060 Comm: syz-executor136 Not tainted 6.7.0-rc6-syzkaller-01658-gc2b2ee36250d #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023
RIP: 0010:htb_tcf_block+0x3a/0xa0 net/sched/sch_htb.c:2093
Code: f8 31 ff 48 89 de e8 f5 4f f1 f8 48 85 db 74 2f e8 5b 54 f1 f8 48 8d 7b 70 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 75 4b 48 8b 5b 70 e8 37 54 f1 f8 48 89 d8 5b 5d c3 e8
RSP: 0018:ffffc9000390f408 EFLAGS: 00010206
RAX: dffffc0000000000 RBX: 000000000000fff2 RCX: ffffffff88962d0b
RDX: 000000000000200c RSI: ffffffff88962d15 RDI: 0000000000010062
RBP: ffff888074ee6000 R08: 0000000000000007 R09: 0000000000000000
R10: 000000000000fff2 R11: ffffffff81de56d2 R12: ffff88807f154000
R13: ffffffff8bed4a60 R14: 0000000000000001 R15: ffffffff8f19a9a0
FS:  0000555556d17380(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020005840 CR3: 00000000762cd000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 qdisc_block_add_dev net/sched/sch_api.c:1190 [inline]
 qdisc_create+0x6b6/0x1430 net/sched/sch_api.c:1390
 tc_modify_qdisc+0x4d5/0x1c30 net/sched/sch_api.c:1788
 rtnetlink_rcv_msg+0x3c7/0xe00 net/core/rtnetlink.c:6615
 netlink_rcv_skb+0x16b/0x440 net/netlink/af_netlink.c:2543
 netlink_unicast_kernel net/netlink/af_netlink.c:1341 [inline]
 netlink_unicast+0x53b/0x810 net/netlink/af_netlink.c:1367
 netlink_sendmsg+0x8b7/0xd70 net/netlink/af_netlink.c:1908
 sock_sendmsg_nosec net/socket.c:730 [inline]
 __sock_sendmsg+0xd5/0x180 net/socket.c:745
 ____sys_sendmsg+0x6ac/0x940 net/socket.c:2584
 ___sys_sendmsg+0x135/0x1d0 net/socket.c:2638
 __sys_sendmsg+0x117/0x1e0 net/socket.c:2667
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0x40/0x110 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x63/0x6b
RIP: 0033:0x7f0719e9b779
Code: 48 83 c4 28 c3 e8 27 18 00 00 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 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffc30cf03a8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007f0719ee402d RCX: 00007f0719e9b779
RDX: 0000000000000000 RSI: 0000000020005840 RDI: 0000000000000003
RBP: 00007ffc30cf03c0 R08: 00007ffc30cf0420 R09: 00007ffc30cf0420
R10: 00007ffc30cf0420 R11: 0000000000000246 R12: 00007f0719f0e5f0
R13: 00007ffc30cf05a8 R14: 0000000000000001 R15: 0000000000000001
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:htb_tcf_block+0x3a/0xa0 net/sched/sch_htb.c:2093
Code: f8 31 ff 48 89 de e8 f5 4f f1 f8 48 85 db 74 2f e8 5b 54 f1 f8 48 8d 7b 70 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 75 4b 48 8b 5b 70 e8 37 54 f1 f8 48 89 d8 5b 5d c3 e8
RSP: 0018:ffffc9000390f408 EFLAGS: 00010206
RAX: dffffc0000000000 RBX: 000000000000fff2 RCX: ffffffff88962d0b
RDX: 000000000000200c RSI: ffffffff88962d15 RDI: 0000000000010062
RBP: ffff888074ee6000 R08: 0000000000000007 R09: 0000000000000000
R10: 000000000000fff2 R11: ffffffff81de56d2 R12: ffff88807f154000
R13: ffffffff8bed4a60 R14: 0000000000000001 R15: ffffffff8f19a9a0
FS:  0000555556d17380(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000562b45e47ba0 CR3: 00000000762cd000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	f8                   	clc
   1:	31 ff                	xor    %edi,%edi
   3:	48 89 de             	mov    %rbx,%rsi
   6:	e8 f5 4f f1 f8       	call   0xf8f15000
   b:	48 85 db             	test   %rbx,%rbx
   e:	74 2f                	je     0x3f
  10:	e8 5b 54 f1 f8       	call   0xf8f15470
  15:	48 8d 7b 70          	lea    0x70(%rbx),%rdi
  19:	48 b8 00 00 00 00 00 	movabs $0xdffffc0000000000,%rax
  20:	fc ff df
  23:	48 89 fa             	mov    %rdi,%rdx
  26:	48 c1 ea 03          	shr    $0x3,%rdx
* 2a:	80 3c 02 00          	cmpb   $0x0,(%rdx,%rax,1) <-- trapping instruction
  2e:	75 4b                	jne    0x7b
  30:	48 8b 5b 70          	mov    0x70(%rbx),%rbx
  34:	e8 37 54 f1 f8       	call   0xf8f15470
  39:	48 89 d8             	mov    %rbx,%rax
  3c:	5b                   	pop    %rbx
  3d:	5d                   	pop    %rbp
  3e:	c3                   	ret
  3f:	e8                   	.byte 0xe8

Crashes (885):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/12/27 17:28 net-next c2b2ee36250d fb427a07 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce general protection fault in htb_tcf_block
2024/01/05 12:32 net-next e63c1822ac32 28c42cff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce general protection fault in htb_tcf_block
2024/01/05 05:47 net-next 5e5401d6612e 28c42cff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce general protection fault in htb_tcf_block
2024/01/05 05:35 net-next 5e5401d6612e 28c42cff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce general protection fault in htb_tcf_block
2024/01/04 21:36 net-next 5e5401d6612e 28c42cff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce general protection fault in htb_tcf_block
2024/01/04 19:05 net-next b15a4cfe100b 28c42cff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce general protection fault in htb_tcf_block
2024/01/04 10:09 net-next b15a4cfe100b 28c42cff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce general protection fault in htb_tcf_block
2024/01/08 04:36 linux-next e2425464bc87 d0304e9c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in htb_tcf_block
2024/01/08 04:22 linux-next e2425464bc87 d0304e9c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in htb_tcf_block
2024/01/08 02:44 linux-next e2425464bc87 d0304e9c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in htb_tcf_block
2024/01/07 22:46 linux-next e2425464bc87 d0304e9c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in htb_tcf_block
2024/01/07 20:45 linux-next e2425464bc87 d0304e9c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in htb_tcf_block
2024/01/07 16:03 linux-next e2425464bc87 d0304e9c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in htb_tcf_block
2024/01/07 15:03 linux-next e2425464bc87 d0304e9c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in htb_tcf_block
2024/01/07 10:55 linux-next e2425464bc87 d0304e9c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in htb_tcf_block
2024/01/07 07:03 linux-next e2425464bc87 d0304e9c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in htb_tcf_block
2024/01/07 04:56 linux-next e2425464bc87 d0304e9c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in htb_tcf_block
2024/01/07 03:19 linux-next e2425464bc87 d0304e9c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in htb_tcf_block
2024/01/07 01:05 linux-next e2425464bc87 d0304e9c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in htb_tcf_block
2024/01/07 00:49 linux-next e2425464bc87 d0304e9c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in htb_tcf_block
2024/01/06 21:09 linux-next e2425464bc87 d0304e9c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in htb_tcf_block
2024/01/06 18:18 linux-next e2425464bc87 d0304e9c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in htb_tcf_block
2024/01/06 14:51 linux-next e2425464bc87 d0304e9c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in htb_tcf_block
2024/01/06 11:16 linux-next e2425464bc87 d0304e9c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in htb_tcf_block
2024/01/06 09:55 linux-next e2425464bc87 d0304e9c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in htb_tcf_block
2024/01/06 08:46 linux-next e2425464bc87 d0304e9c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in htb_tcf_block
2024/01/06 06:46 linux-next e2425464bc87 d0304e9c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in htb_tcf_block
2024/01/06 03:00 linux-next e2425464bc87 d0304e9c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in htb_tcf_block
2024/01/06 01:56 linux-next e2425464bc87 d0304e9c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in htb_tcf_block
2024/01/06 00:40 linux-next e2425464bc87 d0304e9c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in htb_tcf_block
2024/01/05 23:37 linux-next e2425464bc87 d0304e9c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in htb_tcf_block
2024/01/05 23:23 linux-next e2425464bc87 d0304e9c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in htb_tcf_block
2024/01/05 22:23 linux-next e2425464bc87 d0304e9c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in htb_tcf_block
2024/01/05 16:07 linux-next e2425464bc87 28c42cff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in htb_tcf_block
2024/01/05 15:12 linux-next e2425464bc87 28c42cff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in htb_tcf_block
2024/01/05 13:44 linux-next e2425464bc87 28c42cff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in htb_tcf_block
2024/01/05 06:48 linux-next d0b3c8aa5e37 28c42cff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in htb_tcf_block
2024/01/05 03:46 linux-next d0b3c8aa5e37 28c42cff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in htb_tcf_block
2024/01/04 22:38 linux-next d0b3c8aa5e37 28c42cff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in htb_tcf_block
2024/01/04 18:30 linux-next d0b3c8aa5e37 28c42cff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in htb_tcf_block
2024/01/04 17:28 linux-next d0b3c8aa5e37 28c42cff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in htb_tcf_block
2024/01/04 16:26 linux-next d0b3c8aa5e37 28c42cff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in htb_tcf_block
2024/01/04 13:59 linux-next d0b3c8aa5e37 28c42cff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in htb_tcf_block
2024/01/04 11:14 linux-next d0b3c8aa5e37 28c42cff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in htb_tcf_block
* Struck through repros no longer work on HEAD.