syzbot


general protection fault in smc_tx_sendmsg

Status: fixed on 2021/11/10 00:50
Subsystems: net s390
[Documentation on labels]
Reported-by: syzbot+5dda108b672b54141857@syzkaller.appspotmail.com
Fix commit: 17081633e22d net/smc: Ensure correct state of the socket in send path
First crash: 1045d, last: 1033d
Cause bisection: introduced by (bisect log) :
commit f9006acc8dfe59e25aa75729728ac57a8d84fc32
Author: Florian Westphal <fw@strlen.de>
Date: Wed Apr 21 07:51:08 2021 +0000

  netfilter: arp_tables: pass table pointer via nf_hook_ops

Crash: WARNING in __nf_unregister_net_hook (log)
Repro: C syz .config
  
Discussions (2)
Title Replies (including bot) Last reply
[PATCH net-next] net/smc: Ensure correct state of the socket in send path 2 (2) 2021/06/25 19:00
[syzbot] general protection fault in smc_tx_sendmsg 3 (4) 2021/06/21 19:04
Last patch testing requests (1)
Created Duration User Patch Repo Result
2021/06/21 07:28 11m ayush@disroot.org git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next.git master report log

Sample crash report:
general protection fault, probably for non-canonical address 0xdffffc0000000004: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000020-0x0000000000000027]
CPU: 1 PID: 8455 Comm: syz-executor893 Not tainted 5.13.0-rc3-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:smc_tx_sendmsg+0x204/0x1ba0 net/smc/smc_tx.c:157
Code: 48 c1 ea 03 80 3c 02 00 0f 85 8b 17 00 00 49 8b 9d 08 05 00 00 48 b8 00 00 00 00 00 fc ff df 48 8d 7b 20 48 89 fa 48 c1 ea 03 <0f> b6 04 02 84 c0 74 08 3c 03 0f 8e 8f 17 00 00 48 63 5b 20 4c 8b
RSP: 0018:ffffc9000164f800 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000000004 RSI: ffffffff889cd6ae RDI: 0000000000000020
RBP: ffff88801cf58000 R08: 0000000000000000 R09: 0000000000000000
R10: ffffffff889cd6a1 R11: 0000000000000000 R12: 0000000000000000
R13: ffff88801cf58000 R14: ffffc9000164fd90 R15: ffff88801cf58060
FS:  0000000000ebf300(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffd43ca1328 CR3: 000000002acf2000 CR4: 00000000001506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 smc_sendmsg+0x274/0x5b0 net/smc/af_smc.c:2037
 sock_sendmsg_nosec net/socket.c:654 [inline]
 sock_sendmsg+0xcf/0x120 net/socket.c:674
 ____sys_sendmsg+0x331/0x810 net/socket.c:2350
 ___sys_sendmsg+0xf3/0x170 net/socket.c:2404
 __sys_sendmmsg+0x195/0x470 net/socket.c:2490
 __do_sys_sendmmsg net/socket.c:2519 [inline]
 __se_sys_sendmmsg net/socket.c:2516 [inline]
 __x64_sys_sendmmsg+0x99/0x100 net/socket.c:2516
 do_syscall_64+0x3a/0xb0 arch/x86/entry/common.c:47
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x43ee89
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:00007ffc82b20a58 EFLAGS: 00000246 ORIG_RAX: 0000000000000133
RAX: ffffffffffffffda RBX: 0000000000400488 RCX: 000000000043ee89
RDX: 0000000000000001 RSI: 0000000020003d80 RDI: 0000000000000003
RBP: 0000000000402e70 R08: 0000000000000000 R09: 0000000000400488
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000402f00
R13: 0000000000000000 R14: 00000000004ac018 R15: 0000000000400488
Modules linked in:
---[ end trace 459b28282ae53115 ]---
RIP: 0010:smc_tx_sendmsg+0x204/0x1ba0 net/smc/smc_tx.c:157
Code: 48 c1 ea 03 80 3c 02 00 0f 85 8b 17 00 00 49 8b 9d 08 05 00 00 48 b8 00 00 00 00 00 fc ff df 48 8d 7b 20 48 89 fa 48 c1 ea 03 <0f> b6 04 02 84 c0 74 08 3c 03 0f 8e 8f 17 00 00 48 63 5b 20 4c 8b
RSP: 0018:ffffc9000164f800 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000000004 RSI: ffffffff889cd6ae RDI: 0000000000000020
RBP: ffff88801cf58000 R08: 0000000000000000 R09: 0000000000000000
R10: ffffffff889cd6a1 R11: 0000000000000000 R12: 0000000000000000
R13: ffff88801cf58000 R14: ffffc9000164fd90 R15: ffff88801cf58060
FS:  0000000000ebf300(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055b7501be298 CR3: 000000002acf2000 CR4: 00000000001506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (6369):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/06/17 01:21 net-next-old 0c33795231bf aba2b2fb .config console log report syz C ci-upstream-net-kasan-gce general protection fault in smc_tx_sendmsg
2021/06/29 00:46 bpf-next 328aac5ecd11 9d2ab5df .config console log report info ci-upstream-bpf-next-kasan-gce general protection fault in smc_tx_sendmsg
2021/06/29 00:21 bpf-next 328aac5ecd11 9d2ab5df .config console log report info ci-upstream-bpf-next-kasan-gce general protection fault in smc_tx_sendmsg
2021/06/28 23:57 bpf-next 328aac5ecd11 9d2ab5df .config console log report info ci-upstream-bpf-next-kasan-gce general protection fault in smc_tx_sendmsg
2021/06/28 23:31 bpf-next 328aac5ecd11 9d2ab5df .config console log report info ci-upstream-bpf-next-kasan-gce general protection fault in smc_tx_sendmsg
2021/06/28 22:56 bpf-next 328aac5ecd11 9d2ab5df .config console log report info ci-upstream-bpf-next-kasan-gce general protection fault in smc_tx_sendmsg
2021/06/28 22:22 bpf-next 328aac5ecd11 9d2ab5df .config console log report info ci-upstream-bpf-next-kasan-gce general protection fault in smc_tx_sendmsg
2021/06/28 21:55 bpf-next 328aac5ecd11 9d2ab5df .config console log report info ci-upstream-bpf-next-kasan-gce general protection fault in smc_tx_sendmsg
2021/06/28 21:24 bpf-next 328aac5ecd11 9d2ab5df .config console log report info ci-upstream-bpf-next-kasan-gce general protection fault in smc_tx_sendmsg
2021/06/28 20:45 bpf-next 328aac5ecd11 9d2ab5df .config console log report info ci-upstream-bpf-next-kasan-gce general protection fault in smc_tx_sendmsg
2021/06/28 20:06 bpf-next 328aac5ecd11 9d2ab5df .config console log report info ci-upstream-bpf-next-kasan-gce general protection fault in smc_tx_sendmsg
2021/06/28 19:15 bpf-next 328aac5ecd11 9d2ab5df .config console log report info ci-upstream-bpf-next-kasan-gce general protection fault in smc_tx_sendmsg
2021/06/28 18:40 bpf-next 328aac5ecd11 9d2ab5df .config console log report info ci-upstream-bpf-next-kasan-gce general protection fault in smc_tx_sendmsg
2021/06/28 17:41 bpf-next 328aac5ecd11 9d2ab5df .config console log report info ci-upstream-bpf-next-kasan-gce general protection fault in smc_tx_sendmsg
2021/06/28 16:58 bpf-next 328aac5ecd11 9d2ab5df .config console log report info ci-upstream-bpf-next-kasan-gce general protection fault in smc_tx_sendmsg
2021/06/28 15:54 bpf-next 328aac5ecd11 9d2ab5df .config console log report info ci-upstream-bpf-next-kasan-gce general protection fault in smc_tx_sendmsg
2021/06/28 15:07 bpf-next 328aac5ecd11 9d2ab5df .config console log report info ci-upstream-bpf-next-kasan-gce general protection fault in smc_tx_sendmsg
2021/06/28 14:02 bpf-next 328aac5ecd11 9d2ab5df .config console log report info ci-upstream-bpf-next-kasan-gce general protection fault in smc_tx_sendmsg
2021/06/28 13:02 bpf-next a196fa78a265 9d2ab5df .config console log report info ci-upstream-bpf-next-kasan-gce general protection fault in smc_tx_sendmsg
2021/06/28 12:00 bpf-next a196fa78a265 9d2ab5df .config console log report info ci-upstream-bpf-next-kasan-gce general protection fault in smc_tx_sendmsg
2021/06/28 11:36 bpf-next a196fa78a265 9d2ab5df .config console log report info ci-upstream-bpf-next-kasan-gce general protection fault in smc_tx_sendmsg
2021/06/28 10:34 bpf-next a196fa78a265 9d2ab5df .config console log report info ci-upstream-bpf-next-kasan-gce general protection fault in smc_tx_sendmsg
2021/06/28 10:34 bpf-next a196fa78a265 9d2ab5df .config console log report info ci-upstream-bpf-next-kasan-gce general protection fault in smc_tx_sendmsg
2021/06/28 09:17 bpf-next a196fa78a265 9d2ab5df .config console log report info ci-upstream-bpf-next-kasan-gce general protection fault in smc_tx_sendmsg
2021/06/28 08:08 bpf-next a196fa78a265 9d2ab5df .config console log report info ci-upstream-bpf-next-kasan-gce general protection fault in smc_tx_sendmsg
2021/06/28 07:49 bpf-next a196fa78a265 9d2ab5df .config console log report info ci-upstream-bpf-next-kasan-gce general protection fault in smc_tx_sendmsg
2021/06/28 06:48 bpf-next a196fa78a265 9d2ab5df .config console log report info ci-upstream-bpf-next-kasan-gce general protection fault in smc_tx_sendmsg
2021/06/28 05:57 bpf-next a196fa78a265 9d2ab5df .config console log report info ci-upstream-bpf-next-kasan-gce general protection fault in smc_tx_sendmsg
2021/06/28 05:03 bpf-next a196fa78a265 9d2ab5df .config console log report info ci-upstream-bpf-next-kasan-gce general protection fault in smc_tx_sendmsg
2021/06/28 04:42 bpf-next a196fa78a265 9d2ab5df .config console log report info ci-upstream-bpf-next-kasan-gce general protection fault in smc_tx_sendmsg
2021/06/28 03:39 bpf-next a196fa78a265 9d2ab5df .config console log report info ci-upstream-bpf-next-kasan-gce general protection fault in smc_tx_sendmsg
2021/06/28 03:12 bpf-next a196fa78a265 9d2ab5df .config console log report info ci-upstream-bpf-next-kasan-gce general protection fault in smc_tx_sendmsg
2021/06/28 02:09 bpf-next a196fa78a265 9d2ab5df .config console log report info ci-upstream-bpf-next-kasan-gce general protection fault in smc_tx_sendmsg
2021/06/28 01:36 bpf-next a196fa78a265 9d2ab5df .config console log report info ci-upstream-bpf-next-kasan-gce general protection fault in smc_tx_sendmsg
2021/06/28 00:34 bpf-next a196fa78a265 9d2ab5df .config console log report info ci-upstream-bpf-next-kasan-gce general protection fault in smc_tx_sendmsg
2021/06/28 00:11 bpf-next a196fa78a265 9d2ab5df .config console log report info ci-upstream-bpf-next-kasan-gce general protection fault in smc_tx_sendmsg
2021/06/27 23:09 bpf-next a196fa78a265 9d2ab5df .config console log report info ci-upstream-bpf-next-kasan-gce general protection fault in smc_tx_sendmsg
2021/06/27 23:05 bpf-next a196fa78a265 9d2ab5df .config console log report info ci-upstream-bpf-next-kasan-gce general protection fault in smc_tx_sendmsg
2021/06/27 22:00 bpf-next a196fa78a265 9d2ab5df .config console log report info ci-upstream-bpf-next-kasan-gce general protection fault in smc_tx_sendmsg
2021/06/27 21:57 bpf-next a196fa78a265 9d2ab5df .config console log report info ci-upstream-bpf-next-kasan-gce general protection fault in smc_tx_sendmsg
2021/06/27 20:56 bpf-next a196fa78a265 9d2ab5df .config console log report info ci-upstream-bpf-next-kasan-gce general protection fault in smc_tx_sendmsg
2021/06/27 20:00 bpf-next a196fa78a265 9d2ab5df .config console log report info ci-upstream-bpf-next-kasan-gce general protection fault in smc_tx_sendmsg
2021/06/27 19:18 bpf-next a196fa78a265 9d2ab5df .config console log report info ci-upstream-bpf-next-kasan-gce general protection fault in smc_tx_sendmsg
2021/06/26 03:37 net-next-old 19938bafa7ae ae6bf8dd .config console log report info ci-upstream-net-kasan-gce general protection fault in smc_tx_sendmsg
2021/06/16 23:18 net-next-old 0c33795231bf aba2b2fb .config console log report info ci-upstream-net-kasan-gce general protection fault in smc_tx_sendmsg
* Struck through repros no longer work on HEAD.