R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
 </TASK>
------------[ cut here ]------------
WARNING: CPU: 2 PID: 7661 at security/landlock/domain.h:133 landlock_free_hierarchy_details security/landlock/domain.h:133 [inline]
WARNING: CPU: 2 PID: 7661 at security/landlock/domain.h:133 landlock_put_hierarchy security/landlock/domain.h:168 [inline]
WARNING: CPU: 2 PID: 7661 at security/landlock/domain.h:133 free_ruleset+0x226/0x270 security/landlock/ruleset.c:490
Modules linked in:
CPU: 2 UID: 0 PID: 7661 Comm: syz.0.410 Not tainted 6.14.0-syzkaller-11270-g08733088b566 #0 PREEMPT(full) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014
RIP: 0010:landlock_free_hierarchy_details security/landlock/domain.h:133 [inline]
RIP: 0010:landlock_put_hierarchy security/landlock/domain.h:168 [inline]
RIP: 0010:free_ruleset+0x226/0x270 security/landlock/ruleset.c:490
Code: 84 61 ff ff ff 48 89 eb e9 12 ff ff ff e8 c2 d6 2e fd be 03 00 00 00 4c 89 f7 e8 05 e5 3e 00 e9 42 ff ff ff e8 ab d6 2e fd 90 <0f> 0b 90 eb af e8 b0 6e 92 fd e9 4a fe ff ff 48 89 df e8 a3 6e 92
RSP: 0018:ffffc9002238fe28 EFLAGS: 00010293
RAX: 0000000000000000 RBX: ffff88805b865e80 RCX: ffffffff848d52ef
RDX: ffff88806f2a2440 RSI: ffffffff848c5bd5 RDI: 0000000000000005
RBP: 0000000000000000 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: ffff888067bf6c00
R13: dffffc0000000000 R14: ffff88805b865ea0 R15: fffffffffffffff4
FS:  0000000000000000(0000) GS:ffff8880979d5000(0063) knlGS:00000000f5026b40
CS:  0010 DS: 002b ES: 002b CR0: 0000000080050033
CR2: 00000000f5025cc0 CR3: 000000006aa6a000 CR4: 0000000000352ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 landlock_put_ruleset security/landlock/ruleset.c:498 [inline]
 landlock_put_ruleset+0xa5/0xb0 security/landlock/ruleset.c:494
 __free_landlock_put_ruleset security/landlock/ruleset.h:200 [inline]
 landlock_merge_ruleset+0x218/0x870 security/landlock/ruleset.c:534
 __do_sys_landlock_restrict_self+0x2a2/0x910 security/landlock/syscalls.c:549
 do_syscall_32_irqs_on arch/x86/entry/syscall_32.c:83 [inline]
 __do_fast_syscall_32+0x73/0x120 arch/x86/entry/syscall_32.c:306
 do_fast_syscall_32+0x32/0x80 arch/x86/entry/syscall_32.c:331
 entry_SYSENTER_compat_after_hwframe+0x84/0x8e
RIP: 0023:0xf739e579
Code: b8 01 10 06 03 74 b4 01 10 07 03 74 b0 01 10 08 03 74 d8 01 00 00 00 00 00 00 00 00 00 00 00 00 00 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 8d b4 26 00 00 00 00 8d b4 26 00 00 00 00
RSP: 002b:00000000f502655c EFLAGS: 00000296 ORIG_RAX: 00000000000001be
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000000007
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
 </TASK>
----------------
Code disassembly (best guess), 2 bytes skipped:
   0:	10 06                	adc    %al,(%rsi)
   2:	03 74 b4 01          	add    0x1(%rsp,%rsi,4),%esi
   6:	10 07                	adc    %al,(%rdi)
   8:	03 74 b0 01          	add    0x1(%rax,%rsi,4),%esi
   c:	10 08                	adc    %cl,(%rax)
   e:	03 74 d8 01          	add    0x1(%rax,%rbx,8),%esi
  1e:	00 51 52             	add    %dl,0x52(%rcx)
  21:	55                   	push   %rbp
  22:	89 e5                	mov    %esp,%ebp
  24:	0f 34                	sysenter
  26:	cd 80                	int    $0x80
* 28:	5d                   	pop    %rbp <-- trapping instruction
  29:	5a                   	pop    %rdx
  2a:	59                   	pop    %rcx
  2b:	c3                   	ret
  2c:	90                   	nop
  2d:	90                   	nop
  2e:	90                   	nop
  2f:	90                   	nop
  30:	8d b4 26 00 00 00 00 	lea    0x0(%rsi,%riz,1),%esi
  37:	8d b4 26 00 00 00 00 	lea    0x0(%rsi,%riz,1),%esi