ci starts bisection 2023-05-17 18:19:51.856984898 +0000 UTC m=+37312.302418273 bisecting cause commit starting from f1fcbaa18b28dec10281551dfe6ed3a3ed80e3d6 building syzkaller on eaac4681d47d67269ffba8e824990026bda5eb46 ensuring issue is reproducible on original commit f1fcbaa18b28dec10281551dfe6ed3a3ed80e3d6 testing commit f1fcbaa18b28dec10281551dfe6ed3a3ed80e3d6 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: a79c463cd809a8af18118ef50aa2c9fce985592dc9250d2807865320b7a12037 all runs: crashed: general protection fault in erofs_bread testing release v6.3 testing commit 457391b0380335d5e9a5babdec90ac53928b23b4 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: c5ac4cd2f80997e1dd2e91824af51afc551075dabb17cc7959b5434417d1d147 all runs: OK # git bisect start f1fcbaa18b28dec10281551dfe6ed3a3ed80e3d6 457391b0380335d5e9a5babdec90ac53928b23b4 Bisecting: 6152 revisions left to test after this (roughly 13 steps) [6e98b09da931a00bf4e0477d0fa52748bf28fcce] Merge tag 'net-next-6.4' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next testing commit 6e98b09da931a00bf4e0477d0fa52748bf28fcce gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 33933a825503473f7b07b1964bb291a75c974186155307de49526199ce689a64 all runs: crashed: general protection fault in erofs_bread # git bisect bad 6e98b09da931a00bf4e0477d0fa52748bf28fcce Bisecting: 3926 revisions left to test after this (roughly 12 steps) [088e0c188513b58a0056a488cf5b7df094a8a48a] Merge tag 'platform-drivers-x86-v6.4-1' of git://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86 testing commit 088e0c188513b58a0056a488cf5b7df094a8a48a gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 04aca7c30f7e26473be81ca843f5141659cdc49ccc591650c340372ce1220ede all runs: crashed: general protection fault in erofs_bread # git bisect bad 088e0c188513b58a0056a488cf5b7df094a8a48a Bisecting: 2178 revisions left to test after this (roughly 11 steps) [736b378b29d89c8c3567fa4b2e948be5568aebb8] Merge tag 'slab-for-6.4' of git://git.kernel.org/pub/scm/linux/kernel/git/vbabka/slab testing commit 736b378b29d89c8c3567fa4b2e948be5568aebb8 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 6410be63d7a0f067c005e9a16d6df1b8c21e1ae06a497e97443aba5d1f9db5b0 all runs: crashed: general protection fault in erofs_bread # git bisect bad 736b378b29d89c8c3567fa4b2e948be5568aebb8 Bisecting: 932 revisions left to test after this (roughly 10 steps) [b8a4346d25024e00714fb6ceb0709075827f335d] Merge tag 'mvebu-dt64-6.4-1' of git://git.kernel.org/pub/scm/linux/kernel/git/gclement/mvebu into soc/dt testing commit b8a4346d25024e00714fb6ceb0709075827f335d gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: a050e211378636a5e466980ffec4c2510461ef5186dfd446bbb157004dc148e4 all runs: OK # git bisect good b8a4346d25024e00714fb6ceb0709075827f335d Bisecting: 464 revisions left to test after this (roughly 9 steps) [e94ee641f9cef2502adfe5e0c264b271420c7ab5] Merge tag 'edac_updates_for_v6.4' of git://git.kernel.org/pub/scm/linux/kernel/git/ras/ras testing commit e94ee641f9cef2502adfe5e0c264b271420c7ab5 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 01755e08600c229c069959c4756b09bc7884d92b60ab7594d12f0134ff54035c all runs: crashed: general protection fault in erofs_bread # git bisect bad e94ee641f9cef2502adfe5e0c264b271420c7ab5 Bisecting: 207 revisions left to test after this (roughly 8 steps) [5dfb75e842e0ef59fc7bf307e5c52eab215bdb4c] Merge tag 'rcu.6.4.april5.2023.3' of git://git.kernel.org/pub/scm/linux/kernel/git/jfern/linux testing commit 5dfb75e842e0ef59fc7bf307e5c52eab215bdb4c gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: fb86305faa3f75270c6166a4781658351965a82c110d70d96b56a3f505bdb848 all runs: OK # git bisect good 5dfb75e842e0ef59fc7bf307e5c52eab215bdb4c Bisecting: 104 revisions left to test after this (roughly 7 steps) [3323ddce085cdb33331c2c1bb7a88233023566a9] Merge tag 'v6.4/kernel.user_worker' of git://git.kernel.org/pub/scm/linux/kernel/git/brauner/linux testing commit 3323ddce085cdb33331c2c1bb7a88233023566a9 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: cd8e32a64ca2573eed8cc0b3494644b82967bb920ac92906d76f172b3f514668 all runs: OK # git bisect good 3323ddce085cdb33331c2c1bb7a88233023566a9 Bisecting: 52 revisions left to test after this (roughly 6 steps) [61d325dcbc05d8fef88110d35ef7776f3ac3f68b] Merge tag 'erofs-for-6.4-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs testing commit 61d325dcbc05d8fef88110d35ef7776f3ac3f68b gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: df968b81342651055a75795bfcf4ea27d6ac15c447b3541874494c1466003a5b all runs: crashed: general protection fault in erofs_bread # git bisect bad 61d325dcbc05d8fef88110d35ef7776f3ac3f68b Bisecting: 22 revisions left to test after this (roughly 5 steps) [e2eff52ce512ec725f9f1daf975c45a499be1e1e] Merge tag 'v6.4/vfs.misc' of git://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs testing commit e2eff52ce512ec725f9f1daf975c45a499be1e1e gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 2e6da888aeb9e95958ab49d103074c6d695f5c5e1db7d4f982e76b53f5edd730 all runs: OK # git bisect good e2eff52ce512ec725f9f1daf975c45a499be1e1e Bisecting: 11 revisions left to test after this (roughly 4 steps) [eb2c5e41be1495cf7a20ff49df473b1c45b82e77] erofs: keep meta inode into erofs_buf testing commit eb2c5e41be1495cf7a20ff49df473b1c45b82e77 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 9dcb355cbc5f8a561f823d058e98a3da891bc61675761bec061968810bd5b115 all runs: OK # git bisect good eb2c5e41be1495cf7a20ff49df473b1c45b82e77 Bisecting: 5 revisions left to test after this (roughly 3 steps) [4fdadd5b0f0c723c812842454f8cca1619f2e731] erofs: get rid of z_erofs_fill_inode() testing commit 4fdadd5b0f0c723c812842454f8cca1619f2e731 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 140db8e8b3275624280da9e7f95ca5722ed5290d7129b3bf2b66e464cba2fc80 all runs: crashed: general protection fault in erofs_bread # git bisect bad 4fdadd5b0f0c723c812842454f8cca1619f2e731 Bisecting: 2 revisions left to test after this (roughly 2 steps) [9e382914617c5cab89a01a223b8d00bbd43ad3b3] erofs: add helpers to load long xattr name prefixes testing commit 9e382914617c5cab89a01a223b8d00bbd43ad3b3 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 2ed61ba425b87c36f7ce4ceb5f3da54a31373f60c1ce96d04550892275da7760 all runs: OK # git bisect good 9e382914617c5cab89a01a223b8d00bbd43ad3b3 Bisecting: 0 revisions left to test after this (roughly 1 step) [6a318ccd7e083729cbcdbd174d7070f6b7d24130] erofs: enable long extended attribute name prefixes testing commit 6a318ccd7e083729cbcdbd174d7070f6b7d24130 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: dddbdd5d62578afdb393e53d24426c0e8d904ecb7d6c0909fd02083bafd13682 all runs: crashed: general protection fault in erofs_bread # git bisect bad 6a318ccd7e083729cbcdbd174d7070f6b7d24130 Bisecting: 0 revisions left to test after this (roughly 0 steps) [82bc1ef41d275106a2b5288e4f5b0df19223066a] erofs: handle long xattr name prefixes properly testing commit 82bc1ef41d275106a2b5288e4f5b0df19223066a gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: a8e04f6e3a674836be86b5673092bcf5de51bbe5947dfd0ffe73af2cab1dae78 all runs: OK # git bisect good 82bc1ef41d275106a2b5288e4f5b0df19223066a 6a318ccd7e083729cbcdbd174d7070f6b7d24130 is the first bad commit commit 6a318ccd7e083729cbcdbd174d7070f6b7d24130 Author: Jingbo Xu Date: Sat Apr 8 06:28:08 2023 +0800 erofs: enable long extended attribute name prefixes Let's enable long xattr name prefix feature. Old kernels will just ignore / skip such extended attributes. In addition, in case you don't want to mount such images, add another incompatible feature as an option for this. Signed-off-by: Jingbo Xu Reviewed-by: Gao Xiang Acked-by: Chao Yu Link: https://lore.kernel.org/r/20230407222808.19670-1-jefflexu@linux.alibaba.com [ Gao Xiang: minor commit message fix. ] Signed-off-by: Gao Xiang fs/erofs/erofs_fs.h | 4 +++- fs/erofs/internal.h | 1 + fs/erofs/super.c | 7 +++++++ 3 files changed, 11 insertions(+), 1 deletion(-) culprit signature: dddbdd5d62578afdb393e53d24426c0e8d904ecb7d6c0909fd02083bafd13682 parent signature: a8e04f6e3a674836be86b5673092bcf5de51bbe5947dfd0ffe73af2cab1dae78 revisions tested: 16, total time: 5h45m7.153671739s (build: 3h52m25.472856884s, test: 1h41m10.594599723s) first bad commit: 6a318ccd7e083729cbcdbd174d7070f6b7d24130 erofs: enable long extended attribute name prefixes recipients (to): ["chao@kernel.org" "hsiangkao@linux.alibaba.com" "jefflexu@linux.alibaba.com"] recipients (cc): [] crash: general protection fault in erofs_bread erofs: (device loop0): EXPERIMENTAL compressed fragments feature in use. Use at your own risk! erofs: (device loop0): EXPERIMENTAL global deduplication feature in use. Use at your own risk! general protection fault, probably for non-canonical address 0xdffffc0000000019: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x00000000000000c8-0x00000000000000cf] CPU: 0 PID: 5439 Comm: syz-executor.0 Not tainted 6.3.0-rc6-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/28/2023 RIP: 0010:erofs_bread+0x50/0x5e0 fs/erofs/data.c:38 Code: fb 48 83 ec 10 80 3c 02 00 0f 85 f2 04 00 00 48 ba 00 00 00 00 00 fc ff df 48 8b 03 48 8d b8 ca 00 00 00 48 89 f9 48 c1 e9 03 <0f> b6 14 11 48 89 f9 83 e1 07 38 ca 7f 08 84 d2 0f 85 2e 04 00 00 RSP: 0018:ffffc9000326f988 EFLAGS: 00010202 RAX: 0000000000000000 RBX: ffffc9000326faf8 RCX: 0000000000000019 RDX: dffffc0000000000 RSI: 0000000000000000 RDI: 00000000000000ca RBP: 0000000000000000 R08: 0000000000000001 R09: ffffffff903abd67 R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000001 R13: 0000000000000000 R14: ffff88802a794b80 R15: ffff888077cee000 FS: 00007f69cfefd700(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffe31313d28 CR3: 0000000075e96000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: erofs_read_metadata+0x9a/0x410 fs/erofs/super.c:137 erofs_xattr_prefixes_init+0x326/0x4f0 fs/erofs/xattr.c:691 erofs_fc_fill_super+0x15cb/0x28d0 fs/erofs/super.c:825 get_tree_bdev+0x39c/0x680 fs/super.c:1303 vfs_get_tree+0x83/0x320 fs/super.c:1510 do_new_mount fs/namespace.c:3042 [inline] path_mount+0x82d/0x1a30 fs/namespace.c:3372 do_mount fs/namespace.c:3385 [inline] __do_sys_mount fs/namespace.c:3594 [inline] __se_sys_mount fs/namespace.c:3571 [inline] __x64_sys_mount+0x1f9/0x270 fs/namespace.c:3571 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f69cf28d69a Code: 48 c7 c2 b8 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f69cfefcf88 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00000000000001da RCX: 00007f69cf28d69a RDX: 0000000020000180 RSI: 0000000020000140 RDI: 00007f69cfefcfe0 RBP: 00007f69cfefd020 R08: 00007f69cfefd020 R09: 0000000001000801 R10: 0000000001000801 R11: 0000000000000246 R12: 0000000020000180 R13: 0000000020000140 R14: 00007f69cfefcfe0 R15: 00000000200005c0 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:erofs_bread+0x50/0x5e0 fs/erofs/data.c:38 Code: fb 48 83 ec 10 80 3c 02 00 0f 85 f2 04 00 00 48 ba 00 00 00 00 00 fc ff df 48 8b 03 48 8d b8 ca 00 00 00 48 89 f9 48 c1 e9 03 <0f> b6 14 11 48 89 f9 83 e1 07 38 ca 7f 08 84 d2 0f 85 2e 04 00 00 RSP: 0018:ffffc9000326f988 EFLAGS: 00010202 RAX: 0000000000000000 RBX: ffffc9000326faf8 RCX: 0000000000000019 RDX: dffffc0000000000 RSI: 0000000000000000 RDI: 00000000000000ca RBP: 0000000000000000 R08: 0000000000000001 R09: ffffffff903abd67 R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000001 R13: 0000000000000000 R14: ffff88802a794b80 R15: ffff888077cee000 FS: 00007f69cfefd700(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055843b2b4300 CR3: 0000000075e96000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: fb sti 1: 48 83 ec 10 sub $0x10,%rsp 5: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) 9: 0f 85 f2 04 00 00 jne 0x501 f: 48 ba 00 00 00 00 00 movabs $0xdffffc0000000000,%rdx 16: fc ff df 19: 48 8b 03 mov (%rbx),%rax 1c: 48 8d b8 ca 00 00 00 lea 0xca(%rax),%rdi 23: 48 89 f9 mov %rdi,%rcx 26: 48 c1 e9 03 shr $0x3,%rcx * 2a: 0f b6 14 11 movzbl (%rcx,%rdx,1),%edx <-- trapping instruction 2e: 48 89 f9 mov %rdi,%rcx 31: 83 e1 07 and $0x7,%ecx 34: 38 ca cmp %cl,%dl 36: 7f 08 jg 0x40 38: 84 d2 test %dl,%dl 3a: 0f 85 2e 04 00 00 jne 0x46e