syzbot


general protection fault in dev_alloc_name_ns

Status: closed as invalid on 2021/10/04 21:36
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 516d, last: 507d
similar bugs (1):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in dev_alloc_name_ns (2) 2 364d 412d 0/24 auto-closed as invalid on 2022/02/25 05:51

Sample crash report:
general protection fault, probably for non-canonical address 0xdffffc0000000002: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000010-0x0000000000000017]
CPU: 1 PID: 21135 Comm: syz-executor.2 Tainted: G        W         5.13.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__dev_alloc_name net/core/dev.c:1235 [inline]
RIP: 0010:dev_alloc_name_ns+0x1ef/0x6b0 net/core/dev.c:1280
Code: 63 63 fa 49 8d 47 10 48 89 44 24 18 48 c1 e8 03 80 3c 28 00 0f 85 56 04 00 00 4d 8b 67 10 49 8d 7c 24 10 48 89 f8 48 c1 e8 03 <80> 3c 28 00 0f 85 58 04 00 00 49 8b 44 24 10 48 8d 58 f0 49 39 dc
RSP: 0018:ffffc9000a6eef78 EFLAGS: 00010212
RAX: 0000000000000002 RBX: 0000000000000000 RCX: ffffc9000d8b9000
RDX: 0000000000040000 RSI: ffffffff871226b8 RDI: 0000000000000010
RBP: dffffc0000000000 R08: 0000000000000000 R09: 0000000000000072
R10: ffffffff87122853 R11: 000000000000006f R12: 0000000000000000
R13: ffff88814a8bc000 R14: ffff88814b3bf000 R15: ffff888000118000
FS:  00007f43678a0700(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000004e4da4 CR3: 0000000149d10000 CR4: 0000000000350ee0
Call Trace:
 dev_get_valid_name+0x67/0x160 net/core/dev.c:1315
 register_netdevice+0x361/0x1500 net/core/dev.c:10234
 bond_newlink drivers/net/bonding/bond_netlink.c:458 [inline]
 bond_newlink+0x47/0xa0 drivers/net/bonding/bond_netlink.c:448
 __rtnl_newlink+0x106e/0x1760 net/core/rtnetlink.c:3460
 rtnl_newlink+0x64/0xa0 net/core/rtnetlink.c:3508
 rtnetlink_rcv_msg+0x44e/0xb70 net/core/rtnetlink.c:5574
 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+0x85b/0xda0 net/netlink/af_netlink.c:1929
 sock_sendmsg_nosec net/socket.c:702 [inline]
 sock_sendmsg+0xcf/0x120 net/socket.c:722
 ____sys_sendmsg+0x6e8/0x810 net/socket.c:2385
 ___sys_sendmsg+0xf3/0x170 net/socket.c:2439
 __sys_sendmsg+0xe5/0x1b0 net/socket.c:2468
 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:0x4665d9
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 bc ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f43678a0188 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 000000000056bf80 RCX: 00000000004665d9
RDX: 0000000000000000 RSI: 0000000020000040 RDI: 0000000000000005
RBP: 00000000004bfcb9 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056bf80
R13: 00007fff9e2e6caf R14: 00007f43678a0300 R15: 0000000000022000
Modules linked in:
---[ end trace d6ced1aebfcc45cb ]---
RIP: 0010:__dev_alloc_name net/core/dev.c:1235 [inline]
RIP: 0010:dev_alloc_name_ns+0x1ef/0x6b0 net/core/dev.c:1280
Code: 63 63 fa 49 8d 47 10 48 89 44 24 18 48 c1 e8 03 80 3c 28 00 0f 85 56 04 00 00 4d 8b 67 10 49 8d 7c 24 10 48 89 f8 48 c1 e8 03 <80> 3c 28 00 0f 85 58 04 00 00 49 8b 44 24 10 48 8d 58 f0 49 39 dc
RSP: 0018:ffffc9000a6eef78 EFLAGS: 00010212
RAX: 0000000000000002 RBX: 0000000000000000 RCX: ffffc9000d8b9000
RDX: 0000000000040000 RSI: ffffffff871226b8 RDI: 0000000000000010
RBP: dffffc0000000000 R08: 0000000000000000 R09: 0000000000000072
R10: ffffffff87122853 R11: 000000000000006f R12: 0000000000000000
R13: ffff88814a8bc000 R14: ffff88814b3bf000 R15: ffff888000118000
FS:  00007f43678a0700(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007efc60016e90 CR3: 0000000149d10000 CR4: 0000000000350ee0

Crashes (2):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce-root 2021/07/07 05:10 upstream 3dbdb38e2869 cca78469 .config log report info general protection fault in dev_alloc_name_ns
ci-upstream-kasan-gce 2021/06/28 10:14 upstream b4b27b9eed8e 9d2ab5df .config log report info general protection fault in dev_alloc_name_ns
* Struck through repros no longer work on HEAD.