ci starts bisection 2023-05-08 03:27:08.090420046 +0000 UTC m=+167058.352071872 bisecting cause commit starting from 83e5775d7afda68f6d7576d21f7a080fbfeecc4f building syzkaller on 90c93c40627cb0ac3c2c7cb99d807fd4c137adcb ensuring issue is reproducible on original commit 83e5775d7afda68f6d7576d21f7a080fbfeecc4f testing commit 83e5775d7afda68f6d7576d21f7a080fbfeecc4f gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: cd37ee4cea1b5eda4f6ff427f594a48279f5fa68e328350ad34a4cf53f3a2ea7 all runs: crashed: possible deadlock in ext4_xattr_inode_iget 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: 5c569f07b0b9697a7db4ddaacaeef6e6ab19803b1c2c9014c5bd9d08a350fe0f all runs: crashed: possible deadlock in ext4_xattr_inode_iget testing release v6.2 testing commit c9c3395d5e3dcc6daee66c6908354d47bf98cb0c gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 3a379a4cb4aa24cc9760199ba6a303e9684f1d865dbc1d811ecc71961721b553 all runs: crashed: possible deadlock in ext4_xattr_inode_iget testing release v6.1 testing commit 830b3c68c1fb1e9176028d02ef86f3cf76aa2476 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: e4624826b8197dd097008ce91e9444f3edbde869d50f76c0f6e3e2de627a9fd6 all runs: crashed: possible deadlock in ext4_xattr_inode_iget testing release v6.0 testing commit 4fe89d07dcc2804c8b562f6c7896a45643d34b2f gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 492849538bb952c4d84cf93e78c019dd767b0b26416e6263855a96d4b874dd68 all runs: crashed: possible deadlock in ext4_xattr_inode_iget testing release v5.19 testing commit 3d7cb6b04c3f3115719235cc6866b10326de34cd gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 32f2d4b06b959a067feabd56c8bb1d2352d89c0d6e61c0744ac5f77badb3fc23 all runs: crashed: possible deadlock in ext4_xattr_inode_iget testing release v5.18 testing commit 4b0986a3613c92f4ec1bdc7f60ec66fea135991f gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: f08315b163c6f4d67521ced91d6f4e72f99b8ccce848ad3abbd6814c129c7b9d all runs: crashed: possible deadlock in ext4_xattr_inode_iget testing release v5.17 testing commit f443e374ae131c168a065ea1748feac6b2e76613 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 24c480f71b35b0a27eed0368eeb84a311b90e9ff2fc8df919f798a55792c38de all runs: crashed: possible deadlock in ext4_xattr_inode_iget testing release v5.16 testing commit df0cc57e057f18e44dac8e6c18aba47ab53202f9 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: a2778a2b2bbc1ecddd02e594f15d8c0858f8650c731f996eab515e920e0aea4e all runs: crashed: possible deadlock in ext4_xattr_inode_iget testing release v5.15 testing commit 8bb7eca972ad531c9b149c0a51ab43a417385813 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: a190d954f8baa7f731f59022be9fd99ba761985e6147027ba09d2c1473a0bd72 all runs: crashed: possible deadlock in ext4_xattr_inode_iget testing release v5.14 testing commit 7d2a07b769330c34b4deabeed939325c77a7ec2f gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 04965f38feff136c53e7ea1d3c54331a2a48b39257d04aeda12da321cd1d44b9 all runs: crashed: possible deadlock in ext4_xattr_inode_iget testing release v5.13 testing commit 62fb9874f5da54fdb243003b386128037319b219 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: ba9626dd8149cbbcfaf3b11a89fdcbda89170774c958f6b8b52f359a567531af all runs: crashed: possible deadlock in ext4_xattr_inode_iget testing release v5.12 testing commit 9f4ad9e425a1d3b6a34617b8ea226d56a119a717 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 4a4fbc685c41d6b0ac5fde8d3b297fe0f890160e8ff7c3eb28020bd5ac454b71 all runs: crashed: possible deadlock in ext4_xattr_inode_iget testing release v5.11 testing commit f40ddce88593482919761f74910f42f4b84c004b gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: a436731bc28ba34acf72fc1125c4cdfc77cb4887919cfcebf6eca50e8b0429dc all runs: OK # git bisect start 9f4ad9e425a1d3b6a34617b8ea226d56a119a717 f40ddce88593482919761f74910f42f4b84c004b Bisecting: 6798 revisions left to test after this (roughly 13 steps) [d99676af540c2dc829999928fb81c58c80a1dce4] Merge tag 'drm-next-2021-02-19' of git://anongit.freedesktop.org/drm/drm testing commit d99676af540c2dc829999928fb81c58c80a1dce4 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: ea0089e5de07d43c402c168ea6a3410d953d4decc838efce07cdf43f7495b9cf run #0: OK run #1: OK run #2: OK run #3: OK run #4: OK run #5: OK run #6: OK run #7: OK run #8: boot failed: WARNING in kvm_wait run #9: boot failed: WARNING in kvm_wait # git bisect good d99676af540c2dc829999928fb81c58c80a1dce4 Bisecting: 3476 revisions left to test after this (roughly 12 steps) [69264b4a43aff7307283e2bae29e9305ab6b7d47] sparc: sparc64_defconfig: remove duplicate CONFIGs testing commit 69264b4a43aff7307283e2bae29e9305ab6b7d47 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 013892d47f0277005844e1e847f1600e27c70cf2ce99eb757d02d3528edfbdc3 run #0: OK run #1: OK run #2: OK run #3: OK run #4: boot failed: WARNING in kvm_wait run #5: boot failed: WARNING in kvm_wait run #6: boot failed: WARNING in kvm_wait run #7: boot failed: WARNING in kvm_wait run #8: boot failed: WARNING in kvm_wait run #9: boot failed: WARNING in kvm_wait # git bisect good 69264b4a43aff7307283e2bae29e9305ab6b7d47 Bisecting: 1737 revisions left to test after this (roughly 11 steps) [f296bfd5cd04cbb49b8fc9585adc280ab2b58624] Merge tag 'nfs-for-5.12-2' of git://git.linux-nfs.org/projects/anna/linux-nfs testing commit f296bfd5cd04cbb49b8fc9585adc280ab2b58624 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: adfa6c93ba36d1b96e4a0223db44e51568011e1a5526b123b175abb210a72516 run #0: crashed: possible deadlock in ext4_xattr_inode_iget run #1: basic kernel testing failed: WARNING in kvm_wait run #2: basic kernel testing failed: failed to copy syz-execprog to VM: timedout after 1m0s ["scp" "-P" "22" "-F" "/dev/null" "-o" "UserKnownHostsFile=/dev/null" "-o" "BatchMode=yes" "-o" "IdentitiesOnly=yes" "-o" "StrictHostKeyChecking=no" "-o" "ConnectTimeout=10" "/syzkaller/jobs/linux/gopath/src/github.com/google/syzkaller/bin/linux_amd64/syz-execprog" "root@10.128.10.25:./syz-execprog"] Warning: Permanently added '10.128.10.25' (ECDSA) to the list of known hosts. run #3: boot failed: WARNING in kvm_wait run #4: boot failed: WARNING in kvm_wait run #5: boot failed: WARNING in kvm_wait run #6: boot failed: WARNING in kvm_wait run #7: boot failed: WARNING in kvm_wait run #8: boot failed: WARNING in kvm_wait run #9: boot failed: WARNING in kvm_wait # git bisect bad f296bfd5cd04cbb49b8fc9585adc280ab2b58624 Bisecting: 875 revisions left to test after this (roughly 10 steps) [efba6d3a7c4bb59f0750609fae0f9644d82304b6] Merge tag 'for-5.12/io_uring-2021-02-25' of git://git.kernel.dk/linux-block testing commit efba6d3a7c4bb59f0750609fae0f9644d82304b6 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: a32017a3570e83070c7b36d313c130a6bb01700d8344f576f9f646fb3953ebed all runs: crashed: possible deadlock in ext4_xattr_inode_iget # git bisect bad efba6d3a7c4bb59f0750609fae0f9644d82304b6 Bisecting: 431 revisions left to test after this (roughly 9 steps) [64427985c76fcb54c783de617edf353009499a03] lib: stackdepot: fix ignoring return value warning testing commit 64427985c76fcb54c783de617edf353009499a03 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: a743b79409dca91af691a55c7dea46f58d9f3ee7f59d3b9583e10bd9f64e5417 run #0: OK run #1: OK run #2: OK run #3: OK run #4: OK run #5: OK run #6: boot failed: WARNING in kvm_wait run #7: boot failed: WARNING in kvm_wait run #8: boot failed: WARNING in kvm_wait run #9: boot failed: WARNING in kvm_wait # git bisect good 64427985c76fcb54c783de617edf353009499a03 Bisecting: 213 revisions left to test after this (roughly 8 steps) [1c9077cdecd027714736e70704da432ee2b946bb] Merge tag 'nfs-for-5.12-1' of git://git.linux-nfs.org/projects/anna/linux-nfs testing commit 1c9077cdecd027714736e70704da432ee2b946bb gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: a1f4a24f9b733865bc8851c21ee32dbfe467875bc9936c5c8ffeaa645d0ec20e run #0: crashed: possible deadlock in ext4_xattr_inode_iget run #1: crashed: possible deadlock in ext4_xattr_inode_iget run #2: crashed: possible deadlock in ext4_xattr_inode_iget run #3: crashed: possible deadlock in ext4_xattr_inode_iget run #4: crashed: possible deadlock in ext4_xattr_inode_iget run #5: crashed: possible deadlock in ext4_xattr_inode_iget run #6: crashed: possible deadlock in ext4_xattr_inode_iget run #7: basic kernel testing failed: failed to copy syz-execprog to VM: timedout after 1m0s ["scp" "-P" "22" "-F" "/dev/null" "-o" "UserKnownHostsFile=/dev/null" "-o" "BatchMode=yes" "-o" "IdentitiesOnly=yes" "-o" "StrictHostKeyChecking=no" "-o" "ConnectTimeout=10" "/syzkaller/jobs/linux/gopath/src/github.com/google/syzkaller/bin/linux_amd64/syz-execprog" "root@10.128.10.16:./syz-execprog"] Warning: Permanently added '10.128.10.16' (ECDSA) to the list of known hosts. run #8: boot failed: WARNING in kvm_wait run #9: boot failed: WARNING in kvm_wait # git bisect bad 1c9077cdecd027714736e70704da432ee2b946bb Bisecting: 83 revisions left to test after this (roughly 7 steps) [fdce29602f865b016012eadeaec99800da916d3d] Merge tag 'drm-next-2021-02-26' of git://anongit.freedesktop.org/drm/drm testing commit fdce29602f865b016012eadeaec99800da916d3d gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: ada366ebfe9e5b0ff1a8d9ed1c7e159bcced04530705c57981b103a3bd07f81c run #0: OK run #1: OK run #2: OK run #3: OK run #4: OK run #5: OK run #6: boot failed: WARNING in kvm_wait run #7: boot failed: WARNING in kvm_wait run #8: boot failed: WARNING in kvm_wait run #9: boot failed: WARNING in kvm_wait # git bisect good fdce29602f865b016012eadeaec99800da916d3d Bisecting: 37 revisions left to test after this (roughly 5 steps) [ffc1759676bed0bff046427dd7d00cb68660190d] Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost testing commit ffc1759676bed0bff046427dd7d00cb68660190d gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: b8427089e0c7e4bb3537638778628b1081000520a36ce783efc698bddea2a962 run #0: crashed: possible deadlock in ext4_xattr_inode_iget run #1: crashed: possible deadlock in ext4_xattr_inode_iget run #2: crashed: possible deadlock in ext4_xattr_inode_iget run #3: basic kernel testing failed: failed to copy syz-execprog to VM: timedout after 1m0s ["scp" "-P" "22" "-F" "/dev/null" "-o" "UserKnownHostsFile=/dev/null" "-o" "BatchMode=yes" "-o" "IdentitiesOnly=yes" "-o" "StrictHostKeyChecking=no" "-o" "ConnectTimeout=10" "/syzkaller/jobs/linux/gopath/src/github.com/google/syzkaller/bin/linux_amd64/syz-execprog" "root@10.128.1.157:./syz-execprog"] run #4: boot failed: WARNING in kvm_wait run #5: boot failed: WARNING in kvm_wait run #6: boot failed: WARNING in kvm_wait run #7: boot failed: WARNING in kvm_wait run #8: boot failed: WARNING in kvm_wait run #9: boot failed: WARNING in kvm_wait # git bisect bad ffc1759676bed0bff046427dd7d00cb68660190d Bisecting: 22 revisions left to test after this (roughly 5 steps) [8000a6b602a4aec0f54a9131623a407d6d44a605] virito-pci-modern: rename map_capability() to vp_modern_map_capability() testing commit 8000a6b602a4aec0f54a9131623a407d6d44a605 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: e98267864220b02f17914330225f22d740b7478b341f792cdbb6e60f890775e6 all runs: crashed: possible deadlock in ext4_xattr_inode_iget # git bisect bad 8000a6b602a4aec0f54a9131623a407d6d44a605 Bisecting: 11 revisions left to test after this (roughly 4 steps) [117a9de2826ccb0d338afb03f07223b3cb789371] virtio-pci-modern: factor out modern device initialization logic testing commit 117a9de2826ccb0d338afb03f07223b3cb789371 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 6f13257eaabc073d6d4f2e8a83073a60ebbf1f1903d90a3a9c97c39115f8000f all runs: crashed: possible deadlock in ext4_xattr_inode_iget # git bisect bad 117a9de2826ccb0d338afb03f07223b3cb789371 Bisecting: 5 revisions left to test after this (roughly 3 steps) [903f7bcaedb84ca47998e609015a34ddde93742e] vdpa: Enable a user to add and delete a vdpa device testing commit 903f7bcaedb84ca47998e609015a34ddde93742e gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 96fddc1581c5db165df0693ca30e600596d7bd645a5304549a37a3fcb0b07697 all runs: OK # git bisect good 903f7bcaedb84ca47998e609015a34ddde93742e Bisecting: 2 revisions left to test after this (roughly 2 steps) [489084dd3f7e4bd649814bd62839aef4456659e8] vhost scsi: alloc vhost_scsi with kvzalloc() to avoid delay testing commit 489084dd3f7e4bd649814bd62839aef4456659e8 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 6d52f5f67aacaecfa226b05215d5e8dcff343ee002a18b7197452c08aece2ac9 all runs: crashed: possible deadlock in ext4_xattr_inode_iget # git bisect bad 489084dd3f7e4bd649814bd62839aef4456659e8 Bisecting: 0 revisions left to test after this (roughly 1 step) [a3c06ae158dd6fa8336157c31d9234689d068d02] vdpa_sim_net: Add support for user supported devices testing commit a3c06ae158dd6fa8336157c31d9234689d068d02 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 6d52f5f67aacaecfa226b05215d5e8dcff343ee002a18b7197452c08aece2ac9 all runs: crashed: possible deadlock in ext4_xattr_inode_iget # git bisect bad a3c06ae158dd6fa8336157c31d9234689d068d02 Bisecting: 0 revisions left to test after this (roughly 0 steps) [bc0d90ee021f1baecd6aaa010d787eb373aa74dd] vdpa: Enable user to query vdpa device info testing commit bc0d90ee021f1baecd6aaa010d787eb373aa74dd gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: c3a37cbbe11260b96aeb4052b830edbddcb9bfe289fcac669354a24df0f4e92e all runs: OK # git bisect good bc0d90ee021f1baecd6aaa010d787eb373aa74dd a3c06ae158dd6fa8336157c31d9234689d068d02 is the first bad commit commit a3c06ae158dd6fa8336157c31d9234689d068d02 Author: Parav Pandit Date: Tue Jan 5 12:32:03 2021 +0200 vdpa_sim_net: Add support for user supported devices Enable user to create vdpasim net simulate devices. Show vdpa management device that supports creating, deleting vdpa devices. $ vdpa mgmtdev show vdpasim_net: supported_classes net $ vdpa mgmtdev show -jp { "show": { "vdpasim_net": { "supported_classes": { "net" } } } Create a vdpa device of type networking named as "foo2" from the management device vdpasim: $ vdpa dev add mgmtdev vdpasim_net name foo2 Show the newly created vdpa device by its name: $ vdpa dev show foo2 foo2: type network mgmtdev vdpasim_net vendor_id 0 max_vqs 2 max_vq_size 256 $ vdpa dev show foo2 -jp { "dev": { "foo2": { "type": "network", "mgmtdev": "vdpasim_net", "vendor_id": 0, "max_vqs": 2, "max_vq_size": 256 } } } Delete the vdpa device after its use: $ vdpa dev del foo2 Signed-off-by: Parav Pandit Reviewed-by: Eli Cohen Acked-by: Jason Wang Link: https://lore.kernel.org/r/20210105103203.82508-7-parav@nvidia.com Signed-off-by: Michael S. Tsirkin drivers/vdpa/vdpa_sim/vdpa_sim.c | 3 +- drivers/vdpa/vdpa_sim/vdpa_sim.h | 2 + drivers/vdpa/vdpa_sim/vdpa_sim_net.c | 96 ++++++++++++++++++++++++++---------- 3 files changed, 75 insertions(+), 26 deletions(-) culprit signature: 6d52f5f67aacaecfa226b05215d5e8dcff343ee002a18b7197452c08aece2ac9 parent signature: c3a37cbbe11260b96aeb4052b830edbddcb9bfe289fcac669354a24df0f4e92e revisions tested: 28, total time: 7h11m22.810893821s (build: 4h27m40.876144024s, test: 2h39m2.409078595s) first bad commit: a3c06ae158dd6fa8336157c31d9234689d068d02 vdpa_sim_net: Add support for user supported devices recipients (to): ["elic@nvidia.com" "jasowang@redhat.com" "mst@redhat.com" "parav@nvidia.com"] recipients (cc): [] crash: possible deadlock in ext4_xattr_inode_iget EXT4-fs (loop0): mounted filesystem without journal. Opts: inode_readahead_blks=0x0000000000000000,nogrpid,debug_want_extra_isize=0x0000000000000066,dioread_nolock,max_batch_time=0x0000000000000008,resgid=0x0000000000000000,,errors=continue. Quota mode: writeback. ====================================================== WARNING: possible circular locking dependency detected 5.11.0-syzkaller #0 Not tainted ------------------------------------------------------ syz-executor.0/5864 is trying to acquire lock: ffff88802ed10e88 (&ea_inode->i_rwsem#10/1){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:773 [inline] ffff88802ed10e88 (&ea_inode->i_rwsem#10/1){+.+.}-{3:3}, at: ext4_xattr_inode_iget+0x1cd/0x530 fs/ext4/xattr.c:427 but task is already holding lock: ffff88802ed17078 (&ei->i_data_sem){++++}-{3:3}, at: ext4_setattr+0x1144/0x1c90 fs/ext4/inode.c:5472 which lock already depends on the new lock. the existing dependency chain (in reverse order) is: -> #1 (&ei->i_data_sem){++++}-{3:3}: down_write+0x8d/0x150 kernel/locking/rwsem.c:1406 ext4_update_i_disksize fs/ext4/ext4.h:3273 [inline] ext4_xattr_inode_write fs/ext4/xattr.c:1389 [inline] ext4_xattr_inode_lookup_create fs/ext4/xattr.c:1525 [inline] ext4_xattr_set_entry+0x2abe/0x36d0 fs/ext4/xattr.c:1649 ext4_xattr_ibody_set+0x60/0x260 fs/ext4/xattr.c:2224 ext4_xattr_set_handle+0x6da/0x1070 fs/ext4/xattr.c:2380 ext4_xattr_set+0x11d/0x2c0 fs/ext4/xattr.c:2493 __vfs_setxattr+0xcf/0x120 fs/xattr.c:177 __vfs_setxattr_noperm+0xe6/0x470 fs/xattr.c:208 vfs_setxattr+0x10c/0x2c0 fs/xattr.c:291 setxattr+0x14e/0x250 fs/xattr.c:553 path_setxattr+0x115/0x130 fs/xattr.c:572 __do_sys_setxattr fs/xattr.c:587 [inline] __se_sys_setxattr fs/xattr.c:583 [inline] __x64_sys_setxattr+0xbb/0x150 fs/xattr.c:583 do_syscall_64+0x2d/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 -> #0 (&ea_inode->i_rwsem#10/1){+.+.}-{3:3}: check_prev_add kernel/locking/lockdep.c:2868 [inline] check_prevs_add kernel/locking/lockdep.c:2993 [inline] validate_chain kernel/locking/lockdep.c:3608 [inline] __lock_acquire+0x2b2a/0x5500 kernel/locking/lockdep.c:4832 lock_acquire kernel/locking/lockdep.c:5442 [inline] lock_acquire+0x1a8/0x720 kernel/locking/lockdep.c:5407 down_write+0x8d/0x150 kernel/locking/rwsem.c:1406 inode_lock include/linux/fs.h:773 [inline] ext4_xattr_inode_iget+0x1cd/0x530 fs/ext4/xattr.c:427 ext4_xattr_inode_get+0x15a/0x690 fs/ext4/xattr.c:475 ext4_xattr_move_to_block fs/ext4/xattr.c:2569 [inline] ext4_xattr_make_inode_space fs/ext4/xattr.c:2670 [inline] ext4_expand_extra_isize_ea+0xc07/0x1570 fs/ext4/xattr.c:2762 __ext4_expand_extra_isize+0x26f/0x3e0 fs/ext4/inode.c:5796 ext4_try_to_expand_extra_isize fs/ext4/inode.c:5839 [inline] __ext4_mark_inode_dirty+0x42b/0x6e0 fs/ext4/inode.c:5916 ext4_setattr+0x11b0/0x1c90 fs/ext4/inode.c:5474 notify_change+0x748/0xd90 fs/attr.c:336 do_truncate+0xe3/0x190 fs/open.c:64 handle_truncate fs/namei.c:2912 [inline] do_open fs/namei.c:3258 [inline] path_openat+0x1843/0x21d0 fs/namei.c:3371 do_filp_open+0x16d/0x390 fs/namei.c:3398 do_sys_openat2+0x11e/0x360 fs/open.c:1172 do_sys_open fs/open.c:1188 [inline] __do_sys_creat fs/open.c:1262 [inline] __se_sys_creat fs/open.c:1256 [inline] __x64_sys_creat+0xc3/0x110 fs/open.c:1256 do_syscall_64+0x2d/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 other info that might help us debug this: Possible unsafe locking scenario: CPU0 CPU1 ---- ---- lock(&ei->i_data_sem); lock(&ea_inode->i_rwsem#10/1); lock(&ei->i_data_sem); lock(&ea_inode->i_rwsem#10/1); *** DEADLOCK *** 5 locks held by syz-executor.0/5864: #0: ffff888021bd0460 (sb_writers#5){.+.+}-{0:0}, at: do_open fs/namei.c:3247 [inline] #0: ffff888021bd0460 (sb_writers#5){.+.+}-{0:0}, at: path_openat+0x1618/0x21d0 fs/namei.c:3371 #1: ffff88802ed17288 (&sb->s_type->i_mutex_key#10){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:773 [inline] #1: ffff88802ed17288 (&sb->s_type->i_mutex_key#10){+.+.}-{3:3}, at: do_truncate+0xd4/0x190 fs/open.c:62 #2: ffff88802ed17110 (&ei->i_mmap_sem){++++}-{3:3}, at: ext4_setattr+0xb30/0x1c90 fs/ext4/inode.c:5431 #3: ffff88802ed17078 (&ei->i_data_sem){++++}-{3:3}, at: ext4_setattr+0x1144/0x1c90 fs/ext4/inode.c:5472 #4: ffff88802ed16ec8 (&ei->xattr_sem){++++}-{3:3}, at: ext4_write_trylock_xattr fs/ext4/xattr.h:149 [inline] #4: ffff88802ed16ec8 (&ei->xattr_sem){++++}-{3:3}, at: ext4_try_to_expand_extra_isize fs/ext4/inode.c:5836 [inline] #4: ffff88802ed16ec8 (&ei->xattr_sem){++++}-{3:3}, at: __ext4_mark_inode_dirty+0x3b6/0x6e0 fs/ext4/inode.c:5916 stack backtrace: CPU: 0 PID: 5864 Comm: syz-executor.0 Not tainted 5.11.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/14/2023 Call Trace: __dump_stack lib/dump_stack.c:79 [inline] dump_stack+0x9a/0xcc lib/dump_stack.c:120 check_noncircular+0x25f/0x2e0 kernel/locking/lockdep.c:2117 check_prev_add kernel/locking/lockdep.c:2868 [inline] check_prevs_add kernel/locking/lockdep.c:2993 [inline] validate_chain kernel/locking/lockdep.c:3608 [inline] __lock_acquire+0x2b2a/0x5500 kernel/locking/lockdep.c:4832 lock_acquire kernel/locking/lockdep.c:5442 [inline] lock_acquire+0x1a8/0x720 kernel/locking/lockdep.c:5407 down_write+0x8d/0x150 kernel/locking/rwsem.c:1406 inode_lock include/linux/fs.h:773 [inline] ext4_xattr_inode_iget+0x1cd/0x530 fs/ext4/xattr.c:427 ext4_xattr_inode_get+0x15a/0x690 fs/ext4/xattr.c:475 ext4_xattr_move_to_block fs/ext4/xattr.c:2569 [inline] ext4_xattr_make_inode_space fs/ext4/xattr.c:2670 [inline] ext4_expand_extra_isize_ea+0xc07/0x1570 fs/ext4/xattr.c:2762 __ext4_expand_extra_isize+0x26f/0x3e0 fs/ext4/inode.c:5796 ext4_try_to_expand_extra_isize fs/ext4/inode.c:5839 [inline] __ext4_mark_inode_dirty+0x42b/0x6e0 fs/ext4/inode.c:5916 ext4_setattr+0x11b0/0x1c90 fs/ext4/inode.c:5474 notify_change+0x748/0xd90 fs/attr.c:336 do_truncate+0xe3/0x190 fs/open.c:64 handle_truncate fs/namei.c:2912 [inline] do_open fs/namei.c:3258 [inline] path_openat+0x1843/0x21d0 fs/namei.c:3371 do_filp_open+0x16d/0x390 fs/namei.c:3398 do_sys_openat2+0x11e/0x360 fs/open.c:1172 do_sys_open fs/open.c:1188 [inline] __do_sys_creat fs/open.c:1262 [inline] __se_sys_creat fs/open.c:1256 [inline] __x64_sys_creat+0xc3/0x110 fs/open.c:1256 do_syscall_64+0x2d/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x7f360eea5169 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 00 00 90 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f360e217168 EFLAGS: 00000246 ORIG_RAX: 0000000000000055 RAX: ffffffffffffffda RBX: 00007f360efc4f80 RCX: 00007f360eea5169 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000400 RBP: 00007f360ef00ca1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffe164d983f R14: 00007f360e217300 R15: 0000000000022000