bisecting cause commit starting from f40ddce88593482919761f74910f42f4b84c004b building syzkaller on 98682e5e2aefc9aad61354f4f3ac93be96002a2a testing commit f40ddce88593482919761f74910f42f4b84c004b with gcc (GCC) 10.2.1 20210217 kernel signature: 31380acbde5081ebcc03b8b1cc92921ed4a81eb7f97a79d4e8ce6ac16d2b8953 all runs: crashed: KASAN: out-of-bounds Read in leaf_paste_entries testing release v5.10 testing commit 2c85ebc57b3e1817b6ce1a6b703928e113a90442 with gcc (GCC) 10.2.1 20210217 kernel signature: 07832ad157a2f1ad292c1f7361e44f05f5f1a63f52599ba6ca147467259ef5f8 all runs: crashed: KASAN: out-of-bounds Read in leaf_paste_entries testing release v5.9 testing commit bbf5c979011a099af5dc76498918ed7df445635b with gcc (GCC) 10.2.1 20210217 kernel signature: 4982d648f34b34a14f5d14be196adc9606eea9098e868e858a5fcadcd19f17d4 all runs: crashed: KASAN: out-of-bounds Read in leaf_paste_entries testing release v5.8 testing commit bcf876870b95592b52519ed4aafcf9d95999bc9c with gcc (GCC) 8.4.1 20210217 kernel signature: 7846484ba3fe701bdfa7fc4a606543fc283b3f1fe345bf1330247f6e4ec67c28 all runs: crashed: KASAN: out-of-bounds Read in leaf_paste_entries testing release v5.7 testing commit 3d77e6a8804abcc0504c904bd6e5cdf3a5cf8162 with gcc (GCC) 8.4.1 20210217 kernel signature: 453cc8c1a9c35695c2777696601bb7f33aad2f0c2fe8676187d33203af0eb1a3 all runs: crashed: KASAN: out-of-bounds Read in leaf_paste_entries testing release v5.6 testing commit 7111951b8d4973bda27ff663f2cf18b663d15b48 with gcc (GCC) 8.4.1 20210217 kernel signature: 27f1b82998d6e62f6ee66b52d34d74089d8c75235cac14df8ce965fb9a84ea76 all runs: crashed: KASAN: out-of-bounds Read in leaf_paste_entries testing release v5.5 testing commit d5226fa6dbae0569ee43ecfc08bdcd6770fc4755 with gcc (GCC) 8.4.1 20210217 kernel signature: 4658d923f6cfd96c8464cf31e576b941762bd165afa96d62622c7e614efce4d0 all runs: crashed: KASAN: out-of-bounds Read in leaf_paste_entries testing release v5.4 testing commit 219d54332a09e8d8741c1e1982f5eae56099de85 with gcc (GCC) 8.4.1 20210217 kernel signature: 953d9d5c3e1824ebeebc8bdd2ce0c7fdeb53d99721f09336d6ea085ba3c0d6f0 all runs: crashed: KASAN: out-of-bounds Read in leaf_paste_entries testing release v5.3 testing commit 4d856f72c10ecb060868ed10ff1b1453943fc6c8 with gcc (GCC) 8.4.1 20210217 kernel signature: 4112a685bfabeaae5cf8f1e839be53e8c9d17ef9c2fdd077033ccdcd123c98b8 all runs: boot failed: BUG: spinlock bad magic in nf_connlabels_get testing release v5.2 testing commit 0ecfebd2b52404ae0c54a878c872bb93363ada36 with gcc (GCC) 8.4.1 20210217 kernel signature: 74c2bc6782e144f6d25cfb12fb3a974f58ae03605a2e3b02d0169d6572ecfb43 all runs: boot failed: can't ssh into the instance testing release v5.1 testing commit e93c9c99a629c61837d5a7fc2120cd2b6c70dbdd with gcc (GCC) 8.4.1 20210217 kernel signature: c7eefb4ce691d2bda2f9eea810f058d346ccec9ef1d23a24c4ae6e4278c86cf4 all runs: boot failed: can't ssh into the instance testing release v5.0 testing commit 1c163f4c7b3f621efff9b28a47abb36f7378d783 with gcc (GCC) 8.4.1 20210217 kernel signature: ecf2e981e70a1e450b2c5688676eb627ac10cb1aaf1914c1daaeeda23eaf3846 all runs: boot failed: can't ssh into the instance testing release v4.20 testing commit 8fe28cb58bcb235034b64cbbb7550a8a43fd88be with gcc (GCC) 8.4.1 20210217 kernel signature: 5929876d74a24433cd4c38f1ae932e58b1a252684d3580a8ddddf840846aa454 all runs: boot failed: can't ssh into the instance testing release v4.19 testing commit 84df9525b0c27f3ebc2ebb1864fa62a97fdedb7d with gcc (GCC) 8.4.1 20210217 kernel signature: 93d02ce45b0cece95cfc752cc4be32b2dadd6b4ffd91471df22fe87e4885a4e0 all runs: boot failed: can't ssh into the instance testing release v4.18 testing commit 94710cac0ef4ee177a63b5227664b38c95bbf703 with gcc (GCC) 8.4.1 20210217 kernel signature: b470dae7245d3cf994bf2686256254143b2dd000b9499de02051bfca910719ad all runs: boot failed: can't ssh into the instance testing release v4.17 testing commit 29dcea88779c856c7dc92040a0c01233263101d4 with gcc (GCC) 8.4.1 20210217 ./security/selinux/include/classmap.h:247:2: error: #error New address family defined, please update secclass_map. testing release v4.16 testing commit 0adb32858b0bddf4ada5f364a84ed60b196dbcda with gcc (GCC) 8.4.1 20210217 ./security/selinux/include/classmap.h:247:2: error: #error New address family defined, please update secclass_map. orc_dump.c:106:2: error: 'elf_getshnum' is deprecated [-Werror=deprecated-declarations] orc_dump.c:111:2: error: 'elf_getshstrndx' is deprecated [-Werror=deprecated-declarations] elf.c:135:2: error: 'elf_getshnum' is deprecated [-Werror=deprecated-declarations] elf.c:140:2: error: 'elf_getshstrndx' is deprecated [-Werror=deprecated-declarations] testing release v4.15 testing commit d8a5b80568a9cb66810e75b182018e9edb68e8ff with gcc (GCC) 8.4.1 20210217 orc_dump.c:106:2: error: 'elf_getshnum' is deprecated [-Werror=deprecated-declarations] orc_dump.c:111:2: error: 'elf_getshstrndx' is deprecated [-Werror=deprecated-declarations] pager.c:36:12: error: passing argument 2 to 'restrict'-qualified parameter aliases with argument 4 [-Werror=restrict] elf.c:135:2: error: 'elf_getshnum' is deprecated [-Werror=deprecated-declarations] elf.c:140:2: error: 'elf_getshstrndx' is deprecated [-Werror=deprecated-declarations] ./security/selinux/include/classmap.h:247:2: error: #error New address family defined, please update secclass_map. testing release v4.14 testing commit bebc6082da0a9f5d47a1ea2edc099bf671058bd4 with gcc (GCC) 8.4.1 20210217 orc_dump.c:105:2: error: 'elf_getshnum' is deprecated [-Werror=deprecated-declarations] orc_dump.c:110:2: error: 'elf_getshstrndx' is deprecated [-Werror=deprecated-declarations] pager.c:36:12: error: passing argument 2 to 'restrict'-qualified parameter aliases with argument 4 [-Werror=restrict] elf.c:134:2: error: 'elf_getshnum' is deprecated [-Werror=deprecated-declarations] elf.c:139:2: error: 'elf_getshstrndx' is deprecated [-Werror=deprecated-declarations] ./security/selinux/include/classmap.h:245:2: error: #error New address family defined, please update secclass_map. testing release v4.13 testing commit 569dbb88e80deb68974ef6fdd6a13edb9d686261 with gcc (GCC) 8.4.1 20210217 pager.c:35:12: error: passing argument 2 to 'restrict'-qualified parameter aliases with argument 4 [-Werror=restrict] elf.c:144:2: error: 'elf_getshnum' is deprecated [-Werror=deprecated-declarations] elf.c:149:2: error: 'elf_getshstrndx' is deprecated [-Werror=deprecated-declarations] ./security/selinux/include/classmap.h:242:2: error: #error New address family defined, please update secclass_map. testing release v4.12 testing commit 6f7da290413ba713f0cdd9ff1a2a9bb129ef4f6c with gcc (GCC) 8.4.1 20210217 pager.c:35:12: error: passing argument 2 to 'restrict'-qualified parameter aliases with argument 4 [-Werror=restrict] elf.c:141:2: error: 'elf_getshnum' is deprecated [-Werror=deprecated-declarations] elf.c:146:2: error: 'elf_getshstrndx' is deprecated [-Werror=deprecated-declarations] ./security/selinux/include/classmap.h:238:2: error: #error New address family defined, please update secclass_map. testing release v4.11 testing commit a351e9b9fc24e982ec2f0e76379a49826036da12 with gcc (GCC) 7.5.0 elf.c:141:2: error: 'elf_getshnum' is deprecated [-Werror=deprecated-declarations] elf.c:146:2: error: 'elf_getshstrndx' is deprecated [-Werror=deprecated-declarations] pager.c:35:12: error: passing argument 2 to 'restrict'-qualified parameter aliases with argument 4 [-Werror=restrict] testing release v4.10 testing commit c470abd4fde40ea6a0846a2beab642a578c0b8cd with gcc (GCC) 5.5.0 tools/include/linux/log2.h:19:1: error: ignoring attribute 'noreturn' because it conflicts with attribute 'const' [-Werror=attributes] elf.c:129:2: error: 'elf_getshnum' is deprecated [-Werror=deprecated-declarations] elf.c:134:2: error: 'elf_getshstrndx' is deprecated [-Werror=deprecated-declarations] pager.c:35:12: error: passing argument 2 to 'restrict'-qualified parameter aliases with argument 4 [-Werror=restrict] testing release v4.9 testing commit 69973b830859bc6529a7a0468ba0d80ee5117826 with gcc (GCC) 5.5.0 tools/include/linux/log2.h:19:1: error: ignoring attribute 'noreturn' because it conflicts with attribute 'const' [-Werror=attributes] elf.c:129:2: error: 'elf_getshnum' is deprecated [-Werror=deprecated-declarations] elf.c:134:2: error: 'elf_getshstrndx' is deprecated [-Werror=deprecated-declarations] pager.c:35:12: error: passing argument 2 to 'restrict'-qualified parameter aliases with argument 4 [-Werror=restrict] testing release v4.8 testing commit c8d2bc9bc39ebea8437fd974fdbc21847bb897a3 with gcc (GCC) 5.5.0 tools/include/linux/log2.h:19:1: error: ignoring attribute 'noreturn' because it conflicts with attribute 'const' [-Werror=attributes] elf.c:129:2: error: 'elf_getshnum' is deprecated [-Werror=deprecated-declarations] elf.c:134:2: error: 'elf_getshstrndx' is deprecated [-Werror=deprecated-declarations] pager.c:33:12: error: passing argument 2 to 'restrict'-qualified parameter aliases with argument 4 [-Werror=restrict] testing release v4.7 testing commit 523d939ef98fd712632d93a5a2b588e477a7565e with gcc (GCC) 5.5.0 tools/include/linux/log2.h:19:1: error: ignoring attribute 'noreturn' because it conflicts with attribute 'const' [-Werror=attributes] pager.c:33:12: error: passing argument 2 to 'restrict'-qualified parameter aliases with argument 4 [-Werror=restrict] elf.c:122:2: error: 'elf_getshnum' is deprecated [-Werror=deprecated-declarations] elf.c:127:2: error: 'elf_getshstrndx' is deprecated [-Werror=deprecated-declarations] testing release v4.6 testing commit 2dcd0af568b0cf583645c8a317dd12e344b1c72a with gcc (GCC) 5.5.0 tools/include/linux/log2.h:19:1: error: ignoring attribute 'noreturn' because it conflicts with attribute 'const' [-Werror=attributes] pager.c:33:12: error: passing argument 2 to 'restrict'-qualified parameter aliases with argument 4 [-Werror=restrict] revisions tested: 15, total time: 3h29m30.648501701s (build: 1h41m43.474593245s, test: 1h38m56.254878064s) the crash already happened on the oldest tested release commit msg: Linux 5.4 crash: KASAN: out-of-bounds Read in leaf_paste_entries REISERFS (device loop4): Using tea hash to sort names ================================================================== BUG: KASAN: out-of-bounds in memmove include/linux/string.h:393 [inline] BUG: KASAN: out-of-bounds in leaf_paste_entries+0x405/0xa10 fs/reiserfs/lbalance.c:1377 Read of size 18446744073709551584 at addr ffff8880573ccfa4 by task syz-executor.4/10187 CPU: 1 PID: 10187 Comm: syz-executor.4 Not tainted 5.4.0-syzkaller #0 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+0x96/0xe0 lib/dump_stack.c:118 print_address_description.constprop.4.cold.6+0x9/0x341 mm/kasan/report.c:374 __kasan_report.cold.7+0x7a/0x97 mm/kasan/report.c:506 kasan_report+0xe/0x20 mm/kasan/common.c:634 check_memory_region_inline mm/kasan/generic.c:185 [inline] check_memory_region+0x144/0x1c0 mm/kasan/generic.c:192 memmove+0x1f/0x50 mm/kasan/common.c:113 memmove include/linux/string.h:393 [inline] leaf_paste_entries+0x405/0xa10 fs/reiserfs/lbalance.c:1377 balance_leaf_finish_node_paste_dirent fs/reiserfs/do_balan.c:1295 [inline] balance_leaf_finish_node_paste.isra.10+0x48a/0x1140 fs/reiserfs/do_balan.c:1321 balance_leaf_finish_node fs/reiserfs/do_balan.c:1364 [inline] balance_leaf fs/reiserfs/do_balan.c:1452 [inline] do_balance+0x2aa0/0x690a fs/reiserfs/do_balan.c:1888 reiserfs_paste_into_item+0x4c7/0x5e0 fs/reiserfs/stree.c:2138 reiserfs_add_entry+0x7b7/0xbd0 fs/reiserfs/namei.c:563 reiserfs_mkdir+0x54e/0x7a0 fs/reiserfs/namei.c:855 create_privroot fs/reiserfs/xattr.c:875 [inline] reiserfs_xattr_init+0x432/0x8b9 fs/reiserfs/xattr.c:994 reiserfs_fill_super+0x1a73/0x2780 fs/reiserfs/super.c:2174 mount_bdev+0x25e/0x320 fs/super.c:1415 legacy_get_tree+0xfe/0x200 fs/fs_context.c:647 vfs_get_tree+0x7e/0x330 fs/super.c:1545 do_new_mount fs/namespace.c:2822 [inline] do_mount+0x103a/0x16c0 fs/namespace.c:3142 ksys_mount+0xb1/0xd0 fs/namespace.c:3351 __do_sys_mount fs/namespace.c:3365 [inline] __se_sys_mount fs/namespace.c:3362 [inline] __x64_sys_mount+0xb5/0x150 fs/namespace.c:3362 do_syscall_64+0x8e/0x4e0 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x4672ba Code: 48 c7 c2 bc ff ff ff f7 d8 64 89 02 b8 ff ff ff ff eb d2 e8 b8 04 00 00 0f 1f 84 00 00 00 00 00 49 89 ca b8 a5 00 00 00 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:00007fd0d9e70fa8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 0000000020000200 RCX: 00000000004672ba RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007fd0d9e71000 RBP: 00007fd0d9e71040 R08: 00007fd0d9e71040 R09: 0000000020000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000020000000 R13: 0000000020000100 R14: 00007fd0d9e71000 R15: 00000000200003c0 The buggy address belongs to the page: page:ffffea00015cf300 refcount:2 mapcount:0 mapping:ffff888094ef5ca0 index:0x3d97 def_blk_aops flags: 0xfff00000002032(referenced|lru|active|private) raw: 00fff00000002032 ffffea00015cd188 ffffea00015b0388 ffff888094ef5ca0 raw: 0000000000003d97 ffff88805ad58930 00000002ffffffff ffff88823b6f6000 page dumped because: kasan: bad access detected page->mem_cgroup:ffff88823b6f6000 Memory state around the buggy address: ffff8880573cce80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8880573ccf00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff8880573ccf80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ ffff8880573cd000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8880573cd080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================