ci2 starts bisection 2023-07-16 03:42:52.630010301 +0000 UTC m=+112035.166947696 bisecting fixing commit since 1fe619a7d25218e9b9fdcce9fcac6a05cd62abed building syzkaller on cf1845599c0bdab59c69518eaa0ecb960ec7ddf0 ensuring issue is reproducible on original commit 1fe619a7d25218e9b9fdcce9fcac6a05cd62abed testing commit 1fe619a7d25218e9b9fdcce9fcac6a05cd62abed gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 948848142cd6e48f5836a51f1e842e40051488e13f10fdd27d0cb398101fb645 all runs: crashed: possible deadlock in ext4_xattr_set_handle representative crash: possible deadlock in ext4_xattr_set_handle, types: [LOCKDEP] check whether we can drop unnecessary instrumentation disabling configs for [BUG KASAN ATOMIC_SLEEP HANG LEAK UBSAN], they are not needed testing commit 1fe619a7d25218e9b9fdcce9fcac6a05cd62abed gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 7c43ffb68e03ee34bf735b27138a2e52fa52d748df0ce00c69d79fef4573f10c all runs: crashed: possible deadlock in ext4_xattr_set_handle representative crash: possible deadlock in ext4_xattr_set_handle, types: [LOCKDEP] the bug reproduces without the instrumentation disabling configs for [KASAN ATOMIC_SLEEP HANG LEAK UBSAN BUG], they are not needed kconfig minimization: base=3703 full=7271 leaves diff=1986 split chunks (needed=false): <1986> split chunk #0 of len 1986 into 5 parts testing without sub-chunk 1/5 testing commit 1fe619a7d25218e9b9fdcce9fcac6a05cd62abed gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 96f823640f3120c777a8577b56398dcc47e5dcd3961c73ba502765c96cdd4091 all runs: crashed: possible deadlock in ext4_xattr_set_handle representative crash: possible deadlock in ext4_xattr_set_handle, types: [LOCKDEP] the chunk can be dropped testing without sub-chunk 2/5 testing commit 1fe619a7d25218e9b9fdcce9fcac6a05cd62abed gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: e9ae0f9cba4f9e509614dfb02ed86b142892c28c2c6091753d7755620a3e93b7 all runs: crashed: possible deadlock in ext4_xattr_set_handle representative crash: possible deadlock in ext4_xattr_set_handle, types: [LOCKDEP] the chunk can be dropped testing without sub-chunk 3/5 testing commit 1fe619a7d25218e9b9fdcce9fcac6a05cd62abed gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: fb52359daeb6e8f6e26482785ed0ea94f24ed1e98ac09654b06ad1f71842dac2 all runs: crashed: possible deadlock in ext4_xattr_set_handle representative crash: possible deadlock in ext4_xattr_set_handle, types: [LOCKDEP] the chunk can be dropped testing without sub-chunk 4/5 testing commit 1fe619a7d25218e9b9fdcce9fcac6a05cd62abed gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 74771904378e5875d556458b8598f191427af8025cabe6bd9b444f51f27e618c all runs: crashed: possible deadlock in ext4_xattr_set_handle representative crash: possible deadlock in ext4_xattr_set_handle, types: [LOCKDEP] the chunk can be dropped testing without sub-chunk 5/5 testing commit 1fe619a7d25218e9b9fdcce9fcac6a05cd62abed gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 1461b4b74e4f0621875ca270694a3c41961d455c38d6726463b3045a4ae39c64 all runs: crashed: possible deadlock in ext4_xattr_set_handle representative crash: possible deadlock in ext4_xattr_set_handle, types: [LOCKDEP] the chunk can be dropped disabling configs for [ATOMIC_SLEEP HANG LEAK UBSAN BUG KASAN], they are not needed testing current HEAD d54cfc420586425d418a53871290cc4a59d33501 testing commit d54cfc420586425d418a53871290cc4a59d33501 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: b84a3527855868a735538f283d6e37463dc55dc5368fd7e319b718c4d0d98a81 all runs: OK false negative chance: 0.000 # git bisect start d54cfc420586425d418a53871290cc4a59d33501 1fe619a7d25218e9b9fdcce9fcac6a05cd62abed Bisecting: 290 revisions left to test after this (roughly 8 steps) [53c056ccda02b8427b3a2214dec7d97f5fad4826] Bluetooth: Fix l2cap_disconnect_req deadlock testing commit 53c056ccda02b8427b3a2214dec7d97f5fad4826 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 9359043b60070838444d471a79fadf5a3859696777de3d1d3685a82d4d1ce58a all runs: OK false negative chance: 0.000 # git bisect bad 53c056ccda02b8427b3a2214dec7d97f5fad4826 Bisecting: 144 revisions left to test after this (roughly 7 steps) [8ac106aade8f496713e760550f0bdcaa18bc6f9a] rtnetlink: call validate_linkmsg in rtnl_create_link testing commit 8ac106aade8f496713e760550f0bdcaa18bc6f9a gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 4f92523da0ba30e0f5c78cde72d565de2e44b5321b0d988ccf843c54de47a043 all runs: crashed: possible deadlock in ext4_xattr_set_handle representative crash: possible deadlock in ext4_xattr_set_handle, types: [LOCKDEP] # git bisect good 8ac106aade8f496713e760550f0bdcaa18bc6f9a Bisecting: 72 revisions left to test after this (roughly 6 steps) [d3103fc0d1914ae21d717720a5c2131be4b42b24] md/raid5: fix miscalculation of 'end_sector' in raid5_read_one_chunk() testing commit d3103fc0d1914ae21d717720a5c2131be4b42b24 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 83668a72feaca5bb873e83a113c24bc6226cf23f0e3c437d6397eda63aebfc6b all runs: crashed: possible deadlock in ext4_xattr_set_handle representative crash: possible deadlock in ext4_xattr_set_handle, types: [LOCKDEP] # git bisect good d3103fc0d1914ae21d717720a5c2131be4b42b24 Bisecting: 36 revisions left to test after this (roughly 5 steps) [19750d7b575a228e2e696654486e52ebd51502d2] regmap: Account for register length when chunking testing commit 19750d7b575a228e2e696654486e52ebd51502d2 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 96dc90a9ba3348eae54fa1f1e762c74c75c35128049176cd9f4b30294e97b055 all runs: OK false negative chance: 0.000 # git bisect bad 19750d7b575a228e2e696654486e52ebd51502d2 Bisecting: 17 revisions left to test after this (roughly 4 steps) [538d8504859f88860930eebf327c8fbc2a4273ed] usb: cdns3: fix NCM gadget RX speed 20x slow than expection at iMX8QM testing commit 538d8504859f88860930eebf327c8fbc2a4273ed gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 55f7f820d502e0211da809b4afe8ed4e1363eb7fbe3910a28dd863f86934f73f all runs: crashed: possible deadlock in ext4_xattr_set_handle representative crash: possible deadlock in ext4_xattr_set_handle, types: [LOCKDEP] # git bisect good 538d8504859f88860930eebf327c8fbc2a4273ed Bisecting: 8 revisions left to test after this (roughly 3 steps) [a8c3024c3e463733ec73839933e8d300ac9b052d] ext4: disallow ea_inodes with extended attributes testing commit a8c3024c3e463733ec73839933e8d300ac9b052d gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 26b684cded6938e95557ced7051e9f9c3aba55cc4e3de8cbea5ec0fad8a47878 all runs: OK false negative chance: 0.000 # git bisect bad a8c3024c3e463733ec73839933e8d300ac9b052d Bisecting: 4 revisions left to test after this (roughly 2 steps) [30bacfd8caf6374cff352bd72a07f2e2778b5325] selftests: mptcp: connect: skip if MPTCP is not supported testing commit 30bacfd8caf6374cff352bd72a07f2e2778b5325 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 4c840247b0d4123ac058997ccac210decd145f4877f6a74bfbdcfe84d4d90cb9 all runs: crashed: possible deadlock in ext4_xattr_set_handle representative crash: possible deadlock in ext4_xattr_set_handle, types: [LOCKDEP] # git bisect good 30bacfd8caf6374cff352bd72a07f2e2778b5325 Bisecting: 2 revisions left to test after this (roughly 1 step) [efa3fe247d6b2f62ebd979646b2c9ca1b11d9b4c] selftests: mptcp: sockopt: skip if MPTCP is not supported testing commit efa3fe247d6b2f62ebd979646b2c9ca1b11d9b4c gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 4c840247b0d4123ac058997ccac210decd145f4877f6a74bfbdcfe84d4d90cb9 all runs: crashed: possible deadlock in ext4_xattr_set_handle representative crash: possible deadlock in ext4_xattr_set_handle, types: [LOCKDEP] # git bisect good efa3fe247d6b2f62ebd979646b2c9ca1b11d9b4c Bisecting: 0 revisions left to test after this (roughly 1 step) [39a66e7a2987b2e90e5779f98520d921181b1a05] ext4: set lockdep subclass for the ea_inode in ext4_xattr_inode_cache_find() testing commit 39a66e7a2987b2e90e5779f98520d921181b1a05 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 11c51347b8c1aa366de5fdb3e654db2be50b5ddfbb29e482a2c344ad19671865 all runs: OK false negative chance: 0.000 # git bisect bad 39a66e7a2987b2e90e5779f98520d921181b1a05 Bisecting: 0 revisions left to test after this (roughly 0 steps) [bdbfbb7d5057c738b152772f4c7697cee06eaf50] ext4: add EA_INODE checking to ext4_iget() testing commit bdbfbb7d5057c738b152772f4c7697cee06eaf50 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 7f60aca0f54e7c70d508f4c92ec2a5bf27759b33fce2ef7ce7ff4df7f6f40df7 all runs: OK false negative chance: 0.000 # git bisect bad bdbfbb7d5057c738b152772f4c7697cee06eaf50 bdbfbb7d5057c738b152772f4c7697cee06eaf50 is the first bad commit commit bdbfbb7d5057c738b152772f4c7697cee06eaf50 Author: Theodore Ts'o Date: Tue May 23 23:49:48 2023 -0400 ext4: add EA_INODE checking to ext4_iget() commit b3e6bcb94590dea45396b9481e47b809b1be4afa upstream. Add a new flag, EXT4_IGET_EA_INODE which indicates whether the inode is expected to have the EA_INODE flag or not. If the flag is not set/clear as expected, then fail the iget() operation and mark the file system as corrupted. This commit also makes the ext4_iget() always perform the is_bad_inode() check even when the inode is already inode cache. This allows us to remove the is_bad_inode() check from the callers of ext4_iget() in the ea_inode code. Reported-by: syzbot+cbb68193bdb95af4340a@syzkaller.appspotmail.com Reported-by: syzbot+62120febbd1ee3c3c860@syzkaller.appspotmail.com Reported-by: syzbot+edce54daffee36421b4c@syzkaller.appspotmail.com Cc: stable@kernel.org Signed-off-by: Theodore Ts'o Link: https://lore.kernel.org/r/20230524034951.779531-2-tytso@mit.edu Signed-off-by: Theodore Ts'o Signed-off-by: Greg Kroah-Hartman fs/ext4/ext4.h | 3 ++- fs/ext4/inode.c | 31 ++++++++++++++++++++++++++----- fs/ext4/xattr.c | 36 +++++++----------------------------- 3 files changed, 35 insertions(+), 35 deletions(-) accumulated error probability: 0.00 culprit signature: 7f60aca0f54e7c70d508f4c92ec2a5bf27759b33fce2ef7ce7ff4df7f6f40df7 parent signature: 4c840247b0d4123ac058997ccac210decd145f4877f6a74bfbdcfe84d4d90cb9 revisions tested: 18, total time: 2h47m32.831546644s (build: 1h20m40.186978143s, test: 1h23m52.989252039s) first good commit: bdbfbb7d5057c738b152772f4c7697cee06eaf50 ext4: add EA_INODE checking to ext4_iget() recipients (to): ["gregkh@linuxfoundation.org" "tytso@mit.edu"] recipients (cc): []