Extracting prog: 52.022474133s Minimizing prog: 3m59.326561769s Simplifying prog options: 4m19.942308151s Extracting C: 31.662000164s Simplifying C: 0s extracting reproducer from 1 programs testing a last program of every proc single: executing 1 programs separately with timeout 30s testing program (duration=30s, {Threaded:true Repeat:true RepeatTimes:0 Procs:6 Slowdown:1 Sandbox:none SandboxArg:0 Leak:false NetInjection:true NetDevices:true NetReset:true Cgroups:true BinfmtMisc:true CloseFDs:true KCSAN:false DevlinkPCI:false NicVF:false USB:true VhciInjection:true Wifi:true IEEE802154:true Sysctl:true Swap:true UseTmpDir:true HandleSegv:true Trace:false CallComments:true LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): syz_mount_image$erofs-open detailed listing: executing program 0: syz_mount_image$erofs(&(0x7f0000000040), &(0x7f0000000140)='./file0\x00', 0xc8c8, &(0x7f0000000000)=ANY=[], 0x1, 0x208, &(0x7f0000000240)="$eJzslb9v1DAUx7920uRaVcyIhYFKlIHcJZUQS6V2YWJA4kfFgMSJ5qqDlKI2A62EgL+AnY2BPwMEKwN/AipICJaycCwsRo4dx3ckIcfdwdD3kc752n6237N9zyAI4tjy6eOPQzFY/dICsIgl+Lr9q1PYcP39KYT40Pr26O3lSxvPbr185x8G82VzCtF8fRfAm3UHqRk7PHpJf6+BG30dHOe03gBDoPVtcNzQOgbDTa3vWnpH2gdBr5/EwZ2dZFOKjixCWUS9fsLcUf+OnjJsWv4xq39v/+BeN0ni3RmKP+3f0TrHqvEPLbv/IpS3HWv/QnCEWq+A4aqx9fO9UVtixX/KLeJ3auP3MGHYnwEULb0SGz7pErnw5FLVNnmgJV0Am9bZRycaGDv1Iedn3mjRxaLFQSayQOcbDreFvBW6Rd6MWf8TxhdwpzLPQCh+6/Lr7s/k4v1rLXit8as1dfx5i3is6uMtulbR5Y05j955k5/EC4azVv5UqeR59tS00+0H7b39g/P97e5WvBXfj6KVC50FAFE7S0SqrEp/vry2Mj8tFPObN8kZMfaYh4fdNN0NVWnqkSrLMi7P8h/H8hnMybrMpt7IvN8tzbKfHMWeqNrykBtz0E/syaqQCIIg/g2nwaDfNuHmQr8mpkOI6Mp/9pMgCIIgCIIgCIIgiL/nVwAAAP//qatccw==") open(&(0x7f0000000200)='./file2\x00', 0x60100, 0x32) program crashed: KASAN: use-after-free Read in z_erofs_transform_plain single: successfully extracted reproducer found reproducer with 2 syscalls minimizing guilty program testing program (duration=58.649346097s, {Threaded:true Repeat:true RepeatTimes:0 Procs:6 Slowdown:1 Sandbox:none SandboxArg:0 Leak:false NetInjection:true NetDevices:true NetReset:true Cgroups:true BinfmtMisc:true CloseFDs:true KCSAN:false DevlinkPCI:false NicVF:false USB:true VhciInjection:true Wifi:true IEEE802154:true Sysctl:true Swap:true UseTmpDir:true HandleSegv:true Trace:false CallComments:true LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): syz_mount_image$erofs detailed listing: executing program 0: syz_mount_image$erofs(&(0x7f0000000040), &(0x7f0000000140)='./file0\x00', 0xc8c8, &(0x7f0000000000)=ANY=[], 0x1, 0x208, &(0x7f0000000240)="$eJzslb9v1DAUx7920uRaVcyIhYFKlIHcJZUQS6V2YWJA4kfFgMSJ5qqDlKI2A62EgL+AnY2BPwMEKwN/AipICJaycCwsRo4dx3ckIcfdwdD3kc752n6237N9zyAI4tjy6eOPQzFY/dICsIgl+Lr9q1PYcP39KYT40Pr26O3lSxvPbr185x8G82VzCtF8fRfAm3UHqRk7PHpJf6+BG30dHOe03gBDoPVtcNzQOgbDTa3vWnpH2gdBr5/EwZ2dZFOKjixCWUS9fsLcUf+OnjJsWv4xq39v/+BeN0ni3RmKP+3f0TrHqvEPLbv/IpS3HWv/QnCEWq+A4aqx9fO9UVtixX/KLeJ3auP3MGHYnwEULb0SGz7pErnw5FLVNnmgJV0Am9bZRycaGDv1Iedn3mjRxaLFQSayQOcbDreFvBW6Rd6MWf8TxhdwpzLPQCh+6/Lr7s/k4v1rLXit8as1dfx5i3is6uMtulbR5Y05j955k5/EC4azVv5UqeR59tS00+0H7b39g/P97e5WvBXfj6KVC50FAFE7S0SqrEp/vry2Mj8tFPObN8kZMfaYh4fdNN0NVWnqkSrLMi7P8h/H8hnMybrMpt7IvN8tzbKfHMWeqNrykBtz0E/syaqQCIIg/g2nwaDfNuHmQr8mpkOI6Mp/9pMgCIIgCIIgCIIgiL/nVwAAAP//qatccw==") program did not crash testing program (duration=58.649346097s, {Threaded:true Repeat:true RepeatTimes:0 Procs:6 Slowdown:1 Sandbox:none SandboxArg:0 Leak:false NetInjection:true NetDevices:true NetReset:true Cgroups:true BinfmtMisc:true CloseFDs:true KCSAN:false DevlinkPCI:false NicVF:false USB:true VhciInjection:true Wifi:true IEEE802154:true Sysctl:true Swap:true UseTmpDir:true HandleSegv:true Trace:false CallComments:true LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): open detailed listing: executing program 0: open(&(0x7f0000000200)='./file2\x00', 0x60100, 0x32) program did not crash testing program (duration=58.649346097s, {Threaded:true Repeat:true RepeatTimes:0 Procs:6 Slowdown:1 Sandbox:none SandboxArg:0 Leak:false NetInjection:true NetDevices:true NetReset:true Cgroups:true BinfmtMisc:true CloseFDs:true KCSAN:false DevlinkPCI:false NicVF:false USB:true VhciInjection:true Wifi:true IEEE802154:true Sysctl:true Swap:true UseTmpDir:true HandleSegv:true Trace:false CallComments:true LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): syz_mount_image$erofs-open detailed listing: executing program 0: syz_mount_image$erofs(&(0x7f0000000040), &(0x7f0000000140)='./file0\x00', 0xc8c8, &(0x7f0000000000)=ANY=[], 0x1, 0x208, &(0x7f0000000240)="$eJzslb9v1DAUx7920uRaVcyIhYFKlIHcJZUQS6V2YWJA4kfFgMSJ5qqDlKI2A62EgL+AnY2BPwMEKwN/AipICJaycCwsRo4dx3ckIcfdwdD3kc752n6237N9zyAI4tjy6eOPQzFY/dICsIgl+Lr9q1PYcP39KYT40Pr26O3lSxvPbr185x8G82VzCtF8fRfAm3UHqRk7PHpJf6+BG30dHOe03gBDoPVtcNzQOgbDTa3vWnpH2gdBr5/EwZ2dZFOKjixCWUS9fsLcUf+OnjJsWv4xq39v/+BeN0ni3RmKP+3f0TrHqvEPLbv/IpS3HWv/QnCEWq+A4aqx9fO9UVtixX/KLeJ3auP3MGHYnwEULb0SGz7pErnw5FLVNnmgJV0Am9bZRycaGDv1Iedn3mjRxaLFQSayQOcbDreFvBW6Rd6MWf8TxhdwpzLPQCh+6/Lr7s/k4v1rLXit8as1dfx5i3is6uMtulbR5Y05j955k5/EC4azVv5UqeR59tS00+0H7b39g/P97e5WvBXfj6KVC50FAFE7S0SqrEp/vry2Mj8tFPObN8kZMfaYh4fdNN0NVWnqkSrLMi7P8h/H8hnMybrMpt7IvN8tzbKfHMWeqNrykBtz0E/syaqQCIIg/g2nwaDfNuHmQr8mpkOI6Mp/9pMgCIIgCIIgCIIgiL/nVwAAAP//qatccw==") open(0x0, 0x60100, 0x32) program did not crash extracting C reproducer testing compiled C program (duration=58.649346097s, {Threaded:true Repeat:true RepeatTimes:0 Procs:6 Slowdown:1 Sandbox:none SandboxArg:0 Leak:false NetInjection:true NetDevices:true NetReset:true Cgroups:true BinfmtMisc:true CloseFDs:true KCSAN:false DevlinkPCI:false NicVF:false USB:true VhciInjection:true Wifi:true IEEE802154:true Sysctl:true Swap:true UseTmpDir:true HandleSegv:true Trace:false CallComments:true LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): syz_mount_image$erofs-open program crashed: KASAN: slab-out-of-bounds Read in z_erofs_transform_plain a never seen crash title: KASAN: slab-out-of-bounds Read in z_erofs_transform_plain, ignore simplifying guilty program options testing program (duration=58.649346097s, {Threaded:false Repeat:true RepeatTimes:0 Procs:6 Slowdown:1 Sandbox:none SandboxArg:0 Leak:false NetInjection:true NetDevices:true NetReset:true Cgroups:true BinfmtMisc:true CloseFDs:true KCSAN:false DevlinkPCI:false NicVF:false USB:true VhciInjection:true Wifi:true IEEE802154:true Sysctl:true Swap:true UseTmpDir:true HandleSegv:true Trace:false CallComments:true LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): syz_mount_image$erofs-open detailed listing: executing program 0: syz_mount_image$erofs(&(0x7f0000000040), &(0x7f0000000140)='./file0\x00', 0xc8c8, &(0x7f0000000000)=ANY=[], 0x1, 0x208, &(0x7f0000000240)="$eJzslb9v1DAUx7920uRaVcyIhYFKlIHcJZUQS6V2YWJA4kfFgMSJ5qqDlKI2A62EgL+AnY2BPwMEKwN/AipICJaycCwsRo4dx3ckIcfdwdD3kc752n6237N9zyAI4tjy6eOPQzFY/dICsIgl+Lr9q1PYcP39KYT40Pr26O3lSxvPbr185x8G82VzCtF8fRfAm3UHqRk7PHpJf6+BG30dHOe03gBDoPVtcNzQOgbDTa3vWnpH2gdBr5/EwZ2dZFOKjixCWUS9fsLcUf+OnjJsWv4xq39v/+BeN0ni3RmKP+3f0TrHqvEPLbv/IpS3HWv/QnCEWq+A4aqx9fO9UVtixX/KLeJ3auP3MGHYnwEULb0SGz7pErnw5FLVNnmgJV0Am9bZRycaGDv1Iedn3mjRxaLFQSayQOcbDreFvBW6Rd6MWf8TxhdwpzLPQCh+6/Lr7s/k4v1rLXit8as1dfx5i3is6uMtulbR5Y05j955k5/EC4azVv5UqeR59tS00+0H7b39g/P97e5WvBXfj6KVC50FAFE7S0SqrEp/vry2Mj8tFPObN8kZMfaYh4fdNN0NVWnqkSrLMi7P8h/H8hnMybrMpt7IvN8tzbKfHMWeqNrykBtz0E/syaqQCIIg/g2nwaDfNuHmQr8mpkOI6Mp/9pMgCIIgCIIgCIIgiL/nVwAAAP//qatccw==") open(&(0x7f0000000200)='./file2\x00', 0x60100, 0x32) program crashed: KASAN: use-after-free Read in z_erofs_transform_plain extracting C reproducer testing compiled C program (duration=58.649346097s, {Threaded:false Repeat:true RepeatTimes:0 Procs:6 Slowdown:1 Sandbox:none SandboxArg:0 Leak:false NetInjection:true NetDevices:true NetReset:true Cgroups:true BinfmtMisc:true CloseFDs:true KCSAN:false DevlinkPCI:false NicVF:false USB:true VhciInjection:true Wifi:true IEEE802154:true Sysctl:true Swap:true UseTmpDir:true HandleSegv:true Trace:false CallComments:true LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): syz_mount_image$erofs-open program crashed: KASAN: slab-out-of-bounds Read in z_erofs_transform_plain a never seen crash title: KASAN: slab-out-of-bounds Read in z_erofs_transform_plain, ignore testing program (duration=58.649346097s, {Threaded:false Repeat:false RepeatTimes:0 Procs:1 Slowdown:1 Sandbox:none SandboxArg:0 Leak:false NetInjection:true NetDevices:true NetReset:false Cgroups:false BinfmtMisc:true CloseFDs:true KCSAN:false DevlinkPCI:false NicVF:false USB:true VhciInjection:true Wifi:true IEEE802154:true Sysctl:true Swap:true UseTmpDir:true HandleSegv:true Trace:false CallComments:true LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): syz_mount_image$erofs-open detailed listing: executing program 0: syz_mount_image$erofs(&(0x7f0000000040), &(0x7f0000000140)='./file0\x00', 0xc8c8, &(0x7f0000000000)=ANY=[], 0x1, 0x208, &(0x7f0000000240)="$eJzslb9v1DAUx7920uRaVcyIhYFKlIHcJZUQS6V2YWJA4kfFgMSJ5qqDlKI2A62EgL+AnY2BPwMEKwN/AipICJaycCwsRo4dx3ckIcfdwdD3kc752n6237N9zyAI4tjy6eOPQzFY/dICsIgl+Lr9q1PYcP39KYT40Pr26O3lSxvPbr185x8G82VzCtF8fRfAm3UHqRk7PHpJf6+BG30dHOe03gBDoPVtcNzQOgbDTa3vWnpH2gdBr5/EwZ2dZFOKjixCWUS9fsLcUf+OnjJsWv4xq39v/+BeN0ni3RmKP+3f0TrHqvEPLbv/IpS3HWv/QnCEWq+A4aqx9fO9UVtixX/KLeJ3auP3MGHYnwEULb0SGz7pErnw5FLVNnmgJV0Am9bZRycaGDv1Iedn3mjRxaLFQSayQOcbDreFvBW6Rd6MWf8TxhdwpzLPQCh+6/Lr7s/k4v1rLXit8as1dfx5i3is6uMtulbR5Y05j955k5/EC4azVv5UqeR59tS00+0H7b39g/P97e5WvBXfj6KVC50FAFE7S0SqrEp/vry2Mj8tFPObN8kZMfaYh4fdNN0NVWnqkSrLMi7P8h/H8hnMybrMpt7IvN8tzbKfHMWeqNrykBtz0E/syaqQCIIg/g2nwaDfNuHmQr8mpkOI6Mp/9pMgCIIgCIIgCIIgiL/nVwAAAP//qatccw==") open(&(0x7f0000000200)='./file2\x00', 0x60100, 0x32) program crashed: KASAN: slab-out-of-bounds Read in z_erofs_transform_plain a never seen crash title: KASAN: slab-out-of-bounds Read in z_erofs_transform_plain, ignore testing program (duration=58.649346097s, {Threaded:false Repeat:true RepeatTimes:0 Procs:1 Slowdown:1 Sandbox:none SandboxArg:0 Leak:false NetInjection:true NetDevices:true NetReset:true Cgroups:true BinfmtMisc:true CloseFDs:true KCSAN:false DevlinkPCI:false NicVF:false USB:true VhciInjection:true Wifi:true IEEE802154:true Sysctl:true Swap:true UseTmpDir:true HandleSegv:true Trace:false CallComments:true LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): syz_mount_image$erofs-open detailed listing: executing program 0: syz_mount_image$erofs(&(0x7f0000000040), &(0x7f0000000140)='./file0\x00', 0xc8c8, &(0x7f0000000000)=ANY=[], 0x1, 0x208, &(0x7f0000000240)="$eJzslb9v1DAUx7920uRaVcyIhYFKlIHcJZUQS6V2YWJA4kfFgMSJ5qqDlKI2A62EgL+AnY2BPwMEKwN/AipICJaycCwsRo4dx3ckIcfdwdD3kc752n6237N9zyAI4tjy6eOPQzFY/dICsIgl+Lr9q1PYcP39KYT40Pr26O3lSxvPbr185x8G82VzCtF8fRfAm3UHqRk7PHpJf6+BG30dHOe03gBDoPVtcNzQOgbDTa3vWnpH2gdBr5/EwZ2dZFOKjixCWUS9fsLcUf+OnjJsWv4xq39v/+BeN0ni3RmKP+3f0TrHqvEPLbv/IpS3HWv/QnCEWq+A4aqx9fO9UVtixX/KLeJ3auP3MGHYnwEULb0SGz7pErnw5FLVNnmgJV0Am9bZRycaGDv1Iedn3mjRxaLFQSayQOcbDreFvBW6Rd6MWf8TxhdwpzLPQCh+6/Lr7s/k4v1rLXit8as1dfx5i3is6uMtulbR5Y05j955k5/EC4azVv5UqeR59tS00+0H7b39g/P97e5WvBXfj6KVC50FAFE7S0SqrEp/vry2Mj8tFPObN8kZMfaYh4fdNN0NVWnqkSrLMi7P8h/H8hnMybrMpt7IvN8tzbKfHMWeqNrykBtz0E/syaqQCIIg/g2nwaDfNuHmQr8mpkOI6Mp/9pMgCIIgCIIgCIIgiL/nVwAAAP//qatccw==") open(&(0x7f0000000200)='./file2\x00', 0x60100, 0x32) program crashed: KASAN: slab-use-after-free Read in z_erofs_transform_plain a never seen crash title: KASAN: slab-use-after-free Read in z_erofs_transform_plain, ignore testing program (duration=58.649346097s, {Threaded:false Repeat:true RepeatTimes:0 Procs:6 Slowdown:1 Sandbox:none SandboxArg:0 Leak:false NetInjection:true NetDevices:true NetReset:true Cgroups:true BinfmtMisc:true CloseFDs:true KCSAN:false DevlinkPCI:false NicVF:false USB:true VhciInjection:true Wifi:true IEEE802154:true Sysctl:true Swap:true UseTmpDir:true HandleSegv:true Trace:false CallComments:true LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): syz_mount_image$erofs-open detailed listing: executing program 0: syz_mount_image$erofs(&(0x7f0000000040), &(0x7f0000000140)='./file0\x00', 0xc8c8, &(0x7f0000000000)=ANY=[], 0x1, 0x208, &(0x7f0000000240)="$eJzslb9v1DAUx7920uRaVcyIhYFKlIHcJZUQS6V2YWJA4kfFgMSJ5qqDlKI2A62EgL+AnY2BPwMEKwN/AipICJaycCwsRo4dx3ckIcfdwdD3kc752n6237N9zyAI4tjy6eOPQzFY/dICsIgl+Lr9q1PYcP39KYT40Pr26O3lSxvPbr185x8G82VzCtF8fRfAm3UHqRk7PHpJf6+BG30dHOe03gBDoPVtcNzQOgbDTa3vWnpH2gdBr5/EwZ2dZFOKjixCWUS9fsLcUf+OnjJsWv4xq39v/+BeN0ni3RmKP+3f0TrHqvEPLbv/IpS3HWv/QnCEWq+A4aqx9fO9UVtixX/KLeJ3auP3MGHYnwEULb0SGz7pErnw5FLVNnmgJV0Am9bZRycaGDv1Iedn3mjRxaLFQSayQOcbDreFvBW6Rd6MWf8TxhdwpzLPQCh+6/Lr7s/k4v1rLXit8as1dfx5i3is6uMtulbR5Y05j955k5/EC4azVv5UqeR59tS00+0H7b39g/P97e5WvBXfj6KVC50FAFE7S0SqrEp/vry2Mj8tFPObN8kZMfaYh4fdNN0NVWnqkSrLMi7P8h/H8hnMybrMpt7IvN8tzbKfHMWeqNrykBtz0E/syaqQCIIg/g2nwaDfNuHmQr8mpkOI6Mp/9pMgCIIgCIIgCIIgiL/nVwAAAP//qatccw==") open(&(0x7f0000000200)='./file2\x00', 0x60100, 0x32) program crashed: KASAN: slab-use-after-free Read in z_erofs_transform_plain validation run: crashed=true testing program (duration=58.649346097s, {Threaded:false Repeat:true RepeatTimes:0 Procs:6 Slowdown:1 Sandbox:none SandboxArg:0 Leak:false NetInjection:true NetDevices:true NetReset:true Cgroups:true BinfmtMisc:true CloseFDs:true KCSAN:false DevlinkPCI:false NicVF:false USB:true VhciInjection:true Wifi:true IEEE802154:true Sysctl:true Swap:true UseTmpDir:true HandleSegv:true Trace:false CallComments:true LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): syz_mount_image$erofs-open detailed listing: executing program 0: syz_mount_image$erofs(&(0x7f0000000040), &(0x7f0000000140)='./file0\x00', 0xc8c8, &(0x7f0000000000)=ANY=[], 0x1, 0x208, &(0x7f0000000240)="$eJzslb9v1DAUx7920uRaVcyIhYFKlIHcJZUQS6V2YWJA4kfFgMSJ5qqDlKI2A62EgL+AnY2BPwMEKwN/AipICJaycCwsRo4dx3ckIcfdwdD3kc752n6237N9zyAI4tjy6eOPQzFY/dICsIgl+Lr9q1PYcP39KYT40Pr26O3lSxvPbr185x8G82VzCtF8fRfAm3UHqRk7PHpJf6+BG30dHOe03gBDoPVtcNzQOgbDTa3vWnpH2gdBr5/EwZ2dZFOKjixCWUS9fsLcUf+OnjJsWv4xq39v/+BeN0ni3RmKP+3f0TrHqvEPLbv/IpS3HWv/QnCEWq+A4aqx9fO9UVtixX/KLeJ3auP3MGHYnwEULb0SGz7pErnw5FLVNnmgJV0Am9bZRycaGDv1Iedn3mjRxaLFQSayQOcbDreFvBW6Rd6MWf8TxhdwpzLPQCh+6/Lr7s/k4v1rLXit8as1dfx5i3is6uMtulbR5Y05j955k5/EC4azVv5UqeR59tS00+0H7b39g/P97e5WvBXfj6KVC50FAFE7S0SqrEp/vry2Mj8tFPObN8kZMfaYh4fdNN0NVWnqkSrLMi7P8h/H8hnMybrMpt7IvN8tzbKfHMWeqNrykBtz0E/syaqQCIIg/g2nwaDfNuHmQr8mpkOI6Mp/9pMgCIIgCIIgCIIgiL/nVwAAAP//qatccw==") open(&(0x7f0000000200)='./file2\x00', 0x60100, 0x32) program crashed: KASAN: slab-out-of-bounds Read in z_erofs_transform_plain validation run: crashed=true testing program (duration=58.649346097s, {Threaded:false Repeat:true RepeatTimes:0 Procs:6 Slowdown:1 Sandbox:none SandboxArg:0 Leak:false NetInjection:true NetDevices:true NetReset:true Cgroups:true BinfmtMisc:true CloseFDs:true KCSAN:false DevlinkPCI:false NicVF:false USB:true VhciInjection:true Wifi:true IEEE802154:true Sysctl:true Swap:true UseTmpDir:true HandleSegv:true Trace:false CallComments:true LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): syz_mount_image$erofs-open detailed listing: executing program 0: syz_mount_image$erofs(&(0x7f0000000040), &(0x7f0000000140)='./file0\x00', 0xc8c8, &(0x7f0000000000)=ANY=[], 0x1, 0x208, &(0x7f0000000240)="$eJzslb9v1DAUx7920uRaVcyIhYFKlIHcJZUQS6V2YWJA4kfFgMSJ5qqDlKI2A62EgL+AnY2BPwMEKwN/AipICJaycCwsRo4dx3ckIcfdwdD3kc752n6237N9zyAI4tjy6eOPQzFY/dICsIgl+Lr9q1PYcP39KYT40Pr26O3lSxvPbr185x8G82VzCtF8fRfAm3UHqRk7PHpJf6+BG30dHOe03gBDoPVtcNzQOgbDTa3vWnpH2gdBr5/EwZ2dZFOKjixCWUS9fsLcUf+OnjJsWv4xq39v/+BeN0ni3RmKP+3f0TrHqvEPLbv/IpS3HWv/QnCEWq+A4aqx9fO9UVtixX/KLeJ3auP3MGHYnwEULb0SGz7pErnw5FLVNnmgJV0Am9bZRycaGDv1Iedn3mjRxaLFQSayQOcbDreFvBW6Rd6MWf8TxhdwpzLPQCh+6/Lr7s/k4v1rLXit8as1dfx5i3is6uMtulbR5Y05j955k5/EC4azVv5UqeR59tS00+0H7b39g/P97e5WvBXfj6KVC50FAFE7S0SqrEp/vry2Mj8tFPObN8kZMfaYh4fdNN0NVWnqkSrLMi7P8h/H8hnMybrMpt7IvN8tzbKfHMWeqNrykBtz0E/syaqQCIIg/g2nwaDfNuHmQr8mpkOI6Mp/9pMgCIIgCIIgCIIgiL/nVwAAAP//qatccw==") open(&(0x7f0000000200)='./file2\x00', 0x60100, 0x32) program crashed: KASAN: slab-out-of-bounds Read in z_erofs_transform_plain validation run: crashed=true reproducing took 14m7.033756971s repro crashed as (corrupted=false): ================================================================== BUG: KASAN: slab-out-of-bounds in memcpy_to_page include/linux/highmem.h:552 [inline] BUG: KASAN: slab-out-of-bounds in z_erofs_transform_plain+0x33c/0xa00 fs/erofs/decompressor.c:309 Read of size 4096 at addr ffff888058d46800 by task kworker/u4:9/1092 CPU: 0 UID: 0 PID: 1092 Comm: kworker/u4:9 Not tainted syzkaller #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 Workqueue: loop0 loop_workfn Call Trace: dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0xba/0x230 mm/kasan/report.c:482 kasan_report+0x117/0x150 mm/kasan/report.c:595 check_region_inline mm/kasan/generic.c:-1 [inline] kasan_check_range+0x264/0x2c0 mm/kasan/generic.c:200 __asan_memcpy+0x29/0x70 mm/kasan/shadow.c:105 memcpy_to_page include/linux/highmem.h:552 [inline] z_erofs_transform_plain+0x33c/0xa00 fs/erofs/decompressor.c:309 z_erofs_decompress_pcluster fs/erofs/zdata.c:1297 [inline] z_erofs_decompress_queue+0x1af7/0x3740 fs/erofs/zdata.c:1410 z_erofs_decompressqueue_work fs/erofs/zdata.c:1422 [inline] z_erofs_decompress_kickoff+0x2a2/0x330 fs/erofs/zdata.c:1480 z_erofs_endio+0x5c5/0x6d0 fs/erofs/zdata.c:1654 blk_update_request+0x57e/0xe60 block/blk-mq.c:1016 blk_mq_end_request+0x3e/0x70 block/blk-mq.c:1178 lo_rw_aio_complete drivers/block/loop.c:337 [inline] lo_rw_aio+0xcde/0xf00 drivers/block/loop.c:410 do_req_filebacked drivers/block/loop.c:436 [inline] loop_handle_cmd drivers/block/loop.c:1926 [inline] loop_process_work+0x958/0x11a0 drivers/block/loop.c:1961 process_one_work kernel/workqueue.c:3275 [inline] process_scheduled_works+0xb02/0x1830 kernel/workqueue.c:3358 worker_thread+0xa50/0xfc0 kernel/workqueue.c:3439 kthread+0x388/0x470 kernel/kthread.c:467 ret_from_fork+0x51e/0xb90 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 The buggy address belongs to the physical page: page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x58d46 flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff) raw: 04fff00000000000 0000000000000000 dead000000000122 0000000000000000 raw: 0000000000000000 fffffffffffffffc 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0xc40(GFP_NOFS), pid 5655, tgid 5655 (syz.0.17), ts 149891190113, free_ts 149890717788 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x231/0x280 mm/page_alloc.c:1889 prep_new_page mm/page_alloc.c:1897 [inline] get_page_from_freelist+0x24dc/0x2580 mm/page_alloc.c:3962 __alloc_frozen_pages_noprof+0x18d/0x380 mm/page_alloc.c:5250 alloc_pages_mpol+0x232/0x4a0 mm/mempolicy.c:2485 alloc_frozen_pages_noprof mm/mempolicy.c:2556 [inline] alloc_pages_noprof+0xa8/0x190 mm/mempolicy.c:2576 __erofs_allocpage+0x193/0x260 fs/erofs/zutil.c:190 z_erofs_fill_bio_vec fs/erofs/zdata.c:1560 [inline] z_erofs_submit_queue fs/erofs/zdata.c:1728 [inline] z_erofs_runqueue+0xb2f/0x20f0 fs/erofs/zdata.c:1808 z_erofs_readahead+0x8ad/0xc10 fs/erofs/zdata.c:1936 read_pages+0x193/0x5a0 mm/readahead.c:163 page_cache_ra_order+0x926/0xeb0 mm/readahead.c:521 filemap_readahead mm/filemap.c:2658 [inline] filemap_get_pages+0x897/0x1f10 mm/filemap.c:2704 filemap_read+0x447/0x1230 mm/filemap.c:2800 erofs_file_read_iter+0x247/0x2d0 fs/erofs/data.c:441 __kernel_read+0x504/0x9b0 fs/read_write.c:532 integrity_kernel_read+0x89/0xd0 security/integrity/iint.c:28 ima_calc_file_hash_tfm security/integrity/ima/ima_crypto.c:480 [inline] ima_calc_file_shash security/integrity/ima/ima_crypto.c:511 [inline] ima_calc_file_hash+0x12c3/0x17f0 security/integrity/ima/ima_crypto.c:568 page last free pid 5655 tgid 5655 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] __free_pages_prepare mm/page_alloc.c:1433 [inline] __free_frozen_pages+0xc2b/0xdb0 mm/page_alloc.c:2978 __folio_put+0x414/0x4f0 mm/swap.c:112 erofs_release_pages+0x1c0/0x270 fs/erofs/zutil.c:213 z_erofs_decompressqueue_work fs/erofs/zdata.c:1423 [inline] z_erofs_decompress_kickoff+0x2aa/0x330 fs/erofs/zdata.c:1480 z_erofs_submit_queue fs/erofs/zdata.c:1791 [inline] z_erofs_runqueue+0x1db8/0x20f0 fs/erofs/zdata.c:1808 z_erofs_readahead+0x8ad/0xc10 fs/erofs/zdata.c:1936 read_pages+0x193/0x5a0 mm/readahead.c:163 page_cache_ra_order+0x926/0xeb0 mm/readahead.c:521 filemap_get_pages+0x4c0/0x1f10 mm/filemap.c:2690 filemap_read+0x447/0x1230 mm/filemap.c:2800 erofs_file_read_iter+0x247/0x2d0 fs/erofs/data.c:441 __kernel_read+0x504/0x9b0 fs/read_write.c:532 integrity_kernel_read+0x89/0xd0 security/integrity/iint.c:28 ima_calc_file_hash_tfm security/integrity/ima/ima_crypto.c:480 [inline] ima_calc_file_shash security/integrity/ima/ima_crypto.c:511 [inline] ima_calc_file_hash+0x12c3/0x17f0 security/integrity/ima/ima_crypto.c:568 ima_collect_measurement+0x48b/0x930 security/integrity/ima/ima_api.c:294 process_measurement+0x12cd/0x1c80 security/integrity/ima/ima_main.c:407 Memory state around the buggy address: ffff888058d46f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888058d46f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff888058d47000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff888058d47080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888058d47100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ================================================================== final repro crashed as (corrupted=false): ================================================================== BUG: KASAN: slab-out-of-bounds in memcpy_to_page include/linux/highmem.h:552 [inline] BUG: KASAN: slab-out-of-bounds in z_erofs_transform_plain+0x33c/0xa00 fs/erofs/decompressor.c:309 Read of size 4096 at addr ffff888058d46800 by task kworker/u4:9/1092 CPU: 0 UID: 0 PID: 1092 Comm: kworker/u4:9 Not tainted syzkaller #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 Workqueue: loop0 loop_workfn Call Trace: dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0xba/0x230 mm/kasan/report.c:482 kasan_report+0x117/0x150 mm/kasan/report.c:595 check_region_inline mm/kasan/generic.c:-1 [inline] kasan_check_range+0x264/0x2c0 mm/kasan/generic.c:200 __asan_memcpy+0x29/0x70 mm/kasan/shadow.c:105 memcpy_to_page include/linux/highmem.h:552 [inline] z_erofs_transform_plain+0x33c/0xa00 fs/erofs/decompressor.c:309 z_erofs_decompress_pcluster fs/erofs/zdata.c:1297 [inline] z_erofs_decompress_queue+0x1af7/0x3740 fs/erofs/zdata.c:1410 z_erofs_decompressqueue_work fs/erofs/zdata.c:1422 [inline] z_erofs_decompress_kickoff+0x2a2/0x330 fs/erofs/zdata.c:1480 z_erofs_endio+0x5c5/0x6d0 fs/erofs/zdata.c:1654 blk_update_request+0x57e/0xe60 block/blk-mq.c:1016 blk_mq_end_request+0x3e/0x70 block/blk-mq.c:1178 lo_rw_aio_complete drivers/block/loop.c:337 [inline] lo_rw_aio+0xcde/0xf00 drivers/block/loop.c:410 do_req_filebacked drivers/block/loop.c:436 [inline] loop_handle_cmd drivers/block/loop.c:1926 [inline] loop_process_work+0x958/0x11a0 drivers/block/loop.c:1961 process_one_work kernel/workqueue.c:3275 [inline] process_scheduled_works+0xb02/0x1830 kernel/workqueue.c:3358 worker_thread+0xa50/0xfc0 kernel/workqueue.c:3439 kthread+0x388/0x470 kernel/kthread.c:467 ret_from_fork+0x51e/0xb90 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 The buggy address belongs to the physical page: page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x58d46 flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff) raw: 04fff00000000000 0000000000000000 dead000000000122 0000000000000000 raw: 0000000000000000 fffffffffffffffc 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0xc40(GFP_NOFS), pid 5655, tgid 5655 (syz.0.17), ts 149891190113, free_ts 149890717788 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x231/0x280 mm/page_alloc.c:1889 prep_new_page mm/page_alloc.c:1897 [inline] get_page_from_freelist+0x24dc/0x2580 mm/page_alloc.c:3962 __alloc_frozen_pages_noprof+0x18d/0x380 mm/page_alloc.c:5250 alloc_pages_mpol+0x232/0x4a0 mm/mempolicy.c:2485 alloc_frozen_pages_noprof mm/mempolicy.c:2556 [inline] alloc_pages_noprof+0xa8/0x190 mm/mempolicy.c:2576 __erofs_allocpage+0x193/0x260 fs/erofs/zutil.c:190 z_erofs_fill_bio_vec fs/erofs/zdata.c:1560 [inline] z_erofs_submit_queue fs/erofs/zdata.c:1728 [inline] z_erofs_runqueue+0xb2f/0x20f0 fs/erofs/zdata.c:1808 z_erofs_readahead+0x8ad/0xc10 fs/erofs/zdata.c:1936 read_pages+0x193/0x5a0 mm/readahead.c:163 page_cache_ra_order+0x926/0xeb0 mm/readahead.c:521 filemap_readahead mm/filemap.c:2658 [inline] filemap_get_pages+0x897/0x1f10 mm/filemap.c:2704 filemap_read+0x447/0x1230 mm/filemap.c:2800 erofs_file_read_iter+0x247/0x2d0 fs/erofs/data.c:441 __kernel_read+0x504/0x9b0 fs/read_write.c:532 integrity_kernel_read+0x89/0xd0 security/integrity/iint.c:28 ima_calc_file_hash_tfm security/integrity/ima/ima_crypto.c:480 [inline] ima_calc_file_shash security/integrity/ima/ima_crypto.c:511 [inline] ima_calc_file_hash+0x12c3/0x17f0 security/integrity/ima/ima_crypto.c:568 page last free pid 5655 tgid 5655 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] __free_pages_prepare mm/page_alloc.c:1433 [inline] __free_frozen_pages+0xc2b/0xdb0 mm/page_alloc.c:2978 __folio_put+0x414/0x4f0 mm/swap.c:112 erofs_release_pages+0x1c0/0x270 fs/erofs/zutil.c:213 z_erofs_decompressqueue_work fs/erofs/zdata.c:1423 [inline] z_erofs_decompress_kickoff+0x2aa/0x330 fs/erofs/zdata.c:1480 z_erofs_submit_queue fs/erofs/zdata.c:1791 [inline] z_erofs_runqueue+0x1db8/0x20f0 fs/erofs/zdata.c:1808 z_erofs_readahead+0x8ad/0xc10 fs/erofs/zdata.c:1936 read_pages+0x193/0x5a0 mm/readahead.c:163 page_cache_ra_order+0x926/0xeb0 mm/readahead.c:521 filemap_get_pages+0x4c0/0x1f10 mm/filemap.c:2690 filemap_read+0x447/0x1230 mm/filemap.c:2800 erofs_file_read_iter+0x247/0x2d0 fs/erofs/data.c:441 __kernel_read+0x504/0x9b0 fs/read_write.c:532 integrity_kernel_read+0x89/0xd0 security/integrity/iint.c:28 ima_calc_file_hash_tfm security/integrity/ima/ima_crypto.c:480 [inline] ima_calc_file_shash security/integrity/ima/ima_crypto.c:511 [inline] ima_calc_file_hash+0x12c3/0x17f0 security/integrity/ima/ima_crypto.c:568 ima_collect_measurement+0x48b/0x930 security/integrity/ima/ima_api.c:294 process_measurement+0x12cd/0x1c80 security/integrity/ima/ima_main.c:407 Memory state around the buggy address: ffff888058d46f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888058d46f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff888058d47000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff888058d47080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888058d47100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================