ci starts bisection 2023-06-22 09:50:18.955819734 +0000 UTC m=+184084.617306150 bisecting cause commit starting from f8dba31b0a826e691949cd4fdfa5c30defaac8c5 building syzkaller on a4ae4f428721da42ac15f07d6f3b54584dedee27 ensuring issue is reproducible on original commit f8dba31b0a826e691949cd4fdfa5c30defaac8c5 testing commit f8dba31b0a826e691949cd4fdfa5c30defaac8c5 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 537ea0d8a45fbc4e687f25b72299ec5ba9806eb2beccfecfb975adc0efe3b565 run #0: crashed: possible deadlock in do_user_addr_fault run #1: crashed: possible deadlock in do_user_addr_fault run #2: crashed: possible deadlock in do_user_addr_fault run #3: crashed: possible deadlock in do_user_addr_fault run #4: crashed: possible deadlock in do_user_addr_fault run #5: crashed: possible deadlock in do_user_addr_fault run #6: crashed: possible deadlock in do_user_addr_fault run #7: crashed: possible deadlock in do_user_addr_fault run #8: crashed: possible deadlock in do_user_addr_fault run #9: crashed: possible deadlock in do_user_addr_fault run #10: crashed: possible deadlock in do_user_addr_fault run #11: crashed: possible deadlock in filemap_fault run #12: crashed: possible deadlock in do_user_addr_fault run #13: crashed: possible deadlock in do_user_addr_fault run #14: crashed: possible deadlock in do_user_addr_fault run #15: crashed: possible deadlock in do_user_addr_fault run #16: crashed: possible deadlock in do_user_addr_fault run #17: crashed: possible deadlock in do_user_addr_fault run #18: crashed: possible deadlock in do_user_addr_fault run #19: crashed: possible deadlock in do_user_addr_fault 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: d644b1485d1ef424cf7f169ba85145318e2e8164c07c23732366bd8f264927da all runs: crashed: possible deadlock in do_user_addr_fault 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: 043307ed57b8c19eda3d2bd2e7df9efb5a17a968a519193732aea213fea4b264 run #0: crashed: possible deadlock in filemap_fault run #1: crashed: possible deadlock in do_user_addr_fault run #2: crashed: possible deadlock in do_user_addr_fault run #3: crashed: possible deadlock in do_user_addr_fault run #4: crashed: possible deadlock in do_user_addr_fault run #5: crashed: possible deadlock in do_user_addr_fault run #6: crashed: possible deadlock in do_user_addr_fault run #7: crashed: possible deadlock in do_user_addr_fault run #8: crashed: possible deadlock in do_user_addr_fault run #9: crashed: possible deadlock in do_user_addr_fault 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: 36defcd0b5d74896eb4b98565663d309180f6316ef590661335d0058326110a1 run #0: crashed: possible deadlock in do_user_addr_fault run #1: crashed: possible deadlock in filemap_fault run #2: crashed: possible deadlock in do_user_addr_fault run #3: crashed: possible deadlock in do_user_addr_fault run #4: crashed: possible deadlock in do_user_addr_fault run #5: crashed: possible deadlock in do_user_addr_fault run #6: crashed: possible deadlock in do_user_addr_fault run #7: crashed: possible deadlock in do_user_addr_fault run #8: crashed: possible deadlock in do_user_addr_fault run #9: crashed: possible deadlock in do_user_addr_fault 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: 0a5977ed5aa039854830e647e5ae3bdbe4161c5d83ebe16b7957e3125e073650 all runs: crashed: possible deadlock in do_user_addr_fault 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: 9c78717f3e319854b14d9c8a82a3eaf57015234a0822da9d76ac89507a73f9b2 all runs: crashed: possible deadlock in do_user_addr_fault 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: 78b7e7623df7be6c34bfca4522a924687024bafb5402f81d01f7ba7eb0b5a72b all runs: crashed: possible deadlock in do_user_addr_fault 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: 66e8474c947b43ecfb7a3d4b0e46acf126d4ada6027dff040b40f868d0843366 all runs: crashed: possible deadlock in do_user_addr_fault 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 run #0: crashed: possible deadlock in do_user_addr_fault run #1: crashed: possible deadlock in do_user_addr_fault run #2: crashed: possible deadlock in do_user_addr_fault run #3: crashed: possible deadlock in do_user_addr_fault run #4: crashed: possible deadlock in do_user_addr_fault run #5: crashed: possible deadlock in do_user_addr_fault run #6: crashed: possible deadlock in do_user_addr_fault run #7: crashed: possible deadlock in do_user_addr_fault run #8: OK run #9: OK testing release v5.15 testing commit 8bb7eca972ad531c9b149c0a51ab43a417385813 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 9fe65d9b1fe69b6fb6d0d1d5f703898e920a1964caa356b3705d7b5b44178c20 all runs: crashed: possible deadlock in do_user_addr_fault testing release v5.14 testing commit 7d2a07b769330c34b4deabeed939325c77a7ec2f gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 811ffe2e3d43dd288f8ea75154433d11035f9e8ff7a574fc92f6d1ea8de56568 all runs: OK too many neither good nor bad results, skipping this commit # git bisect start 8bb7eca972ad531c9b149c0a51ab43a417385813 7d2a07b769330c34b4deabeed939325c77a7ec2f Bisecting: 6693 revisions left to test after this (roughly 13 steps) [477f70cd2a67904e04c2c2b9bd0fa2e95222f2f6] Merge tag 'drm-next-2021-08-31-1' of git://anongit.freedesktop.org/drm/drm testing commit 477f70cd2a67904e04c2c2b9bd0fa2e95222f2f6 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: eb55a48d461f0cbd1a7727c0e45698113769a38eeecd5d35abb185fcf77340f3 all runs: OK too many neither good nor bad results, skipping this commit # git bisect good 477f70cd2a67904e04c2c2b9bd0fa2e95222f2f6 Bisecting: 3317 revisions left to test after this (roughly 12 steps) [626bf91a292e2035af5b9d9cce35c5c138dfe06d] Merge tag 'net-5.15-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net testing commit 626bf91a292e2035af5b9d9cce35c5c138dfe06d gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: dd54f82394f68de98c1ac90ad6a1a632d0cd1d4cf4f9df136cc44f4bce53c748 all runs: crashed: possible deadlock in do_user_addr_fault # git bisect bad 626bf91a292e2035af5b9d9cce35c5c138dfe06d Bisecting: 1702 revisions left to test after this (roughly 11 steps) [23852bec534a1633dc08f4df88b8493ae99953a9] Merge tag 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma testing commit 23852bec534a1633dc08f4df88b8493ae99953a9 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 47baa57a940c79dfc7e67e215dd6f16787800094a849df17be3307df8162ac20 all runs: OK too many neither good nor bad results, skipping this commit # git bisect good 23852bec534a1633dc08f4df88b8493ae99953a9 Bisecting: 869 revisions left to test after this (roughly 10 steps) [55d1308bdff7341b778e5cf36220616a0dd6ab8f] cdrom: update uniform CD-ROM maintainership in MAINTAINERS file testing commit 55d1308bdff7341b778e5cf36220616a0dd6ab8f gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 2a2e524743ac55124e60a2fd0cf4d7fe46cdff5a387201b6970f3d6fedf39b16 all runs: OK too many neither good nor bad results, skipping this commit # git bisect good 55d1308bdff7341b778e5cf36220616a0dd6ab8f Bisecting: 434 revisions left to test after this (roughly 9 steps) [3754707bcc3e190e5dadc978d172b61e809cb3bd] Revert "memcg: enable accounting for file lock caches" testing commit 3754707bcc3e190e5dadc978d172b61e809cb3bd gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: dee4372f84eb50ee3158dc7e7c134a976389fe410f6ecdafa993a762d4edefc0 all runs: crashed: possible deadlock in do_user_addr_fault # git bisect bad 3754707bcc3e190e5dadc978d172b61e809cb3bd Bisecting: 200 revisions left to test after this (roughly 8 steps) [e07af2626643293fa16df655979e7963250abc63] Merge tag 'arc-5.15-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/vgupta/arc testing commit e07af2626643293fa16df655979e7963250abc63 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: b45c3466003971e6ab3ef06e10501fb6150eda2f36bc6c898e4fb2c65fa8308b run #0: basic kernel testing failed: failed to copy syz-execprog to VM: failed to run ["scp" "-P" "22" "-F" "/dev/null" "-o" "UserKnownHostsFile=/dev/null" "-o" "BatchMode=yes" "-o" "IdentitiesOnly=yes" "-o" "StrictHostKeyChecking=no" "-o" "ConnectTimeout=10" "-v" "/syzkaller/jobs/linux/gopath/src/github.com/google/syzkaller/bin/linux_amd64/syz-execprog" "root@10.128.10.47:./syz-execprog"]: exit status 1 Executing: program /usr/bin/ssh host 10.128.10.47, user root, command scp -v -t ./syz-execprog OpenSSH_8.4p1 Debian-5+deb11u1, OpenSSL 1.1.1n 15 Mar 2022 debug1: Reading configuration data /dev/null debug1: Connecting to 10.128.10.47 [10.128.10.47] port 22. debug1: connect to address 10.128.10.47 port 22: Connection timed out ssh: connect to host 10.128.10.47 port 22: Connection timed out lost connection run #1: crashed: possible deadlock in do_user_addr_fault run #2: crashed: possible deadlock in do_user_addr_fault run #3: crashed: possible deadlock in do_user_addr_fault run #4: crashed: possible deadlock in do_user_addr_fault run #5: crashed: possible deadlock in do_user_addr_fault run #6: crashed: possible deadlock in do_user_addr_fault run #7: crashed: possible deadlock in do_user_addr_fault run #8: crashed: possible deadlock in do_user_addr_fault run #9: crashed: possible deadlock in do_user_addr_fault # git bisect bad e07af2626643293fa16df655979e7963250abc63 Bisecting: 109 revisions left to test after this (roughly 7 steps) [f7464060f7ab9a2424428008f0ee9f1e267e410f] Merge git://github.com/Paragon-Software-Group/linux-ntfs3 testing commit f7464060f7ab9a2424428008f0ee9f1e267e410f gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 0ae96654b5bd0e3dcdf28c66d71f0a8e3c279ed5a0a265b7b6027fa427629ec5 all runs: OK too many neither good nor bad results, skipping this commit # git bisect good f7464060f7ab9a2424428008f0ee9f1e267e410f Bisecting: 55 revisions left to test after this (roughly 6 steps) [3fe617ccafd6f5bb33c2391d6f4eeb41c1fd0151] Enable '-Werror' by default for all kernel builds testing commit 3fe617ccafd6f5bb33c2391d6f4eeb41c1fd0151 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: b45c3466003971e6ab3ef06e10501fb6150eda2f36bc6c898e4fb2c65fa8308b run #0: crashed: possible deadlock in filemap_fault run #1: crashed: possible deadlock in do_user_addr_fault run #2: crashed: possible deadlock in do_user_addr_fault run #3: crashed: possible deadlock in do_user_addr_fault run #4: crashed: possible deadlock in do_user_addr_fault run #5: crashed: possible deadlock in do_user_addr_fault run #6: crashed: possible deadlock in do_user_addr_fault run #7: crashed: possible deadlock in do_user_addr_fault run #8: crashed: possible deadlock in do_user_addr_fault run #9: crashed: possible deadlock in do_user_addr_fault # git bisect bad 3fe617ccafd6f5bb33c2391d6f4eeb41c1fd0151 Bisecting: 22 revisions left to test after this (roughly 5 steps) [c1fe77e42440d2cad76055df6fb58caabf622d51] Merge tag 'nand/for-5.15' into mtd/next testing commit c1fe77e42440d2cad76055df6fb58caabf622d51 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 72f59b7fdd04a24388cfa3d84ac2a946181b6eb192d2164cbc0deea0d9659935 all runs: OK too many neither good nor bad results, skipping this commit # git bisect good c1fe77e42440d2cad76055df6fb58caabf622d51 Bisecting: 11 revisions left to test after this (roughly 4 steps) [1b4f3dfb4792f03b139edf10124fcbeb44e608e6] Merge tag 'usb-serial-5.15-rc1' of https://git.kernel.org/pub/scm/linux/kernel/git/johan/usb-serial into usb-next testing commit 1b4f3dfb4792f03b139edf10124fcbeb44e608e6 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 98f0b578a981272d37d77852bb99b0e1041e78a982f8681e15d2bc97cd72bb8a all runs: OK too many neither good nor bad results, skipping this commit # git bisect good 1b4f3dfb4792f03b139edf10124fcbeb44e608e6 Bisecting: 5 revisions left to test after this (roughly 3 steps) [6128b3af2a5e42386aa7faf37609b57f39fb7d00] mm: ignore MAP_DENYWRITE in ksys_mmap_pgoff() testing commit 6128b3af2a5e42386aa7faf37609b57f39fb7d00 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 1c4e7c3e5534ba7abb97b92371e658fcfff1fa667226c98a10327b95b7db81b1 all runs: OK too many neither good nor bad results, skipping this commit # git bisect good 6128b3af2a5e42386aa7faf37609b57f39fb7d00 Bisecting: 2 revisions left to test after this (roughly 2 steps) [0319b848b155185815724e1b46103c550627a845] binfmt: a.out: Fix bogus semicolon testing commit 0319b848b155185815724e1b46103c550627a845 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: f65f81c0137ed5979c5b12fdd65e8dfef021b0057ebe9efd0f6514944f80bca5 all runs: OK too many neither good nor bad results, skipping this commit # git bisect good 0319b848b155185815724e1b46103c550627a845 Bisecting: 0 revisions left to test after this (roughly 1 step) [fd47ff55c9c31101fcc06d20cb381da3d4089bd5] Merge tag 'usb-5.15-rc1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb testing commit fd47ff55c9c31101fcc06d20cb381da3d4089bd5 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 47246d4ee74f38d1f703bd39122b82f39fd7a27f107b860c7c7492078a5cc81c all runs: crashed: possible deadlock in do_user_addr_fault # git bisect bad fd47ff55c9c31101fcc06d20cb381da3d4089bd5 Bisecting: 0 revisions left to test after this (roughly 0 steps) [6b6dc4f40c5264556223ba94693f20d83796ab1f] Merge tag 'mtd/for-5.15' of git://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux testing commit 6b6dc4f40c5264556223ba94693f20d83796ab1f gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 066f62c39f91a2ad1d9d0c6f0608ce7f3b421df3d7aaf7057a5f91c57f3d11e8 all runs: crashed: possible deadlock in do_user_addr_fault # git bisect bad 6b6dc4f40c5264556223ba94693f20d83796ab1f 6b6dc4f40c5264556223ba94693f20d83796ab1f is the first bad commit commit 6b6dc4f40c5264556223ba94693f20d83796ab1f Merge: 0319b848b155 c1fe77e42440 Author: Linus Torvalds Date: Sun Sep 5 10:50:12 2021 -0700 Merge tag 'mtd/for-5.15' of git://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux Pull MTD updates from Miquel Raynal: "MTD changes: - blkdevs: - Simplify the refcounting in blktrans_{open, release} - Simplify blktrans_getgeo - Remove blktrans_ref_mutex - Simplify blktrans_dev_get - Use lockdep_assert_held - Don't hold del_mtd_blktrans_dev in blktrans_{open, release} - ftl: - Don't cast away the type when calling add_mtd_blktrans_dev - Don't cast away the type when calling add_mtd_blktrans_dev - Use container_of() rather than cast - Fix use-after-free - Add discard support - Allow use of MTD_RAM for testing purposes - concat: - Check _read, _write callbacks existence before assignment - Judge callback existence based on the master - maps: - Maps: remove dead MTD map driver for PMC-Sierra MSP boards - mtdblock: - Warn if added for a NAND device - Add comment about UBI block devices - Update old JFFS2 mention in Kconfig - partitions: - Redboot: convert to YAML NAND core changes: - Repair Miquel Raynal's email address in MAINTAINERS - Fix a couple of spelling mistakes in Kconfig - bbt: Skip bad blocks when searching for the BBT in NAND - Remove never changed ret variable Raw NAND changes: - cafe: Fix a resource leak in the error handling path of 'cafe_nand_probe()' - intel: Fix error handling in probe - omap: Fix kernel doc warning on 'calcuate' typo - gpmc: Fix the ECC bytes vs. OOB bytes equation SPI-NAND core changes: - Properly fill the OOB area. - Fix comment SPI-NAND drivers changes: - macronix: Add Quad support for serial NAND flash" * tag 'mtd/for-5.15' of git://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux: (30 commits) mtd: rawnand: cafe: Fix a resource leak in the error handling path of 'cafe_nand_probe()' mtd_blkdevs: simplify the refcounting in blktrans_{open, release} mtd_blkdevs: simplify blktrans_getgeo mtd_blkdevs: remove blktrans_ref_mutex mtd_blkdevs: simplify blktrans_dev_get mtd/rfd_ftl: don't cast away the type when calling add_mtd_blktrans_dev mtd/ftl: don't cast away the type when calling add_mtd_blktrans_dev mtd_blkdevs: use lockdep_assert_held mtd_blkdevs: don't hold del_mtd_blktrans_dev in blktrans_{open, release} mtd: rawnand: intel: Fix error handling in probe mtd: mtdconcat: Check _read, _write callbacks existence before assignment mtd: mtdconcat: Judge callback existence based on the master mtd: maps: remove dead MTD map driver for PMC-Sierra MSP boards mtd: rfd_ftl: use container_of() rather than cast mtd: rfd_ftl: fix use-after-free mtd: rfd_ftl: add discard support mtd: rfd_ftl: allow use of MTD_RAM for testing purposes mtdblock: Warn if added for a NAND device mtd: spinand: macronix: Add Quad support for serial NAND flash mtdblock: Add comment about UBI block devices ... .../devicetree/bindings/mtd/gpmc-nand.txt | 2 +- .../bindings/mtd/partitions/redboot-fis.txt | 27 --- .../bindings/mtd/partitions/redboot-fis.yaml | 42 ++++ MAINTAINERS | 4 +- drivers/mtd/Kconfig | 10 +- drivers/mtd/ftl.c | 2 +- drivers/mtd/maps/Kconfig | 23 --- drivers/mtd/maps/Makefile | 1 - drivers/mtd/maps/pmcmsp-flash.c | 227 --------------------- drivers/mtd/mtd_blkdevs.c | 60 +----- drivers/mtd/mtdblock.c | 4 + drivers/mtd/mtdblock_ro.c | 4 + drivers/mtd/mtdconcat.c | 33 ++- drivers/mtd/nand/raw/Kconfig | 4 +- drivers/mtd/nand/raw/cafe_nand.c | 4 +- drivers/mtd/nand/raw/intel-nand-controller.c | 27 ++- drivers/mtd/nand/raw/meson_nand.c | 4 +- drivers/mtd/nand/raw/nand_bbt.c | 33 +++ drivers/mtd/nand/raw/omap2.c | 2 +- drivers/mtd/nand/spi/core.c | 4 +- drivers/mtd/nand/spi/macronix.c | 16 +- drivers/mtd/rfd_ftl.c | 46 ++++- 22 files changed, 198 insertions(+), 381 deletions(-) delete mode 100644 Documentation/devicetree/bindings/mtd/partitions/redboot-fis.txt create mode 100644 Documentation/devicetree/bindings/mtd/partitions/redboot-fis.yaml delete mode 100644 drivers/mtd/maps/pmcmsp-flash.c revisions tested: 25, total time: 8h47m16.606052555s (build: 5h38m29.712807618s, test: 2h59m17.663961204s) first bad commit: 6b6dc4f40c5264556223ba94693f20d83796ab1f Merge tag 'mtd/for-5.15' of git://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux recipients (to): ["torvalds@linux-foundation.org"] recipients (cc): [] crash: possible deadlock in do_user_addr_fault ====================================================== WARNING: possible circular locking dependency detected 5.14.0-syzkaller #0 Not tainted ------------------------------------------------------ syz-executor.0/7100 is trying to acquire lock: ffff88802741b228 (&mm->mmap_lock#2){++++}-{3:3}, at: mmap_read_lock include/linux/mmap_lock.h:117 [inline] ffff88802741b228 (&mm->mmap_lock#2){++++}-{3:3}, at: do_user_addr_fault+0x62c/0xcd0 arch/x86/mm/fault.c:1341 but task is already holding lock: ffff88806dac80e0 (&sbi->s_lock){+.+.}-{3:3}, at: exfat_iterate+0x129/0xa60 fs/exfat/dir.c:229 which lock already depends on the new lock. the existing dependency chain (in reverse order) is: -> #2 (&sbi->s_lock){+.+.}-{3:3}: __mutex_lock_common kernel/locking/mutex.c:596 [inline] __mutex_lock+0x131/0x12f0 kernel/locking/mutex.c:729 exfat_get_block+0x161/0x15c0 fs/exfat/inode.c:305 do_mpage_readpage+0x4b2/0x1a80 fs/mpage.c:231 mpage_readahead+0x2c0/0x6c0 fs/mpage.c:389 read_pages+0x1b0/0x7c0 mm/readahead.c:130 page_cache_ra_unbounded+0x47c/0x7c0 mm/readahead.c:239 page_cache_sync_readahead include/linux/pagemap.h:884 [inline] filemap_get_pages+0x253/0x1380 mm/filemap.c:2545 filemap_read+0x261/0xb90 mm/filemap.c:2628 __kernel_read+0x469/0x9c0 fs/read_write.c:443 integrity_kernel_read+0x68/0x90 security/integrity/iint.c:199 ima_calc_file_hash_tfm+0x253/0x340 security/integrity/ima/ima_crypto.c:484 ima_calc_file_shash security/integrity/ima/ima_crypto.c:515 [inline] ima_calc_file_hash+0x12b/0x3c0 security/integrity/ima/ima_crypto.c:572 ima_collect_measurement+0x3c6/0x4a0 security/integrity/ima/ima_api.c:254 process_measurement+0x8cf/0x1450 security/integrity/ima/ima_main.c:337 ima_file_check+0xac/0x100 security/integrity/ima/ima_main.c:516 do_open fs/namei.c:3428 [inline] path_openat+0x1137/0x2240 fs/namei.c:3559 do_filp_open+0x199/0x3d0 fs/namei.c:3586 do_sys_openat2+0x11e/0x400 fs/open.c:1200 do_sys_open fs/open.c:1216 [inline] __do_sys_openat fs/open.c:1232 [inline] __se_sys_openat fs/open.c:1227 [inline] __x64_sys_openat+0x11b/0x1d0 fs/open.c:1227 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0x80 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae -> #1 (mapping.invalidate_lock#3){.+.+}-{3:3}: down_read+0x9a/0x440 kernel/locking/rwsem.c:1462 filemap_invalidate_lock_shared include/linux/fs.h:841 [inline] filemap_fault+0x98d/0x21a0 mm/filemap.c:3066 __do_fault+0xed/0x390 mm/memory.c:3857 do_read_fault mm/memory.c:4172 [inline] do_fault mm/memory.c:4300 [inline] handle_pte_fault mm/memory.c:4558 [inline] __handle_mm_fault+0x1c84/0x41c0 mm/memory.c:4693 handle_mm_fault+0x166/0x5e0 mm/memory.c:4791 do_user_addr_fault+0x2dc/0xcd0 arch/x86/mm/fault.c:1390 handle_page_fault arch/x86/mm/fault.c:1475 [inline] exc_page_fault+0x5a/0xc0 arch/x86/mm/fault.c:1531 asm_exc_page_fault+0x1e/0x30 arch/x86/include/asm/idtentry.h:568 do_strncpy_from_user lib/strncpy_from_user.c:41 [inline] strncpy_from_user+0x120/0x2d0 lib/strncpy_from_user.c:139 getname_flags.part.0+0x89/0x440 fs/namei.c:149 do_sys_openat2+0xd2/0x400 fs/open.c:1194 do_sys_open fs/open.c:1216 [inline] __do_sys_openat fs/open.c:1232 [inline] __se_sys_openat fs/open.c:1227 [inline] __x64_sys_openat+0x11b/0x1d0 fs/open.c:1227 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0x80 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae -> #0 (&mm->mmap_lock#2){++++}-{3:3}: check_prev_add kernel/locking/lockdep.c:3051 [inline] check_prevs_add kernel/locking/lockdep.c:3174 [inline] validate_chain kernel/locking/lockdep.c:3789 [inline] __lock_acquire+0x2985/0x5410 kernel/locking/lockdep.c:5015 lock_acquire kernel/locking/lockdep.c:5625 [inline] lock_acquire+0x1ab/0x510 kernel/locking/lockdep.c:5590 down_read+0x9a/0x440 kernel/locking/rwsem.c:1462 mmap_read_lock include/linux/mmap_lock.h:117 [inline] do_user_addr_fault+0x62c/0xcd0 arch/x86/mm/fault.c:1341 handle_page_fault arch/x86/mm/fault.c:1475 [inline] exc_page_fault+0x5a/0xc0 arch/x86/mm/fault.c:1531 asm_exc_page_fault+0x1e/0x30 arch/x86/include/asm/idtentry.h:568 user_access_begin arch/x86/include/asm/uaccess.h:478 [inline] filldir64+0x148/0x750 fs/readdir.c:331 dir_emit_dot include/linux/fs.h:3637 [inline] dir_emit_dots include/linux/fs.h:3648 [inline] exfat_iterate+0x2d7/0xa60 fs/exfat/dir.c:232 iterate_dir+0x1a6/0x6d0 fs/readdir.c:67 __do_sys_getdents64 fs/readdir.c:369 [inline] __se_sys_getdents64 fs/readdir.c:354 [inline] __x64_sys_getdents64+0x124/0x240 fs/readdir.c:354 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0x80 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae other info that might help us debug this: Chain exists of: &mm->mmap_lock#2 --> mapping.invalidate_lock#3 --> &sbi->s_lock Possible unsafe locking scenario: CPU0 CPU1 ---- ---- lock(&sbi->s_lock); lock(mapping.invalidate_lock#3); lock(&sbi->s_lock); lock(&mm->mmap_lock#2); *** DEADLOCK *** 3 locks held by syz-executor.0/7100: #0: ffff8880217daaf0 (&f->f_pos_lock){+.+.}-{3:3}, at: __fdget_pos+0x9c/0xb0 fs/file.c:990 #1: ffff88806e08b030 (&sb->s_type->i_mutex_key#20){++++}-{3:3}, at: iterate_dir+0x433/0x6d0 fs/readdir.c:57 #2: ffff88806dac80e0 (&sbi->s_lock){+.+.}-{3:3}, at: exfat_iterate+0x129/0xa60 fs/exfat/dir.c:229 stack backtrace: CPU: 0 PID: 7100 Comm: syz-executor.0 Not tainted 5.14.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x57/0x7d lib/dump_stack.c:105 check_noncircular+0x25f/0x2e0 kernel/locking/lockdep.c:2131 check_prev_add kernel/locking/lockdep.c:3051 [inline] check_prevs_add kernel/locking/lockdep.c:3174 [inline] validate_chain kernel/locking/lockdep.c:3789 [inline] __lock_acquire+0x2985/0x5410 kernel/locking/lockdep.c:5015 lock_acquire kernel/locking/lockdep.c:5625 [inline] lock_acquire+0x1ab/0x510 kernel/locking/lockdep.c:5590 down_read+0x9a/0x440 kernel/locking/rwsem.c:1462 mmap_read_lock include/linux/mmap_lock.h:117 [inline] do_user_addr_fault+0x62c/0xcd0 arch/x86/mm/fault.c:1341 handle_page_fault arch/x86/mm/fault.c:1475 [inline] exc_page_fault+0x5a/0xc0 arch/x86/mm/fault.c:1531 asm_exc_page_fault+0x1e/0x30 arch/x86/include/asm/idtentry.h:568 RIP: 0010:filldir64+0x148/0x750 fs/readdir.c:335 Code: 01 ea 48 29 fe 48 63 d2 48 01 f2 0f 82 e9 01 00 00 48 bf 00 f0 ff ff ff 7f 00 00 48 39 fa 0f 87 d6 01 00 00 0f 01 cb 0f ae e8 <4c> 89 76 08 48 8b 3c 24 48 89 38 66 44 89 68 10 44 88 78 12 4c 8d RSP: 0018:ffffc9000986fbf8 EFLAGS: 00050287 RAX: 0000000000000000 RBX: ffffffff8921ebc0 RCX: ffffc9000986fea8 RDX: 0000000000000018 RSI: 0000000000000000 RDI: 00007ffffffff000 RBP: 0000000000000001 R08: 0000000000000000 R09: ffffc9000986feb4 R10: ffffc9000986feb8 R11: 0000000000000001 R12: ffffc9000986fe98 R13: 0000000000000018 R14: 0000000000000000 R15: 0000000000000004 dir_emit_dot include/linux/fs.h:3637 [inline] dir_emit_dots include/linux/fs.h:3648 [inline] exfat_iterate+0x2d7/0xa60 fs/exfat/dir.c:232 iterate_dir+0x1a6/0x6d0 fs/readdir.c:67 __do_sys_getdents64 fs/readdir.c:369 [inline] __se_sys_getdents64 fs/readdir.c:354 [inline] __x64_sys_getdents64+0x124/0x240 fs/readdir.c:354 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0x80 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x7f2afcc7c169 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:00007f2af3bed168 EFLAGS: 00000246 ORIG_RAX: 00000000000000d9 RAX: ffffffffffffffda RBX: 00007f2afcd9c050 RCX: 00007f2afcc7c169 RDX: 0000000000008008 RSI: 0000000000000000 RDI: 0000000000000006 RBP: 00007f2afccd7ca1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffcf51d7a5f R14: 00007f2af3bed300 R15: 0000000000022000 ---------------- Code disassembly (best guess): 0: 01 ea add %ebp,%edx 2: 48 29 fe sub %rdi,%rsi 5: 48 63 d2 movslq %edx,%rdx 8: 48 01 f2 add %rsi,%rdx b: 0f 82 e9 01 00 00 jb 0x1fa 11: 48 bf 00 f0 ff ff ff movabs $0x7ffffffff000,%rdi 18: 7f 00 00 1b: 48 39 fa cmp %rdi,%rdx 1e: 0f 87 d6 01 00 00 ja 0x1fa 24: 0f 01 cb stac 27: 0f ae e8 lfence * 2a: 4c 89 76 08 mov %r14,0x8(%rsi) <-- trapping instruction 2e: 48 8b 3c 24 mov (%rsp),%rdi 32: 48 89 38 mov %rdi,(%rax) 35: 66 44 89 68 10 mov %r13w,0x10(%rax) 3a: 44 88 78 12 mov %r15b,0x12(%rax) 3e: 4c rex.WR 3f: 8d .byte 0x8d