syzbot


WARNING: kobject bug in device_add

Status: fixed on 2018/05/08 18:30
Subsystems: kernel
[Documentation on labels]
Reported-by: syzbot+2e63711063e2d8f9ea27@syzkaller.appspotmail.com
Fix commit: 3e14c6abbfb5 kobject: don't use WARN for registration failures
First crash: 2394d, last: 2350d
Duplicate bugs (1)
duplicates (1):
Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
WARNING in kobject_add_internal gfs2 C 148 2379d 2539d 0/28 closed as dup on 2018/04/11 14:58
Discussions (7)
Title Replies (including bot) Last reply
[PATCH 4.16 000/113] 4.16.7-stable review 120 (120) 2018/05/01 19:26
[PATCH 4.4 00/44] 4.4.131-stable review 53 (53) 2018/05/01 19:08
[PATCH 4.9 00/61] 4.9.98-stable review 66 (66) 2018/05/01 19:07
[PATCH 4.14 00/91] 4.14.39-stable review 97 (97) 2018/05/01 19:06
[PATCH 3.18 00/25] 3.18.108-stable review 32 (32) 2018/05/01 19:04
[PATCH] kobject: don't use WARN for registration failures 1 (1) 2018/04/11 15:22
WARNING: kobject bug in device_add 0 (1) 2018/03/29 14:01

Sample crash report:
RBP: 0000000000000003 R08: 00007ffe121eda50 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000202 R12: 0031656c69662f6c
R13: 0000000000401c20 R14: 0000000000000000 R15: 0000000000000000
------------[ cut here ]------------
kobject_add_internal failed for 7:199-fuseblk with -EEXIST, don't try to register things with the same name in the same directory.
WARNING: CPU: 1 PID: 4541 at lib/kobject.c:238 kobject_add_internal+0x8e0/0xba0 lib/kobject.c:236
Kernel panic - not syncing: panic_on_warn set ...

CPU: 1 PID: 4541 Comm: syz-executor401 Not tainted 4.17.0-rc2+ #19
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x1b9/0x294 lib/dump_stack.c:113
 panic+0x22f/0x4de kernel/panic.c:184
 __warn.cold.8+0x163/0x1b3 kernel/panic.c:536
 report_bug+0x252/0x2d0 lib/bug.c:186
 fixup_bug arch/x86/kernel/traps.c:178 [inline]
 do_error_trap+0x1de/0x490 arch/x86/kernel/traps.c:296
 do_invalid_op+0x1b/0x20 arch/x86/kernel/traps.c:315
 invalid_op+0x14/0x20 arch/x86/entry/entry_64.S:992
RIP: 0010:kobject_add_internal+0x8e0/0xba0 lib/kobject.c:236
RSP: 0000:ffff8801ad7d7270 EFLAGS: 00010286
RAX: 0000000000000082 RBX: ffff8801ad12e490 RCX: ffffffff8160a82d
RDX: 0000000000000000 RSI: ffffffff8160f4e1 RDI: ffff8801ad7d6dd0
RBP: ffff8801ad7d7368 R08: ffff8801ad6f4680 R09: 0000000000000006
R10: ffff8801ad6f4680 R11: 0000000000000000 R12: 00000000ffffffef
R13: ffff8801d2deab80 R14: 1ffff10035afae58 R15: ffff8801d9bcaf00
 kobject_add_varg lib/kobject.c:364 [inline]
 kobject_add+0x13a/0x190 lib/kobject.c:408
 device_add+0x3a5/0x16d0 drivers/base/core.c:1796
 device_create_groups_vargs+0x1ff/0x270 drivers/base/core.c:2439
 device_create_vargs+0x46/0x60 drivers/base/core.c:2479
 bdi_register_va.part.10+0xbb/0x970 mm/backing-dev.c:868
 bdi_register_va+0x68/0x80 mm/backing-dev.c:884
 super_setup_bdi_name+0x123/0x220 fs/super.c:1319
 fuse_bdi_init fs/fuse/inode.c:987 [inline]
 fuse_fill_super+0xe6e/0x1e20 fs/fuse/inode.c:1110
 mount_bdev+0x30c/0x3e0 fs/super.c:1164
 fuse_mount_blk+0x34/0x40 fs/fuse/inode.c:1222
 mount_fs+0xae/0x328 fs/super.c:1267
 vfs_kern_mount.part.34+0xd4/0x4d0 fs/namespace.c:1037
 vfs_kern_mount fs/namespace.c:1027 [inline]
 do_new_mount fs/namespace.c:2518 [inline]
 do_mount+0x564/0x3070 fs/namespace.c:2848
 ksys_mount+0x12d/0x140 fs/namespace.c:3064
 __do_sys_mount fs/namespace.c:3078 [inline]
 __se_sys_mount fs/namespace.c:3075 [inline]
 __x64_sys_mount+0xbe/0x150 fs/namespace.c:3075
 do_syscall_64+0x1b1/0x800 arch/x86/entry/common.c:287
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x4407f9
RSP: 002b:00007ffe121eda38 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 6f72746e6f632f2e RCX: 00000000004407f9
RDX: 00000000004a287b RSI: 0000000020000140 RDI: 0000000020000180
RBP: 0000000000000003 R08: 00007ffe121eda50 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000202 R12: 0031656c69662f6c
R13: 0000000000401c20 R14: 0000000000000000 R15: 0000000000000000
Dumping ftrace buffer:
   (ftrace buffer empty)
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (563):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/04/27 10:17 upstream 0644f186fc9d 73417389 .config console log report syz C ci-upstream-kasan-gce-root
2018/04/27 02:55 upstream 0644f186fc9d 73417389 .config console log report syz C ci-upstream-kasan-gce-root
2018/04/14 20:41 upstream 48023102b707 7a67784c .config console log report syz C ci-upstream-kasan-gce-root
2018/04/14 01:54 upstream 1bad9ce155a7 7a67784c .config console log report syz C ci-upstream-kasan-gce-root
2018/03/25 19:18 upstream bcfc1f455466 e033c1f1 .config console log report syz C ci-upstream-kasan-gce-root
2018/03/25 13:49 upstream bcfc1f455466 e033c1f1 .config console log report syz C ci-upstream-kasan-gce-root
2018/04/26 10:12 upstream 26ed24e429d8 73417389 .config console log report syz ci-upstream-kasan-gce-root
2018/04/22 02:03 upstream 5e7c7806111a d23fcf6c .config console log report syz ci-upstream-kasan-gce-root
2018/04/16 02:10 upstream 71b8ebbf3d7b 7a67784c .config console log report syz ci-upstream-kasan-gce-root
2018/04/16 00:54 upstream 71b8ebbf3d7b 7a67784c .config console log report syz ci-upstream-kasan-gce-root
2018/04/15 22:29 upstream 71b8ebbf3d7b 7a67784c .config console log report syz ci-upstream-kasan-gce-root
2018/04/15 04:36 upstream 18b7fd1c93e5 7a67784c .config console log report syz ci-upstream-kasan-gce-root
2018/04/14 16:38 upstream 48023102b707 7a67784c .config console log report syz ci-upstream-kasan-gce-root
2018/04/07 20:24 upstream 3fd14cdcc05a 66f22a7f .config console log report syz ci-upstream-kasan-gce-root
2018/04/27 15:28 upstream 0644f186fc9d 7785e404 .config console log report ci-upstream-kasan-gce-root
2018/04/27 13:28 upstream 0644f186fc9d 73417389 .config console log report ci-upstream-kasan-gce-root
2018/04/27 07:53 upstream 0644f186fc9d 73417389 .config console log report ci-upstream-kasan-gce-root
2018/04/26 21:52 upstream 69bfd470f462 73417389 .config console log report ci-upstream-kasan-gce-root
2018/04/26 17:51 upstream 69bfd470f462 73417389 .config console log report ci-upstream-kasan-gce
2018/03/25 13:35 upstream bcfc1f455466 e033c1f1 .config console log report ci-upstream-kasan-gce-root
2018/04/27 08:56 upstream 0644f186fc9d 73417389 .config console log report ci-upstream-kasan-gce-386
2018/05/04 00:19 net-next-old 62264f99fbea 9ce14f4b .config console log report ci-upstream-net-kasan-gce
2018/05/02 18:06 net-next-old e90c1a1090cc d5b114b4 .config console log report ci-upstream-net-kasan-gce
2018/04/29 00:13 net-next-old 9e8d438e8ba4 d5a5d045 .config console log report ci-upstream-net-kasan-gce
2018/05/08 09:41 https://github.com/google/kmsan.git master d2d741e5d189 045bbd4a .config console log report ci-upstream-kmsan-gce
2018/05/08 08:38 https://github.com/google/kmsan.git master d2d741e5d189 045bbd4a .config console log report ci-upstream-kmsan-gce
2018/05/08 07:14 https://github.com/google/kmsan.git master d2d741e5d189 045bbd4a .config console log report ci-upstream-kmsan-gce
2018/05/07 22:03 https://github.com/google/kmsan.git master d2d741e5d189 9e0846e8 .config console log report ci-upstream-kmsan-gce
2018/05/07 20:49 https://github.com/google/kmsan.git master d2d741e5d189 9e0846e8 .config console log report ci-upstream-kmsan-gce
2018/05/07 15:21 https://github.com/google/kmsan.git master d2d741e5d189 a211da1a .config console log report ci-upstream-kmsan-gce
2018/05/07 10:43 https://github.com/google/kmsan.git master d2d741e5d189 a211da1a .config console log report ci-upstream-kmsan-gce
2018/05/07 06:46 https://github.com/google/kmsan.git master d2d741e5d189 a211da1a .config console log report ci-upstream-kmsan-gce
2018/05/07 04:22 https://github.com/google/kmsan.git master d2d741e5d189 a211da1a .config console log report ci-upstream-kmsan-gce
2018/05/06 20:44 https://github.com/google/kmsan.git master d2d741e5d189 6c18ddb0 .config console log report ci-upstream-kmsan-gce
2018/05/06 13:59 https://github.com/google/kmsan.git master d2d741e5d189 6c18ddb0 .config console log report ci-upstream-kmsan-gce
2018/05/06 06:51 https://github.com/google/kmsan.git master d2d741e5d189 78b251cb .config console log report ci-upstream-kmsan-gce
2018/05/06 03:11 https://github.com/google/kmsan.git master d2d741e5d189 78b251cb .config console log report ci-upstream-kmsan-gce
2018/05/06 01:27 https://github.com/google/kmsan.git master d2d741e5d189 78b251cb .config console log report ci-upstream-kmsan-gce
2018/05/05 19:04 https://github.com/google/kmsan.git master d2d741e5d189 6a0382b5 .config console log report ci-upstream-kmsan-gce
2018/05/05 13:01 https://github.com/google/kmsan.git master d2d741e5d189 6a0382b5 .config console log report ci-upstream-kmsan-gce
2018/05/04 16:49 https://github.com/google/kmsan.git master d2d741e5d189 9ce14f4b .config console log report ci-upstream-kmsan-gce
2018/05/04 11:53 https://github.com/google/kmsan.git master d2d741e5d189 9ce14f4b .config console log report ci-upstream-kmsan-gce
2018/05/04 09:12 https://github.com/google/kmsan.git master d2d741e5d189 9ce14f4b .config console log report ci-upstream-kmsan-gce
2018/05/03 12:24 https://github.com/google/kmsan.git master d2d741e5d189 9ce14f4b .config console log report ci-upstream-kmsan-gce
2018/05/03 10:32 https://github.com/google/kmsan.git master d2d741e5d189 9ce14f4b .config console log report ci-upstream-kmsan-gce
2018/05/02 20:04 https://github.com/google/kmsan.git master d2d741e5d189 d5b114b4 .config console log report ci-upstream-kmsan-gce
2018/05/02 04:07 https://github.com/google/kmsan.git master d2d741e5d189 d5b114b4 .config console log report ci-upstream-kmsan-gce
2018/05/01 06:31 https://github.com/google/kmsan.git master d2d741e5d189 d5b114b4 .config console log report ci-upstream-kmsan-gce
2018/04/30 22:46 https://github.com/google/kmsan.git master d2d741e5d189 d5b114b4 .config console log report ci-upstream-kmsan-gce
2018/04/30 12:51 https://github.com/google/kmsan.git master d2d741e5d189 06db3cec .config console log report ci-upstream-kmsan-gce
2018/04/30 11:00 https://github.com/google/kmsan.git master d2d741e5d189 06db3cec .config console log report ci-upstream-kmsan-gce
2018/04/30 09:56 https://github.com/google/kmsan.git master d2d741e5d189 06db3cec .config console log report ci-upstream-kmsan-gce
2018/04/29 23:49 https://github.com/google/kmsan.git master d2d741e5d189 bb79c6ab .config console log report ci-upstream-kmsan-gce
2018/04/29 21:30 https://github.com/google/kmsan.git master d2d741e5d189 bb79c6ab .config console log report ci-upstream-kmsan-gce
2018/04/28 11:19 https://github.com/google/kmsan.git master d2d741e5d189 d5a5d045 .config console log report ci-upstream-kmsan-gce
2018/04/28 05:46 https://github.com/google/kmsan.git master d2d741e5d189 d5a5d045 .config console log report ci-upstream-kmsan-gce
2018/04/27 19:16 https://github.com/google/kmsan.git master d2d741e5d189 7785e404 .config console log report ci-upstream-kmsan-gce
2018/04/27 01:07 https://github.com/google/kmsan.git master d2d741e5d189 73417389 .config console log report ci-upstream-kmsan-gce
* Struck through repros no longer work on HEAD.