bisecting cause commit starting from fb0155a09b0224a7147cb07a4ce6034c8d29667f building syzkaller on 1b88c6d5c8477f1d4fb3b389443b200acc32e9a8 testing commit fb0155a09b0224a7147cb07a4ce6034c8d29667f with gcc (GCC) 8.1.0 kernel signature: 71eb86c6f91b5f2ac2f59b79505153046a259bf1c4d1d2ead45603bff47fbd39 all runs: crashed: UBSAN: array-index-out-of-bounds in init_sb testing release v5.8 testing commit bcf876870b95592b52519ed4aafcf9d95999bc9c with gcc (GCC) 8.1.0 kernel signature: 1b7b2c54a47d7770cf906c6f51eebf340daaf12ebd34e7f81639d0a461a12e84 all runs: crashed: UBSAN: array-index-out-of-bounds in init_sb testing release v5.7 testing commit 3d77e6a8804abcc0504c904bd6e5cdf3a5cf8162 with gcc (GCC) 8.1.0 kernel signature: 32d50ecac504bad9b3a06d32eb0688b4451c4a2f53def7cd9ee2f5e4ba87eff8 run #0: crashed: UBSAN: array-index-out-of-bounds in init_sb run #1: crashed: UBSAN: array-index-out-of-bounds in init_sb run #2: crashed: UBSAN: array-index-out-of-bounds in init_sb run #3: crashed: UBSAN: array-index-out-of-bounds in init_sb run #4: crashed: UBSAN: array-index-out-of-bounds in corrupted run #5: crashed: UBSAN: array-index-out-of-bounds in init_sb run #6: crashed: UBSAN: array-index-out-of-bounds in init_sb run #7: crashed: UBSAN: array-index-out-of-bounds in init_sb run #8: crashed: UBSAN: array-index-out-of-bounds in init_sb run #9: crashed: UBSAN: array-index-out-of-bounds in init_sb testing release v5.6 testing commit 7111951b8d4973bda27ff663f2cf18b663d15b48 with gcc (GCC) 8.1.0 kernel signature: e9dcddfb243db3015fb816865e4ac8c7f7808cd07b66f49c6ecea76146e0195e all runs: crashed: UBSAN: undefined-behaviour in init_sb testing release v5.5 testing commit d5226fa6dbae0569ee43ecfc08bdcd6770fc4755 with gcc (GCC) 8.1.0 kernel signature: 90dec3512e156209df20132187a23fbfde9615314414ed8300a5f3fe29f9dd61 all runs: crashed: UBSAN: undefined-behaviour in init_sb testing release v5.4 testing commit 219d54332a09e8d8741c1e1982f5eae56099de85 with gcc (GCC) 8.1.0 kernel signature: ccf5df93eace1aee032be2960cdef3562c0bdf66d3cf2b5a190fcfd4106a27d2 all runs: crashed: UBSAN: undefined-behaviour in init_sb testing release v5.3 testing commit 4d856f72c10ecb060868ed10ff1b1453943fc6c8 with gcc (GCC) 8.1.0 kernel signature: 6f9631d722f002705a51f531c3e5435599c88760837af397417810a12e661df2 all runs: crashed: UBSAN: undefined-behaviour in init_sb testing release v5.2 testing commit 0ecfebd2b52404ae0c54a878c872bb93363ada36 with gcc (GCC) 8.1.0 kernel signature: 40695101261fe17154114b7d5954c87c3aee50175b21cdadfd7533ba4e2dfa8e all runs: crashed: KASAN: slab-out-of-bounds Write in init_sb testing release v5.1 testing commit e93c9c99a629c61837d5a7fc2120cd2b6c70dbdd with gcc (GCC) 8.1.0 kernel signature: 200572784d3a0d1813acc973d6e87140a79c4ff4e1b6770852899cf5bad4cadf all runs: crashed: KASAN: slab-out-of-bounds Write in init_sb testing release v5.0 testing commit 1c163f4c7b3f621efff9b28a47abb36f7378d783 with gcc (GCC) 8.1.0 kernel signature: 17fcd6cd74d6d3c709ce87639a3df57ccf615295a9f417c2cd2b8e341b9d36d5 all runs: crashed: KASAN: slab-out-of-bounds Write in init_sb testing release v4.20 testing commit 8fe28cb58bcb235034b64cbbb7550a8a43fd88be with gcc (GCC) 8.1.0 kernel signature: 02f33945f61de91b46a56cc0c7bc38a03addc1caa4ada1c7adc9f70ebe64b358 all runs: crashed: KASAN: slab-out-of-bounds Write in init_sb testing release v4.19 testing commit 84df9525b0c27f3ebc2ebb1864fa62a97fdedb7d with gcc (GCC) 8.1.0 kernel signature: 557a31cc7063f0af7e39aa69b5adf24330ef7fdff9025ccc50424fac3b252b2f run #0: crashed: KASAN: slab-out-of-bounds Write in init_sb run #1: crashed: KASAN: slab-out-of-bounds Write in init_sb run #2: crashed: BUG: Bad rss-counter state run #3: crashed: KASAN: slab-out-of-bounds Write in init_sb run #4: crashed: KASAN: slab-out-of-bounds Write in init_sb run #5: crashed: KASAN: slab-out-of-bounds Write in init_sb run #6: crashed: KASAN: slab-out-of-bounds Write in init_sb run #7: crashed: KASAN: slab-out-of-bounds Write in init_sb run #8: crashed: KASAN: slab-out-of-bounds Write in init_sb run #9: crashed: KASAN: slab-out-of-bounds Write in init_sb testing release v4.18 testing commit 94710cac0ef4ee177a63b5227664b38c95bbf703 with gcc (GCC) 8.1.0 kernel signature: 09f65070cefa9878a9044aae2c238683ed5b30e421f2db46f8ddcff73130a7b2 all runs: crashed: KASAN: slab-out-of-bounds Write in init_sb testing release v4.17 testing commit 29dcea88779c856c7dc92040a0c01233263101d4 with gcc (GCC) 8.1.0 kernel signature: 098dfe060050a5e433e91840b406d21e8426a4f14668514c312d03f98414dd19 all runs: crashed: KASAN: slab-out-of-bounds Write in init_sb testing release v4.16 testing commit 0adb32858b0bddf4ada5f364a84ed60b196dbcda with gcc (GCC) 8.1.0 kernel signature: 56fb576ac4e15adbbe981882ab31d37fc2341d90acb3b3bfd0b32ff5658e386a all runs: crashed: KASAN: slab-out-of-bounds Write in init_sb testing release v4.15 testing commit d8a5b80568a9cb66810e75b182018e9edb68e8ff with gcc (GCC) 8.1.0 kernel signature: dc5c7fc9d599d70680816b2c5e91191194ab1f27299fe051f1c88d2ace6a0c6b all runs: crashed: KASAN: slab-out-of-bounds Write in init_sb testing release v4.14 testing commit bebc6082da0a9f5d47a1ea2edc099bf671058bd4 with gcc (GCC) 8.1.0 kernel signature: 0d3e1f30917cf5cdad014892b36ad7597c3325de1307cbb57d6628653c3a523a all runs: crashed: KASAN: slab-out-of-bounds Write in init_sb testing release v4.13 testing commit 569dbb88e80deb68974ef6fdd6a13edb9d686261 with gcc (GCC) 8.1.0 kernel signature: d9e28f938e659f9af214dcf999d4e7198973356436c3b07ea10dc706e6e06e78 all runs: crashed: KASAN: slab-out-of-bounds Write in init_sb testing release v4.12 testing commit 6f7da290413ba713f0cdd9ff1a2a9bb129ef4f6c with gcc (GCC) 8.1.0 kernel signature: dff221999d1786dd230b54404ffbd436f38323eac93fdd64fa1bf1c71975390b all runs: crashed: BUG: sleeping function called from invalid context in tap_get_minor testing release v4.11 testing commit a351e9b9fc24e982ec2f0e76379a49826036da12 with gcc (GCC) 7.3.0 kernel signature: da6cc20b5d3af063bd40f43aeadba3a4befa4fa7db72d6ef1c8a2ce4e4372634 all runs: crashed: BUG: sleeping function called from invalid context in tap_get_minor testing release v4.10 testing commit c470abd4fde40ea6a0846a2beab642a578c0b8cd with gcc (GCC) 5.5.0 kernel signature: 7b687576d4145a480bad07ed39affb9400433d09a64cfc656fa6d1583b0bb636 all runs: crashed: KASAN: slab-out-of-bounds Write in init_sb testing release v4.9 testing commit 69973b830859bc6529a7a0468ba0d80ee5117826 with gcc (GCC) 5.5.0 kernel signature: 0fe3d8aaa7af630e4a7e8d7af66b6274c538afefe2f13edc192e30b91644ad47 run #0: crashed: KASAN: slab-out-of-bounds in init_sb at addr ADDR run #1: crashed: KASAN: slab-out-of-bounds in init_sb at addr ADDR run #2: crashed: KASAN: use-after-free in init_sb at addr ADDR run #3: crashed: KASAN: slab-out-of-bounds in init_sb at addr ADDR run #4: crashed: KASAN: slab-out-of-bounds in init_sb at addr ADDR run #5: crashed: KASAN: use-after-free Write in init_sb run #6: crashed: KASAN: slab-out-of-bounds Write in init_sb run #7: crashed: KASAN: slab-out-of-bounds Write in init_sb run #8: crashed: KASAN: slab-out-of-bounds in init_sb at addr ADDR run #9: crashed: KASAN: slab-out-of-bounds Write in init_sb testing release v4.8 testing commit c8d2bc9bc39ebea8437fd974fdbc21847bb897a3 with gcc (GCC) 5.5.0 kernel signature: 5fe8ce9b61682ab3b2782025f676b97086bfc58138a00fb79f1a49b5fe9ea167 run #0: crashed: KASAN: slab-out-of-bounds in init_sb at addr ADDR run #1: crashed: KASAN: slab-out-of-bounds Write in init_sb run #2: crashed: KASAN: use-after-free Write in init_sb run #3: crashed: KASAN: slab-out-of-bounds Write in init_sb run #4: crashed: KASAN: use-after-free Write in init_sb run #5: crashed: KASAN: slab-out-of-bounds in init_sb at addr ADDR run #6: crashed: KASAN: slab-out-of-bounds in init_sb at addr ADDR run #7: crashed: KASAN: slab-out-of-bounds Write in init_sb run #8: crashed: KASAN: use-after-free in init_sb at addr ADDR run #9: crashed: KASAN: slab-out-of-bounds Write in init_sb testing release v4.7 testing commit 523d939ef98fd712632d93a5a2b588e477a7565e with gcc (GCC) 5.5.0 kernel signature: 2622908eef3919a33ef5879968a8e7ef7f9ba4cfa7be76129e0f301133f44cea run #0: crashed: KASAN: null-ptr-deref Read run #1: crashed: general protection fault in batadv_iv_ogm_queue_add run #2: crashed: general protection fault in batadv_iv_ogm_queue_add run #3: crashed: KASAN: slab-out-of-bounds Write in init_sb run #4: crashed: KASAN: slab-out-of-bounds Write in init_sb run #5: crashed: KASAN: slab-out-of-bounds Write in init_sb run #6: crashed: KASAN: slab-out-of-bounds Write in init_sb run #7: crashed: KASAN: slab-out-of-bounds Write in init_sb run #8: crashed: KASAN: slab-out-of-bounds Write in init_sb run #9: crashed: KASAN: slab-out-of-bounds Write in init_sb testing release v4.6 testing commit 2dcd0af568b0cf583645c8a317dd12e344b1c72a with gcc (GCC) 5.5.0 kernel signature: 6837d8715c14d1be543d4875fe1c740731bdfa7637e300eff9576185ba18fada all runs: crashed: WARNING in sysfs_warn_dup revisions tested: 25, total time: 3h53m35.256319764s (build: 2h26m17.243220005s, test: 1h23m20.264289369s) the crash already happened on the oldest tested release commit msg: Linux 4.6 crash: WARNING in sysfs_warn_dup IPv6: ADDRCONF(NETDEV_UP): bridge0: link is not ready bridge0: port 2(bridge_slave_1) entered blocking state bridge0: port 2(bridge_slave_1) entered disabled state device bridge_slave_1 entered promiscuous mode ------------[ cut here ]------------ WARNING: CPU: 1 PID: 5905 at fs/sysfs/dir.c:31 sysfs_warn_dup+0x7b/0xa0 fs/sysfs/dir.c:30 sysfs: cannot create duplicate filename '/class/macvtap/tap50' Kernel panic - not syncing: panic_on_warn set ... CPU: 1 PID: 5905 Comm: syz-executor.5 Not tainted 4.6.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 0000000000000000 ffff8800b988efc8 ffffffff82e18b12 ffffffff85e81040 ffff8800b988f0a0 ffffffff85f2bc00 ffffffff8191bd7b 0000000000000009 ffff8800b988f090 ffffffff8160d884 0000000041b58ab3 ffffffff86b4158a Call Trace: [] __dump_stack lib/dump_stack.c:15 [inline] [] dump_stack+0x136/0x1d4 lib/dump_stack.c:51 [] panic+0x1af/0x348 kernel/panic.c:152 [] __warn+0x18d/0x1b0 kernel/panic.c:504 [] warn_slowpath_fmt+0x92/0xb0 kernel/panic.c:527 [] sysfs_warn_dup+0x7b/0xa0 fs/sysfs/dir.c:30 [] sysfs_do_create_link_sd.isra.0+0xd1/0xf0 fs/sysfs/symlink.c:51 [] sysfs_do_create_link fs/sysfs/symlink.c:80 [inline] [] sysfs_create_link+0x43/0xb0 fs/sysfs/symlink.c:92 [] device_add_class_symlinks drivers/base/core.c:891 [inline] [] device_add+0x677/0x1350 drivers/base/core.c:1086 [] device_create_groups_vargs+0x1c8/0x220 drivers/base/core.c:1709 [] device_create_vargs drivers/base/core.c:1749 [inline] [] device_create+0x88/0xa0 drivers/base/core.c:1785 [] macvtap_device_event+0x1c4/0x2a0 drivers/net/macvtap.c:1298 [] notifier_call_chain+0x8b/0x170 kernel/notifier.c:93 [] __raw_notifier_call_chain kernel/notifier.c:394 [inline] [] raw_notifier_call_chain+0x11/0x20 kernel/notifier.c:401 [] call_netdevice_notifiers_info+0x47/0x80 net/core/dev.c:1643 [] call_netdevice_notifiers net/core/dev.c:1659 [inline] [] register_netdevice+0x8e8/0xd00 net/core/dev.c:7027 [] macvlan_common_newlink+0x8b9/0x1090 drivers/net/macvlan.c:1316 [] macvtap_newlink+0xbf/0x110 drivers/net/macvtap.c:471 [] rtnl_newlink+0xd4b/0x1230 net/core/rtnetlink.c:2466 [] rtnetlink_rcv_msg+0x222/0x680 net/core/rtnetlink.c:3513 [] netlink_rcv_skb+0x242/0x350 net/netlink/af_netlink.c:2277 [] rtnetlink_rcv+0x25/0x30 net/core/rtnetlink.c:3519 [] netlink_unicast_kernel net/netlink/af_netlink.c:1214 [inline] [] netlink_unicast+0x3da/0x560 net/netlink/af_netlink.c:1240 [] netlink_sendmsg+0x9bb/0xb40 net/netlink/af_netlink.c:1786 [] sock_sendmsg_nosec net/socket.c:612 [inline] [] sock_sendmsg+0xb5/0xf0 net/socket.c:622 [] SYSC_sendto net/socket.c:1648 [inline] [] SyS_sendto+0x1ca/0x290 net/socket.c:1616 [] entry_SYSCALL_64_fastpath+0x23/0xc1 Kernel Offset: disabled