syzbot


WARNING in sysfs_warn_dup

Status: fixed on 2018/02/04 23:45
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+1fdad4e2731bf0c1bc19953ccc5061237ec92783@syzkaller.appspotmail.com
Fix commit: 5d54f948aaac sysfs: turn WARN() into pr_warn()
First crash: 2516d, last: 2469d
Discussions (1)
Title Replies (including bot) Last reply
Re: WARNING in sysfs_warn_dup 10 (10) 2018/01/22 15:04
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 WARNING in sysfs_warn_dup (2) 1 1333d 1333d 0/1 auto-closed as invalid on 2021/07/09 11:24
linux-4.14 WARNING in sysfs_warn_dup gfs2 C 4771 607d 2033d 0/1 upstream: reported C repro on 2019/04/11 12:48
linux-4.19 WARNING in sysfs_warn_dup 1 1502d 1502d 0/1 auto-closed as invalid on 2021/01/21 01:19

Sample crash report:
netlink: 20 bytes leftover after parsing attributes in process `syz-executor7'.
netlink: 20 bytes leftover after parsing attributes in process `syz-executor7'.
------------[ cut here ]------------
sysfs: cannot create duplicate filename '/class/ieee80211/š§"­ût{§Ô­ðôŠ!׸7…¦†õiùS6È<»þ{_CK5äá×ÝÊmôBe'
WARNING: CPU: 1 PID: 8233 at fs/sysfs/dir.c:31 sysfs_warn_dup+0x7e/0xa0 fs/sysfs/dir.c:30
Kernel panic - not syncing: panic_on_warn set ...

CPU: 1 PID: 8233 Comm: syz-executor7 Not tainted 4.15.0-rc8+ #263
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+0x194/0x257 lib/dump_stack.c:53
 panic+0x1e4/0x41c kernel/panic.c:183
 __warn+0x1dc/0x200 kernel/panic.c:547
 report_bug+0x211/0x2d0 lib/bug.c:184
 fixup_bug.part.11+0x37/0x80 arch/x86/kernel/traps.c:178
 fixup_bug arch/x86/kernel/traps.c:247 [inline]
 do_error_trap+0x2d7/0x3e0 arch/x86/kernel/traps.c:296
 do_invalid_op+0x1b/0x20 arch/x86/kernel/traps.c:315
 invalid_op+0x22/0x40 arch/x86/entry/entry_64.S:1085
RIP: 0010:sysfs_warn_dup+0x7e/0xa0 fs/sysfs/dir.c:30
RSP: 0018:ffff8801d00def20 EFLAGS: 00010286
RAX: dffffc0000000008 RBX: ffff8801c4ff2ac0 RCX: ffffffff8159dade
RDX: 000000000000cb4f RSI: ffffc9000192b000 RDI: ffff8801d00dec28
RBP: ffff8801d00def38 R08: 1ffff1003a01bd61 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: ffff8801d976fa80
R13: ffff8801d833e380 R14: 0000000000000001 R15: ffffffffffffffef
 sysfs_do_create_link_sd.isra.2+0xf3/0x110 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:1603 [inline]
 device_add+0x74a/0x1650 drivers/base/core.c:1801
 wiphy_register+0x1468/0x2050 net/wireless/core.c:800
 ieee80211_register_hw+0x1162/0x3100 net/mac80211/main.c:1038
 mac80211_hwsim_new_radio+0x1b2e/0x2b90 drivers/net/wireless/mac80211_hwsim.c:2700
 hwsim_new_radio_nl+0x5b7/0x7c0 drivers/net/wireless/mac80211_hwsim.c:3152
 genl_family_rcv_msg+0x7b7/0xfb0 net/netlink/genetlink.c:599
 genl_rcv_msg+0xb2/0x140 net/netlink/genetlink.c:624
 netlink_rcv_skb+0x224/0x470 net/netlink/af_netlink.c:2408
 genl_rcv+0x28/0x40 net/netlink/genetlink.c:635
 netlink_unicast_kernel net/netlink/af_netlink.c:1275 [inline]
 netlink_unicast+0x4ee/0x700 net/netlink/af_netlink.c:1301
 netlink_sendmsg+0xa4a/0xe60 net/netlink/af_netlink.c:1864
 sock_sendmsg_nosec net/socket.c:638 [inline]
 sock_sendmsg+0xca/0x110 net/socket.c:648
 ___sys_sendmsg+0x767/0x8b0 net/socket.c:2028
 __sys_sendmsg+0xe5/0x210 net/socket.c:2062
 SYSC_sendmsg net/socket.c:2073 [inline]
 SyS_sendmsg+0x2d/0x50 net/socket.c:2069
 entry_SYSCALL_64_fastpath+0x29/0xa0
RIP: 0033:0x452cf9
RSP: 002b:00007fd83aff8c58 EFLAGS: 00000212 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 000000000071bf58 RCX: 0000000000452cf9
RDX: 0000000000000000 RSI: 0000000020b3dfc8 RDI: 0000000000000013
RBP: 00000000000002d6 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000212 R12: 00000000006f24b0
R13: 00000000ffffffff R14: 00007fd83aff96d4 R15: 0000000000000005
Dumping ftrace buffer:
   (ftrace buffer empty)
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (11):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/01/15 13:38 upstream a8750ddca918 66d492a6 .config console log report ci-upstream-kasan-gce
2018/01/14 14:39 upstream 2c1cfa499018 c9e7aeae .config console log report ci-upstream-kasan-gce
2018/01/13 19:42 upstream c92a9a461dff c9e7aeae .config console log report ci-upstream-kasan-gce
2018/01/13 19:46 upstream c92a9a461dff c9e7aeae .config console log report ci-upstream-kasan-gce-386
2018/01/13 15:43 upstream c92a9a461dff c9e7aeae .config console log report ci-upstream-kasan-gce-386
2018/01/10 09:43 upstream cf1fb158230e 02a19b64 .config console log report ci-upstream-kasan-gce-386
2018/01/30 20:32 net-next-old 91e6dd828425 a899be78 .config console log report ci-upstream-net-kasan-gce
2018/01/26 08:34 net-next-old fb07a820fe3f 1d18b112 .config console log report ci-upstream-net-kasan-gce
2018/01/13 19:42 net-next-old 6bd39bc3da0f c9e7aeae .config console log report ci-upstream-net-kasan-gce
2018/01/15 12:06 linux-next b625c1ff8227 66d492a6 .config console log report ci-upstream-next-kasan-gce
2017/12/14 15:43 linux-next 6084b576dca2 ac20b98c .config console log report ci-upstream-next-kasan-gce
* Struck through repros no longer work on HEAD.