Merge branch 'android12-5.10' into android12-5.10-lts
Sync up with android12-5.10 for the following commits:976d98e9aaANDROID: ABI: Add page_pinner_inited into symbols list16c2b1d94fANDROID: page_pinner: prevent pp_buffer access before initializationcd1d9c42a2UPSTREAM: hwrng: virtio - add an internal buffer05fa7d8eeeANDROID: fix ABI by undoing atomic64_t -> u64 type conversioncda90416c0UPSTREAM: net: retrieve netns cookie via getsocketopt78a559e2a9UPSTREAM: net: initialize net->net_cookie at netns setupfb0cece721Merge tag 'android12-5.10.168_r00' into android12-5.10989d4c69a9UPSTREAM: ext4: fix another off-by-one fsmap error on 1k block filesystemsb0d829f27fUPSTREAM: ext4: block range must be validated before use in ext4_mb_clear_bb()0301fe419aUPSTREAM: ext4: add strict range checks while freeing blocks1d4b2a4ad7UPSTREAM: ext4: add ext4_sb_block_valid() refactored out of ext4_inode_block_valid()8ddbd3df93UPSTREAM: ext4: refactor ext4_free_blocks() to pull out ext4_mb_clear_bb()370cb1c270UPSTREAM: usb: dwc3: core: do not use 3.0 clock when operating in 2.0 modeeb53a59b4dANDROID: GKI: rockchip: Add symbols for clk apia13e8447e8BACKPORT: arm64: mte: move register initialization to Ceddac45546UPSTREAM: rcu: Remove __read_mostly annotations from rcu_scheduler_active externsafff17f583ANDROID: GKI: Update symbol list for mtk62f5fae173UPSTREAM: ext4: refuse to create ea block when umounted33245a0eacUPSTREAM: ext4: optimize ea_inode block expansion09e5cc649dUPSTREAM: ext4: allocate extended attribute value in vmalloc area8926771f7eUPSTREAM: usb: gadget: composite: Draw 100mA current if not configured87a065fb94UPSTREAM: usb: dwc3: gadget: Change condition for processing suspend event26638f8e54ANDROID: GKI: update xiaomi symbol list193b312b2fUPSTREAM: net/sched: tcindex: update imperfect hash filters respecting rcu9a1be9a472FROMGIT: KVM: arm64: Ignore kvm-arm.mode if !is_hyp_mode_available()dbcd8cb535UPSTREAM: KVM: arm64: Allow KVM to be disabled from the command line631630d75fANDROID: ABI: Cuttlefish Symbol update278dfb09d7Revert "ANDROID: dma-ops: Add restricted vendor hook"c2e3f757d3UPSTREAM: io_uring: ensure that io_init_req() passes in the right issue_flags9abdacf47fFROMGIT: usb: gadget: configfs: Restrict symlink creation is UDC already bindedd415c6e56fUPSTREAM: io_uring: add missing lock in io_get_file_fixed52cc662810ANDROID: ABI: Update oplus symbol listd01f7e1269ANDROID: vendor_hooks: Add hooks for mutex and rwsem optimistic spind4d05c6e6eANDROID: dma-buf: heaps: Don't lock unused dmabuf_page_pool mutex1d05213028ANDROID: mm/filemap: Fix missing put_page() for speculative page faultfda8a58faaUPSTREAM: KVM: VMX: Execute IBPB on emulated VM-exit when guest has IBRS5692e2bb4eUPSTREAM: net: qrtr: combine nameservice into main module4b9d11ae5fANDROID: GKI: Update symbol list for mtkb086cc7361FROMLIST: rcu-tasks: Fix build error7fd4fbe615ANDROID: incremental fs: Move throttling to outside page lock5d9b0e83e3ANDROID: incremental fs: Fix race between truncate and write last block6a8037d4ebUPSTREAM: usb: gadget: u_serial: Add null pointer check in gserial_resumef0be4b9779Revert "ANDROID: GKI: loadavg: Export for get_avenrun"781e1c83efANDROID: ABI: Update allowed list for QCOM579f8bf863ANDROID: Update symbol list for mtk80b27def69UPSTREAM: ext4: add inode table check in __ext4_get_inode_loc to aovid possible infinite loopa4d6d4d1e7UPSTREAM: net_sched: reject TCF_EM_SIMPLE case for complex ematch modulefb952695c8UPSTREAM: io_uring/rw: remove leftover debug statementca331f289aUPSTREAM: io_uring/rw: ensure kiocb_end_write() is always calledd54d41716dUPSTREAM: io_uring: fix double poll leak on repollingfc978be7b2UPSTREAM: io_uring: Clean up a false-positive warning from GCC 9.3.0827f8fcb29UPSTREAM: io_uring/net: fix fast_iov assignment in io_setup_async_msg()403642c036UPSTREAM: io_uring: io_kiocb_update_pos() should not touch file for non -1 offset0c50a117bfUPSTREAM: io_uring/rw: defer fsnotify calls to task contextb29c357309UPSTREAM: io_uring: do not recalculate ppos unnecessarily84e34d2ef5UPSTREAM: io_uring: update kiocb->ki_pos at execution timeb543e0d210UPSTREAM: io_uring: remove duplicated calls to io_kiocb_ppos9166f5418aUPSTREAM: io_uring: ensure that cached task references are always put on exitfee5372abfUPSTREAM: io_uring: fix CQ waiting timeout handlinga4d056e350UPSTREAM: io_uring: lock overflowing for IOPOLL0dfe72e890UPSTREAM: io_uring: check for valid register opcode earlier1b735b5eb2UPSTREAM: io_uring: fix async accept on O_NONBLOCK sockets63bf975936UPSTREAM: io_uring: allow re-poll if we made progressa64d6ea01bUPSTREAM: io_uring: support MSG_WAITALL for IORING_OP_SEND(MSG)cf7ef78842UPSTREAM: io_uring: add flag for disabling provided buffer recycling45b2a34e21UPSTREAM: io_uring: ensure recv and recvmsg handle MSG_WAITALL correctly4b912a635eUPSTREAM: io_uring: improve send/recv error handlingef0c71d0f1UPSTREAM: io_uring: don't gate task_work run on TIF_NOTIFY_SIGNAL1531e1fb8dBACKPORT: iommu: Avoid races around device probe60944bdddcUPSTREAM: io_uring/io-wq: only free worker if it was allocated for creationac06912075UPSTREAM: io_uring/io-wq: free worker if task_work creation is canceled98a15feed0UPSTREAM: io_uring: Fix unsigned 'res' comparison with zero in io_fixup_rw_res()a234cc4e55UPSTREAM: um: Increase stack frame size threshold for signal.cd40d310e5eANDROID: GKI: Enable ARM64_ERRATUM_24549449d2ec2e0b6ANDROID: dma-ops: Add restricted vendor hook3c75a6fb7fANDROID: arm64: Work around Cortex-A510 erratum 2454944865f370bf9ANDROID: mm/vmalloc: Add override for lazy vunmap1eb5992d60ANDROID: cpuidle-psci: Fix suspicious RCU usaged6b2899ce6ANDROID: ABI: update allowed list for galaxy3fcc69ca4dFROMGIT: f2fs: add sysfs nodes to set last_age_weight899476c3afFROMGIT: f2fs: fix wrong calculation of block aged0f788b8faANDROID: struct io_uring ABI preservation hack for 5.10.162 changesfef924db72ANDROID: fix up struct task_struct ABI change in 5.10.162d369ac0b2aANDROID: add flags variable back to struct proto_ops5756328b3fUPSTREAM: io_uring: pass in EPOLL_URING_WAKE for eventfd signaling and wakeups72d1c48675UPSTREAM: eventfd: provide a eventfd_signal_mask() helperd7a47b29d5UPSTREAM: eventpoll: add EPOLL_URING_WAKE poll wakeup flag7c9f38c09bUPSTREAM: Revert "proc: don't allow async path resolution of /proc/self components"498b35b3c4UPSTREAM: Revert "proc: don't allow async path resolution of /proc/thread-self components"4b17dea786UPSTREAM: net: remove cmsg restriction from io_uring based send/recvmsg callsd10f30da0dUPSTREAM: task_work: unconditionally run task_work from get_signal()62822bf630UPSTREAM: signal: kill JOBCTL_TASK_WORK5e6347b586UPSTREAM: io_uring: import 5.15-stable io_uring518e02ed06UPSTREAM: task_work: add helper for more targeted task_work canceling86acb6a529UPSTREAM: kernel: don't call do_exit() for PF_IO_WORKER threads52f564e57bUPSTREAM: kernel: stop masking signals in create_io_thread()bcb749b0b1UPSTREAM: x86/process: setup io_threads more like normal user space threads1f4eb35546UPSTREAM: arch: ensure parisc/powerpc handle PF_IO_WORKER in copy_thread()150dea15cbUPSTREAM: arch: setup PF_IO_WORKER threads like PF_KTHREADcf487d3c6aUPSTREAM: entry/kvm: Exit to user mode when TIF_NOTIFY_SIGNAL is set6e4362caf9UPSTREAM: kernel: allow fork with TIF_NOTIFY_SIGNAL pendingb25b8c55baUPSTREAM: coredump: Limit what can interrupt coredumps723de95c0cUPSTREAM: kernel: remove checking for TIF_NOTIFY_SIGNAL8492c5dd3bUPSTREAM: task_work: remove legacy TWA_SIGNAL path1987566815UPSTREAM: alpha: fix TIF_NOTIFY_SIGNAL handlingad4ba3038aUPSTREAM: ARC: unbork 5.11 bootup: fix snafu in _TIF_NOTIFY_SIGNAL handlingbb855b51a9UPSTREAM: ia64: don't call handle_signal() unless there's actually a signal queued7140fddd84UPSTREAM: sparc: add support for TIF_NOTIFY_SIGNALc9c70c8cb6UPSTREAM: riscv: add support for TIF_NOTIFY_SIGNAL52a756bf17UPSTREAM: nds32: add support for TIF_NOTIFY_SIGNAL6eaa6653e4UPSTREAM: ia64: add support for TIF_NOTIFY_SIGNAL1dcd12493bUPSTREAM: h8300: add support for TIF_NOTIFY_SIGNALb265cdb085UPSTREAM: c6x: add support for TIF_NOTIFY_SIGNALf4ece56973UPSTREAM: alpha: add support for TIF_NOTIFY_SIGNAL01af0730c9UPSTREAM: xtensa: add support for TIF_NOTIFY_SIGNAL29420dc96bUPSTREAM: arm: add support for TIF_NOTIFY_SIGNAL6c3e852b4fUPSTREAM: microblaze: add support for TIF_NOTIFY_SIGNAL8c81f539a0UPSTREAM: hexagon: add support for TIF_NOTIFY_SIGNAL175cc59b9cUPSTREAM: csky: add support for TIF_NOTIFY_SIGNAL2b94543d45UPSTREAM: openrisc: add support for TIF_NOTIFY_SIGNALe2e4fbbcebUPSTREAM: sh: add support for TIF_NOTIFY_SIGNAL8548375354UPSTREAM: um: add support for TIF_NOTIFY_SIGNALeae40ee91cUPSTREAM: s390: add support for TIF_NOTIFY_SIGNAL8489c86344UPSTREAM: mips: add support for TIF_NOTIFY_SIGNALb1f0e1159fUPSTREAM: powerpc: add support for TIF_NOTIFY_SIGNAL98031aa870UPSTREAM: parisc: add support for TIF_NOTIFY_SIGNAL470c17bd71UPSTREAM: nios32: add support for TIF_NOTIFY_SIGNALc5825095c4UPSTREAM: m68k: add support for TIF_NOTIFY_SIGNALfcf75a019eUPSTREAM: arm64: add support for TIF_NOTIFY_SIGNALd6b63ac444UPSTREAM: arc: add support for TIF_NOTIFY_SIGNAL109ccff96dUPSTREAM: x86: Wire up TIF_NOTIFY_SIGNAL862aa233e7UPSTREAM: task_work: Use TIF_NOTIFY_SIGNAL if availablea14b028722UPSTREAM: entry: Add support for TIF_NOTIFY_SIGNAL00af4b88adUPSTREAM: fs: provide locked helper variant of close_fd_get_file()82c3becbefUPSTREAM: file: Rename __close_fd_get_file close_fd_get_file98006a0a15UPSTREAM: fs: make do_renameat2() take struct filename661bc0f679UPSTREAM: signal: Add task_sigpending() helper13f03f5275UPSTREAM: net: add accept helper not installing fdaf091af9dbUPSTREAM: net: provide __sys_shutdown_sock() that takes a socket9505ff1a81UPSTREAM: tools headers UAPI: Sync openat2.h with the kernel sources2507b99d9aUPSTREAM: fs: expose LOOKUP_CACHED through openat2() RESOLVE_CACHED6b92128557UPSTREAM: Make sure nd->path.mnt and nd->path.dentry are always valid pointerseaf736aa71UPSTREAM: fix handling of nd->depth on LOOKUP_CACHED failures in try_to_unlazy*7928a1689bUPSTREAM: fs: add support for LOOKUP_CACHED72d2f4c1cdUPSTREAM: saner calling conventions for unlazy_child()ee44bd07c4UPSTREAM: iov_iter: add helper to save iov_iter state463a74a83bUPSTREAM: kernel: provide create_io_thread() helper8e993eabebUPSTREAM: net: loopback: use NET_NAME_PREDICTABLE for name_assign_type4373e5def3UPSTREAM: Bluetooth: L2CAP: Fix u8 overflow5278199031UPSTREAM: HID: uclogic: Add HID_QUIRK_HIDINPUT_FORCE quirkfa335f5bb9UPSTREAM: HID: ite: Enable QUIRK_TOUCHPAD_ON_OFF_REPORT on Acer Aspire Switch V 10784df646aaUPSTREAM: HID: ite: Enable QUIRK_TOUCHPAD_ON_OFF_REPORT on Acer Aspire Switch 10E29cde746b8UPSTREAM: HID: ite: Add support for Acer S1002 keyboard-dock228253f43fUPSTREAM: igb: Initialize mailbox message for VF reset001a013e84UPSTREAM: xhci: Apply XHCI_RESET_TO_DEFAULT quirk to ADL-N4fa772e757UPSTREAM: USB: serial: f81534: fix division by zero on line-speed changed81b6e6e88UPSTREAM: USB: serial: f81232: fix division by zero on line-speed change190b01ac50UPSTREAM: USB: serial: cp210x: add Kamstrup RF sniffer PIDs34d4848ba3UPSTREAM: USB: serial: option: add Quectel EM05-G modem9e620f2b54UPSTREAM: usb: gadget: uvc: Prevent buffer overflow in setup handlera20fd832a4BACKPORT: f2fs: do not allow to decompress files have FI_COMPRESS_RELEASED16996773d6BACKPORT: f2fs: handle decompress only post processing in softirqce72626280BACKPORT: f2fs: introduce memory mode246a996565BACKPORT: f2fs: allow compression for mmap files in compress_mode=userf069ba2b3dUPSTREAM: iommu/iova: Fix alloc iova overflows issuea1806694fcUPSTREAM: media: dvb-core: Fix UAF due to refcount races at releasing5f30de1dffANDROID: GKI: Add Tuxera symbol liste3a5b60c60UPSTREAM: usb: dwc3: gadget: Skip waiting for CMDACT cleared during endxfer6b23440751UPSTREAM: usb: dwc3: Increase DWC3 controller halt timeout4091dff1ffUPSTREAM: usb: dwc3: Remove DWC3 locking during gadget suspend/resume4fc3932857UPSTREAM: usb: dwc3: Avoid unmapping USB requests if endxfer is not complete19803140c0UPSTREAM: usb: dwc3: gadget: Continue handling EP0 xfercomplete events0bbc89c346UPSTREAM: usb: dwc3: gadget: Synchronize IRQ between soft connect/disconnect35cb147c38UPSTREAM: usb: dwc3: gadget: Force sending delayed status during soft disconnect5dc06419d8UPSTREAM: usb: dwc3: Do not service EP0 and conndone events if soft disconnecteddd8418a59aUPSTREAM: efi: rt-wrapper: Add missing include67884a649cUPSTREAM: arm64: efi: Execute runtime services from a dedicated stack6bd9415d98ANDROID: cpu: correct dl_cpu_busy() calls9e2b4cc230UPSTREAM: ALSA: pcm: Move rwsem lock inside snd_ctl_elem_read to prevent UAF80cad52515UPSTREAM: firmware: tegra: Reduce stack usage79c4f55c94UPSTREAM: scsi: bfa: Move a large struct from the stack onto the heape096145ac3ANDROID: mm: page_pinner: ensure do_div() arguments matches with respect to typee427004fadANDROID: Revert "ANDROID: allmodconfig: disable WERROR"8cf3c25495FROMGIT: scsi: ufs: Modify Tactive time setting conditionsfc1490c621UPSTREAM: remoteproc: core: Fix rproc->firmware free in rproc_set_firmware()869cae6f25UPSTREAM: usb: gadget: f_fs: Fix unbalanced spinlock in __ffs_ep0_queue_wait56c8a40436UPSTREAM: usb: gadget: f_hid: fix f_hidg lifetime vs cdeve973de77adUPSTREAM: usb: gadget: f_hid: optional SETUP/SET_REPORT mode283eb356fdANDROID: GKI: add symbol list file for honord30de90932ANDROID: add TEST_MAPPING for net/, include/net75d0665639BACKPORT: arm64/bpf: Remove 128MB limit for BPF JIT programs Change-Id: I111e3dafc40d4f06832e374fd10ae5984921dff5 Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
@@ -1613,6 +1613,13 @@ int sock_getsockopt(struct socket *sock, int level, int optname,
|
||||
v.val = sk->sk_bound_dev_if;
|
||||
break;
|
||||
|
||||
case SO_NETNS_COOKIE:
|
||||
lv = sizeof(u64);
|
||||
if (len != lv)
|
||||
return -EINVAL;
|
||||
v.val64 = atomic64_read(&sock_net(sk)->net_cookie);
|
||||
break;
|
||||
|
||||
default:
|
||||
/* We implement the SO_SNDLOWAT etc to not be settable
|
||||
* (1003.1g 7).
|
||||
|
||||
Reference in New Issue
Block a user