Warning: Permanently added '10.128.10.18' (ED25519) to the list of known hosts. [*] Starting targeted reproducer for ext4_discard_work UAF via BPF raw tracepoint delay... [+] Wrote 0 to /proc/sys/kernel/kptr_restrict. [+] Wrote -1 to /proc/sys/kernel/perf_event_paranoid. [+] sched_setaffinity to CPU 0 successful. [*] Detected 2 online CPUs. [+] Directed workqueue /sys/devices/virtual/workqueue/cpumask away from CPU 0 (mask=2 ) [-] Warning: Failed to open /sys/devices/virtual/workqueue/events_unbound/cpumask: No such file or directory [-] Warning: Failed to open /sys/bus/workqueue/devices/events_unbound/cpumask: No such file or directory [+] Resolved ext4_discard_work at 0xffffffff82a8f5f0 [+] BPF_PROG_LOAD successful (prog_fd=3). [+] BPF raw tracepoint link attached to workqueue_execute_start (link_fd=4). [+] unshare(CLONE_NEWNS) successful. [+] mount MS_REC | MS_PRIVATE successful. [+] Crafted ext4 filesystem image created in memory (4 MB). [+] open /tmp/ext4_img.bin successful. [+] ftruncate /tmp/ext4_img.bin successful. [+] write_all to /tmp/ext4_img.bin successful. [+] fsync /tmp/ext4_img.bin successful. [+] open /dev/loop-control successful. [+] Using loop device index 0 (/dev/loop0). [+] open /dev/loop0 successful. [+] ioctl(LOOP_SET_FD) on /dev/loop0 successful. [+] close loop_fd /dev/loop0 successful. [+] close img_fd /tmp/ext4_img.bin successful. [+] mkdir /tmp/ext4_mnt successful. [*] Starting mount race loop for 8.0 seconds... [ 181.380547][ T6075] loop0: detected capacity change from 0 to 8192 [ 181.621507][ T6075] EXT4-fs error (device loop0): ext4_init_orphan_info:625: comm syz-executor297: orphan file block 0: bad magic [ 181.621684][ T6075] loop0: lost filesystem error report for type 5 error -117 [ 181.647319][ T6075] EXT4-fs (loop0): mount failed [+] Initial mount failed with Input/output error (errno=5), as expected. [ 181.657457][ C0] EXT4-fs (loop0): error count since last fsck: 1 [ 181.657487][ C0] EXT4-fs (loop0): initial error at time 1795342875: ext4_init_orphan_info:625 [ 181.657529][ C0] EXT4-fs (loop0): last error at time 1795342875: ext4_init_orphan_info:625 [ 182.292127][ T6075] EXT4-fs error (device loop0): ext4_init_orphan_info:625: comm syz-executor297: orphan file block 0: bad magic [ 182.292161][ T6075] loop0: lost filesystem error report for type 5 error -117 [ 182.297972][ T6075] EXT4-fs (loop0): mount failed [ 182.317645][ C0] EXT4-fs (loop0): error count since last fsck: 1 [ 182.317672][ C0] EXT4-fs (loop0): initial error at time 1795342876: ext4_init_orphan_info:625 [ 182.317698][ C0] EXT4-fs (loop0): last error at time 1795342876: ext4_init_orphan_info:625 [ 182.990177][ T6075] EXT4-fs error (device loop0): ext4_init_orphan_info:625: comm syz-executor297: orphan file block 0: bad magic [ 182.990212][ T6075] loop0: lost filesystem error report for type 5 error -117 [ 183.005071][ C0] EXT4-fs (loop0): error count since last fsck: 1 [ 183.005100][ C0] EXT4-fs (loop0): initial error at time 1795342876: ext4_init_orphan_info:625 [ 183.005125][ C0] EXT4-fs (loop0): last error at time 1795342876: ext4_init_orphan_info:625 [ 183.055784][ T6075] EXT4-fs (loop0): mount failed [ 183.631631][ T6075] EXT4-fs error (device loop0): ext4_init_orphan_info:625: comm syz-executor297: orphan file block 0: bad magic [ 183.631668][ T6075] loop0: lost filesystem error report for type 5 error -117 [ 183.648118][ T6075] EXT4-fs (loop0): mount failed [ 183.657062][ C0] EXT4-fs (loop0): error count since last fsck: 1 [ 183.657087][ C0] EXT4-fs (loop0): initial error at time 1795342877: ext4_init_orphan_info:625 [ 183.657111][ C0] EXT4-fs (loop0): last error at time 1795342877: ext4_init_orphan_info:625 [ 184.277135][ T6075] EXT4-fs error (device loop0): ext4_init_orphan_info:625: comm syz-executor297: orphan file block 0: bad magic [ 184.277170][ T6075] loop0: lost filesystem error report for type 5 error -117 [ 184.277577][ T6075] EXT4-fs (loop0): mount failed [ 184.286073][ C0] EXT4-fs (loop0): error count since last fsck: 1 [ 184.286101][ C0] EXT4-fs (loop0): initial error at time 1795342878: ext4_init_orphan_info:625 [ 184.286128][ C0] EXT4-fs (loop0): last error at time 1795342878: ext4_init_orphan_info:625 [ 184.902900][ T6075] EXT4-fs error (device loop0): ext4_init_orphan_info:625: comm syz-executor297: orphan file block 0: bad magic [ 184.902947][ T6075] loop0: lost filesystem error report for type 5 error -117 [ 184.918393][ C0] EXT4-fs (loop0): error count since last fsck: 1 [ 184.918421][ C0] EXT4-fs (loop0): initial error at time 1795342878: ext4_init_orphan_info:625 [ 184.918447][ C0] EXT4-fs (loop0): last error at time 1795342878: ext4_init_orphan_info:625 [ 184.955194][ T6075] EXT4-fs (loop0): mount failed [ 185.598754][ T6075] EXT4-fs error (device loop0): ext4_init_orphan_info:625: comm syz-executor297: orphan file block 0: bad magic [ 185.598787][ T6075] loop0: lost filesystem error report for type 5 error -117 [ 185.599198][ T6075] EXT4-fs (loop0): mount failed [ 185.607655][ C0] EXT4-fs (loop0): error count since last fsck: 1 [ 185.607683][ C0] EXT4-fs (loop0): initial error at time 1795342879: ext4_init_orphan_info:625 [ 185.607710][ C0] EXT4-fs (loop0): last error at time 1795342879: ext4_init_orphan_info:625 [ 186.177950][ T6075] EXT4-fs error (device loop0): ext4_init_orphan_info:625: comm syz-executor297: orphan file block 0: bad magic [ 186.177983][ T6075] loop0: lost filesystem error report for type 5 error -117 [ 186.178423][ T6075] EXT4-fs (loop0): mount failed [ 186.187886][ C0] EXT4-fs (loop0): error count since last fsck: 1 [ 186.187909][ C0] EXT4-fs (loop0): initial error at time 1795342880: ext4_init_orphan_info:625 [ 186.187930][ C0] EXT4-fs (loop0): last error at time 1795342880: ext4_init_orphan_info:625 [ 186.662691][ T6075] EXT4-fs error (device loop0): ext4_init_orphan_info:625: comm syz-executor297: orphan file block 0: bad magic [ 186.662744][ T6075] loop0: lost filesystem error report for type 5 error -117 [ 186.663288][ T6075] EXT4-fs (loop0): mount failed [ 186.684545][ C0] EXT4-fs (loop0): error count since last fsck: 1 [ 186.684575][ C0] EXT4-fs (loop0): initial error at time 1795342880: ext4_init_orphan_info:625 [ 186.684602][ C0] EXT4-fs (loop0): last error at time 1795342880: ext4_init_orphan_info:625 [ 187.117220][ T6075] EXT4-fs error (device loop0): ext4_init_orphan_info:625: comm syz-executor297: orphan file block 0: bad magic [ 187.117255][ T6075] loop0: lost filesystem error report for type 5 error -117 [ 187.117668][ T6075] EXT4-fs (loop0): mount failed [ 187.138541][ C0] EXT4-fs (loop0): error count since last fsck: 1 [ 187.138573][ C0] EXT4-fs (loop0): initial error at time 1795342881: ext4_init_orphan_info:625 [ 187.138599][ C0] EXT4-fs (loop0): last error at time 1795342881: ext4_init_orphan_info:625 [ 187.329806][ T6075] EXT4-fs error (device loop0): ext4_init_orphan_info:625: comm syz-executor297: orphan file block 0: bad magic [ 187.329839][ T6075] loop0: lost filesystem error report for type 5 error -117 [ 187.330275][ T6075] EXT4-fs (loop0): mount failed [ 187.354293][ C0] EXT4-fs (loop0): error count since last fsck: 1 [ 187.354318][ C0] EXT4-fs (loop0): initial error at time 1795342881: ext4_init_orphan_info:625 [ 187.354343][ C0] EXT4-fs (loop0): last error at time 1795342881: ext4_init_orphan_info:625 [ 187.762114][ T6075] EXT4-fs error (device loop0): ext4_init_orphan_info:625: comm syz-executor297: orphan file block 0: bad magic [ 187.762147][ T6075] loop0: lost filesystem error report for type 5 error -117 [ 187.762552][ T6075] EXT4-fs (loop0): mount failed [ 187.791631][ C0] EXT4-fs (loop0): error count since last fsck: 1 [ 187.791656][ C0] EXT4-fs (loop0): initial error at time 1795342881: ext4_init_orphan_info:625 [ 187.791684][ C0] EXT4-fs (loop0): last error at time 1795342881: ext4_init_orphan_info:625 [ 188.243117][ T6075] EXT4-fs error (device loop0): ext4_init_orphan_info:625: comm syz-executor297: orphan file block 0: bad magic [ 188.243154][ T6075] loop0: lost filesystem error report for type 5 error -117 [ 188.264134][ C0] EXT4-fs (loop0): error count since last fsck: 1 [ 188.264160][ C0] EXT4-fs (loop0): initial error at time 1795342882: ext4_init_orphan_info:625 [ 188.264181][ C0] EXT4-fs (loop0): last error at time 1795342882: ext4_init_orphan_info:625 [ 188.282271][ T6075] EXT4-fs (loop0): mount failed [ 188.643209][ T6075] EXT4-fs error (device loop0): ext4_init_orphan_info:625: comm syz-executor297: orphan file block 0: bad magic [ 188.643235][ T6075] loop0: lost filesystem error report for type 5 error -117 [ 188.643515][ T6075] EXT4-fs (loop0): mount failed [ 188.652325][ C0] EXT4-fs (loop0): error count since last fsck: 1 [ 188.652351][ C0] EXT4-fs (loop0): initial error at time 1795342882: ext4_init_orphan_info:625 [ 188.652378][ C0] EXT4-fs (loop0): last error at time 1795342882: ext4_init_orphan_info:625 [ 189.129332][ T6075] EXT4-fs error (device loop0): ext4_init_orphan_info:625: comm syz-executor297: orphan file block 0: bad magic [ 189.129367][ T6075] loop0: lost filesystem error report for type 5 error -117 [ 189.130488][ T6075] EXT4-fs (loop0): mount failed [ 189.131840][ C0] EXT4-fs (loop0): error count since last fsck: 1 [ 189.131864][ C0] EXT4-fs (loop0): initial error at time 1795342883: ext4_init_orphan_info:625 [ 189.131891][ C0] EXT4-fs (loop0): last error at time 1795342883: ext4_init_orphan_info:625 [ 189.571936][ T6075] EXT4-fs error (device loop0): ext4_init_orphan_info:625: comm syz-executor297: orphan file block 0: bad magic [ 189.571971][ T6075] loop0: lost filesystem error report for type 5 error -117 [ 189.579980][ T6075] EXT4-fs (loop0): mount failed [ 189.593584][ C0] EXT4-fs (loop0): error count since last fsck: 1 [ 189.593609][ C0] EXT4-fs (loop0): initial error at time 1795342883: ext4_init_orphan_info:625 [+] Completed 16 mount race iterations. [*] Cleaning up resources... [+] Closed BPF tracepoint link fd. [ 189.593633][ C0] EXT4-fs (loop0): last error at time 1795342883: ext4_init_orphan_info:625 [+] Detached loop device /dev/loop0. [+] Cleanup completed successfully. Reproducer finished.