Hello,
syzbot tried to test the proposed patch but the build/boot failed:
WARNING in __mod_memcg_lruvec_state
------------[ cut here ]------------
WARNING: CPU: 0 PID: 34 at mm/memcontrol.c:749 __mod_memcg_lruvec_state+0x1ab/0x220
Modules linked in:
CPU: 0 PID: 34 Comm: khugepaged Not tainted 5.17.0-rc5-next-20220225-syzkaller-09128-g06aeb1495c39 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__mod_memcg_lruvec_state+0x1ab/0x220
Code: bb 13 92 0e 48 c7 c7 a0 b6 d9 89 e8 df cd 95 07 65 c7 05 f4 c8 37 7e 00 00 00 00 48 83 c4 08 5b 5d 41 5c 41 5d 41 5e 41 5f c3 <0f> 0b e9 a6 fe ff ff 4c 89 f6 48 c7 c7 60 63 ee 8b e8 0f fb 45 02
RSP: 0018:ffffc90000ab7b68 EFLAGS: 00010202
RAX: 0000000000000206 RBX: 0000000000000200 RCX: ffffffff81aafa53
RDX: 1ffff1100218fa8d RSI: 000000000000001c RDI: ffff888010c7d468
RBP: ffff888010c7d000 R08: 0000000000000001 R09: ffffffff8ba144e7
R10: fffffbfff174289c R11: 0000000000000001 R12: 000000000000001c
R13: ffff888010e60000 R14: ffff888010e60000 R15: ffff88813fffa000
FS: 0000000000000000(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fcdb3e6a000 CR3: 0000000021a66000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
__mod_lruvec_page_state+0x1e5/0x3e0
page_add_new_anon_rmap+0x2e5/0x930
khugepaged+0x5675/0x6720
kthread+0x2e9/0x3a0
ret_from_fork+0x1f/0x30
</TASK>
DUID 00:04:31:81:bd:3a:74:32:45:5d:eb:38:a8:c9:66:19:d5:78
forked to background, child pid 3172
[ 28.009463][ T3173] 8021q: adding VLAN 0 to HW filter on device bond0
[ 28.019187][ T3173] eql: remember to turn off Van-Jacobson compression on your slave devices
Starting sshd: OK
syzkaller
Warning: Permanently added '10.128.10.51' (ECDSA) to the list of known hosts.
2022/02/26 18:10:08 fuzzer started
2022/02/26 18:10:08 connecting to host at
10.128.0.169:33047
2022/02/26 18:10:08 checking machine...
2022/02/26 18:10:08 checking revisions...
2022/02/26 18:10:09 testing simple program...
syzkaller login: [ 50.606856][ T3593] cgroup: Unknown subsys name 'net'
[ 50.750087][ T3593] cgroup: Unknown subsys name 'rlimit'
[ 51.999929][ T3598] Bluetooth: hci0: unexpected cc 0x0c03 length: 249 > 1
[ 52.008568][ T3598] Bluetooth: hci0: unexpected cc 0x1003 length: 249 > 9
[ 52.016582][ T3598] Bluetooth: hci0: unexpected cc 0x1001 length: 249 > 9
[ 52.024932][ T3598] Bluetooth: hci0: unexpected cc 0x0c23 length: 249 > 4
[ 52.032733][ T3598] Bluetooth: hci0: unexpected cc 0x0c25 length: 249 > 3
[ 52.040222][ T3598] Bluetooth: hci0: unexpected cc 0x0c38 length: 249 > 2
[ 52.129607][ T3595] chnl_net:caif_netlink_parms(): no params data found
[ 52.175305][ T3595] bridge0: port 1(bridge_slave_0) entered blocking state
[ 52.183277][ T3595] bridge0: port 1(bridge_slave_0) entered disabled state
[ 52.191725][ T3595] device bridge_slave_0 entered promiscuous mode
[ 52.201020][ T3595] bridge0: port 2(bridge_slave_1) entered blocking state
[ 52.208358][ T3595] bridge0: port 2(bridge_slave_1) entered disabled state
[ 52.216420][ T3595] device bridge_slave_1 entered promiscuous mode
[ 52.237561][ T3595] bond0: (slave bond_slave_0): Enslaving as an active interface with an up link
[ 52.248480][ T3595] bond0: (slave bond_slave_1): Enslaving as an active interface with an up link
[ 52.271879][ T3595] team0: Port device team_slave_0 added
[ 52.281223][ T3595] team0: Port device team_slave_1 added
[ 52.299287][ T3595] batman_adv: batadv0: Adding interface: batadv_slave_0
[ 52.306454][ T3595] batman_adv: batadv0: The MTU of interface batadv_slave_0 is too small (1500) to handle the transport of batman-adv packets. Packets going over this interface will be fragmented on layer2 which could impact the performance. Setting the MTU to 1560 would solve the problem.
[ 52.333353][ T3595] batman_adv: batadv0: Not using interface batadv_slave_0 (retrying later): interface not active
[ 52.346667][ T3595] batman_adv: batadv0: Adding interface: batadv_slave_1
[ 52.353679][ T3595] batman_adv: batadv0: The MTU of interface batadv_slave_1 is too small (1500) to handle the transport of batman-adv packets. Packets going over this interface will be fragmented on layer2 which could impact the performance. Setting the MTU to 1560 would solve the problem.
[ 52.379919][ T3595] batman_adv: batadv0: Not using interface batadv_slave_1 (retrying later): interface not active
[ 52.406307][ T3595] device hsr_slave_0 entered promiscuous mode
[ 52.413750][ T3595] device hsr_slave_1 entered promiscuous mode
[ 52.495662][ T3595] netdevsim netdevsim0 netdevsim0: renamed from eth0
[ 52.506340][ T3595] netdevsim netdevsim0 netdevsim1: renamed from eth1
[ 52.516191][ T3595] netdevsim netdevsim0 netdevsim2: renamed from eth2
[ 52.525865][ T3595] netdevsim netdevsim0 netdevsim3: renamed from eth3
[ 52.548937][ T3595] bridge0: port 2(bridge_slave_1) entered blocking state
[ 52.556158][ T3595] bridge0: port 2(bridge_slave_1) entered forwarding state
[ 52.564608][ T3595] bridge0: port 1(bridge_slave_0) entered blocking state
[ 52.571872][ T3595] bridge0: port 1(bridge_slave_0) entered forwarding state
[ 52.616862][ T3595] 8021q: adding VLAN 0 to HW filter on device bond0
[ 52.629866][ T22] IPv6: ADDRCONF(NETDEV_CHANGE): veth0: link becomes ready
[ 52.640920][ T22] bridge0: port 1(bridge_slave_0) entered disabled state
[ 52.650139][ T22] bridge0: port 2(bridge_slave_1) entered disabled state
[ 52.659708][ T22] IPv6: ADDRCONF(NETDEV_CHANGE): bond0: link becomes ready
[ 52.672887][ T3595] 8021q: adding VLAN 0 to HW filter on device team0
[ 52.685647][ T14] IPv6: ADDRCONF(NETDEV_CHANGE): bridge_slave_0: link becomes ready
[ 52.694601][ T14] bridge0: port 1(bridge_slave_0) entered blocking state
[ 52.701684][ T14] bridge0: port 1(bridge_slave_0) entered forwarding state
[ 52.712651][ T3607] IPv6: ADDRCONF(NETDEV_CHANGE): bridge_slave_1: link becomes ready
[ 52.721794][ T3607] bridge0: port 2(bridge_slave_1) entered blocking state
[ 52.728901][ T3607] bridge0: port 2(bridge_slave_1) entered forwarding state
[ 52.748139][ T14] IPv6: ADDRCONF(NETDEV_CHANGE): team_slave_0: link becomes ready
[ 52.757318][ T14] IPv6: ADDRCONF(NETDEV_CHANGE): team0: link becomes ready
[ 52.769943][ T3606] IPv6: ADDRCONF(NETDEV_CHANGE): team_slave_1: link becomes ready
[ 52.786045][ T14] IPv6: ADDRCONF(NETDEV_CHANGE): hsr_slave_0: link becomes ready
[ 52.794661][ T14] IPv6: ADDRCONF(NETDEV_CHANGE): hsr_slave_1: link becomes ready
[ 52.806859][ T3595] IPv6: ADDRCONF(NETDEV_CHANGE): hsr0: link becomes ready
[ 52.826004][ T3606] IPv6: ADDRCONF(NETDEV_CHANGE): vxcan0: link becomes ready
[ 52.834637][ T3606] IPv6: ADDRCONF(NETDEV_CHANGE): vxcan1: link becomes ready
[ 52.846839][ T3595] 8021q: adding VLAN 0 to HW filter on device batadv0
[ 52.954643][ T3607] IPv6: ADDRCONF(NETDEV_CHANGE): veth0_virt_wifi: link becomes ready
[ 52.964304][ T3607] IPv6: ADDRCONF(NETDEV_CHANGE): veth0_vlan: link becomes ready
[ 52.972891][ T3607] IPv6: ADDRCONF(NETDEV_CHANGE): vlan0: link becomes ready
[ 52.981197][ T3607] IPv6: ADDRCONF(NETDEV_CHANGE): vlan1: link becomes ready
[ 52.992480][ T3595] device veth0_vlan entered promiscuous mode
[ 53.004325][ T3595] device veth1_vlan entered promiscuous mode
[ 53.022333][ T14] IPv6: ADDRCONF(NETDEV_CHANGE): macvlan0: link becomes ready
[ 53.031304][ T14] IPv6: ADDRCONF(NETDEV_CHANGE): macvlan1: link becomes ready
[ 53.040646][ T14] IPv6: ADDRCONF(NETDEV_CHANGE): veth0_macvtap: link becomes ready
[ 53.052172][ T3595] device veth0_macvtap entered promiscuous mode
[ 53.061691][ T3595] device veth1_macvtap entered promiscuous mode
[ 53.078479][ T3595] batman_adv: batadv0: Interface activated: batadv_slave_0
[ 53.086449][ T3607] IPv6: ADDRCONF(NETDEV_CHANGE): veth0_to_batadv: link becomes ready
[ 53.096191][ T3607] IPv6: ADDRCONF(NETDEV_CHANGE): macvtap0: link becomes ready
[ 53.107897][ T3595] batman_adv: batadv0: Interface activated: batadv_slave_1
[ 53.117764][ T3607] IPv6: ADDRCONF(NETDEV_CHANGE): veth1_to_batadv: link becomes ready
[ 53.128131][ T3595] netdevsim netdevsim0 netdevsim0: set [1, 0] type 2 family 0 port 6081 - 0
[ 53.137414][ T3595] netdevsim netdevsim0 netdevsim1: set [1, 0] type 2 family 0 port 6081 - 0
[ 53.147733][ T3595] netdevsim netdevsim0 netdevsim2: set [1, 0] type 2 family 0 port 6081 - 0
[ 53.157907][ T3595] netdevsim netdevsim0 netdevsim3: set [1, 0] type 2 family 0 port 6081 - 0
[ 53.225098][ T91] wlan0: Created IBSS using preconfigured BSSID 50:50:50:50:50:50
[ 53.233559][ T91] wlan0: Creating new IBSS network, BSSID 50:50:50:50:50:50
[ 53.249628][ T142] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[ 53.269030][ T91] wlan1: Created IBSS using preconfigured BSSID 50:50:50:50:50:50
[ 53.277653][ T91] wlan1: Creating new IBSS network, BSSID 50:50:50:50:50:50
[ 53.287027][ T142] IPv6: ADDRCONF(NETDEV_CHANGE): wlan1: link becomes ready
2022/02/26 18:10:11 building call list...
executing program
[ 53.821112][ T34] ------------[ cut here ]------------
[ 53.827109][ T34] WARNING: CPU: 0 PID: 34 at mm/memcontrol.c:749 __mod_memcg_lruvec_state+0x1ab/0x220
[ 53.837302][ T34] Modules linked in:
[ 53.841230][ T34] CPU: 0 PID: 34 Comm: khugepaged Not tainted 5.17.0-rc5-next-20220225-syzkaller-09128-g06aeb1495c39 #0
[ 53.852923][ T34] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
[ 53.863180][ T34] RIP: 0010:__mod_memcg_lruvec_state+0x1ab/0x220
[ 53.870101][ T34] Code: bb 13 92 0e 48 c7 c7 a0 b6 d9 89 e8 df cd 95 07 65 c7 05 f4 c8 37 7e 00 00 00 00 48 83 c4 08 5b 5d 41 5c 41 5d 41 5e 41 5f c3 <0f> 0b e9 a6 fe ff ff 4c 89 f6 48 c7 c7 60 63 ee 8b e8 0f fb 45 02
[ 53.890382][ T34] RSP: 0018:ffffc90000ab7b68 EFLAGS: 00010202
[ 53.896639][ T34] RAX: 0000000000000206 RBX: 0000000000000200 RCX: ffffffff81aafa53
[ 53.904890][ T34] RDX: 1ffff1100218fa8d RSI: 000000000000001c RDI: ffff888010c7d468
[ 53.912865][ T34] RBP: ffff888010c7d000 R08: 0000000000000001 R09: ffffffff8ba144e7
[ 53.921359][ T34] R10: fffffbfff174289c R11: 0000000000000001 R12: 000000000000001c
[ 53.929495][ T34] R13: ffff888010e60000 R14: ffff888010e60000 R15: ffff88813fffa000
[ 53.937547][ T34] FS: 0000000000000000(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000
[ 53.946917][ T34] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 53.953664][ T34] CR2: 00007fcdb3e6a000 CR3: 0000000021a66000 CR4: 00000000003506f0
[ 53.961660][ T34] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[ 53.969784][ T34] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[ 53.977806][ T34] Call Trace:
[ 53.981130][ T34] <TASK>
[ 53.984111][ T34] __mod_lruvec_page_state+0x1e5/0x3e0
[ 53.989618][ T34] page_add_new_anon_rmap+0x2e5/0x930
[ 53.995254][ T34] khugepaged+0x5675/0x6720
[ 53.999892][ T34] ? collapse_pte_mapped_thp+0xbd0/0xbd0
[ 54.005678][ T34] ? finish_wait+0x270/0x270
[ 54.010294][ T34] ? __kthread_parkme+0xce/0x220
[ 54.015303][ T34] ? lock_downgrade+0x6e0/0x6e0
[ 54.020196][ T34] ? lockdep_hardirqs_on+0x79/0x100
[ 54.025653][ T34] ? __sanitizer_cov_trace_const_cmp1+0x22/0x80
[ 54.031930][ T34] ? __kthread_parkme+0x15f/0x220
[ 54.037130][ T34] ? collapse_pte_mapped_thp+0xbd0/0xbd0
[ 54.042789][ T34] kthread+0x2e9/0x3a0
[ 54.047258][ T34] ? kthread_complete_and_exit+0x40/0x40
[ 54.052960][ T34] ret_from_fork+0x1f/0x30
[ 54.057652][ T34] </TASK>
[ 54.060668][ T34] Kernel panic - not syncing: panic_on_warn set ...
[ 54.067237][ T34] CPU: 0 PID: 34 Comm: khugepaged Not tainted 5.17.0-rc5-next-20220225-syzkaller-09128-g06aeb1495c39 #0
[ 54.078332][ T34] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
[ 54.088393][ T34] Call Trace:
[ 54.091777][ T34] <TASK>
[ 54.094705][ T34] dump_stack_lvl+0xcd/0x134
[ 54.099301][ T34] panic+0x2d7/0x735
[ 54.103204][ T34] ? __warn_printk+0xf3/0xf3
[ 54.107807][ T34] ? __warn.cold+0x1d1/0x2c5
[ 54.112404][ T34] ? __mod_memcg_lruvec_state+0x1ab/0x220
[ 54.118138][ T34] __warn.cold+0x1e2/0x2c5
[ 54.122570][ T34] ? __mod_memcg_lruvec_state+0x1ab/0x220
[ 54.128301][ T34] report_bug+0x1bd/0x210
[ 54.132651][ T34] handle_bug+0x3c/0x60
[ 54.136804][ T34] exc_invalid_op+0x14/0x40
[ 54.141304][ T34] asm_exc_invalid_op+0x12/0x20
[ 54.146198][ T34] RIP: 0010:__mod_memcg_lruvec_state+0x1ab/0x220
[ 54.152649][ T34] Code: bb 13 92 0e 48 c7 c7 a0 b6 d9 89 e8 df cd 95 07 65 c7 05 f4 c8 37 7e 00 00 00 00 48 83 c4 08 5b 5d 41 5c 41 5d 41 5e 41 5f c3 <0f> 0b e9 a6 fe ff ff 4c 89 f6 48 c7 c7 60 63 ee 8b e8 0f fb 45 02
[ 54.172279][ T34] RSP: 0018:ffffc90000ab7b68 EFLAGS: 00010202
[ 54.178358][ T34] RAX: 0000000000000206 RBX: 0000000000000200 RCX: ffffffff81aafa53
[ 54.186504][ T34] RDX: 1ffff1100218fa8d RSI: 000000000000001c RDI: ffff888010c7d468
[ 54.194475][ T34] RBP: ffff888010c7d000 R08: 0000000000000001 R09: ffffffff8ba144e7
[ 54.202461][ T34] R10: fffffbfff174289c R11: 0000000000000001 R12: 000000000000001c
[ 54.210521][ T34] R13: ffff888010e60000 R14: ffff888010e60000 R15: ffff88813fffa000
[ 54.218499][ T34] ? __mod_node_page_state+0xf3/0x130
[ 54.223919][ T34] __mod_lruvec_page_state+0x1e5/0x3e0
[ 54.229405][ T34] page_add_new_anon_rmap+0x2e5/0x930
[ 54.235145][ T34] khugepaged+0x5675/0x6720
[ 54.239681][ T34] ? collapse_pte_mapped_thp+0xbd0/0xbd0
[ 54.245503][ T34] ? finish_wait+0x270/0x270
[ 54.250130][ T34] ? __kthread_parkme+0xce/0x220
[ 54.255106][ T34] ? lock_downgrade+0x6e0/0x6e0
[ 54.259988][ T34] ? lockdep_hardirqs_on+0x79/0x100
[ 54.265198][ T34] ? __sanitizer_cov_trace_const_cmp1+0x22/0x80
[ 54.271468][ T34] ? __kthread_parkme+0x15f/0x220
[ 54.276529][ T34] ? collapse_pte_mapped_thp+0xbd0/0xbd0
[ 54.282182][ T34] kthread+0x2e9/0x3a0
[ 54.286277][ T34] ? kthread_complete_and_exit+0x40/0x40
[ 54.291945][ T34] ret_from_fork+0x1f/0x30
[ 54.296404][ T34] </TASK>
[ 54.299667][ T34] Kernel Offset: disabled
[ 54.304407][ T34] Rebooting in 86400 seconds..
Tested on:
commit: 06aeb149 Add linux-next specific files for 20220225
git tree: linux-next
kernel config:
https://syzkaller.appspot.com/x/.config?x=e66975300ad76350
Note: no patches were applied.