syzbot


WARNING in sysfs_do_create_link_sd

Status: auto-closed as invalid on 2020/06/22 03:15
Reported-by: syzbot+31ea7e282ccf9fadd181@syzkaller.appspotmail.com
First crash: 1553d, last: 1524d

Sample crash report:
sysfs: cannot create duplicate filename '/class/ieee80211/!'
 __vmalloc_node_range mm/vmalloc.c:1786 [inline]
 __vmalloc_node_range+0x3c3/0x6a0 mm/vmalloc.c:1746
 __vmalloc_node mm/vmalloc.c:1815 [inline]
 __vmalloc_node_flags mm/vmalloc.c:1829 [inline]
 vmalloc+0x46/0x50 mm/vmalloc.c:1851
 sel_write_load+0x1a0/0x1050 security/selinux/selinuxfs.c:495
------------[ cut here ]------------
WARNING: CPU: 0 PID: 17813 at fs/sysfs/dir.c:30 sysfs_warn_dup.cold+0x17/0x31 fs/sysfs/dir.c:30
Kernel panic - not syncing: panic_on_warn set ...

 __vfs_write+0x105/0x6b0 fs/read_write.c:480
 vfs_write+0x198/0x500 fs/read_write.c:544
 SYSC_write fs/read_write.c:590 [inline]
 SyS_write+0xfd/0x230 fs/read_write.c:582
 do_syscall_64+0x1e8/0x640 arch/x86/entry/common.c:292
 entry_SYSCALL_64_after_hwframe+0x42/0xb7
RIP: 0033:0x45c429
RSP: 002b:00007f0369bf0c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f0369bf16d4 RCX: 000000000045c429
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000003
RBP: 000000000076bf20 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff
R13: 0000000000000cf2 R14: 00000000004ced23 R15: 000000000076bf2c
CPU: 0 PID: 17813 Comm: syz-executor.3 Not tainted 4.14.171-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:17 [inline]
 dump_stack+0x142/0x197 lib/dump_stack.c:58
 panic+0x1f9/0x42d kernel/panic.c:183
 __warn.cold+0x2f/0x2f kernel/panic.c:547
 report_bug+0x216/0x254 lib/bug.c:186
 fixup_bug arch/x86/kernel/traps.c:177 [inline]
 fixup_bug arch/x86/kernel/traps.c:172 [inline]
 do_error_trap+0x1bb/0x310 arch/x86/kernel/traps.c:295
 do_invalid_op+0x1b/0x20 arch/x86/kernel/traps.c:314
 invalid_op+0x1b/0x40 arch/x86/entry/entry_64.S:963
RIP: 0010:sysfs_warn_dup.cold+0x17/0x31 fs/sysfs/dir.c:30
RSP: 0018:ffff8880479cf220 EFLAGS: 00010286
RAX: 000000000000003c RBX: ffffffffffffffef RCX: 0000000000000000
RDX: 00000000000244c0 RSI: ffffffff814b0aa5 RDI: ffffed1008f39e3a
RBP: ffff8880479cf238 R08: 000000000000003c R09: ffff88809d8a6b30
R10: 0000000000000000 R11: 0000000000000000 R12: ffff88809b1e4800
R13: ffff8880a7e518c0 R14: ffff8880a7c5a440 R15: 0000000000000001
 sysfs_do_create_link_sd.isra.0+0xff/0x120 fs/sysfs/symlink.c:51
 sysfs_do_create_link fs/sysfs/symlink.c:80 [inline]
 sysfs_create_link+0x65/0xc0 fs/sysfs/symlink.c:92
 device_add_class_symlinks drivers/base/core.c:1681 [inline]
 device_add+0x735/0x1490 drivers/base/core.c:1883
 wiphy_register+0x133c/0x1d20 net/wireless/core.c:809
 ieee80211_register_hw+0x1152/0x2f30 net/mac80211/main.c:1055
 mac80211_hwsim_new_radio+0x19a1/0x2980 drivers/net/wireless/mac80211_hwsim.c:2705
 hwsim_new_radio_nl+0x3f2/0x62e drivers/net/wireless/mac80211_hwsim.c:3164
 genl_family_rcv_msg+0x614/0xc30 net/netlink/genetlink.c:600
 genl_rcv_msg+0xb4/0x150 net/netlink/genetlink.c:625
 netlink_rcv_skb+0x14f/0x3c0 net/netlink/af_netlink.c:2432
warn_alloc_show_mem: 1 callbacks suppressed
Mem-Info:
 genl_rcv+0x29/0x40 net/netlink/genetlink.c:636
 netlink_unicast_kernel net/netlink/af_netlink.c:1286 [inline]
 netlink_unicast+0x44d/0x650 net/netlink/af_netlink.c:1312
active_anon:276214 inactive_anon:4101 isolated_anon:0
 active_file:13483 inactive_file:12003 isolated_file:0
 unevictable:8192 dirty:185 writeback:0 unstable:0
 slab_reclaimable:13934 slab_unreclaimable:112065
 mapped:63574 shmem:3119 pagetables:3936 bounce:0
 free:1083837 free_pcp:203 free_cma:0
Node 0 active_anon:1104856kB inactive_anon:16404kB active_file:53792kB inactive_file:48012kB unevictable:32768kB isolated(anon):0kB isolated(file):0kB mapped:254296kB dirty:736kB writeback:0kB shmem:12476kB shmem_thp: 0kB shmem_pmdmapped: 0kB anon_thp: 671744kB writeback_tmp:0kB unstable:0kB all_unreclaimable? no
 netlink_sendmsg+0x7c4/0xc60 net/netlink/af_netlink.c:1877
 sock_sendmsg_nosec net/socket.c:646 [inline]
 sock_sendmsg+0xce/0x110 net/socket.c:656
 ___sys_sendmsg+0x70a/0x840 net/socket.c:2062
Node 1 active_anon:0kB inactive_anon:0kB active_file:140kB inactive_file:0kB unevictable:0kB isolated(anon):0kB isolated(file):0kB mapped:0kB dirty:4kB writeback:0kB shmem:0kB shmem_thp: 0kB shmem_pmdmapped: 0kB anon_thp: 0kB writeback_tmp:0kB unstable:0kB all_unreclaimable? no
 __sys_sendmsg+0xb9/0x140 net/socket.c:2096
 SYSC_sendmsg net/socket.c:2107 [inline]
 SyS_sendmsg+0x2d/0x50 net/socket.c:2103
 do_syscall_64+0x1e8/0x640 arch/x86/entry/common.c:292
 entry_SYSCALL_64_after_hwframe+0x42/0xb7
RIP: 0033:0x45c429
RSP: 002b:00007fb60875ac78 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007fb60875b6d4 RCX: 000000000045c429
RDX: 0000000000000000 RSI: 0000000020000080 RDI: 0000000000000003
RBP: 000000000076bf20 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff
R13: 00000000000009f2 R14: 00000000004cc667 R15: 000000000076bf2c
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/02/23 03:14 linux-4.14.y 98db2bf27b9e 2c36e7a7 .config console log report ci2-linux-4-14
2020/01/25 06:12 linux-4.14.y 8bac50406cca 2e95ab33 .config console log report ci2-linux-4-14
* Struck through repros no longer work on HEAD.