syzbot


general protection fault in br_switchdev_fdb_notify

Status: fixed on 2021/11/10 00:50
Subsystems: bridge
[Documentation on labels]
Reported-by: syzbot+9ba1174359adba5a5b7c@syzkaller.appspotmail.com
Fix commit: 0541a6293298 net: bridge: validate the NUD_PERMANENT bit when adding an extern_learn FDB entry
First crash: 996d, last: 987d
Cause bisection: failed (error log, bisect log)
  
Discussions (4)
Title Replies (including bot) Last reply
[PATCH 5.10 00/96] 5.10.60-rc1 review 112 (112) 2021/08/18 19:28
[PATCH 5.13 000/175] 5.13.10-rc1 review 183 (183) 2021/08/12 06:45
[PATCH net] net: bridge: validate the NUD_PERMANENT bit when adding an extern_learn FDB entry 23 (23) 2021/08/10 20:20
[syzbot] general protection fault in br_switchdev_fdb_notify 0 (1) 2021/08/01 20:34

Sample crash report:
netdevsim netdevsim0 netdevsim1: set [1, 0] type 2 family 0 port 6081 - 0
netdevsim netdevsim0 netdevsim2: set [1, 0] type 2 family 0 port 6081 - 0
netdevsim netdevsim0 netdevsim3: set [1, 0] type 2 family 0 port 6081 - 0
general protection fault, probably for non-canonical address 0xdffffc0000000001: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000008-0x000000000000000f]
CPU: 1 PID: 8468 Comm: syz-executor865 Not tainted 5.14.0-rc2-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:br_switchdev_fdb_notify+0x2bf/0x340 net/bridge/br_switchdev.c:137
Code: c4 a8 00 00 00 5b 5d 41 5c 41 5d 41 5e 41 5f c3 e8 f6 fd 77 f9 49 8d 7e 08 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 75 71 4d 8b 6e 08 e9 4f ff ff ff e8 cd fd 77 f9 31 c9
RSP: 0018:ffffc9000186f360 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000000001 RSI: ffffffff87fd8c8a RDI: 0000000000000008
RBP: 1ffff9200030de6d R08: 0000000000000000 R09: 0000000000000000
R10: ffffffff87fd8bc7 R11: 0000000000000000 R12: 000000000000001c
R13: ffff88801d1c8c00 R14: 0000000000000000 R15: ffff888033cb93e8
FS:  0000000002147300(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000000 CR3: 000000003756d000 CR4: 00000000001506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 fdb_notify+0x159/0x190 net/bridge/br_fdb.c:798
 br_fdb_external_learn_add+0x2cc/0x5c0 net/bridge/br_fdb.c:1303
 __br_fdb_add+0x122/0xa40 net/bridge/br_fdb.c:1033
 br_fdb_add+0x8aa/0xcd0 net/bridge/br_fdb.c:1105
 rtnl_fdb_add+0x45f/0xad0 net/core/rtnetlink.c:4046
 rtnetlink_rcv_msg+0x413/0xb80 net/core/rtnetlink.c:5563
 netlink_rcv_skb+0x153/0x420 net/netlink/af_netlink.c:2504
 netlink_unicast_kernel net/netlink/af_netlink.c:1314 [inline]
 netlink_unicast+0x533/0x7d0 net/netlink/af_netlink.c:1340
 netlink_sendmsg+0x86d/0xdb0 net/netlink/af_netlink.c:1929
 sock_sendmsg_nosec net/socket.c:703 [inline]
 sock_sendmsg+0xcf/0x120 net/socket.c:723
 ____sys_sendmsg+0x6e8/0x810 net/socket.c:2402
 ___sys_sendmsg+0xf3/0x170 net/socket.c:2456
 __sys_sendmsg+0xe5/0x1b0 net/socket.c:2485
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x443239
Code: 28 c3 e8 4a 15 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:00007ffee38b3de8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007ffee38b3df8 RCX: 0000000000443239
RDX: 0000000000000000 RSI: 0000000020000040 RDI: 0000000000000003
RBP: 0000000000000003 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffee38b3e00
R13: 00007ffee38b3e20 R14: 00000000004b8018 R15: 00000000004004b8
Modules linked in:
---[ end trace aa1b885b5f5494d5 ]---
RIP: 0010:br_switchdev_fdb_notify+0x2bf/0x340 net/bridge/br_switchdev.c:137
Code: c4 a8 00 00 00 5b 5d 41 5c 41 5d 41 5e 41 5f c3 e8 f6 fd 77 f9 49 8d 7e 08 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 75 71 4d 8b 6e 08 e9 4f ff ff ff e8 cd fd 77 f9 31 c9
RSP: 0018:ffffc9000186f360 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000000001 RSI: ffffffff87fd8c8a RDI: 0000000000000008
RBP: 1ffff9200030de6d R08: 0000000000000000 R09: 0000000000000000
R10: ffffffff87fd8bc7 R11: 0000000000000000 R12: 000000000000001c
R13: ffff88801d1c8c00 R14: 0000000000000000 R15: ffff888033cb93e8
FS:  0000000002147300(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000000 CR3: 000000003756d000 CR4: 00000000001506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (82):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/07/28 22:28 net-next-old b11f0a4c0c81 9a4781d4 .config console log report syz C ci-upstream-net-kasan-gce general protection fault in br_switchdev_fdb_notify
2021/08/05 23:08 bpf-next 372642ea83ff d2d6e680 .config console log report info ci-upstream-bpf-next-kasan-gce general protection fault in br_switchdev_fdb_notify
2021/08/04 05:16 net-next-old 7cdd0a89ec70 6c236867 .config console log report info ci-upstream-net-kasan-gce general protection fault in br_switchdev_fdb_notify
2021/08/03 23:34 net-next-old 7cdd0a89ec70 6c236867 .config console log report info ci-upstream-net-kasan-gce general protection fault in br_switchdev_fdb_notify
2021/08/03 21:31 net-next-old 7cdd0a89ec70 6c236867 .config console log report info ci-upstream-net-kasan-gce general protection fault in br_switchdev_fdb_notify
2021/08/03 17:37 net-next-old 7cdd0a89ec70 6c236867 .config console log report info ci-upstream-net-kasan-gce general protection fault in br_switchdev_fdb_notify
2021/08/03 13:09 net-next-old 7cdd0a89ec70 6c236867 .config console log report info ci-upstream-net-kasan-gce general protection fault in br_switchdev_fdb_notify
2021/08/03 09:34 net-next-old 28814cd18cd7 6c236867 .config console log report info ci-upstream-net-kasan-gce general protection fault in br_switchdev_fdb_notify
2021/08/03 09:32 net-next-old 28814cd18cd7 6c236867 .config console log report info ci-upstream-net-kasan-gce general protection fault in br_switchdev_fdb_notify
2021/08/03 04:58 net-next-old 28814cd18cd7 6c236867 .config console log report info ci-upstream-net-kasan-gce general protection fault in br_switchdev_fdb_notify
2021/08/03 01:30 net-next-old 28814cd18cd7 6c236867 .config console log report info ci-upstream-net-kasan-gce general protection fault in br_switchdev_fdb_notify
2021/08/02 22:44 bpf-next b61a28cf11d6 6c236867 .config console log report info ci-upstream-bpf-next-kasan-gce general protection fault in br_switchdev_fdb_notify
2021/08/02 19:56 net-next-old 3e12361b6d23 6c236867 .config console log report info ci-upstream-net-kasan-gce general protection fault in br_switchdev_fdb_notify
2021/08/02 15:45 net-next-old 3e12361b6d23 6c236867 .config console log report info ci-upstream-net-kasan-gce general protection fault in br_switchdev_fdb_notify
2021/08/02 14:45 net-next-old 3e12361b6d23 6c236867 .config console log report info ci-upstream-net-kasan-gce general protection fault in br_switchdev_fdb_notify
2021/08/02 10:27 net-next-old 3e12361b6d23 6c236867 .config console log report info ci-upstream-net-kasan-gce general protection fault in br_switchdev_fdb_notify
2021/08/02 08:22 net-next-old 3e12361b6d23 6c236867 .config console log report info ci-upstream-net-kasan-gce general protection fault in br_switchdev_fdb_notify
2021/08/02 05:33 net-next-old 3e12361b6d23 6c236867 .config console log report info ci-upstream-net-kasan-gce general protection fault in br_switchdev_fdb_notify
2021/08/02 00:02 net-next-old 3e12361b6d23 6c236867 .config console log report info ci-upstream-net-kasan-gce general protection fault in br_switchdev_fdb_notify
2021/08/01 23:10 net-next-old 3e12361b6d23 6c236867 .config console log report info ci-upstream-net-kasan-gce general protection fault in br_switchdev_fdb_notify
2021/08/01 23:00 net-next-old 3e12361b6d23 6c236867 .config console log report info ci-upstream-net-kasan-gce general protection fault in br_switchdev_fdb_notify
2021/08/01 21:02 net-next-old 3e12361b6d23 6c236867 .config console log report info ci-upstream-net-kasan-gce general protection fault in br_switchdev_fdb_notify
2021/08/01 14:59 net-next-old 3e12361b6d23 6c236867 .config console log report info ci-upstream-net-kasan-gce general protection fault in br_switchdev_fdb_notify
2021/08/01 12:02 net-next-old 3e12361b6d23 6c236867 .config console log report info ci-upstream-net-kasan-gce general protection fault in br_switchdev_fdb_notify
2021/08/01 01:43 net-next-old 3e12361b6d23 6c236867 .config console log report info ci-upstream-net-kasan-gce general protection fault in br_switchdev_fdb_notify
2021/07/31 23:26 net-next-old 3e12361b6d23 6c236867 .config console log report info ci-upstream-net-kasan-gce general protection fault in br_switchdev_fdb_notify
2021/07/31 18:01 net-next-old 3e12361b6d23 6c236867 .config console log report info ci-upstream-net-kasan-gce general protection fault in br_switchdev_fdb_notify
2021/07/31 15:48 net-next-old 3e12361b6d23 6c236867 .config console log report info ci-upstream-net-kasan-gce general protection fault in br_switchdev_fdb_notify
2021/07/31 10:31 net-next-old 3e12361b6d23 6c236867 .config console log report info ci-upstream-net-kasan-gce general protection fault in br_switchdev_fdb_notify
2021/07/31 10:12 net-next-old 3e12361b6d23 6c236867 .config console log report info ci-upstream-net-kasan-gce general protection fault in br_switchdev_fdb_notify
2021/07/31 05:31 net-next-old 3e12361b6d23 6c236867 .config console log report info ci-upstream-net-kasan-gce general protection fault in br_switchdev_fdb_notify
2021/07/30 15:57 net-next-old 3e12361b6d23 c585c7b0 .config console log report info ci-upstream-net-kasan-gce general protection fault in br_switchdev_fdb_notify
2021/07/30 15:57 net-next-old 3e12361b6d23 c585c7b0 .config console log report info ci-upstream-net-kasan-gce general protection fault in br_switchdev_fdb_notify
2021/07/30 15:47 net-next-old 3e12361b6d23 c585c7b0 .config console log report info ci-upstream-net-kasan-gce general protection fault in br_switchdev_fdb_notify
2021/07/30 11:16 net-next-old 3e12361b6d23 c585c7b0 .config console log report info ci-upstream-net-kasan-gce general protection fault in br_switchdev_fdb_notify
2021/07/28 20:28 net-next-old b11f0a4c0c81 9a4781d4 .config console log report info ci-upstream-net-kasan-gce general protection fault in br_switchdev_fdb_notify
2021/08/06 20:22 linux-next 8d4b477da1a8 f9e341e3 .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in br_switchdev_fdb_notify
2021/08/03 19:41 linux-next 8d4b477da1a8 6c236867 .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in br_switchdev_fdb_notify
2021/08/02 21:42 linux-next 8d4b477da1a8 6c236867 .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in br_switchdev_fdb_notify
2021/08/02 08:25 linux-next 8d4b477da1a8 6c236867 .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in br_switchdev_fdb_notify
2021/08/01 22:59 linux-next 8d4b477da1a8 6c236867 .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in br_switchdev_fdb_notify
2021/07/31 10:29 linux-next 8d4b477da1a8 6c236867 .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in br_switchdev_fdb_notify
2021/07/31 10:12 linux-next 8d4b477da1a8 6c236867 .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in br_switchdev_fdb_notify
2021/07/30 15:57 linux-next 4ccc9e2db7ac c585c7b0 .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in br_switchdev_fdb_notify
2021/07/30 15:48 linux-next 4ccc9e2db7ac c585c7b0 .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in br_switchdev_fdb_notify
2021/07/29 20:26 linux-next 4ccc9e2db7ac b44001ce .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in br_switchdev_fdb_notify
* Struck through repros no longer work on HEAD.