bisecting cause commit starting from d3134eb5de8546a214c028fb7195e764b89da7d4 building syzkaller on 838e7e2cd9228583ca33c49a39aea4d863d3e36d testing commit d3134eb5de8546a214c028fb7195e764b89da7d4 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 699759858c90b98b87032a7c3850558facbe42972ad6ecf8e5f043791a3abe90 all runs: crashed: KASAN: use-after-free Read in __isofs_iget testing release v5.14 testing commit 7d2a07b769330c34b4deabeed939325c77a7ec2f compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 8c219514f33cf5f7e995cffb6643e798eb9f0e406da2dbcbb7423680d5a3f503 all runs: crashed: KASAN: use-after-free Read in __isofs_iget testing release v5.13 testing commit 62fb9874f5da54fdb243003b386128037319b219 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: f0d89eb8f9d4c9864735171e2eb3e5feeaf7d26439e5a7bae1ef45fb8f9578ab all runs: crashed: KASAN: use-after-free Read in __isofs_iget testing release v5.12 testing commit 9f4ad9e425a1d3b6a34617b8ea226d56a119a717 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: f3685dd148c0d7f62ec2c26b6ccd338a86cdce80e434ce6a225cc94922f0c2db all runs: crashed: KASAN: use-after-free Read in __isofs_iget testing release v5.11 testing commit f40ddce88593482919761f74910f42f4b84c004b compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 1f5c2551444cc5a9717d44acd7d59dea64de831f0ec6d140c76c393b1a8be7b9 run #0: crashed: KASAN: use-after-free Read in __isofs_iget run #1: crashed: KASAN: use-after-free Read in __isofs_iget run #2: crashed: KASAN: use-after-free Read in __isofs_iget run #3: crashed: KASAN: slab-out-of-bounds Read in setup_rock_ridge run #4: crashed: KASAN: use-after-free Read in __isofs_iget run #5: crashed: KASAN: use-after-free Read in __isofs_iget run #6: crashed: KASAN: use-after-free Read in __isofs_iget run #7: crashed: KASAN: use-after-free Read in __isofs_iget run #8: crashed: KASAN: use-after-free Read in __isofs_iget run #9: crashed: KASAN: use-after-free Read in __isofs_iget testing release v5.10 testing commit 2c85ebc57b3e1817b6ce1a6b703928e113a90442 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 6fadf1b92bad0f2eefaa047034d1044e5b34f9c1872d7811646aed5049f137a7 all runs: crashed: KASAN: use-after-free Read in __isofs_iget testing release v5.9 testing commit bbf5c979011a099af5dc76498918ed7df445635b compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 79f11e7a8eed3e447672927cef5561c2ba920551ad72927757519c7fec1a8d58 all runs: crashed: KASAN: use-after-free Read in __isofs_iget testing release v5.8 testing commit bcf876870b95592b52519ed4aafcf9d95999bc9c compiler: gcc (GCC) 8.4.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 3a10be75bbfb45817efdf085ef0d7bb7934a9655779dbb5140e82be0f1d7e80e all runs: crashed: KASAN: use-after-free Read in __isofs_iget testing release v5.7 testing commit 3d77e6a8804abcc0504c904bd6e5cdf3a5cf8162 compiler: gcc version 8.4.1 20210217 (GCC), GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 6c15458155203600f9eead46349048b82bfa958d35a9c08152de83a646393e6d all runs: crashed: KASAN: use-after-free Read in __isofs_iget testing release v5.6 testing commit 7111951b8d4973bda27ff663f2cf18b663d15b48 compiler: gcc version 8.4.1 20210217 (GCC) kernel signature: 3ec8f747eafa1b5378a4cc37ea09f1a8798bfd8f4ee7c3e4b1f24c42b3888ba2 all runs: crashed: KASAN: use-after-free Read in __isofs_iget testing release v5.5 testing commit d5226fa6dbae0569ee43ecfc08bdcd6770fc4755 compiler: gcc version 8.4.1 20210217 (GCC) kernel signature: 1e50721387abc6962be73a376a0e25993de05554e109369a0cf0059deb740472 run #0: crashed: KASAN: use-after-free Read in __isofs_iget run #1: crashed: KASAN: use-after-free Read in __isofs_iget run #2: crashed: KASAN: use-after-free Read in __isofs_iget run #3: crashed: KASAN: use-after-free Read in __isofs_iget run #4: crashed: KASAN: use-after-free Read in __isofs_iget run #5: crashed: KASAN: use-after-free Read in __isofs_iget run #6: crashed: KASAN: use-after-free Read in __isofs_iget run #7: crashed: KASAN: use-after-free Read in __isofs_iget run #8: crashed: KASAN: use-after-free Read in __isofs_iget run #9: basic kernel testing failed: timed out testing release v5.4 testing commit 219d54332a09e8d8741c1e1982f5eae56099de85 compiler: gcc version 8.4.1 20210217 (GCC) kernel signature: 9746f3b655633436e9e0647dfbf6f8cc6036487689cc04d539ee7143aa30fdd9 all runs: crashed: KASAN: use-after-free Read in __isofs_iget testing release v5.3 testing commit 4d856f72c10ecb060868ed10ff1b1453943fc6c8 compiler: gcc version 8.4.1 20210217 (GCC) kernel signature: 54920ccfe5023ac1310b5de92553c4d02e1b7ef19a40c59ae996f8f35d0795ad all runs: crashed: KASAN: use-after-free Read in __isofs_iget testing release v5.2 testing commit 0ecfebd2b52404ae0c54a878c872bb93363ada36 compiler: gcc version 8.4.1 20210217 (GCC) kernel signature: 63727acb5f1a8479cf00e4aeaeb8b93f969f620cc11da3adce5ab8324955b755 all runs: crashed: KASAN: use-after-free Read in __isofs_iget testing release v5.1 testing commit e93c9c99a629c61837d5a7fc2120cd2b6c70dbdd compiler: gcc version 8.4.1 20210217 (GCC) kernel signature: 7050ee04822f2db21ebf0899802481c3b2ef8a9ecc304d7dd18796d74cadf966 run #0: crashed: KASAN: use-after-free Read in __isofs_iget run #1: crashed: KASAN: out-of-bounds Read in __isofs_iget run #2: crashed: KASAN: use-after-free Read in __isofs_iget run #3: crashed: KASAN: use-after-free Read in __isofs_iget run #4: crashed: KASAN: use-after-free Read in __isofs_iget run #5: crashed: KASAN: use-after-free Read in __isofs_iget run #6: crashed: KASAN: use-after-free Read in __isofs_iget run #7: crashed: KASAN: use-after-free Read in __isofs_iget run #8: crashed: KASAN: use-after-free Read in __isofs_iget run #9: crashed: KASAN: use-after-free Read in __isofs_iget testing release v5.0 testing commit 1c163f4c7b3f621efff9b28a47abb36f7378d783 compiler: gcc version 8.4.1 20210217 (GCC) kernel signature: 74b9cbc5d612f13207febb901e714d31acb8cf018ab074f1a6cc514f3f821600 all runs: crashed: KASAN: use-after-free Read in __isofs_iget testing release v4.20 testing commit 8fe28cb58bcb235034b64cbbb7550a8a43fd88be compiler: gcc version 8.4.1 20210217 (GCC) kernel signature: 9f38b9345c9ddd8f2e171bee95a08ccff7922e73621faa4d2b34e69defe95059 run #0: crashed: KASAN: use-after-free Read in __isofs_iget run #1: crashed: KASAN: use-after-free Read in __isofs_iget run #2: crashed: KASAN: use-after-free Read in __isofs_iget run #3: crashed: KASAN: use-after-free Read in __isofs_iget run #4: crashed: KASAN: out-of-bounds Read in __isofs_iget run #5: crashed: KASAN: use-after-free Read in __isofs_iget run #6: crashed: KASAN: use-after-free Read in __isofs_iget run #7: crashed: KASAN: use-after-free Read in __isofs_iget run #8: crashed: KASAN: use-after-free Read in __isofs_iget run #9: crashed: KASAN: use-after-free Read in __isofs_iget testing release v4.19 testing commit 84df9525b0c27f3ebc2ebb1864fa62a97fdedb7d compiler: gcc version 8.4.1 20210217 (GCC) kernel signature: 1a38063b81b8e3c737a0b2eb70b57738b75c5e681bb43f1e7e93b5ad62f1d65e run #0: crashed: KASAN: use-after-free Read in __isofs_iget run #1: crashed: KASAN: use-after-free Read in __isofs_iget run #2: crashed: KASAN: out-of-bounds Read in __isofs_iget run #3: crashed: KASAN: use-after-free Read in __isofs_iget run #4: crashed: KASAN: use-after-free Read in __isofs_iget run #5: crashed: KASAN: use-after-free Read in __isofs_iget run #6: crashed: KASAN: use-after-free Read in __isofs_iget run #7: crashed: KASAN: use-after-free Read in __isofs_iget run #8: crashed: KASAN: use-after-free Read in __isofs_iget run #9: crashed: KASAN: use-after-free Read in __isofs_iget testing release v4.18 testing commit 94710cac0ef4ee177a63b5227664b38c95bbf703 compiler: gcc version 8.4.1 20210217 (GCC) kernel signature: 206ef783b86d98265a2d0f0565b1e05f8878c543555dd4540e43ceada94e9ef8 all runs: crashed: KASAN: use-after-free Read in __isofs_iget testing release v4.17 testing commit 29dcea88779c856c7dc92040a0c01233263101d4 compiler: gcc (GCC) 8.4.1 20210217 failed to run ["make" "-j" "64" "ARCH=x86_64" "CC=/syzkaller/shared/bisect_bin/gcc-8.1.0/bin/gcc" "bzImage"]: exit status 2 testing release v4.16 testing commit 0adb32858b0bddf4ada5f364a84ed60b196dbcda compiler: 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] 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 compiler: 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] elf.c:135:2: error: 'elf_getshnum' is deprecated [-Werror=deprecated-declarations] elf.c:140: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] testing release v4.14 testing commit bebc6082da0a9f5d47a1ea2edc099bf671058bd4 compiler: 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] elf.c:134:2: error: 'elf_getshnum' is deprecated [-Werror=deprecated-declarations] elf.c:139: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] testing release v4.13 testing commit 569dbb88e80deb68974ef6fdd6a13edb9d686261 compiler: 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] testing release v4.12 testing commit 6f7da290413ba713f0cdd9ff1a2a9bb129ef4f6c compiler: 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] testing release v4.11 testing commit a351e9b9fc24e982ec2f0e76379a49826036da12 compiler: 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 compiler: 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:35:12: error: passing argument 2 to 'restrict'-qualified parameter aliases with argument 4 [-Werror=restrict] elf.c:129:2: error: 'elf_getshnum' is deprecated [-Werror=deprecated-declarations] elf.c:134:2: error: 'elf_getshstrndx' is deprecated [-Werror=deprecated-declarations] testing release v4.9 testing commit 69973b830859bc6529a7a0468ba0d80ee5117826 compiler: 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 compiler: 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 compiler: 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:122:2: error: 'elf_getshnum' is deprecated [-Werror=deprecated-declarations] elf.c:127: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.6 testing commit 2dcd0af568b0cf583645c8a317dd12e344b1c72a compiler: 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: 19, total time: 3h23m47.174096161s (build: 2h15m25.854130023s, test: 1h3m4.002715917s) the crash already happened on the oldest tested release commit msg: Linux 4.18 crash: KASAN: use-after-free Read in __isofs_iget IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready wlan0: Created IBSS using preconfigured BSSID 50:50:50:50:50:50 wlan0: Creating new IBSS network, BSSID 50:50:50:50:50:50 ================================================================== BUG: KASAN: use-after-free in isofs_read_inode fs/isofs/inode.c:1348 [inline] BUG: KASAN: use-after-free in __isofs_iget+0x1c58/0x2010 fs/isofs/inode.c:1548 Read of size 1 at addr ffff880089450015 by task syz-executor.2/10050 CPU: 0 PID: 10050 Comm: syz-executor.2 Not tainted 4.18.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+0x15a/0x20d lib/dump_stack.c:113 print_address_description.cold.6+0x9/0x244 mm/kasan/report.c:256 kasan_report_error mm/kasan/report.c:354 [inline] kasan_report mm/kasan/report.c:412 [inline] kasan_report.cold.7+0x242/0x305 mm/kasan/report.c:396 __asan_report_load1_noabort+0x14/0x20 mm/kasan/report.c:430 isofs_read_inode fs/isofs/inode.c:1348 [inline] __isofs_iget+0x1c58/0x2010 fs/isofs/inode.c:1548 isofs_iget fs/isofs/isofs.h:134 [inline] isofs_export_iget.part.1+0x12/0x80 fs/isofs/export.c:29 isofs_export_iget fs/isofs/export.c:170 [inline] isofs_fh_to_dentry+0xc7/0x104 fs/isofs/export.c:170 exportfs_decode_fh+0x119/0x665 fs/exportfs/expfs.c:432 do_handle_to_path fs/fhandle.c:152 [inline] handle_to_path fs/fhandle.c:207 [inline] do_handle_open+0x26c/0x5d0 fs/fhandle.c:223 __do_sys_open_by_handle_at fs/fhandle.c:265 [inline] __se_sys_open_by_handle_at fs/fhandle.c:256 [inline] __x64_sys_open_by_handle_at+0x71/0xb0 fs/fhandle.c:256 do_syscall_64+0xda/0x540 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7fc57bbf78d9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 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:00007fc57b36e188 EFLAGS: 00000246 ORIG_RAX: 0000000000000130 RAX: ffffffffffffffda RBX: 00007fc57bcfbf60 RCX: 00007fc57bbf78d9 RDX: 0000000000000000 RSI: 0000000020000080 RDI: 0000000000000005 RBP: 00007fc57bc51cb4 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffc4f21129f R14: 00007fc57b36e300 R15: 0000000000022000 The buggy address belongs to the page: page:ffffea0002251400 count:0 mapcount:0 mapping:0000000000000000 index:0x1 flags: 0xfff00000000000() raw: 00fff00000000000 ffffea0002253648 ffffea0002253888 0000000000000000 raw: 0000000000000001 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner info is not active (free page?) Memory state around the buggy address: ffff88008944ff00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88008944ff80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff880089450000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff880089450080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff880089450100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ================================================================== IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready