UBSAN: negation-overflow in seq_release soft_limit_in_bytes is deprecated and will be removed. Please report your usecase to linux-mm@kvack.org if you depend on this functionality. ------------[ cut here ]------------ UBSAN: negation-overflow in mm/memcontrol.c:3105:5 negation of 304 cannot be represented in type 'size_t' (aka 'unsigned long'): CPU: 0 UID: 0 PID: 6488 Comm: syz-executor Not tainted 6.15.0-rc2-syzkaller-00014-gc72692105976 #0 PREEMPT Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 Call trace: show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:466 (C) __dump_stack+0x30/0x40 lib/dump_stack.c:94 dump_stack_lvl+0xd8/0x12c lib/dump_stack.c:120 dump_stack+0x1c/0x28 lib/dump_stack.c:129 ubsan_epilogue+0x14/0x48 lib/ubsan.c:231 __ubsan_handle_negate_overflow+0xd0/0xfc lib/ubsan.c:302 __memcg_slab_free_hook+0x8c/0x238 mm/memcontrol.c:3105 memcg_slab_free_hook mm/slub.c:2214 [inline] slab_free mm/slub.c:4643 [inline] kmem_cache_free+0x270/0x550 mm/slub.c:4748 seq_release+0x68/0x7c fs/seq_file.c:356 kernfs_fop_release+0x134/0x190 fs/kernfs/file.c:766 __fput+0x340/0x75c fs/file_table.c:465 fput_close_sync+0x160/0x1d4 fs/file_table.c:570 __do_sys_close fs/open.c:1581 [inline] __se_sys_close fs/open.c:1566 [inline] __arm64_sys_close+0x7c/0x118 fs/open.c:1566 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:49 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:132 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:151 el0_svc+0x58/0x150 arch/arm64/kernel/entry-common.c:744 el0t_64_sync_handler+0x78/0x108 arch/arm64/kernel/entry-common.c:762 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:600 ---[ end trace ]--- forked to background, child pid 6142 [ 16.360446][ T6143] 8021q: adding VLAN 0 to HW filter on device bond0 [ 16.370416][ T6143] eql: remember to turn off Van-Jacobson compression on your slave devices [ 16.436202][ T12] gve 0000:00:00.0 enp0s0: Device link is up. Starting sshd: OK syzkaller Warning: Permanently added '10.128.1.13' (ED25519) to the list of known hosts. 1970/01/01 00:00:34 ignoring optional flag "sandboxArg"="0" 1970/01/01 00:00:35 parsed 1 programs syzkaller login: [ 38.356317][ T6479] cgroup: Unknown subsys name 'net' [ 38.663570][ T6479] cgroup: Unknown subsys name 'cpuset' [ 38.668407][ T6479] cgroup: Unknown subsys name 'rlimit' [ 38.989679][ T6479] Adding 124996k swap on ./swap-file. Priority:0 extents:1 across:124996k SS [ 56.596406][ T590] wlan0: Created IBSS using preconfigured BSSID 50:50:50:50:50:50 [ 56.598740][ T590] wlan0: Creating new IBSS network, BSSID 50:50:50:50:50:50 [ 56.609266][ T590] wlan1: Created IBSS using preconfigured BSSID 50:50:50:50:50:50 [ 56.611594][ T590] wlan1: Creating new IBSS network, BSSID 50:50:50:50:50:50 [ 56.707085][ T6488] soft_limit_in_bytes is deprecated and will be removed. Please report your usecase to linux-mm@kvack.org if you depend on this functionality. [ 56.707216][ T6488] ------------[ cut here ]------------ [ 56.707237][ T6488] UBSAN: negation-overflow in mm/memcontrol.c:3105:5 [ 56.707259][ T6488] negation of 304 cannot be represented in type 'size_t' (aka 'unsigned long'): [ 56.707281][ T6488] CPU: 0 UID: 0 PID: 6488 Comm: syz-executor Not tainted 6.15.0-rc2-syzkaller-00014-gc72692105976 #0 PREEMPT [ 56.707295][ T6488] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 [ 56.707302][ T6488] Call trace: [ 56.707306][ T6488] show_stack+0x2c/0x3c (C) [ 56.707325][ T6488] __dump_stack+0x30/0x40 [ 56.707339][ T6488] dump_stack_lvl+0xd8/0x12c [ 56.707351][ T6488] dump_stack+0x1c/0x28 [ 56.707363][ T6488] ubsan_epilogue+0x14/0x48 [ 56.707375][ T6488] __ubsan_handle_negate_overflow+0xd0/0xfc [ 56.707390][ T6488] __memcg_slab_free_hook+0x8c/0x238 [ 56.707405][ T6488] kmem_cache_free+0x270/0x550 [ 56.707418][ T6488] seq_release+0x68/0x7c [ 56.707429][ T6488] kernfs_fop_release+0x134/0x190 [ 56.707441][ T6488] __fput+0x340/0x75c [ 56.707454][ T6488] fput_close_sync+0x160/0x1d4 [ 56.707467][ T6488] __arm64_sys_close+0x7c/0x118 [ 56.707480][ T6488] invoke_syscall+0x98/0x2b8 [ 56.707492][ T6488] el0_svc_common+0x130/0x23c [ 56.707505][ T6488] do_el0_svc+0x48/0x58 [ 56.707517][ T6488] el0_svc+0x58/0x150 [ 56.707529][ T6488] el0t_64_sync_handler+0x78/0x108 [ 56.707540][ T6488] el0t_64_sync+0x198/0x19c [ 56.707554][ T6488] ---[ end trace ]--- [ 56.757640][ T6481] ------------[ cut here ]------------ [ 56.757928][ T6481] UBSAN: negation-overflow in mm/percpu.c:1665:4 [ 56.757946][ T6481] negation of 64 cannot be represented in type 'size_t' (aka 'unsigned long'): [ 56.757963][ T6481] CPU: 1 UID: 0 PID: 6481 Comm: syz-execprog Not tainted 6.15.0-rc2-syzkaller-00014-gc72692105976 #0 PREEMPT [ 56.757977][ T6481] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 [ 56.757984][ T6481] Call trace: [ 56.757988][ T6481] show_stack+0x2c/0x3c (C) [ 56.758007][ T6481] __dump_stack+0x30/0x40 [ 56.758021][ T6481] dump_stack_lvl+0xd8/0x12c [ 56.758033][ T6481] dump_stack+0x1c/0x28 [ 56.758045][ T6481] ubsan_epilogue+0x14/0x48 [ 56.758056][ T6481] __ubsan_handle_negate_overflow+0xd0/0xfc [ 56.758071][ T6481] free_percpu+0xe00/0xfe8 [ 56.758084][ T6481] percpu_counter_destroy_many+0x1fc/0x320 [ 56.758099][ T6481] __mmdrop+0x2b8/0x424 [ 56.758120][ T6481] finish_task_switch+0x4a0/0x5a4 [ 56.758132][ T6481] __schedule+0x13b4/0x28d4 [ 56.758146][ T6481] schedule+0xb4/0x230 [ 56.758159][ T6481] schedule_hrtimeout_range_clock+0x124/0x2b4 [ 56.758171][ T6481] schedule_hrtimeout_range+0x38/0x4c [ 56.758182][ T6481] ep_poll+0xa04/0xcd8 [ 56.758195][ T6481] do_epoll_wait+0x194/0x204 [ 56.758207][ T6481] do_epoll_pwait+0x70/0x18c [ 56.758219][ T6481] __arm64_sys_epoll_pwait+0x1e0/0x234 [ 56.758232][ T6481] invoke_syscall+0x98/0x2b8 [ 56.758244][ T6481] el0_svc_common+0x130/0x23c [ 56.758256][ T6481] do_el0_svc+0x48/0x58 [ 56.758268][ T6481] el0_svc+0x58/0x150 [ 56.758279][ T6481] el0t_64_sync_handler+0x78/0x108 [ 56.758290][ T6481] el0t_64_sync+0x198/0x19c [ 56.758302][ T6481] ---[ end trace ]--- [ 58.412457][ T6531] chnl_net:caif_netlink_parms(): no params data found [ 58.483558][ T6531] bridge0: port 1(bridge_slave_0) entered blocking state [ 58.485790][ T6531] bridge0: port 1(bridge_slave_0) entered disabled state [ 58.487870][ T6531] bridge_slave_0: entered allmulticast mode [ 58.490446][ T6531] bridge_slave_0: entered promiscuous mode [ 58.494453][ T6531] bridge0: port 2(bridge_slave_1) entered blocking state [ 58.496556][ T6531] bridge0: port 2(bridge_slave_1) entered disabled state [ 58.498609][ T6531] bridge_slave_1: entered allmulticast mode [ 58.502438][ T6531] bridge_slave_1: entered promiscuous mode [ 58.527240][ T6531] bond0: (slave bond_slave_0): Enslaving as an active interface with an up link [ 58.528862][ T6531] bond0: (slave bond_slave_1): Enslaving as an active interface with an up link [ 58.542765][ T6531] team0: Port device team_slave_0 added [ 58.544412][ T6531] team0: Port device team_slave_1 added [ 58.557986][ T6531] batman_adv: batadv0: Adding interface: batadv_slave_0 [ 58.558036][ T6531] 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. [ 58.558065][ T6531] batman_adv: batadv0: Not using interface batadv_slave_0 (retrying later): interface not active [ 58.559366][ T6531] batman_adv: batadv0: Adding interface: batadv_slave_1 [ 58.559392][ T6531] 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. [ 58.559419][ T6531] batman_adv: batadv0: Not using interface batadv_slave_1 (retrying later): interface not active [ 58.593376][ T6531] hsr_slave_0: entered promiscuous mode [ 58.595448][ T6531] hsr_slave_1: entered promiscuous mode [ 58.711085][ T6531] netdevsim netdevsim0 netdevsim0: renamed from eth0 [ 58.720613][ T6531] netdevsim netdevsim0 netdevsim1: renamed from eth1 [ 58.724597][ T6531] netdevsim netdevsim0 netdevsim2: renamed from eth2 [ 58.729941][ T6531] netdevsim netdevsim0 netdevsim3: renamed from eth3 [ 58.771923][ T6531] 8021q: adding VLAN 0 to HW filter on device bond0 [ 58.779280][ T6531] 8021q: adding VLAN 0 to HW filter on device team0 [ 58.785166][ T590] bridge0: port 1(bridge_slave_0) entered blocking state [ 58.785294][ T590] bridge0: port 1(bridge_slave_0) entered forwarding state [ 58.786590][ T590] bridge0: port 2(bridge_slave_1) entered blocking state [ 58.786644][ T590] bridge0: port 2(bridge_slave_1) entered forwarding state [ 58.884854][ T6531] 8021q: adding VLAN 0 to HW filter on device batadv0 [ 58.910233][ T6531] veth0_vlan: entered promiscuous mode [ 58.915125][ T6531] veth1_vlan: entered promiscuous mode [ 58.930448][ T6531] veth0_macvtap: entered promiscuous mode [ 58.934969][ T6531] veth1_macvtap: entered promiscuous mode [ 58.942855][ T6531] batman_adv: batadv0: Interface activated: batadv_slave_0 [ 58.948485][ T6531] batman_adv: batadv0: Interface activated: batadv_slave_1 [ 58.953937][ T6531] netdevsim netdevsim0 netdevsim0: set [1, 0] type 2 family 0 port 6081 - 0 [ 58.956611][ T6531] netdevsim netdevsim0 netdevsim1: set [1, 0] type 2 family 0 port 6081 - 0 [ 58.959063][ T6531] netdevsim netdevsim0 netdevsim2: set [1, 0] type 2 family 0 port 6081 - 0 [ 58.960997][ T6531] netdevsim netdevsim0 netdevsim3: set [1, 0] type 2 family 0 port 6081 - 0 [ 58.982371][ T24] ------------[ cut here ]------------ [ 58.982475][ T24] UBSAN: unsigned-integer-overflow in lib/crypto/chacha20poly1305.c:257:57 [ 58.982527][ T24] 48 - 64 cannot be represented in type 'size_t' (aka 'unsigned long') [ 58.982556][ T24] CPU: 1 UID: 0 PID: 24 Comm: kworker/1:0 Not tainted 6.15.0-rc2-syzkaller-00014-gc72692105976 #0 PREEMPT [ 58.982572][ T24] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 [ 58.982579][ T24] Workqueue: wg-crypt-wg1 wg_packet_encrypt_worker [ 58.982605][ T24] Call trace: [ 58.982608][ T24] show_stack+0x2c/0x3c (C) [ 58.982625][ T24] __dump_stack+0x30/0x40 [ 58.982638][ T24] dump_stack_lvl+0xd8/0x12c [ 58.982650][ T24] dump_stack+0x1c/0x28 [ 58.982662][ T24] ubsan_epilogue+0x14/0x48 [ 58.982673][ T24] handle_overflow+0x134/0x16c [ 58.982687][ T24] __ubsan_handle_sub_overflow+0x38/0x4c [ 58.982699][ T24] chacha20poly1305_crypt_sg_inplace+0x64c/0xc4c [ 58.982713][ T24] chacha20poly1305_encrypt_sg_inplace+0x54/0x70 [ 58.982725][ T24] wg_packet_encrypt_worker+0x718/0x11e0 [ 58.982736][ T24] process_one_work+0x7bc/0x156c [ 58.982749][ T24] worker_thread+0x958/0xed8 [ 58.982761][ T24] kthread+0x5fc/0x75c [ 58.982772][ T24] ret_from_fork+0x10/0x20 [ 58.982904][ T24] ---[ end trace ]--- [ 59.075158][ T6551] Bluetooth: hci0: unexpected cc 0x0c03 length: 249 > 1 [ 59.077191][ T6551] Bluetooth: hci0: unexpected cc 0x1003 length: 249 > 9 [ 59.078010][ T6551] Bluetooth: hci0: unexpected cc 0x1001 length: 249 > 9 [ 59.078699][ T6551] Bluetooth: hci0: unexpected cc 0x0c23 length: 249 > 4 [ 59.079130][ T6551] Bluetooth: hci0: unexpected cc 0x0c38 length: 249 > 2 [ 59.333790][ T12] netdevsim netdevsim0 netdevsim3 (unregistering): unset [1, 0] type 2 family 0 port 6081 - 0 [ 59.453018][ T12] netdevsim netdevsim0 netdevsim2 (unregistering): unset [1, 0] type 2 family 0 port 6081 - 0 [ 59.523609][ T12] netdevsim netdevsim0 netdevsim1 (unregistering): unset [1, 0] type 2 family 0 port 6081 - 0 [ 59.636221][ T12] netdevsim netdevsim0 netdevsim0 (unregistering): unset [1, 0] type 2 family 0 port 6081 - 0 1970/01/01 00:01:00 executed programs: 0 [ 60.658717][ T6042] Bluetooth: hci0: unexpected cc 0x0c03 length: 249 > 1 [ 60.662128][ T6042] Bluetooth: hci0: unexpected cc 0x1003 length: 249 > 9 [ 60.664716][ T6042] Bluetooth: hci0: unexpected cc 0x1001 length: 249 > 9 [ 60.667648][ T6042] Bluetooth: hci0: unexpected cc 0x0c23 length: 249 > 4 [ 60.670425][ T6042] Bluetooth: hci0: unexpected cc 0x0c38 length: 249 > 2 [ 60.766744][ T6589] chnl_net:caif_netlink_parms(): no params data found [ 60.808129][ T6589] bridge0: port 1(bridge_slave_0) entered blocking state [ 60.808247][ T6589] bridge0: port 1(bridge_slave_0) entered disabled state [ 60.808399][ T6589] bridge_slave_0: entered allmulticast mode [ 60.809282][ T6589] bridge_slave_0: entered promiscuous mode [ 60.812317][ T6589] bridge0: port 2(bridge_slave_1) entered blocking state [ 60.812398][ T6589] bridge0: port 2(bridge_slave_1) entered disabled state [ 60.812537][ T6589] bridge_slave_1: entered allmulticast mode [ 60.816664][ T6589] bridge_slave_1: entered promiscuous mode [ 60.834713][ T6589] bond0: (slave bond_slave_0): Enslaving as an active interface with an up link [ 60.836412][ T6589] bond0: (slave bond_slave_1): Enslaving as an active interface with an up link [ 60.855508][ T6589] team0: Port device team_slave_0 added [ 60.858638][ T6589] team0: Port device team_slave_1 added [ 60.872617][ T6589] batman_adv: batadv0: Adding interface: batadv_slave_0 [ 60.872661][ T6589] 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. [ 60.872689][ T6589] batman_adv: batadv0: Not using interface batadv_slave_0 (retrying later): interface not active [ 60.873753][ T6589] batman_adv: batadv0: Adding interface: batadv_slave_1 [ 60.873777][ T6589] 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. [ 60.873805][ T6589] batman_adv: batadv0: Not using interface batadv_slave_1 (retrying later): interface not active [ 60.907518][ T6589] hsr_slave_0: entered promiscuous mode [ 60.908066][ T6589] hsr_slave_1: entered promiscuous mode [ 60.908588][ T6589] debugfs: Directory 'hsr0' with parent 'hsr' already present! [ 60.908710][ T6589] Cannot create hsr debugfs directory [ 62.527368][ T12] bridge_slave_1: left allmulticast mode [ 62.527485][ T12] bridge_slave_1: left promiscuous mode [ 62.527875][ T12] bridge0: port 2(bridge_slave_1) entered disabled state [ 62.537275][ T12] bridge_slave_0: left allmulticast mode [ 62.538896][ T12] bridge_slave_0: left promiscuous mode [ 62.540790][ T12] bridge0: port 1(bridge_slave_0) entered disabled state [ 62.681476][ T6042] Bluetooth: hci0: command tx timeout [ 64.204068][ T12] bond0 (unregistering): (slave bond_slave_0): Releasing backup interface [ 64.263334][ T12] bond0 (unregistering): (slave bond_slave_1): Releasing backup interface [ 64.312796][ T12] bond0 (unregistering): Released all slaves [ 64.396640][ T12] hsr_slave_0: left promiscuous mode [ 64.397203][ T12] hsr_slave_1: left promiscuous mode [ 64.398028][ T12] batman_adv: batadv0: Interface deactivated: batadv_slave_0 [ 64.398088][ T12] batman_adv: batadv0: Removing interface: batadv_slave_0 [ 64.399144][ T12] batman_adv: batadv0: Interface deactivated: batadv_slave_1 [ 64.399187][ T12] batman_adv: batadv0: Removing interface: batadv_slave_1 [ 64.412477][ T12] veth1_macvtap: left promiscuous mode [ 64.412637][ T12] veth0_macvtap: left promiscuous mode [ 64.412740][ T12] veth1_vlan: left promiscuous mode [ 64.412831][ T12] veth0_vlan: left promiscuous mode [ 64.762057][ T2387] ieee802154 phy0 wpan0: encryption failed: -22 [ 64.762890][ T6042] Bluetooth: hci0: command tx timeout [ 64.765668][ T2387] ieee802154 phy1 wpan1: encryption failed: -22 [ 66.572776][ T12] team0 (unregistering): Port device team_slave_1 removed syzkaller build log: go env (err=) GO111MODULE='auto' GOARCH='amd64' GOBIN='' GOCACHE='/syzkaller/.cache/go-build' GOENV='/syzkaller/.config/go/env' GOEXE='' GOEXPERIMENT='' GOFLAGS='' GOHOSTARCH='amd64' GOHOSTOS='linux' GOINSECURE='' GOMODCACHE='/syzkaller/jobs-2/linux/gopath/pkg/mod' GONOPROXY='' GONOSUMDB='' GOOS='linux' GOPATH='/syzkaller/jobs-2/linux/gopath' GOPRIVATE='' GOPROXY='https://proxy.golang.org,direct' GOROOT='/usr/local/go' GOSUMDB='sum.golang.org' GOTMPDIR='' GOTOOLCHAIN='auto' GOTOOLDIR='/usr/local/go/pkg/tool/linux_amd64' GOVCS='' GOVERSION='go1.22.7' GCCGO='gccgo' GOAMD64='v1' AR='ar' CC='gcc' CXX='g++' CGO_ENABLED='1' GOMOD='/syzkaller/jobs-2/linux/gopath/src/github.com/google/syzkaller/go.mod' GOWORK='' CGO_CFLAGS='-O2 -g' CGO_CPPFLAGS='' CGO_CXXFLAGS='-O2 -g' CGO_FFLAGS='-O2 -g' CGO_LDFLAGS='-O2 -g' PKG_CONFIG='pkg-config' GOGCCFLAGS='-fPIC -m64 -pthread -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=/tmp/go-build598475418=/tmp/go-build -gno-record-gcc-switches' git status (err=) HEAD detached at 7cbfbb3ab4 nothing to commit, working tree clean tput: No value for $TERM and no -T specified tput: No value for $TERM and no -T specified Makefile:31: run command via tools/syz-env for best compatibility, see: Makefile:32: https://github.com/google/syzkaller/blob/master/docs/contributing.md#using-syz-env go list -f '{{.Stale}}' ./sys/syz-sysgen | grep -q false || go install ./sys/syz-sysgen make .descriptions tput: No value for $TERM and no -T specified tput: No value for $TERM and no -T specified Makefile:31: run command via tools/syz-env for best compatibility, see: Makefile:32: https://github.com/google/syzkaller/blob/master/docs/contributing.md#using-syz-env bin/syz-sysgen go fmt ./sys/... >/dev/null touch .descriptions GOOS=linux GOARCH=arm64 go build "-ldflags=-s -w -X github.com/google/syzkaller/prog.GitRevision=7cbfbb3ab457b0a8ecf525a27a65a2078c5dcaa8 -X 'github.com/google/syzkaller/prog.gitRevisionDate=20241213-162906'" "-tags=syz_target syz_os_linux syz_arch_arm64 " -o ./bin/linux_arm64/syz-execprog github.com/google/syzkaller/tools/syz-execprog mkdir -p ./bin/linux_arm64 aarch64-linux-gnu-g++ -o ./bin/linux_arm64/syz-executor executor/executor.cc \ -O2 -pthread -Wall -Werror -Wparentheses -Wunused-const-variable -Wframe-larger-than=16384 -Wno-stringop-overflow -Wno-array-bounds -Wno-format-overflow -Wno-unused-but-set-variable -Wno-unused-command-line-argument -static-pie -std=c++17 -I. -Iexecutor/_include -fpermissive -w -DGOOS_linux=1 -DGOARCH_arm64=1 \ -DHOSTGOOS_linux=1 -DGIT_REVISION=\"7cbfbb3ab457b0a8ecf525a27a65a2078c5dcaa8\" /usr/lib/gcc-cross/aarch64-linux-gnu/12/../../../../aarch64-linux-gnu/bin/ld: /tmp/ccqpOgMC.o: in function `Connection::Connect(char const*, char const*)': executor.cc:(.text._ZN10Connection7ConnectEPKcS1_[_ZN10Connection7ConnectEPKcS1_]+0xd8): warning: Using 'gethostbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking