perf_event_open(&(0x7f0000000140)={0x2, 0x80, 0xf1, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, @perf_bp={0x0}}, 0x0, 0x0, 0xffffffffffffffff, 0x0) openat$ptmx(0xffffffffffffff9c, &(0x7f00000002c0), 0x0, 0x0) r0 = gettid() capset(&(0x7f0000000080)={0x20071026, r0}, &(0x7f0000000000)) r1 = openat$ptmx(0xffffffffffffff9c, &(0x7f00000002c0), 0x0, 0x0) r2 = syz_open_dev$sg(&(0x7f0000000000), 0x0, 0x40001) r3 = dup2(r2, r1) write$binfmt_aout(r3, &(0x7f0000000180)=ANY=[], 0x120) ioctl$SG_GET_PACK_ID(r3, 0x227c, &(0x7f00000000c0)) perf_event_open(&(0x7f0000000040)={0x1, 0x80, 0x57, 0x8, 0x9, 0x81, 0x0, 0x6, 0x4000, 0x0, 0x0, 0x1, 0x0, 0x1, 0x0, 0x1, 0x1, 0x1, 0x0, 0x0, 0x1, 0x0, 0x0, 0x0, 0x1, 0x2, 0x0, 0x1, 0x0, 0x0, 0x1, 0x0, 0x1, 0x0, 0x0, 0x1, 0x0, 0x0, 0x0, 0x1, 0x1, 0x0, 0x1, 0x0, 0x1, 0x0, 0x1, 0x0, 0x5, 0x4, @perf_config_ext={0x6, 0x3}, 0x40, 0x0, 0x0, 0x0, 0x0, 0x6, 0xb5, 0x0, 0x2, 0x0, 0x2}, r0, 0xa, r3, 0x12) syz_open_dev$sg(&(0x7f0000000000), 0x0, 0x40001) r4 = openat$ptmx(0xffffffffffffff9c, &(0x7f00000002c0), 0x0, 0x0) r5 = syz_open_dev$sg(&(0x7f0000000000), 0x0, 0x40001) r6 = dup2(r5, r4) ioctl$SCSI_IOCTL_SEND_COMMAND(r6, 0x1, &(0x7f0000000440)=ANY=[@ANYBLOB="a8000000810000003f000000591276c8d27e87cf9dbd296f12d5a861c98922e630b0d9d184d6e55ed1dd90fdddbc5321b72629e5ebb6f8a2c1ea7537ddcf415ada9f0e74d20577e402ba32a472e25f62bf1b62ea5b4b177ec2f89921cfbe46028ee0f5769df092c40eca71f75342efd93d0fd1e8b9c35bc81424b3d4a5c901f71068d577750a84dab2ab29eb970381edd714c5126130c5a60c045fb1748ef2b176caa7b12caa8851822772ab6b68a1062d19baea50a31b1fb36581154aba764cfd1c4db1a0132f8a93b8a674f85ab69999aced8ccf968361f12c1e57bac02262cd8c1213d312b401b89dbbb12b988440000000005f2e271e478a16a5f413b7635b96fc7b568767952837d943d2e5a5aac0f598"])